/* ============================================================
   FINANCE DASHBOARD - NERVE KABEL MEDIA
   Profesional | Glassmorphism | Animasi Lengkap
   ============================================================ */

:root {
    --primary: #00c2d1;
    --primary-dark: #00a8b5;
    --primary-glow: rgba(0, 194, 209, 0.4);
    --danger: #ea5455;
    --danger-glow: rgba(234, 84, 85, 0.4);
    --success: #28c76f;
    --success-glow: rgba(40, 199, 111, 0.4);
    --warning: #ff9f43;
    --warning-glow: rgba(255, 159, 67, 0.4);
    --info: #7367f0;
    --info-glow: rgba(115, 103, 240, 0.4);
    --dark: #0f111a;
    --darker: #0a0c14;
    --card: rgba(22, 25, 40, 0.85);
    --card-solid: #161928;
    --card-hover: rgba(30, 34, 55, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --border-solid: #2a2e45;
    --text: #e0e0e0;
    --text-muted: #8b92a8;
    --text-dim: #5a6078;
    --glass-bg: rgba(22, 25, 40, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #00c2d1 0%, #00e5ff 100%);
    --gradient-danger: linear-gradient(135deg, #ea5455 0%, #ff6b6b 100%);
    --gradient-success: linear-gradient(135deg, #28c76f 0%, #48e78a 100%);
    --gradient-warning: linear-gradient(135deg, #ff9f43 0%, #ffb976 100%);
    --gradient-dark: linear-gradient(135deg, #161928 0%, #1e2237 100%);
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

html { scroll-behavior: smooth; }

body {
    background: var(--darker);
    color: var(--text);
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(0, 194, 209, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(115, 103, 240, 0.06) 0%, transparent 50%);
}

/* ========== LAYOUT ========== */
.dashboard { display: flex; min-height: 100vh; }

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(10, 12, 20, 0.98) 0%, rgba(15, 17, 26, 0.98) 100%);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px var(--primary-glow)); }
    50% { filter: drop-shadow(0 0 16px var(--primary-glow)); }
}

.sidebar-brand h3 {
    color: #fff;
    font-size: 17px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-brand span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    margin-left: auto;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.sidebar-close:hover { color: var(--danger); }

.nav-section { padding: 12px 0; }

.nav-section-title {
    padding: 0 20px 10px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    margin: 2px 8px;
    border-radius: 0 10px 10px 0;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 194, 209, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item:hover::before { opacity: 1; }

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 194, 209, 0.12) 0%, rgba(0, 194, 209, 0.03) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.nav-item.active::before { opacity: 1; }

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    transition: transform 0.3s;
}

.nav-item:hover i { transform: scale(1.15); }

.logout-item { cursor: pointer; color: var(--danger) !important; }
.logout-item:hover { background: rgba(234, 84, 85, 0.08) !important; }

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar {
    height: 64px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-toggle:hover { background: rgba(255, 255, 255, 0.05); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    font-size: 13px;
}

.breadcrumb-item {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

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

.user-role {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content { padding: 28px; max-width: 1600px; }

/* ========== CARDS ========== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 15px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i { color: var(--primary); }

.card-body { padding: 20px 24px; }

/* ========== STATS ========== */
.section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i { color: var(--primary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.stat-card.highlight {
    border: 1px solid rgba(0, 194, 209, 0.2);
    box-shadow: 0 0 20px rgba(0, 194, 209, 0.08);
}

.stat-card.positive-glow { border: 1px solid rgba(40, 199, 111, 0.2); box-shadow: 0 0 20px rgba(40, 199, 111, 0.08); }
.stat-card.negative-glow { border: 1px solid rgba(234, 84, 85, 0.2); box-shadow: 0 0 20px rgba(234, 84, 85, 0.08); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }

.stat-info { flex: 1; }

.stat-info h3 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 4px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 4px 0;
    font-weight: 500;
}

.stat-info .indicator {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.indicator.positive { background: rgba(40, 199, 111, 0.15); color: var(--success); }
.indicator.negative { background: rgba(234, 84, 85, 0.15); color: var(--danger); }

/* ========== CHARTS ========== */
.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 220px;
    gap: 12px;
    padding: 15px 0 5px;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    transition: transform 0.3s;
}

.chart-column:hover { transform: translateY(-5px); }

.chart-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 170px;
    position: relative;
}

.bar {
    width: 16px;
    border-radius: 4px 4px 0 0;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    position: relative;
    cursor: pointer;
}

.bar:hover { opacity: 0.8; }

.bar-masuk { background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 194, 209, 0.3) 100%); box-shadow: 0 -4px 12px var(--primary-glow); }
.bar-keluar { background: linear-gradient(180deg, var(--danger) 0%, rgba(234, 84, 85, 0.3) 100%); box-shadow: 0 -4px 12px var(--danger-glow); }

.chart-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.chart-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.chart-legend span { display: flex; align-items: center; gap: 6px; }

/* ========== TABLES ========== */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
    color: var(--text);
    vertical-align: middle;
    transition: background 0.2s;
}

.data-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

.data-table tbody tr {
    animation: fadeInRow 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.empty-state {
    text-align: center;
    color: var(--text-dim);
    padding: 40px !important;
    font-size: 13px;
}

.empty-state i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-dim);
}

/* ========== BADGES ========== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.3px;
}

.badge-success { background: rgba(40, 199, 111, 0.15); color: var(--success); border: 1px solid rgba(40, 199, 111, 0.2); }
.badge-danger { background: rgba(234, 84, 85, 0.15); color: var(--danger); border: 1px solid rgba(234, 84, 85, 0.2); }
.badge-warning { background: rgba(255, 159, 67, 0.15); color: var(--warning); border: 1px solid rgba(255, 159, 67, 0.2); }
.badge-info { background: rgba(115, 103, 240, 0.15); color: var(--info); border: 1px solid rgba(115, 103, 240, 0.2); }
.badge-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); text-transform: uppercase; font-size: 10px; }

.badge-live {
    background: rgba(0, 194, 209, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 194, 209, 0.2);
}

.live-pulse {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--success-glow);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--success-glow); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(40, 199, 111, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 199, 111, 0); }
}

/* ========== BUTTONS ========== */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 194, 209, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 194, 209, 0.4);
}

