/* ACRO OS - V2.0 Tactical Horizon System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
    /* Color Palette - Deep Dark & Neon V2 (Cyan/Magenta glow base) */
    --cmd-bg: #030509; /* Deeper black/blue */
    --cmd-surface: rgba(9, 13, 24, 0.85); /* Glass surface */
    --cmd-surface-light: rgba(18, 25, 41, 0.95);
    
    --cmd-primary: #00f0ff; /* Neon Cyan (jak na zdjęciu) */
    --cmd-primary-glow: rgba(0, 240, 255, 0.3);
    
    --cmd-secondary: #ff00ff; /* Magenta (akcent z przycisku 'widok główny') */
    
    --cmd-text: #f8fafc;
    --cmd-text-muted: #64748b;
    --cmd-border: rgba(0, 240, 255, 0.15); /* Technical cyan border */
    
    --radius-xl: 16px;
    --radius-lg: 8px; /* Ostrzejsze krawędzie V2 */
    --radius-md: 4px;
    
    --shadow-neon: 0 0 15px var(--cmd-primary-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

body {
    font-family: 'Outfit', sans-serif !important;
    color: var(--cmd-text) !important;
    background: var(--cmd-bg) !important;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
}

/* TOP NAVIGATION V2 */
.nav-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(3, 5, 9, 0.95);
    border-bottom: 1px solid var(--cmd-border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-v2-links {
    display: flex;
    gap: 30px;
}

.nav-v2-link {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cmd-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.nav-v2-link:hover, .nav-v2-link.active {
    color: var(--cmd-text);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.nav-v2-admin-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-v2-user {
    text-align: right;
    font-size: 0.6rem;
    line-height: 1.2;
}

.nav-v2-user strong {
    color: #fff;
    font-size: 0.7rem;
    display: block;
}

.nav-v2-user span {
    color: var(--cmd-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
}

.nav-v2-btn {
    border: 1px solid var(--cmd-primary);
    padding: 8px 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cmd-primary);
    background: transparent;
    border-radius: 2px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.nav-v2-btn:hover {
    background: var(--cmd-primary);
    color: #000;
    box-shadow: var(--shadow-neon);
}

/* HERO SECTION V2 */
.hero-v2 {
    margin-top: 60px;
    height: 380px; /* Kompaktowa sekcja hero, miejsce na okno poniżej */
    position: relative;
    background-size: cover;
    background-position: center 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 25px;
}

.hero-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3,5,9,0.2) 0%, var(--cmd-bg) 100%);
    pointer-events: none;
}

/* HUD narożniki z referencji */
.hud-corner {
    position: absolute;
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 6px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: var(--cmd-primary);
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-corner.top-left { top: 30px; left: 40px; border-left: 2px solid var(--cmd-primary); }
.hud-corner.top-right { top: 30px; right: 40px; border-right: 2px solid var(--cmd-primary); }

.hud-dot {
    width: 6px; height: 6px;
    background: var(--cmd-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-neon);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-v2-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.hero-v2-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--cmd-primary);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-v2-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
    text-transform: uppercase;
    margin: 0;
}

/* MAIN CONTENT WINDOW V2 */
.main-window-wrapper {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    margin: 40px auto; 
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .main-window-wrapper {
        padding: 0 40px;
    }
}

.main-window-border {
    border-top: 2px solid var(--cmd-primary);
    border-left: 1px solid var(--cmd-border);
    border-right: 1px solid var(--cmd-border);
    border-bottom: 1px solid var(--cmd-border);
    background: #050811; /* Bardzo ciemny odcień dla widoczności kart */
    border-radius: 2px;
    position: relative;
    box-shadow: inset 0 20px 40px -20px rgba(0,240,255,0.05),
                0 0 20px rgba(0,0,0,0.5);
    min-height: 50vh;
}

.main-window-indicator {
    position: absolute;
    top: -1px; left: 0;
    width: 40px; height: 4px;
    background: var(--cmd-primary);
    box-shadow: var(--shadow-neon);
}

.main-content {
    padding: 50px; /* Bardzo dużo przestrzeni by nic się nie nakładało */
}

.section-label {
    border-left: 3px solid var(--cmd-secondary);
    padding-left: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cmd-secondary);
    margin-bottom: 30px;
}

/* CMD CARD (Wewnątrz okna) */
.cmd-card {
    background: rgba(10, 15, 25, 0.8);
    border: 1px solid var(--cmd-border);
    border-radius: 4px;
    transition: var(--transition);
}

.cmd-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
}

/* BUTTONS */
.cmd-btn {
    background: var(--cmd-primary);
    color: #000;
    padding: 14px 28px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.cmd-btn:hover {
    box-shadow: 0 0 20px var(--cmd-primary-glow);
    filter: brightness(1.2);
}

.cmd-btn-secondary {
    background: transparent;
    border: 1px solid var(--cmd-border);
    color: var(--cmd-text);
}
.cmd-btn-secondary:hover {
    border-color: var(--cmd-primary);
    background: rgba(0,240,255,0.05);
}

/* FORMS V2 */
.tac-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.tac-input, input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"], select, textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 12px 18px !important;
    color: #fff !important;
    border-radius: 4px !important;
    width: 100%;
    transition: var(--transition);
}

