/* ====================================================================
   DDSE CSR ADMIN PORTAL 2026 - DESIGN SYSTEM & STYLESHEET
   Bento Luxury, Warm Terracotta, Glassmorphism, Plus Jakarta Sans
   ==================================================================== */

:root {
    --primary-orange: #ea580c;
    --primary-orange-light: #fff7ed;
    --primary-orange-dark: #c2410c;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-blue: #2563eb;
    --accent-purple: #8b5cf6;
    
    --bg-main: #fcfaf7;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-solid: #ffffff;
    
    --border-soft: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(234, 88, 12, 0.35);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 36px -4px rgba(234, 88, 12, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
    --shadow-modal: 0 24px 60px -12px rgba(15, 23, 42, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Orbs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.ambient-glow.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 145, 77, 0.18) 0%, rgba(255, 247, 237, 0) 70%);
    top: -100px;
    right: -100px;
}

.ambient-glow.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(255, 247, 237, 0) 70%);
    bottom: -150px;
    left: -150px;
}

/* Utilities */
.hidden { display: none !important; }
.w-full { width: 100%; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary-orange); }

/* ====================================================================
   1. LOGIN SCREEN STYLES
   ==================================================================== */
.admin-login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
    background: radial-gradient(circle at 50% 20%, #fffbf6 0%, #f7f1e7 100%);
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: 38px 32px;
    text-align: center;
    animation: fadeSlideUp 0.35s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.login-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-orange);
    background: var(--primary-orange-light);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 8px;
}

.login-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text-main);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    background: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pass:hover {
    color: var(--text-main);
}

.login-error-msg {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    text-align: left;
}

.login-footer-links {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.link-back-portal {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.link-back-portal:hover {
    color: var(--primary-orange);
}

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    height: 48px;
    padding: 0 20px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
    font-size: 14.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    height: 48px;
    padding: 0 18px;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-secondary.btn-sm, .btn-primary.btn-sm {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-pdf {
    height: 48px;
    padding: 0 20px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
    transform: translateY(-1px);
}

.btn-pdf:active {
    transform: translateY(0);
}

.btn-pdf.btn-sm {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-logout {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ====================================================================
   2. DASHBOARD SHELL & HEADER
   ==================================================================== */
.admin-dashboard-screen {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 0;
}

.admin-header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.badge-db-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ea580c;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

/* ====================================================================
   3. MAIN CONTENT
   ==================================================================== */
.admin-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 28px 60px;
    width: 100%;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin-bottom: 6px;
}

.page-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 680px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ====================================================================
   4. BENTO KPI GRID
   ==================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-amber));
    opacity: 0.8;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

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

.kpi-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.kpi-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon-wrap.orange { background: #fff7ed; color: #ea580c; }
.kpi-icon-wrap.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon-wrap.emerald { background: #ecfdf5; color: #059669; }
.kpi-icon-wrap.purple { background: #f5f3ff; color: #7c3aed; }

.kpi-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 6px;
}

.kpi-footer {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ====================================================================
   5. TOOLBAR (SEARCH & FILTERS)
   ==================================================================== */
.toolbar-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    max-width: 900px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.toolbar-search-input {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 42px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text-main);
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.15s ease;
}

.toolbar-search-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.btn-clear-search {
    position: absolute;
    right: 12px;
    background: #e2e8f0;
    border: none;
    color: var(--text-main);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-select-wrap {
    position: relative;
}

.toolbar-select {
    height: 42px;
    padding: 0 32px 0 14px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) center;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-select:focus {
    border-color: var(--primary-orange);
}

.records-badge {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

/* ====================================================================
   6. DATA TABLE
   ==================================================================== */
.table-container-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.data-table th {
    background: #faf8f5;
    padding: 14px 18px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

.data-table tr:hover td {
    background-color: #fffaf5;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Table Specific Components */
.td-id {
    font-family: monospace;
    font-weight: 700;
    color: var(--text-dim);
    font-size: 12px;
}

.td-time {
    display: flex;
    flex-direction: column;
}

.time-main {
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
}

.time-rel {
    font-size: 11.5px;
    color: var(--text-muted);
}

.year-pill {
    display: inline-block;
    padding: 3px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
}

.program-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.3;
}

.program-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.relawan-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.relawan-nama {
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
}

.relawan-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #059669;
    font-weight: 600;
    text-decoration: none;
}

.wa-link:hover {
    text-decoration: underline;
}

/* Actions in table */
.action-buttons-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.btn-drive-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-drive-action:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.btn-icon-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon-action:hover {
    background: #ffffff;
    color: var(--text-main);
    border-color: #cbd5e1;
}

.btn-icon-action.delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Loading & Empty State */
.loading-cell {
    text-align: center;
    padding: 48px 20px !important;
    color: var(--text-muted);
}

.table-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state-box {
    text-align: center;
    padding: 64px 20px;
}

.empty-icon-wrap {
    width: 68px;
    height: 68px;
    background: #f8fafc;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 18px;
}

/* ====================================================================
   7. MODAL OVERLAY & CARD
   ==================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-orange);
    background: var(--primary-orange-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

.modal-close-btn:hover {
    color: var(--text-main);
    background: #f1f5f9;
}

.modal-body {
    padding: 24px 28px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-val {
    font-size: 14.5px;
    color: var(--text-main);
    word-break: break-word;
}

.drive-preview-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
}

.drive-banner-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.drive-banner-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #166534;
}

.drive-banner-sub {
    font-size: 12px;
    color: #15803d;
    margin-top: 2px;
    line-height: 1.4;
}

.modal-footer {
    padding: 18px 28px;
    background: #faf8f5;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ====================================================================
   8. RESPONSIVE MEDIA QUERIES
   ==================================================================== */
@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .toolbar-card {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-left {
        flex-wrap: wrap;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-header-container {
        padding: 0 16px;
    }
    .admin-main {
        padding: 20px 16px 40px;
    }
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .hero-actions {
        width: 100%;
        justify-content: space-between;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-select-wrap {
        width: 100%;
    }
    .toolbar-select {
        width: 100%;
    }
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    .detail-item.full-width {
        grid-column: span 1;
    }
}
