/* style.css - Liquid Glass Style */
html {
    zoom: 90%;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.125);
    --lspd-blue: #0072ff;
    --lspd-purple: #4e00ff;
    --text-white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #030712;
    color: var(--text-white);
    margin: 0;
    overflow-x: hidden;
    overflow: hidden;
    height: 100vh;
    flex: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LIQUID BACKGROUND --- */
.liquid-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--lspd-blue);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--lspd-purple);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 150px) rotate(30deg); }
}

/* --- GLASSMORPHISM ELEMENTS --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.glass-header {
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(15px);
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 1.4rem;
}

nav a {
    color: rgba(255, 255, 255, 0.85); /* Nieco jaśniejszy kolor bazowy */
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95rem;       /* Lekko większa czcionka */
    font-weight: 800;          /* Maksymalne pogrubienie */
    text-transform: uppercase;
    letter-spacing: 1.5px;     /* Większy odstęp między literami dla czytelności */
    transition: 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Cień pod tekstem dla kontrastu */
}

nav a:hover, nav a.active {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Efekt "świecenia" po najechaniu */
}

/* --- HERO SECTION --- */
.hero-card {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.hero-card h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 10px 0;
    background: linear-gradient(to right, #fff, #88abff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-btn-primary {
    display: inline-block;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 18px 45px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.glass-btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    /* Intensywne świecenie w kolorze LSPD */
    box-shadow: 0 0 25px rgba(0, 114, 255, 0.6), 
                0 0 50px rgba(78, 0, 255, 0.3);
    color: #fff;
}

/* Efekt "błysku" przechodzącego przez przycisk po najechaniu */
.glass-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
}

.glass-btn-primary:hover::before {
    left: 100%;
}

/* --- GRID SYSTEM --- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 0 10px #00ff88;
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 160px;
}

/* Styl dla Twojego logo */
.hero-logo {
    width: 150px; /* Możesz dostosować wielkość */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 114, 255, 0.4)); /* Delikatna niebieska poświata */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05); /* Lekkie powiększenie po najechaniu */
}

/* Styl dla samej liczby */
.count-number {
    font-size: 3.5rem;         /* Duża, wyraźna liczba */
    font-weight: 900;
    color: var(--lspd-gold);   /* Złoty kolor LSPD */
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.4); /* Poświata liczby */
}

/* Podwyższenie kwadratu */
.info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Zmniejszamy z -25px na np. -5px lub 0, jeśli chcesz idealny poziom */
    transform: translateY(-5px); 
    transition: transform 0.3s ease;
}

.info-card:hover {
    /* Delikatny efekt po najechaniu, który nie zepsuje układu */
    transform: translateY(-12px);
}

.info-card {
    transform: none; /* Usuwa jakiekolwiek przesunięcie w górę */
}


/* Kontener dla wskaźnika i etykiety */
.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.status-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Ulepszona pulsująca kropka */
.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #00ff88;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00ff88;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.33); opacity: 1; }
    80%, 100% { transform: scale(3); opacity: 0; }
}

