/* ============================================
   PADMA ROYALTI - Premium Stylesheet
   PT. PADMA KARYA SEJAHTERA
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    --primary: #1e3a5f;
    --primary-light: #2563eb;
    --primary-lighter: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    --accent: #06b6d4;
    --accent-light: #cffafe;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fef3c7;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --sidebar-bg: #0f172a;
    --sidebar-bg-end: #1e293b;
    --sidebar-width: 260px;
    --sidebar-collapsed: 0px;
    --navbar-height: 65px;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #f8fafc;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-end) 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-text { display: flex; flex-direction: column; }
.logo-title { color: var(--text-white); font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }
.logo-subtitle { color: var(--text-light); font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge lama */
}
.sidebar-nav::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Opera */
}

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

.nav-label {
    color: var(--text-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 14px 8px;
    opacity: 0.6;
}

.nav-item { margin: 2px 0; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 13.5px;
    font-weight: 450;
    position: relative;
}

.nav-link i { width: 20px; text-align: center; font-size: 15px; opacity: 0.8; }
.nav-link span { white-space: nowrap; }

.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-white);
    transform: translateX(3px);
}
.nav-link:hover i { opacity: 1; }

.nav-link.active {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-white);
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 11px;
}
.nav-link.active i { color: var(--accent); opacity: 1; }

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.logout-link:hover { color: var(--danger) !important; background: rgba(239,68,68,0.1) !important; }

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--navbar-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 998;
    transition: var(--transition);
}

.navbar-left { display: flex; align-items: center; gap: 16px; }

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-fast);
}
.sidebar-toggle:hover { background: var(--bg-main); color: var(--primary); }

.navbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.navbar-right { display: flex; align-items: center; gap: 8px; }

.navbar-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-fast);
}
.navbar-icon:hover { background: var(--bg-main); color: var(--primary-light); }

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

/* User Dropdown */
.user-dropdown { position: relative; }
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}
.user-dropdown-toggle:hover { background: var(--bg-main); }

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--text-secondary); }

.user-dropdown-toggle .fa-chevron-down { font-size: 10px; color: var(--text-light); transition: var(--transition-fast); }

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-fast);
    z-index: 100;
}
.user-dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition-fast);
}
.dropdown-item:hover { background: var(--bg-main); }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item.text-danger:hover { background: var(--danger-light); }

/* Flash Messages Container */
.flash-container {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    right: 24px;
    z-index: 1100;
    max-width: 420px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--navbar-height);
    min-height: 100vh;
    padding: calc(var(--navbar-height) + 24px) 28px 28px;
    transition: var(--transition);
}

