﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #0b0f17;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
}

/* --- KARTY --- */
.custom-card {
    background-color: #131b2e;
    border-radius: 1rem;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    transition: all 0.25s ease;
}

/* --- PRZYCISKI GŁÓWNE (np. Uruchom) --- */
.btn-primary {
    background-color: #059669; /* emerald-600 */
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background-color: #10b981;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* --- ZAKŁADKI / WYBÓR MODUŁU ANALIZY --- */
/* --- ZAKŁADKI / WYBÓR MODUŁU ANALIZY --- */
/* 1. Bazowy przycisk (NIEAKTYWNY) - MUSI być szary, NIE fioletowy! */
/* --- ZAKŁADKI / PRZYCISKI WYBORU MODUŁU --- */
.tab-btn {
    display: flex !important;
    flex: 1 1 0% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    
    /* Domyślny stan NIEAKTYWNY (szary) */
    background-color: #1e293b !important;
    border: 1px solid #475569 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.tab-btn:hover {
    background-color: #334155 !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

/* Stan AKTYWNY (fioletowy - włączany dynamicznie przez skrypt) */
.tab-btn.active {
    background-color: #3730a3 !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4) !important;
}

/* --- INPUTY I TEXTAREA --- */
input[type="text"], textarea {
    width: 100%;
    background-color: #0b0f17 !important;
    border: 1px solid #1e293b !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    padding: 12px !important;
    font-size: 0.875rem !important;
    font-family: 'Inter', sans-serif !important;
    resize: vertical;
    transition: all 0.2s ease;
}

input[type="text"]:focus, textarea:focus {
    outline: none !important;
    border-color: #64748b !important;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2) !important;
}

/* --- UPLOADER PLIKÓW --- */
input[type="file"] {
    width: 100%;
    background-color: #0b0f17;
    border: 1px solid #1e293b;
    border-radius: 10px;
    color: #94a3b8;
    padding: 10px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background-color: #334155;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #475569;
}

/* --- SYSTEM PODPOWIEDZI (TOOLTIP) --- */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-btn {
    width: 20px;
    height: 20px;
    background-color: #1e293b;
    border: 1px solid #475569;
    color: #94a3b8;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.info-btn:hover {
    background-color: #334155;
    color: #ffffff;
    border-color: #64748b;
}

.tooltip-popup {
    display: none;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background-color: #1e293b;
    color: #f1f5f9;
    text-align: left;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.75rem;
    line-height: 1.4;
    border: 1px solid #475569;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
    z-index: 50;
}

.tooltip-popup.show {
    display: block;
}