/* Tekst rekrutacji */
.status-card h3 {
    margin: 10px 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.highlight-open {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    background: linear-gradient(to bottom, #fff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Gwarantuje, że wszystkie karty w gridzie reagują tak samo */
.grid .glass-card {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    cursor: default;
}

.grid .glass-card:hover {
    /* Podnosi kartę o 12px w górę */
    transform: translateY(-12px); 
    
    /* Dodaje mocniejszy blask szkła przy krawędziach i cień */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(0, 114, 255, 0.1);
}


/* przesunięcie w prawo  */


header nav {
    margin-left: auto; /* To wypchnie całą nawigację do prawej krawędzi */
}

/* Lub jeśli masz listę ul */
header ul {
    display: flex;
    gap: 30px;
    margin-left: auto; /* Wypycha listę w prawo */
    list-style: none;
}

header .container {
    display: flex;
    justify-content: space-between; /* To trzyma logo po lewej, a nav po prawej */
    align-items: center;
}

header nav {
    padding-right: 145px; /* Przesunie przyciski o 50px od prawej krawędzi kontenera */
}

/* Usuwamy ograniczenie szerokości tylko dla headera, żeby mógł dobić do brzegów ekranu */
header .container {
    max-width: 100% !important; 
    width: 100% !important;
    padding: 0 60px; /* Odstęp od krawędzi monitora, żeby nie dotykało samej ramki */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Wypychamy nawigację */
header nav {
    margin-left: auto !important;
}

/* Jeśli Twoje linki są w ul, upewnij się, że nie mają ustawionego stałego width */
header ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}


/* muzyka /*

/* Przycisk muzyki w stylu Liquid Glass */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.music-control:hover {
    transform: scale(1.1) translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 114, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.3);
}

.music-icon {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Animowane słupki dźwięku (pokazują się, gdy gra) */
.music-waves {
    display: none; /* Ukryte domyślnie */
    position: absolute;
    bottom: 12px;
    gap: 2px;
}

.music-waves span {
    width: 3px;
    height: 10px;
    background: #00ff88;
    border-radius: 2px;
    animation: wave-bounce 1s ease-in-out infinite;
}

.music-waves span:nth-child(2) { animation-delay: 0.2s; }
.music-waves span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave-bounce {
    0%, 100% { height: 5px; }
    50% { height: 15px; }
}

/* Klasa aktywująca animację fal */
.music-control.playing .music-waves {
    display: flex;
}
.music-control.playing .music-icon {
    margin-bottom: 10px;
}

/* Layout Panelu */
.panel-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.avatar-wrapper img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0, 114, 255, 0.5);
    padding: 5px;
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: #00ff88;
    border-radius: 50%;
    border: 3px solid #030712;
    box-shadow: 0 0 10px #00ff88;
}

.sidebar h2 { margin-bottom: 5px; font-size: 1.4rem; }
.badge {
    background: rgba(0, 114, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-nav {
    margin-top: 50px;
    width: 100%;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.3s;
    border-radius: 12px;
    margin-bottom: 5px;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.05);
    color: white;
}

.logout-link:hover { color: #ff4b2b !important; }

/* Main Content Area */
.panel-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-header-simple h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.panel-header-simple span {
    display: block;
    font-family: 'Inter', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    letter-spacing: 0.05em;
}
.v-num { opacity: 0.5; font-size: 0.8rem; }
#current-time { opacity: 0.5; font-family: monospace; }

/* Asymmetric Grid */
.asymmetric-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.wide-card {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.card-content { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
.big-icon { font-size: 5rem; color: #0072ff; opacity: 0.8; }
.small-icon { font-size: 2.5rem; color: #00ff88; margin-bottom: 15px; }

.square-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.mini-btn, .panel-action-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.mini-btn::after, .panel-action-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.mini-btn:hover::after, .panel-action-btn:hover::after {
    left: 120%;
}

.panel-action-btn:hover {
    background: rgba(0, 70, 190, 0.3);
    color: #fff;
    border-color: rgba(0, 114, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 70, 190, 0.4), inset 0 0 10px rgba(0, 70, 190, 0.2);
    transform: translateY(-1px);
}

.mini-btn:hover {
    background: rgba(0, 150, 200, 0.25);
    color: #fff;
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 150, 200, 0.3), inset 0 0 10px rgba(0, 150, 200, 0.2);
    transform: translateY(-1px);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.mini-btn, .panel-action-btn {
    animation: fadeInScale 0.4s ease-out forwards;
}


/* Centrowanie zawartości początkowej */
.card-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.5s ease;
}

.giant-icon {
    font-size: 6rem;
    color: #0072ff;
    filter: drop-shadow(0 0 20px rgba(0, 114, 255, 0.4));
    margin-bottom: 10px;
}

.text-center { text-align: center; }

/* Duży przycisk na środku */
.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.panel-action-btn-lg {
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: rgba(0, 114, 255, 0.1);
    border: 2px solid #0072ff;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.2);
}

.panel-action-btn-lg:hover {
    transform: scale(1.05);
    background: #0072ff;
    box-shadow: 0 0 40px rgba(0, 114, 255, 0.6);
}

/* Układ 6 kwadracików (3 góra, 3 dół) */
.subsystems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny */
    grid-template-rows: repeat(2, 200px);  /* WYMUSZENIE wysokości rzędów (np. po 200px) */
    gap: 20px;
    width: 100%;
    margin-top: 20px;
    align-content: center; /* Centruje siatkę w pionie, jeśli karta jest wyższa */
}

.sub-item {
    background: rgba(255, 255, 255, 0.03); /* Bardzo delikatne tło */
    backdrop-filter: blur(10px); /* Rozmycie za szkłem */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Delikatna krawędź */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sub-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                transparent, 
                rgba(255, 255, 255, 0.05), 
                transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.sub-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 114, 255, 0.5); /* Niebieska krawędź przy najechaniu */
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(0, 114, 255, 0.2);
}

.sub-item:hover::before {
    left: 100%; /* Animacja błysku przy najechaniu */
}

.sub-item:hover i {
    color: #00c6ff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(0, 198, 255, 0.6));
}
.sub-item i {
    font-size: 2.2rem;
    color: #0072ff;
    transition: 0.3s;
    filter: drop-shadow(0 0 8px rgba(0, 114, 255, 0.3));
}
.sub-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.sub-item:hover span {
    color: white;
    letter-spacing: 2px;
}

/* Animacja otwarcia */
.card-active .subsystems-grid {
    display: grid;
    animation: fadeInSystem 0.6s forwards 0.3s;
}

@keyframes fadeInSystem {
    to { opacity: 1; transform: translateY(0); }
}

.card-active #mdt-initial-content {
    display: none;
}

/* Efekt pulsowania karty przy aktywacji */
.card-active {
    animation: cardPulse 0.5s ease-out;
    background: rgba(255, 255, 255, 0.05) !important; /* Lekkie rozjaśnienie całej karty */
}

@keyframes cardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); box-shadow: 0 0 30px rgba(0, 114, 255, 0.3); }
    100% { transform: scale(1); }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 500px;
    padding: 30px !important;
    animation: modalSlide 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-btn {
    background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer;
    opacity: 0.5; transition: 0.3s;
}

.close-btn:hover { opacity: 1; color: #ff4b2b; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.8rem; color: #0072ff; font-weight: bold; }

.input-group select, .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: rgb(0, 0, 0);
    font-family: inherit;
}

.input-group textarea { height: 150px; resize: none; }



/* Animacja wjazdu nowego menu */
@keyframes fadeInSystem {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#mdt-hc-level {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* auto dla nagłówka, 1fr dla pozostałych rzędów */
    grid-template-rows: auto 1fr 1fr; 
    gap: 20px;
    height: 100%; /* Upewnij się, że kontener nie jest za wysoki */
    align-content: start; /* Dociąga wszystko do góry */
}

.hc-header {
    grid-column: span 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 114, 255, 0.2);
    margin-bottom: 10px; /* Kontroluj odstęp tym marginesem */
}


