:root {
    --bg-dark: #050505;
    --bg-panel: rgba(10, 15, 20, 0.75);
    --text-main: #e0f7fa;
    --text-muted: #607d8b;
    --primary: #00bcd4;
    /* Siyan/Mavi Teknoloji Rengi */
    --accent: #ff9800;
    /* Turuncu Uyarı Rengi */
    --success: #00e676;
    --danger: #ff1744;
    --hud-border: 1px solid rgba(0, 188, 212, 0.3);
    --glass-shadow: 0 0 15px rgba(0, 188, 212, 0.1);
    --backdrop-blur: blur(8px);
}

html,
body {
    background-color: #050505 !important;
    /* Beyaz ekranı engelle */
    color: var(--text-main);
    font-family: 'Share Tech Mono', monospace;
    /* Teknoloji Fontu */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* HUD & Glass Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--glass-shadow);
    border-radius: 4px;
    /* Keskin köşeler */
    position: relative;
}

.hud-card {
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.hud-card::before,
.hud-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary);
    transition: all 0.3s;
}

.hud-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.hud-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* Top HUD Bar */
.top-hud {
    position: fixed;
    top: 0;
    left: 20px;
    right: 20px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
    padding: 0 2rem;
}

.hud-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-value {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px currentColor;
}

/* Ticker */
.hud-ticker {
    flex: 1;
    overflow: hidden;
    margin: 0 2rem;
    background: rgba(0, 188, 212, 0.1);
    height: 30px;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
}

.ticker-content {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-size: 0.9rem;
    color: var(--primary);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Blink Animation */
.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Sidebar */
.sidebar {
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--primary);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 188, 212, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}

/* Main Content */
.app-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Daha geniş sidebar */
    height: 100vh;
}

.main-content {
    padding: 2rem;
    overflow-y: auto;
    /* Main content arkaplanı şeffaf olsun ki harita görünsün */
    background: transparent;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
}

.btn-hud {
    background: rgba(0, 188, 212, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    font-family: 'Share Tech Mono';
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-hud:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    animation: scan 3s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Share Tech Mono';
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Red Alert Modal (Hidden by Default) */
#red-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.alert-content {
    background: rgba(20, 0, 0, 0.9);
    border: 2px solid var(--primary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(231, 76, 60, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 60px rgba(231, 76, 60, 0.6);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.3);
        transform: scale(1);
    }
}

.alert-title {
    font-size: 3rem;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 900;
}

.alert-info {
    margin: 20px 0;
    font-size: 1.2rem;
}

.rsvp-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.95);
}

.btn-accept {
    background: var(--success);
    color: #fff;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.btn-reject {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-reject:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Logistics Table */
.logistics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        /* Sidebar kalkar veya alta geçer */
        grid-template-rows: auto 1fr;
    }

    .sidebar {
        display: none;
        /* Mobilde sidebar'ı gizle (veya hamburger menü yap) */
    }

    /* Basit Mobil Navigasyon (Alt Bar) */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #1a1a1a;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1000;
    }

    .mobile-nav-item {
        color: var(--text-muted);
        text-align: center;
        text-decoration: none;
        font-size: 0.8rem;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item i {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .main-content {
        padding: 1rem;
        padding-bottom: 70px;
        /* Alt bar için boşluk */
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        /* Tek kolon */
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header button {
        width: 100%;
    }

    /* Modal Tam Ekran */
    .alert-content,
    #inventory-modal .glass-panel {
        width: 95% !important;
        padding: 1rem !important;
    }

    #inventory-modal h2 {
        font-size: 1.2rem;
    }
}

/* Masaüstünde mobil barı gizle */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}