/**
 * admin.css — Gemilang VD Admin Panel Styles
 * Berisi semua gaya untuk login view dan panel view.
 */

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
    background: #0a0f1c;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #e2e8f0;
    margin: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(42, 59, 92, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 59, 92, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* ── Login View ─────────────────────────────────────────────── */
#admin-login-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#admin-panel-view {
    display: none;
}

.login-orb-1 {
    position: fixed;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.login-orb-2 {
    position: fixed;
    bottom: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.glass {
    background: rgba(21, 30, 50, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideUp 0.5s ease-out forwards;
}

/* ── Panel Layout ───────────────────────────────────────────── */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: rgba(15, 22, 40, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
    margin: 2px 12px;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
}

.nav-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.nav-item.active .icon {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 64px;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 30;
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
}

.content {
    margin-left: 260px;
    padding: 88px 28px 28px;
    min-height: 100vh;
}

.glass-card {
    background: rgba(21, 30, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.stat-card {
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* ── Table ──────────────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475569;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

td {
    padding: 13px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

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

tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

/* ── Form Inputs ────────────────────────────────────────────── */
input,
select,
textarea {
    background: rgba(10, 15, 28, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

textarea {
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
}

/* ── View Sections ──────────────────────────────────────────── */
.view-section {
    animation: fadeIn .35s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}