/* Animacja rozszerzania karty */
#reports-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 250px; /* stała wysokość bazowa */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#reports-card.expanded {
    grid-column: 1 / -1; /* Od lewej do prawej krawędzi głównego panelu */
    min-height: calc(100vh - 180px); /* Dopasowanie wysokości do ekranu minus header */
    margin: 0; /* Usuwamy marginesy, żeby dociągnąć do boków */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch; /* Rozciąga zawartość do boków */
    padding: 40px !important;
    z-index: 100;
    animation: expandAnimation 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reports-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Dwie kolumny */
    grid-template-rows: repeat(2, 180px) !important; /* Niższe, bardziej eleganckie rzędy */
    gap: 25px !important;
    width: 100%;
    margin-top: 30px;
}

.report-form-styled {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.report-form-styled select, 
.report-form-styled textarea {
    background: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(0, 0, 0);
    padding: 15px;
    border-radius: 10px;
    font-family: inherit;
}

.report-form-styled textarea {
    height: 200px;
    resize: none;
}

#reports-minimized {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

@keyframes expandAnimation {
    from { opacity: 0.5; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.reports-menu .sub-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(0, 114, 255, 0.2) !important;
    border-radius: 20px !important;
    flex-direction: row !important; /* Ikona obok tekstu zamiast nad nim */
    justify-content: flex-start !important;
    padding: 0 40px !important;
    gap: 30px;
}

.reports-menu .sub-item i {
    font-size: 2.8rem !important;
    margin-bottom: 0 !important; /* Usuwamy dolny margines, bo ikona jest obok */
    color: #0072ff;
    filter: drop-shadow(0 0 15px rgba(0, 114, 255, 0.4));
}

#reports-expanded .hc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 114, 255, 0.3);
    margin-bottom: 20px;
}

.reports-menu .sub-item span {
    font-size: 1.1rem !important;
    letter-spacing: 2px;
    font-weight: 700;
    text-align: left;
}

.reports-menu .sub-item:hover {
    background: rgba(0, 114, 255, 0.1) !important;
    border-color: #0072ff !important;
    box-shadow: inset 0 0 20px rgba(0, 114, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.4);
}


.reports-scroll-area {
    max-height: 450px;
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 10px;
}

.report-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.report-item:hover {
    border-color: rgba(0, 114, 255, 0.4);
    background: rgba(0, 114, 255, 0.05);
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.report-badge {
    background: #0072ff;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.report-date {
    font-size: 0.8rem;
    opacity: 0.5;
}

.report-item-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* Maksymalnie 80% wysokości ekranu */
    padding: 25px;
    display: flex;
    flex-direction: column; /* Układ pionowy */
    animation: modalFadeIn 0.3s ease;
    overflow: hidden; /* Zapobiega wychodzeniu poza zaokrąglone rogi */
}

.report-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.report-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-body {
    overflow-y: auto; /* Włącza przewijanie pionowe */
    padding-right: 10px; /* Miejsce na scrollbar */
    margin-top: 10px;
    word-break: break-word; /* Łamanie długich słów (jak na Twoim ss) */
    overflow-wrap: break-word;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #0072ff;
    border-radius: 10px;
}

.full-page-card {
    min-height: 80vh;
    padding: 30px;
}

.rank-section {
    margin-bottom: 30px;
}

.rank-title {
    background: rgba(0, 114, 255, 0.2);
    color: #0072ff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-left: 4px solid #0072ff;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.member-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.member-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #0072ff;
}

/* Styl okna modalnego */
.officer-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 600px;
    max-width: 90%;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--lspd-blue);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 10px;
}

