@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Reset & Variables */
:root {
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    /* Colors - Slate & Indigo / Teal Accent */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --card-bg: rgba(17, 24, 39, 0.75);
    --header-bg: rgba(11, 15, 25, 0.85);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    --accent: #14b8a6;
    --accent-hover: #0d9488;
    --accent-glow: rgba(20, 184, 166, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(99, 102, 241, 0.4);
    
    /* Status Colors */
    --status-pending: #f59e0b;
    --status-pending-bg: rgba(245, 158, 11, 0.1);
    --status-success: #10b981;
    --status-success-bg: rgba(16, 185, 129, 0.1);
    --status-danger: #ef4444;
    --status-danger-bg: rgba(239, 68, 68, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(14px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html, body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(20, 184, 166, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

img, svg {
    max-width: 100%;
    display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
header.main-header {
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    z-index: 102;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    display: inline-flex;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    color: #fff;
    flex-shrink: 0;
}

/* Hamburger Toggle Button */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 102;
}

.nav-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    border-color: var(--border-color-focus);
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle.open .icon-menu {
    display: none;
}

.nav-toggle.open .icon-close {
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    align-items: center;
}

.nav-item {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.btn-nav {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    color: var(--primary) !important;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: var(--shadow-sm);
}

/* Mobile Navigation Styles */
@media (max-width: 820px) {
    .navbar {
        padding: 0.85rem 1.25rem;
    }
    
    .nav-toggle {
        display: inline-flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0 1.25rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, visibility 0.35s ease;
        box-shadow: var(--shadow-lg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
    }
    
    .nav-links.open {
        max-height: 480px;
        opacity: 1;
        visibility: visible;
        padding: 1rem 1.25rem 1.5rem 1.25rem;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-item {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }
    
    .nav-item:hover, .nav-item.active {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
    }
    
    .btn-nav {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem 1.25rem;
    }
    
    .nav-theme-li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.25rem;
        padding-top: 0.75rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.main-footer {
    margin-top: auto;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

footer.main-footer p {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Layout Containers & Grids
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }
}

/* Reusable Responsive Grid Utilities */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.responsive-grid-detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 880px) {
    .responsive-grid-2,
    .responsive-grid-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 3.5rem 1.25rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 1.5rem;
    word-break: break-word;
}

h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.6rem, 3.8vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    word-break: break-word;
}

h3 {
    font-size: clamp(1.25rem, 2.8vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

p.lead {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(20, 184, 166, 0.45);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--status-danger);
    color: #fff;
}

.btn-success {
    background: var(--status-success-bg);
    color: var(--status-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: var(--status-success);
    color: #fff;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.25rem 1rem;
    }
}

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

.card-icon {
    display: inline-flex;
    padding: 0.85rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.card-accent .card-icon {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-card {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

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

/* File Upload input */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.25rem;
    text-align: center;
    background: var(--bg-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-info {
    color: var(--text-secondary);
}

.file-upload-info svg {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.file-upload-info p {
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-upload-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Details and Lists
   ========================================================================== */
.details-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .details-list {
        padding: 1rem;
    }
}

.details-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .details-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.65rem 0;
    }
}

.details-row:last-child {
    border-bottom: none;
}

.details-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.details-value {
    color: #fff;
    font-weight: 600;
    word-break: break-word;
    text-align: right;
}

@media (max-width: 520px) {
    .details-value {
        text-align: left;
    }
}

.bank-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(20, 184, 166, 0.15) 100%);
    border: 1px solid var(--border-color-focus);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .bank-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
}

.bank-details h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.bank-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bank-account {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    word-break: break-all;
}

/* ==========================================================================
   Alerts & Badges
   ========================================================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    word-break: break-word;
}

@media (max-width: 480px) {
    .alert {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
}

.alert-success {
    background: var(--status-success-bg);
    color: var(--status-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pending {
    background: var(--status-pending-bg);
    color: var(--status-pending);
}

.badge-success {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.badge-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

/* ==========================================================================
   Admin Login Layout
   ========================================================================== */
.admin-login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 3rem 2.5rem;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Admin Dashboard & Sidebar Layout
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Backdrop Overlay for Mobile Sidebar */
.admin-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.admin-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-sidebar-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-item a:hover {
    color: var(--sidebar-hover-text, #fff);
    background: var(--sidebar-hover-bg, rgba(255, 255, 255, 0.05));
}

.sidebar-item.active a {
    color: #fff !important;
    background: var(--primary) !important;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem 3rem;
    width: calc(100% - 280px);
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease, padding 0.3s ease;
}

/* Responsive Sidebar Behavior */
@media (max-width: 1024px) {
    .btn-sidebar-close {
        display: inline-flex;
    }
    
    .admin-sidebar {
        z-index: 1050;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .admin-content {
        padding: 1.25rem 1rem;
    }
}

/* Admin Topbar */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-sidebar-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    border-color: var(--border-color-focus);
}

@media (max-width: 1024px) {
    .btn-sidebar-toggle {
        display: inline-flex;
    }
}

.admin-title h2 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
}

.admin-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Admin Cards Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.75rem;
    }
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1.25rem 1.5rem;
    }
}

.stat-info h4 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.stat-card.primary .stat-icon {
    background: var(--primary-glow);
    color: var(--primary);
}

.stat-card.warning .stat-icon {
    background: var(--status-pending-bg);
    color: var(--status-pending);
}

.stat-card.success .stat-icon {
    background: var(--status-success-bg);
    color: var(--status-success);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.table-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .table-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .table-header-actions .btn {
        width: 100%;
    }
}

.table-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 350px;
}

@media (max-width: 640px) {
    .table-search-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

.table-search-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.table-search-wrapper .form-control {
    padding-left: 2.75rem;
}

table.admin-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    text-align: left;
}

table.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 1.15rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

table.admin-table td {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
}

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

table.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    min-width: 36px;
    min-height: 36px;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: #fff;
}

.btn-icon.edit:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: var(--primary-glow);
    color: var(--primary);
}

.btn-icon.delete:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.btn-icon.view:hover {
    border-color: rgba(20, 184, 166, 0.4);
    background: var(--accent-glow);
    color: var(--accent);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem 1.25rem;
    }
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
    transition: var(--transition);
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    margin-bottom: 2rem;
}

.proof-img-container {
    width: 100%;
    max-height: 400px;
    overflow: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.proof-img-container img {
    max-width: 100%;
    height: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Cek Status Styles
   ========================================================================== */
.status-result-card {
    text-align: center;
    padding: 3rem 2rem;
}

@media (max-width: 480px) {
    .status-result-card {
        padding: 2rem 1.25rem;
    }
}

.status-indicator {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.status-indicator.pending {
    background: var(--status-pending-bg);
    color: var(--status-pending);
}

.status-indicator.success {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.status-indicator.danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.status-title {
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-desc {
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Global Transitions for theme switching */
body, header, aside, .card, .form-control, table, th, td, .stat-card, .btn-secondary, .alert, .details-list, .bank-info {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Text Contrast Utility */
.text-contrast {
    color: #ffffff;
}
body.light-theme .text-contrast {
    color: #0f172a !important;
}

/* ==========================================================================
   Light Theme Override Variables & Components (Elevated UI System)
   ========================================================================== */
body.light-theme {
    /* Backgrounds - Cool Clean Slate */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.92);
    
    /* Primary Colors - Vibrant Indigo & Emerald Teal */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.15);
    
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-glow: rgba(13, 148, 136, 0.15);
    
    /* Typography - Deep Slate for Maximum Contrast & Readability */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Borders & Outlines */
    --border-color: #e2e8f0;
    --border-color-focus: #6366f1;
    
    /* Status Colors */
    --status-pending: #b45309;
    --status-pending-bg: #fef3c7;
    --status-success: #047857;
    --status-success-bg: #d1fae5;
    --status-danger: #b91c1c;
    --status-danger-bg: #fee2e2;
    
    /* Shadows - Clean, Crisp, Modern Depth */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    
    --sidebar-hover-text: #4f46e5;
    --sidebar-hover-bg: #eef2ff;

    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(20, 184, 166, 0.05) 0px, transparent 50%);
}

/* Light Theme Typography Overrides */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme strong,
body.light-theme b,
body.light-theme .logo,
body.light-theme .logo-text,
body.light-theme .stat-number,
body.light-theme .details-value,
body.light-theme .bank-details h4,
body.light-theme .status-title {
    color: #0f172a;
}

body.light-theme p,
body.light-theme li {
    color: #334155;
}

body.light-theme p.lead,
body.light-theme .stat-info h4,
body.light-theme .details-label,
body.light-theme .admin-title p,
body.light-theme .status-desc {
    color: #475569;
}

/* Light Theme Header & Navigation */
body.light-theme header.main-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
}

body.light-theme .logo {
    color: #0f172a;
}

body.light-theme .nav-item {
    color: #475569;
}

body.light-theme .nav-item:hover,
body.light-theme .nav-item.active {
    color: #4f46e5;
}

body.light-theme .btn-nav {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5 !important;
}

body.light-theme .btn-nav:hover {
    background: #4f46e5;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

body.light-theme .nav-toggle {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

body.light-theme .nav-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #4f46e5;
}

body.light-theme .nav-links {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}

@media (max-width: 820px) {
    body.light-theme .nav-item:hover,
    body.light-theme .nav-item.active {
        background: #eef2ff;
        color: #4f46e5;
    }
}

/* Section Backgrounds in Light Theme */
body.light-theme #kursus-section {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Light Theme Card & Container Styling */
body.light-theme .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}

body.light-theme .card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

body.light-theme .card-accent {
    border-color: #99f6e4;
    box-shadow: 0 2px 8px -1px rgba(13, 148, 136, 0.08);
}

body.light-theme .card-accent:hover {
    border-color: #5eead4;
    box-shadow: 0 12px 24px -4px rgba(13, 148, 136, 0.14);
}

body.light-theme .card-icon {
    background: #eef2ff;
    color: #4f46e5;
}

body.light-theme .card-accent .card-icon {
    background: #f0fdfa;
    color: #0d9488;
}

/* Light Theme Form Controls */
body.light-theme .form-control {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

body.light-theme .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: #ffffff;
}

body.light-theme .form-control::placeholder {
    color: #94a3b8;
}

body.light-theme .form-label {
    color: #1e293b;
    font-weight: 600;
}

/* File Upload in Light Theme */
body.light-theme .file-upload-wrapper {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
}

body.light-theme .file-upload-wrapper:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}

body.light-theme .file-upload-info p {
    color: #1e293b;
}

body.light-theme .file-upload-info span {
    color: #64748b;
}

/* Light Theme Details & Lists */
body.light-theme .details-list {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.light-theme .details-row {
    border-bottom: 1px solid #f1f5f9;
}

body.light-theme .details-row:last-child {
    border-bottom: none;
}

body.light-theme .instruction-box {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* Light Theme Bank Info */
body.light-theme .bank-info {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%);
    border: 1px solid #c7d2fe;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.06);
}

body.light-theme .bank-details h4 {
    color: #1e1b4b;
}

body.light-theme .bank-details p {
    color: #4338ca;
}

body.light-theme .bank-account {
    color: #0d9488;
}

/* Light Theme Buttons */
body.light-theme .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

body.light-theme .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

body.light-theme .btn-accent {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

body.light-theme .btn-accent:hover {
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

body.light-theme .btn-secondary {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
}

body.light-theme .btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

body.light-theme .btn-icon {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

body.light-theme .btn-icon:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

body.light-theme .btn-icon.edit:hover {
    border-color: #818cf8;
    background: #eef2ff;
    color: #4f46e5;
}

body.light-theme .btn-icon.delete:hover {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #b91c1c;
}

body.light-theme .btn-icon.view:hover {
    border-color: #5eead4;
    background: #f0fdfa;
    color: #0d9488;
}

/* Light Theme Tables */
body.light-theme .table-responsive {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
}

body.light-theme table.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

body.light-theme table.admin-table td {
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

body.light-theme table.admin-table tr:hover td {
    background: #f8fafc;
}

/* Light Theme Badges */
body.light-theme .badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-weight: 600;
}

body.light-theme .badge-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-weight: 600;
}

body.light-theme .badge-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-weight: 600;
}

/* Light Theme Alerts */
body.light-theme .alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

body.light-theme .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body.light-theme .status-result-card .alert-danger {
    background: #fff1f2;
    border: 1px solid #fda4af;
    color: #9f1239;
}

body.light-theme .status-result-card .alert-danger strong {
    color: #881337 !important;
}

/* Light Theme Admin Dashboard Stat Cards */
body.light-theme .stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

body.light-theme .stat-card:hover {
    box-shadow: 0 8px 16px -2px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

body.light-theme .stat-card.primary {
    border-left: 4px solid #4f46e5;
}

body.light-theme .stat-card.primary .stat-icon {
    background: #eef2ff;
    color: #4f46e5;
}

body.light-theme .stat-card.warning {
    border-left: 4px solid #f59e0b;
}

body.light-theme .stat-card.warning .stat-icon {
    background: #fef3c7;
    color: #d97706;
}

body.light-theme .stat-card.success {
    border-left: 4px solid #10b981;
}

body.light-theme .stat-card.success .stat-icon {
    background: #d1fae5;
    color: #059669;
}

/* Light Theme Admin Sidebar, Topbar & Header */
body.light-theme .admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}

body.light-theme .sidebar-brand {
    border-bottom: 1px solid #e2e8f0;
}

body.light-theme .sidebar-footer {
    border-top: 1px solid #e2e8f0;
}

body.light-theme .sidebar-item a {
    color: #475569;
}

body.light-theme .sidebar-item a:hover {
    color: #4f46e5;
    background: #eef2ff;
}

body.light-theme .sidebar-item.active a {
    color: #ffffff !important;
    background: #4f46e5 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

body.light-theme .admin-user-profile {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

body.light-theme .btn-sidebar-toggle {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}

body.light-theme .btn-sidebar-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #4f46e5;
}

/* Light Theme Login Card */
body.light-theme .login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

body.light-theme .login-header h2 {
    color: #0f172a;
}

body.light-theme .login-header p {
    color: #64748b;
}

/* Light Theme Modal & Media */
body.light-theme .modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

body.light-theme .modal-header {
    border-bottom: 1px solid #e2e8f0;
}

body.light-theme .modal-footer {
    border-top: 1px solid #e2e8f0;
}

body.light-theme .proof-img-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Light Theme Footer */
body.light-theme footer.main-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

/* Show/Hide Theme icons */
body.light-theme .theme-icon-moon {
    display: none !important;
}
body.light-theme .theme-icon-sun {
    display: block !important;
    color: #d97706 !important;
}

body:not(.light-theme) .theme-icon-moon {
    display: block !important;
    color: var(--text-secondary);
}
body:not(.light-theme) .theme-icon-sun {
    display: none !important;
}

