/* ============================================
   SmartClass LMS — Blue & White Theme
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1E5AF0;
    --primary-dark: #1547C0;
    --primary-light: #EAF2FF;
    --primary-gradient: linear-gradient(135deg, #1E5AF0 0%, #0D6EFD 50%, #4A8BFC 100%);
    --sidebar-bg: #0F1A3E;
    --sidebar-hover: #1A2D5E;
    --sidebar-active: #1E5AF0;
    --white: #FFFFFF;
    --bg: #F0F4FA;
    --card-bg: #FFFFFF;
    --text-primary: #1A1D26;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LOGIN PAGE — CLEAN & MODERN DESIGN
   ============================================ */
.login-body {
    background: #F8FAFC;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
}

.login-left {
    flex: 1.1;
    background: linear-gradient(135deg, #0A1128 0%, #102A71 45%, #1E5AF0 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.brand-icon-box {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.version-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FFFFFF;
}

.feature-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px;
    transition: var(--transition);
}

.feature-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.login-left .floating-shapes span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: float 16s infinite ease-in-out;
    pointer-events: none;
}

.login-left .floating-shapes span:nth-child(1) { width: 100px; height: 100px; top: 12%; left: 8%; animation-delay: 0s; }
.login-left .floating-shapes span:nth-child(2) { width: 140px; height: 140px; top: 65%; left: 75%; animation-delay: 2s; }
.login-left .floating-shapes span:nth-child(3) { width: 80px; height: 80px; top: 40%; left: 70%; animation-delay: 4s; }
.login-left .floating-shapes span:nth-child(4) { width: 60px; height: 60px; top: 82%; left: 20%; animation-delay: 1s; }
.login-left .floating-shapes span:nth-child(5) { width: 120px; height: 120px; top: 20%; left: 65%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.08); }
}

.login-right {
    flex: 0.9;
    background: #F8FAFC;
}

.login-card {
    max-width: 450px;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.06);
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    font-size: 0.95rem;
    color: #1E293B;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    background: #FFFFFF;
    border-color: #1E5AF0;
    box-shadow: 0 0 0 4px rgba(30, 90, 240, 0.12);
}

.form-input:focus + .input-icon,
.input-container:focus-within .input-icon {
    color: #1E5AF0;
}