.info-box h5 {
    color: var(--lspd-blue);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
    background: rgba(0, 114, 255, 0.2);
    border: 1px solid var(--lspd-blue);
}

.tag.punishment { background: rgba(255, 75, 43, 0.1); border-color: #ff4b2b; color: #ff4b2b; }
.tag.success { background: rgba(40, 167, 69, 0.1); border-color: #28a745; color: #28a745; }


/* Kontener na kwadraciki kar/nagród */
.status-grid {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.status-box {
    width: 25px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
}

/* Kolory świecenia */
.status-box.plus-active { background: #28a745; box-shadow: 0 0 10px #28a745; border-color: #34ce57; }
.status-box.minus-active { background: #dc3545; box-shadow: 0 0 10px #dc3545; border-color: #f8263a; }

/* Napis Nagana */
.nagana-banner {
    background: linear-gradient(90deg, transparent, #ff4b2b, transparent);
    color: white;
    text-align: center;
    font-weight: 900;
    padding: 5px 0;
    margin: 10px 0;
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

/* Opaska Zawieszenia */
.suspended-wrapper {
    position: relative;
    display: inline-block;
}

.suspended-ribbon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: #ff0000;
    color: white;
    padding: 2px 10px;
    font-weight: 900;
    font-size: 10px;
    border: 2px solid white;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Wyróżnione jednostki/szkolenia */
.tag.active-highlight {
    background: rgba(0, 114, 255, 0.3);
    border: 1px solid var(--lspd-blue);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 114, 255, 0.4);
}

/* Mały wskaźnik na głównej liście */
.vacation-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff9f43;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.5);
    z-index: 5;
}

/* Baner wewnątrz modalu */
.vacation-banner {
    background: linear-gradient(90deg, transparent, rgba(255, 159, 67, 0.2), transparent);
    border-top: 1px solid #ff9f43;
    border-bottom: 1px solid #ff9f43;
    color: #ff9f43;
    text-align: center;
    padding: 8px 0;
    margin: 15px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Styl przełącznika (Switch) */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 34px; border: 1px solid var(--glass-border); }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #0072ff; box-shadow: 0 0 10px rgba(0, 114, 255, 0.5); }
input:checked + .slider:before { transform: translateX(26px); }

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}
.styled-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid rgba(0, 114, 255, 0.3);
    color: #0072ff;
    text-transform: uppercase;
}
.styled-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.styled-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.badge {
    background: rgba(0, 114, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 114, 255, 0.3);
}
element.style {
    background: #0073ff00;
}
.full-panel-style {
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.report-entry {
    border: 1px solid rgba(0, 114, 255, 0.2);
    transition: transform 0.2s;
}

/* Styl dla tła modala - mocniejsze rozmycie */
.modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

/* Nowoczesny wygląd karty modala */
.modal-content.premium-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(0, 114, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 114, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    animation: modalSlideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Animacja wjazdu okienka */
@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Stylizacja pól formularza w modalu */
.premium-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 114, 255, 0.3) !important;
    border-radius: 10px !important;
    color: white !important;
    padding: 12px !important;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.premium-input:focus {
    border-color: #0072ff !important;
    box-shadow: 0 0 10px rgba(0, 114, 255, 0.3);
    outline: none;
}

/* Styl dla etykiet (Label) */
.mgmt-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0072ff;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

/* --- MANAGEMENT TERMINAL - FINAL LIQUID GLASS FIX --- */

/* Główny kontener modalu */
#fp-mgmt-modal.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

/* Karta terminala */
.liquid-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 950px;
    max-width: 95vw;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
}

/* Header */
.glass-header {
    padding: 25px 35px;
    background: rgba(3, 7, 18, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.header-content { display: flex; align-items: center; gap: 20px; }
.header-content i { font-size: 28px; color: var(--lspd-blue); text-shadow: 0 0 15px rgba(0, 114, 255, 0.5); }
.title-group h1 { font-size: 1.2rem; letter-spacing: 3px; font-weight: 800; margin: 0; text-transform: uppercase; }
.title-group p { font-size: 0.65rem; opacity: 0.5; margin: 0; letter-spacing: 1.5px; }

/* Przycisk zamknięcia */
.glass-close-btn {
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer; opacity: 0.5; transition: 0.3s;
}
.glass-close-btn:hover { opacity: 1; color: #ff4b2b; }

/* Układ siatki */
.glass-grid { display: grid; grid-template-columns: 1fr 1fr; }
.glass-column { padding: 35px; }
.selection-pane { border-right: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.01); }
.action-pane { background: rgba(0, 0, 0, 0.2); }

/* WYSZUKIWARKA I LISTA */
.search-container { position: relative; margin-bottom: 20px; }
.search-container input {
    width: 90%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border);
    padding: 12px 15px 12px 45px; border-radius: 12px; color: white; font-family: inherit;
}
.search-icon { position: absolute; left: 15px; top: 15px; opacity: 0.4; }

.liquid-scroll {
    height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 10px;
}
.liquid-scroll::-webkit-scrollbar { width: 4px; }
.liquid-scroll::-webkit-scrollbar-thumb { background: var(--lspd-blue); border-radius: 10px; }

/* POLA FORMULARZA (Naprawa widoczności) */
.input-container label { 
    font-size: 0.7rem; font-weight: 800; color: var(--lspd-blue); margin-bottom: 8px; display: block; letter-spacing: 1px;
}

.glass-input {
    width: 100%; 
    background: rgba(0, 0, 0, 0.5) !important; /* Ciemne tło, by biały tekst był widoczny */
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important; 
    color: #ffffff !important; /* Wymuszony biały tekst */
    padding: 15px !important; 
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

/* Naprawa kolorów opcji w liście rozwijanej */
.glass-input option {
    background: #030712; 
    color: #ffffff;
}

textarea.glass-input { height: 120px; resize: none; }

/* PRZYCISK AKCJI */
.liquid-btn {
    position: relative; width: 100%; padding: 18px;
    background: rgba(0, 114, 255, 0.2); border: 1px solid var(--lspd-blue); border-radius: 15px;
    color: #fff; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; overflow: hidden; transition: 0.4s;
}

.liquid-btn:hover {
    background: var(--lspd-blue);
    box-shadow: 0 0 30px rgba(0, 114, 255, 0.5);
    transform: translateY(-2px);
}

.liquid-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}
.liquid-btn:hover .liquid-overlay { transform: translateX(100%); }

/* --- AWATARY W TERMINALU - POPRAWKA WIDOCZNOŚCI --- */

.user-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 15px 20px; /* Nieco większe paddingi */
    border-radius: 15px; /* Spójne zaokrąglenie */
    display: flex; 
    align-items: center; 
    gap: 15px; /* Większy odstęp między awatarem a tekstem */
    transition: 0.3s ease; 
    cursor: pointer;
}

/* Stylowanie samego obrazka */
.user-item img { 
    width: 45px; /* Zwiększono rozmiar */
    height: 45px; /* Zwiększono rozmiar */
    border-radius: 10px; /* Lekko zaokrąglone rogi, nie pełne koło */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    object-fit: cover; /* Wypełnia przestrzeń bez zniekształceń */
    object-position: center; /* Centruje kadrowanie */
    
    /* Delikatny efekt poświaty dla lepszego kontrastu */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.3s ease;
}

/* Efekt poświaty przy najechaniu na kafelka */
.user-item:hover img {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Poświata w kolorze LSPD po wybraniu kafelka */
.user-item.selected img {
    border-color: var(--lspd-blue);
    box-shadow: 0 0 15px rgba(0, 114, 255, 0.3);
}

/* Naprawa tekstu przy awatarze */
.u-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    opacity: 0.9;
}
.announcement-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}
.announcement-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.announcement-content i {
    color: #e5c158;
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}
.announcement-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.announcement-close-btn:hover {
    color: #fff;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}