/* Inter Şrifti */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --brand-yellow: #FFD700;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --sidebar-bg: #181818;
    --danger-red: #ff4d4d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

/* --- Naviqasiya Paneli --- */
.sidebar {
    background: var(--sidebar-bg);
    width: 280px;
    height: 100vh;
    position: fixed;
    border-right: 1px solid #333;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-label {
    color: var(--brand-yellow);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--brand-yellow);
    padding-bottom: 10px;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li { margin-bottom: 12px; }

.nav-menu a {
    text-decoration: none;
    color: #bbb;
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background: var(--brand-yellow);
    color: #000;
    font-weight: 800;
    transform: translateX(5px);
}

/* --- Əsas Kontent --- */
.content {
    margin-left: 280px;
    padding: 50px;
    transition: all 0.3s ease;
}

/* --- Dashboard Statistik Kartları --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card:hover {
    border-color: var(--brand-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card i {
    font-size: 30px;
    color: var(--brand-yellow);
    background: rgba(255, 215, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.card h3 {
    margin: 0;
    font-size: 16px;
    color: #bbb;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card .value {
    font-size: 45px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* --- Status Badges --- */
.status-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    display: inline-block;
    text-align: center;
    min-width: 90px;
}

.status-normal {
    background: rgba(255, 215, 0, 0.1);
    color: var(--brand-yellow);
    border: 1px solid var(--brand-yellow);
}

.status-urgent {
    background: rgba(255, 77, 77, 0.15);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
    animation: alert-pulse 1.5s infinite;
}

.status-expired {
    background: var(--danger-red);
    color: white;
    font-weight: 800;
}

@keyframes alert-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* --- Əməliyyat Düymələri --- */
.action-btn {
    font-size: 20px;
    margin-right: 15px;
    transition: 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.action-btn.edit { color: skyblue; }
.action-btn.delete { color: var(--danger-red); }

/* --- MOBİL UYĞUNLUQ (Təkmilləşdirilmiş Kart Sistemi) --- */
@media (max-width: 991px) {
    .sidebar {
        left: -280px;
        z-index: 2000;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0 !important;
        padding: 80px 10px 20px 10px !important;
    }

    /* Dashboard Kartları Mobildə */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 20px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .card i {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .card .value {
        font-size: 32px;
    }

    /* Cədvəl Kart Sistemi */
    .table-container {
        border: none !important;
        background: transparent !important;
    }

    .table-responsive {
        overflow-x: hidden !important;
    }

    .table-responsive table, 
    .table-responsive tbody, 
    .table-responsive tr, 
    .table-responsive td { 
        display: block; 
        width: 100%; 
        box-sizing: border-box;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive tr {
        background: var(--card-bg);
        margin-bottom: 25px;
        border: 2px solid var(--brand-yellow) !important;
        border-radius: 15px;
        padding: 5px;
    }

    .table-responsive td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        text-align: right;
        padding: 15px !important;
        border-bottom: 1px solid #333;
        position: relative;
    }

    .table-responsive td:last-child {
        border-bottom: none;
        justify-content: center !important;
        padding-top: 20px !important;
        gap: 20px;
    }

    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--brand-yellow);
        text-transform: uppercase;
        font-size: 11px;
        text-align: left;
        min-width: 80px;
    }

    .table-responsive td > * {
        word-break: break-all;
    }

    .responsive-form {
        grid-template-columns: 1fr !important;
    }

    .add-btn {
        width: 100% !important;
        margin-top: 10px;
    }
}