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

:root {
    --primary-color: #0f766e;
    --primary-light: #0d9488;
    --primary-glow: rgba(13, 148, 136, 0.12);
    --secondary-color: #14b8a6;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --body-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.5);
    --sidebar-bg: #090d16;
    --sidebar-text: #94a3b8;
    --sidebar-active-bg: rgba(13, 148, 136, 0.15);
    --sidebar-active-text: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.06);
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
    --glow-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

body {
    background: radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.04) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.04) 0px, transparent 50%),
                #f8fafc;
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    min-height: 100vh;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left;
    position: relative;
}

.sidebar-header h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h4 i {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.4));
}

.sidebar-header p {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.sidebar .nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.sidebar .nav-item {
    width: 100%;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 12px 20px;
    margin: 3px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
}

.sidebar .nav-link .bi {
    font-size: 1.2rem;
    margin-right: 12px;
    transition: transform 0.25s ease;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}

.sidebar .nav-link:hover .bi {
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    color: var(--sidebar-active-text);
    background-color: var(--sidebar-active-bg) !important;
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background-color: var(--secondary-color);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--secondary-color);
}

.sidebar .nav-link.active .bi {
    color: var(--secondary-color);
}

/* Main Content Layout */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header Topbar */
.topbar {
    background-color: rgba(248, 250, 252, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 32px;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Glassmorphism Cards */
.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    margin-bottom: 24px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.08);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
}

.card-body {
    padding: 24px;
}

/* Modern Form Inputs (2026 Minimalist Line-Glow style) */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.6);
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: var(--glow-shadow);
    outline: none;
}

/* Buttons Styling */
.btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 148, 136, 0.35);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.2);
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.2);
}

.btn-danger:hover, .btn-danger:focus {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

.btn-outline-success {
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    background: transparent;
}

.btn-outline-success:hover {
    background-color: var(--primary-light);
    color: #ffffff;
    box-shadow: var(--glow-shadow);
}

/* Custom 2026 Tables */
.table-responsive {
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    background: rgba(255, 255, 255, 0.5);
}

.table {
    margin-bottom: 0;
    background: transparent;
}

.table th {
    background-color: rgba(15, 23, 42, 0.02);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px 24px;
    vertical-align: middle;
    font-size: 0.92rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(20, 184, 166, 0.02) !important;
}

/* Badges Styling */
.badge {
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.72rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge.bg-success, .badge-diverifikasi {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.bg-warning, .badge-menunggu {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.bg-danger, .badge-ditolak {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Premium Mesh Gradient Login */
.login-bg {
    background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.2) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                #070a13;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px 0 rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #ffffff;
}

.login-card .form-control {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.login-card .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}

.login-card .form-label {
    color: #cbd5e1;
}

.login-card a {
    color: var(--secondary-color);
}

.login-card a:hover {
    color: #34d399;
}

.school-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    color: #94a3b8;
}

/* Mobile Sidebar Drawer overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 10, 19, 0.5);
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

/* Metric Cards on Dashboard */
.metric-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.metric-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: var(--primary-glow);
    color: var(--primary-color);
}

.metric-icon-box.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.metric-icon-box.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.metric-icon-box.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.metric-icon-box.info {
    background-color: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .sidebar {
        left: -280px;
        box-shadow: none;
    }

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

    .sidebar.active {
        left: 0;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.25);
    }

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

    #sidebarClose {
        display: block;
        position: absolute;
        top: 28px;
        right: 24px;
        font-size: 1.5rem;
        color: var(--sidebar-text);
        cursor: pointer;
        transition: color 0.2s ease;
    }

    #sidebarClose:hover {
        color: #ffffff;
    }

    .topbar {
        padding: 16px 20px;
    }
}