.tac-input:focus, input:focus, select:focus {
    border-color: var(--cmd-primary) !important;
    outline: none !important;
    box-shadow: inset 0 0 10px rgba(0,240,255,0.1) !important;
}

/* FIX: Ensure select options are visible (dark background for the list) */
select option {
    background-color: #0f172a !important; /* Dark slate background */
    color: #ffffff !important;
    padding: 10px !important;
}

select optgroup {
    background-color: #0c111d !important;
    color: #00f0ff !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
}

/* GRID FIX (Zapobieganie wchodzeniu pod sidebar, którego już nie ma, ale wzmacnia strukturę) */
.tac-grid-bg {
    background-image: linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
}

.tac-stack > * + * { margin-top: 30px; } /* Vertical rhythm */

.welcome-text {
    font-weight: 300;
    color: var(--cmd-text-muted);
}

.welcome-text strong {
    color: var(--cmd-text);
    font-weight: 800;
}

/* Stats */
.cmd-stat-val {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cmd-stat-label {
    color: var(--cmd-primary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* Calendar */
.calendar-day-header { text-align: center; font-size: 0.7rem; font-weight: 900; color: var(--cmd-text-muted); padding-bottom: 15px; text-transform: uppercase; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--cmd-border); border-radius: 8px; font-size: 0.85rem; font-weight: 600; transition: var(--transition); cursor: pointer; }
.calendar-day:hover { background: var(--cmd-primary); color: white; transform: scale(1.1); z-index: 10; box-shadow: var(--shadow-neon); }
.calendar-day.today { border-color: var(--cmd-primary); color: var(--cmd-primary); background: rgba(249, 115, 22, 0.1); }
.calendar-day.other-month { opacity: 0.1; pointer-events: none; }

/* Media & Icons Global Reset */
svg {
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
}

img {
    max-width: 100%;
    height: auto;
}

/* Specific Component Scaling */
.btn-icon, .info-icon, .alert-icon, .section-icon, .add-participants-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    flex-shrink: 0;
}

.hero-icon {
    width: 64px !important;
    height: 64px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    padding: 12px;
    color: var(--cmd-primary);
}

.participant-photo-wrapper {
    width: 120px !important;
    height: 120px !important;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cmd-surface-light);
    border: 1px solid var(--cmd-border);
    flex-shrink: 0;
}

.participant-photo-card, .participant-photo-placeholder-card {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.participant-photo-placeholder-card svg {
    width: 50% !important;
    height: 50% !important;
    opacity: 0.3;
}

/* Legacy Typography Support */
.hero h1 { font-size: 2.5rem; margin: 0; }
.hero p { color: var(--cmd-text-muted); }

/* Card Grids */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.participant-card {
    background: var(--cmd-surface);
    border: 1px solid var(--cmd-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.participant-card:hover { border-color: var(--cmd-primary); box-shadow: var(--shadow-neon); }

.participant-content { flex: 1; min-width: 0; }
.participant-name { font-size: 1.1rem; margin-bottom: 5px; color: #fff; }

/* Tactical Form Elements */
.tac-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 12px 18px !important;
    color: white !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
    width: 100%;
}

.tac-input:focus {
    border-color: var(--cmd-primary) !important;
    box-shadow: 0 0 15px var(--cmd-primary-glow) !important;
    background: rgba(2, 6, 23, 0.8) !important;
    outline: none !important;
}

.tac-label {
    text-transform: uppercase !important;
    font-size: 0.6rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    color: #f8fafc !important; /* Niemal biały dla etykiet */
    margin-bottom: 10px !important;
    display: block !important;
}

.tac-card-header {
    border-bottom: 1px solid var(--cmd-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tac-grid-bg {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cmd-bg); }
::-webkit-scrollbar-thumb { background: var(--cmd-surface-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cmd-primary); }

/* =========================================================
   ACRO OS - PZG TACTICAL MODULE V2 (ORANGE NEON)
   ========================================================= */

/* Enhanced Glassmorphism for specific PZG cards */
.cmd-card-glass {
    background: rgba(18, 18, 20, 0.7);
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 1.5rem;
    border: 1px solid rgba(63, 63, 70, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cmd-card-glass:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

/* Orange Neon Glows */
.shadow-neon-orange {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.6) !important;
}
.text-neon-orange {
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    color: #f97316 !important;
}

/* PZG Specific Buttons */
.cmd-btn-orange {
    background: #f97316;
    color: #000;
    padding: 14px 28px;
    font-weight: 800;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}
.cmd-btn-orange:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
    filter: brightness(1.2);
    color: #000;
}

/* Inputs focused in PZG mode */
.tac-input-pzg {
    background: rgba(2, 6, 23, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    color: white !important;
}
.tac-input-pzg:focus {
    border-color: #f97316 !important;
    box-shadow: inset 0 0 10px rgba(249, 115, 22, 0.1), 0 0 15px rgba(249, 115, 22, 0.3) !important;
    background: rgba(2, 6, 23, 0.8) !important;
    outline: none !important;
}

/* HUD Scanning Animation */
.hud-scan-active {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249, 115, 22, 0.08),
        transparent
    );
    animation: scan 4s infinite linear;
    pointer-events: none;
    z-index: 0;
}
@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}