.content-header {
    margin-bottom: 24px;
}
.content-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-card.primary::before { background: var(--primary-gradient); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before { background: var(--info); }
.stat-card.accent::before { background: var(--accent-gold); }

.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-card.primary .stat-icon { background: linear-gradient(135deg, rgba(30,58,95,0.1), rgba(37,99,235,0.15)); color: var(--primary-light); }
.stat-card.success .stat-icon { background: var(--success-light); color: var(--success); }
.stat-card.warning .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-card.danger .stat-icon { background: var(--danger-light); color: var(--danger); }
.stat-card.info .stat-icon { background: var(--info-light); color: var(--info); }
.stat-card.accent .stat-icon { background: var(--accent-gold-light); color: var(--accent-gold); }

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.2;
}
.stat-label {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

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

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title i { color: var(--primary-light); font-size: 16px; }

.card-body { padding: 22px; }

.two-col-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.table th {
    background: var(--bg-main);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}
.table tbody tr { transition: var(--transition-fast); }
.table tbody tr:hover { background: rgba(37, 99, 235, 0.03); }
.table tbody tr:last-child td { border-bottom: none; }

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

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.badge i { font-size: 9px; }

.badge-pending { background: var(--warning-light); color: #92400e; }
.badge-verified { background: var(--success-light); color: #065f46; }
.badge-rejected { background: var(--danger-light); color: #991b1b; }
.badge-active { background: var(--success-light); color: #065f46; }
.badge-inactive { background: var(--bg-main); color: var(--text-light); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35); color: white; }

.btn-success { background: var(--success); color: white; box-shadow: 0 4px 12px rgba(16,185,129,0.25); }
.btn-success:hover { background: #059669; color: white; }

.btn-danger { background: var(--danger); color: white; box-shadow: 0 4px 12px rgba(239,68,68,0.25); }
.btn-danger:hover { background: #dc2626; color: white; }

.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; color: white; }

.btn-secondary { background: var(--bg-main); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1.5px solid var(--primary-light);
}
.btn-outline:hover { background: var(--primary-light); color: white; }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn-block { width: 100%; }

.btn-group { display: flex; gap: 8px; align-items: center; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-control::placeholder { color: var(--text-light); }

.form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 36px;
}
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group .form-control { padding-left: 40px; }
.input-group-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 14px;
    z-index: 1;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.filter-bar .form-group { margin-bottom: 0; min-width: 160px; }
.filter-bar .form-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
.filter-bar .form-control,
.filter-bar .form-select { padding: 8px 12px; font-size: 13px; }

.search-input {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    animation: slideInRight 0.35s ease;
    position: relative;
}
.alert i:first-child { font-size: 18px; flex-shrink: 0; }

.alert-success { background: var(--success-light); color: #065f46; border-left: 4px solid var(--success); }
.alert-danger { background: var(--danger-light); color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: #92400e; border-left: 4px solid var(--warning); }
.alert-info { background: var(--info-light); color: #1e40af; border-left: 4px solid var(--info); }

.alert-dismiss {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: inherit;
    opacity: 0.5;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}
.alert-dismiss:hover { opacity: 1; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-fast);
    font-size: 16px;
}
.modal-close:hover { background: var(--bg-main); color: var(--text-primary); }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================
   IMAGE PREVIEW
   ============================================ */
.proof-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.proof-thumbnail:hover { border-color: var(--primary-light); transform: scale(1.05); }

.proof-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.proof-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.proof-card img {
    max-width: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}
.empty-state i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 16px;
}
.empty-state h3 { color: var(--text-secondary); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.empty-state p { color: var(--text-light); font-size: 13px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    padding: 12px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.pagination a:hover { background: var(--bg-main); color: var(--primary-light); }
.pagination .active-page {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
}
.pagination .disabled { opacity: 0.3; pointer-events: none; }

/* ============================================
   DETAIL PAGE (Verify)
   ============================================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-secondary); font-weight: 500; }
.info-value { font-weight: 600; color: var(--text-primary); text-align: right; }
.info-value.large { font-size: 22px; color: var(--primary); font-weight: 800; }

.action-card {
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 24px;
    border: 2px dashed var(--border);
}
.action-card h4 { font-size: 15px; margin-bottom: 16px; color: var(--text-primary); }

/* Reject textarea */
.reject-area { display: none; margin-top: 12px; }
.reject-area.active { display: block; }

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-card { margin-bottom: 20px; }
.settings-card .card-header { background: var(--bg-main); }
.settings-card .card-header i { color: var(--primary-light); }

.setting-preview {
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
}
.setting-preview strong { color: var(--text-primary); }

/* ============================================
   RANKING LIST
   ============================================ */
.rank-list { list-style: none; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.rank-item:last-child { border-bottom: none; }

.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-number { background: var(--accent-gold-light); color: #92400e; }
.rank-item:nth-child(2) .rank-number { background: var(--bg-main); color: var(--text-secondary); }
.rank-item:nth-child(3) .rank-number { background: #fef2f2; color: #b45309; }

.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-detail { font-size: 11px; color: var(--text-light); }

.rank-value { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0f172a, #1e3a5f, #1e40af, #0e7490);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.login-header h1 {
    color: white;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.login-header p { color: rgba(255,255,255,0.6); font-size: 13px; }

.login-form .form-group { margin-bottom: 20px; }
.login-form .form-label { color: rgba(255,255,255,0.8); font-size: 12.5px; }
.login-form .form-control {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    color: white;
    padding: 12px 14px 12px 42px;
}
.login-form .form-control::placeholder { color: rgba(255,255,255,0.35); }
.login-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.2);
    background: rgba(255,255,255,0.12);
}
.login-form .input-group-icon { color: rgba(255,255,255,0.4); }

.password-toggle {
    position: absolute;
    right: 14px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 14px;
    z-index: 1;
    padding: 4px;
}
.password-toggle:hover { color: rgba(255,255,255,0.7); }

.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(6,182,212,0.3);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6,182,212,0.4);
}
.login-btn:active { transform: translateY(0); }

.login-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.fade-in { animation: fadeIn 0.35s ease; }
.slide-up { animation: slideUp 0.4s ease; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-light) !important; }
.text-primary { color: var(--primary-light) !important; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 8px; }

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-end { display: flex; justify-content: flex-end; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 12px; }

.hidden { display: none !important; }

.wa-link { color: #25d366; font-weight: 500; }
.wa-link:hover { color: #128c7e; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sidebar, .sidebar-overlay, .navbar, .flash-container,
    .filter-bar, .btn, .btn-group, .sidebar-toggle,
    .no-print { display: none !important; }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    body { background: white; font-size: 12px; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .table th { background: #f3f4f6 !important; }
    .badge { border: 1px solid currentColor; }
    
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 2px solid #333;
    }
    .print-header h2 { font-size: 18px; margin-bottom: 4px; }
    .print-header p { font-size: 12px; color: #666; }
}

.print-header { display: none; }

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active { transform: translateX(0); }
    
    .navbar {
        left: 0;
    }
    .sidebar-toggle { display: flex; }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar-title { font-size: 15px; }
    .user-info { display: none; }
    
    .filter-bar { flex-direction: column; }
    .filter-bar .form-group { min-width: 100%; }
    .search-input { min-width: 100%; }
    
    .form-row { flex-direction: column; gap: 0; }
    
    .proof-card { flex-direction: column; }
    .proof-card img { max-width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 22px; }
    
    .main-content { padding: calc(var(--navbar-height) + 16px) 16px 16px; }
    .card-body { padding: 16px; }
    .card-header { padding: 14px 16px; }
    
    .table { font-size: 12px; }
    .table th, .table td { padding: 8px 10px; }
    
    .login-card { padding: 28px 24px; }
}