.btn-secondary {
    background: var(--dark);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border-solid); border-color: var(--text-muted); }

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }

.btn-glow {
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 194, 209, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 194, 209, 0.5); }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 194, 209, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-control::placeholder { color: var(--text-dim); }

select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b92a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

textarea.form-control { resize: vertical; min-height: 80px; }

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 24px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.page-title i { color: var(--primary); font-size: 22px; }

.datetime-display {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.datetime-display i { color: var(--primary); }

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease;
}

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

.alert-info {
    background: rgba(0, 194, 209, 0.06);
    border: 1px solid rgba(0, 194, 209, 0.15);
    color: var(--primary);
}

.alert-warning {
    background: rgba(255, 159, 67, 0.06);
    border: 1px solid rgba(255, 159, 67, 0.15);
    color: var(--warning);
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

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

.modal-header {
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    border-radius: 6px;
}

.modal-close:hover { color: var(--danger); background: rgba(234, 84, 85, 0.1); }

.modal-body { padding: 26px; }

.modal-footer {
    padding: 0 26px 26px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ========== LOADING ========== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.spinner-ring {
    display: inline-block;
    position: relative;
    width: 56px;
    height: 56px;
}

.spinner-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 44px;
    height: 44px;
    margin: 6px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    animation: spinnerRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--primary) transparent transparent transparent;
}

.spinner-ring div:nth-child(1) { animation-delay: -0.45s; }
.spinner-ring div:nth-child(2) { animation-delay: -0.3s; }
.spinner-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes spinnerRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 22px;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

@keyframes toastIn {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.login-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--info);
    bottom: -50px;
    right: -50px;
    animation-delay: -3s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--success);
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.login-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    animation: loginIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo { text-align: center; margin-bottom: 36px; }

.login-logo img {
    width: 80px;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.login-logo h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 6px;
    font-weight: 700;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
}

.login-footer i { color: var(--primary); }

/* ========== REPORTS ========== */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.report-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.report-section:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.report-section.highlight {
    background: rgba(0, 194, 209, 0.04);
    border: 1px solid rgba(0, 194, 209, 0.15);
}

.report-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.report-line.total {
    border-bottom: none;
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
}

/* ========== TEXT UTILS ========== */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

/* ========== MOBILE ========== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .sidebar-close { display: block; }
    .content { padding: 16px; }
    .page-title { font-size: 18px; }
    .stats-grid { grid-template-columns: 1fr; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 10px 10px; }
    .chart-container { height: 180px; }
    .user-details { display: none; }
    .breadcrumb { display: none; }
    .login-box { padding: 32px 24px; margin: 16px; }
    .report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stat-card { flex-direction: column; text-align: center; }
    .stat-icon { margin: 0 auto; }
    .chart-bars { gap: 2px; }
    .bar { width: 12px; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