.toggle-password-btn {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.toggle-password-btn:hover {
    color: #1E293B;
}

.highlight-input {
    animation: flashInput 0.6s ease;
}

@keyframes flashInput {
    0%, 100% { background: #F8FAFC; }
    50% { background: #EAF2FF; border-color: #1E5AF0; }
}

.btn-primary-custom {
    background: linear-gradient(135deg, #1E5AF0 0%, #1547C0 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 90, 240, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1547C0 0%, #0F3795 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 90, 240, 0.4);
}

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

/* Demo buttons grid */
.demo-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.demo-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
}

.demo-pill-btn .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.demo-admin .dot { background: #1E5AF0; }
.demo-guru .dot { background: #10B981; }
.demo-siswa .dot { background: #0EA5E9; }

.demo-pill-btn:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #0F172A;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1040;
    transition: var(--transition);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand h4 {
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.3px;
}

.sidebar-brand small {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-menu .menu-label {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 16px;
    margin-top: 8px;
}

.sidebar-menu .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 11px 16px;
    border-radius: 10px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-menu .nav-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.sidebar-menu .nav-link:hover {
    background: var(--sidebar-hover);
    color: white;
    transform: translateX(4px);
}

.sidebar-menu .nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30,90,240,0.4);
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 270px;
    right: 0;
    height: 70px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1030;
    transition: var(--transition);
}

.topbar .page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar .btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: var(--bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    font-size: 18px;
}

.topbar .btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Item & Dropdown */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notification-item:hover {
    background: #F1F5F9;
}

.notification-item.unread {
    background: #EFF6FF;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-content h6 {
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-content p {
    font-size: 11.5px;
    color: #64748B;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.notif-time {
    font-size: 10.5px;
    color: #94A3B8;
    white-space: nowrap;
    margin-left: 6px;
    flex-shrink: 0;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius);
    border: none;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.user-dropdown:hover {
    background: var(--primary-light);
}

.user-dropdown img,
.user-dropdown .avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.avatar-placeholder {
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-dropdown .user-info {
    text-align: left;
}

.user-dropdown .user-info .name {
    font-size: 13px;
    font-weight: 600;
}

.user-dropdown .user-info .role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 270px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    transition: var(--transition);
}

/* ============================================
   CARDS
   ============================================ */
.card-custom {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

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

.card-custom .card-header h5 {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

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

/* Stat Cards */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.stat-card.blue::before { background: var(--primary); }
.stat-card.green::before { background: var(--success); }
.stat-card.yellow::before { background: var(--warning); }
.stat-card.red::before { background: var(--danger); }

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card.blue .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.green .stat-icon { background: #D1FAE5; color: var(--success); }
.stat-card.yellow .stat-icon { background: #FEF3C7; color: var(--warning); }
.stat-card.red .stat-icon { background: #FEE2E2; color: var(--danger); }

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Class Cards */
.class-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.class-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.class-card .card-cover {
    height: 140px;
    background: var(--primary-gradient);
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.class-card .card-cover h5 {
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.class-card .card-cover .subject {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.class-card .card-cover .class-code {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.class-card .card-info {
    padding: 16px 20px;
}

.class-card .card-info .teacher {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-card .card-info .members {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   TABLE
   ============================================ */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom thead th {
    background: var(--bg);
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.table-custom tbody td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-custom tbody tr {
    transition: var(--transition);
}

.table-custom tbody tr:hover {
    background: var(--primary-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-sm-custom {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
}

.btn-primary-sm:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 12px rgba(30,90,240,0.3);
}

.btn-success-sm {
    background: var(--success);
    color: white;
}

.btn-warning-sm {
    background: var(--warning);
    color: white;
}

.btn-danger-sm {
    background: var(--danger);
    color: white;
}

.btn-danger-sm:hover {
    background: #DC2626;
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 18px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}

/* ============================================
   BADGES
   ============================================ */
.badge-custom {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-active { background: #D1FAE5; color: #065F46; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }
.badge-submitted { background: var(--primary-light); color: var(--primary); }
.badge-graded { background: #D1FAE5; color: #065F46; }
.badge-late { background: #FEF3C7; color: #92400E; }
.badge-hadir { background: #D1FAE5; color: #065F46; }
.badge-izin { background: var(--primary-light); color: var(--primary); }
.badge-sakit { background: #FEF3C7; color: #92400E; }
.badge-alpha { background: #FEE2E2; color: #991B1B; }

/* ============================================
   NOTIFICATION PANEL
   ============================================ */
.notification-dropdown {
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
    border: 1px solid var(--border) !important;
    padding: 0 !important;
}

.notification-dropdown .dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
}

.notification-dropdown .dropdown-header h6 {
    font-weight: 700;
    margin: 0;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: var(--primary-light);
}

.notification-item.unread {
    background: #F8FAFF;
}

.notification-item .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-item .notif-content h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-item .notif-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.notification-item .notif-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .topbar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 30px;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 20px 16px;
    }

    .topbar {
        padding: 0 16px;
    }

    .stat-card .stat-value {
        font-size: 24px;
    }

    .notification-dropdown {
        width: calc(100vw - 20px);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.4s ease-out;
}

/* Stagger animation for cards */
.stagger-item { opacity: 0; animation: fadeInUp 0.5s ease-out forwards; }
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Toast positioning */
.swal2-container {
    z-index: 99999 !important;
}

/* ============================================
   REALTIME CLOCK JAKARTA / INDONESIA (WIB)
   ============================================ */
.realtime-clock-badge {
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.realtime-clock-badge:hover {
    border-color: #BFDBFE;
    background: #F8FAFC;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

