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

:root {
    /* Biru klasik + biru langit */
    --classic: #1B3A6B;
    --classic-dark: #0F2847;
    --classic-deep: #091E3D;
    --classic-mid: #254A7C;
    --sky: #87CEEB;
    --sky-light: #B8E4F9;
    --sky-bright: #5BB8E8;
    --sky-pale: #E8F6FC;

    --ink: var(--classic-dark);
    --ink-soft: var(--classic-mid);
    --teal: var(--classic);
    --teal-bright: var(--sky-bright);
    --teal-soft: var(--sky-pale);
    --teal-mid: var(--sky);
    --sand: #87CEEB;
    --sand-soft: var(--sky-pale);

    --primary: var(--classic);
    --primary-light: var(--classic-mid);
    --primary-dark: var(--classic-dark);
    --accent: var(--sky-bright);
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --secondary: #5B6B82;

    --bg: #F0F7FC;
    --bg-elevated: #F7FBFE;
    --bg-card: #FFFFFF;
    --text: #0F2847;
    --text-muted: #4A5D73;
    --border: rgba(27, 58, 107, 0.10);
    --border-strong: rgba(27, 58, 107, 0.16);

    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 40, 71, 0.04), 0 8px 24px rgba(15, 40, 71, 0.06);
    --shadow-lg: 0 10px 36px rgba(15, 40, 71, 0.10);
    --transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --champagne: var(--sky);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(91, 184, 232, 0.16), transparent 55%),
        radial-gradient(900px 500px at -10% 110%, rgba(27, 58, 107, 0.07), transparent 50%),
        linear-gradient(180deg, #EAF4FB 0%, var(--bg) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
    font-size: 15px;
}

a { color: var(--classic-mid); text-decoration: none; }
a:hover { color: var(--classic-dark); }

/* ─── App shell ─── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    padding: 14px;
    gap: 14px;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    color: var(--text);
    position: fixed;
    top: 14px;
    left: 14px;
    bottom: 14px;
    height: auto;
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition), opacity var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.35rem 1.2rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-logo .logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--classic-deep) 0%, var(--classic) 55%, var(--sky-bright) 140%);
    color: var(--sky-light);
    box-shadow: 0 10px 24px rgba(27, 58, 107, 0.28);
}

.sidebar-logo .logo-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-logo h1 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--classic-dark);
}

.sidebar-logo small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.sidebar-nav {
    padding: 0.9rem 0.75rem;
    flex: 1;
}

.nav-section {
    padding: 0.95rem 0.75rem 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94A3B8;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.68rem 0.8rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: 2px;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.nav-item .nav-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #94A3B8;
    transition: color var(--transition);
}

.nav-item .nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    background: var(--bg-elevated);
    color: var(--ink);
}

.nav-item:hover .nav-icon { color: var(--teal); }

.nav-item.active {
    background: linear-gradient(135deg, var(--classic-dark) 0%, var(--classic) 55%, var(--classic-mid) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(27, 58, 107, 0.22);
}

.nav-item.active .nav-icon { color: var(--sky-light); }

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

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    background: var(--bg-elevated);
}

.sidebar-user strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}

.sidebar-user span {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-content {
    margin-left: calc(var(--sidebar-width) + 14px);
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - 28px);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.page-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--classic-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-menu {
    display: none;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--classic), var(--sky-bright));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.content-area {
    padding: 1.5rem 1.6rem 2rem;
    flex: 1;
    animation: riseIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Dashboard hero ─── */
.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.75rem 1.85rem;
    margin-bottom: 1.35rem;
    color: #fff;
    background:
        radial-gradient(600px 280px at 92% 0%, rgba(135, 206, 235, 0.35), transparent 55%),
        linear-gradient(135deg, var(--classic-deep) 0%, var(--classic-dark) 40%, var(--classic) 78%, #3A7CA5 100%);
    box-shadow: 0 16px 40px rgba(15, 40, 71, 0.2);
}

.dash-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(120deg, black, transparent 70%);
    pointer-events: none;
}

.dash-hero-inner { position: relative; z-index: 1; max-width: 42rem; }

.dash-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(135, 206, 235, 0.16);
    border: 1px solid rgba(184, 228, 249, 0.4);
    color: var(--sky-light);
    margin-bottom: 0.9rem;
}

.dash-hero h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.dash-hero p {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 36rem;
    font-weight: 500;
}

/* ─── Cards / stats ─── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--shadow-lg); }

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: linear-gradient(180deg, #FAFBFC, #fff);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--classic-dark);
}

.card-body { padding: 1.2rem 1.25rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.2rem 1.15rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 58, 107, 0.22);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 20px; height: 20px; }

.stat-icon.blue { background: var(--teal-soft); color: var(--teal); }
.stat-icon.green { background: #ECFDF5; color: #059669; }
.stat-icon.orange { background: #FFF7ED; color: #D97706; }
.stat-icon.red { background: #FEF2F2; color: #DC2626; }
.stat-icon.purple { background: var(--sky-pale); color: var(--classic); }

.stat-info h4 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--classic-dark);
}

.stat-info p {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ─── Tables ─── */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

table th {
    background: var(--sky-pale);
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--classic);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(91, 184, 232, 0.28);
    white-space: nowrap;
}

table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

table tr:last-child td { border-bottom: none; }
table tr:hover { background: rgba(232, 246, 252, 0.65); }

/* ─── Badges / buttons ─── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary { background: var(--teal-soft); color: var(--classic); }
.badge-success { background: #D1FAE5; color: #047857; }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-danger { background: #FEE2E2; color: #B91C1C; }
.badge-secondary { background: #F1F5F9; color: #475569; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.35;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--classic-dark) 0%, var(--classic) 60%, var(--classic-mid) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(27, 58, 107, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 12px 28px rgba(91, 184, 232, 0.35);
}

.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-danger { background: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }

.btn-outline {
    background: #fff;
    border: 1px solid var(--border-strong);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--teal-soft);
    border-color: rgba(27, 58, 107, 0.25);
    color: var(--teal);
}

.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn-icon { padding: 0.4rem; width: 32px; height: 32px; justify-content: center; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--classic-dark);
}

.form-control {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    line-height: 1.45;
}

.form-control:focus {
    outline: none;
    border-color: var(--sky-bright);
    box-shadow: 0 0 0 4px rgba(91, 184, 232, 0.18);
}

select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.form-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(27, 58, 107, 0.18);
}

.form-section-title:first-child { margin-top: 0; }

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ─── Alerts ─── */
.alert {
    padding: 0.85rem 1.05rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.alert-danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.alert-info { background: var(--teal-soft); color: var(--classic); border: 1px solid var(--sky-light); }

/* ─── Login (full-bleed premium) ─── */
.login-body { overflow-x: hidden; }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    padding: 2rem 1.25rem;
    background: var(--classic-deep);
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 15% 20%, rgba(91, 184, 232, 0.35), transparent 55%),
        radial-gradient(700px 480px at 85% 75%, rgba(91, 184, 232, 0.22), transparent 50%),
        radial-gradient(500px 400px at 60% 10%, rgba(27, 58, 107, 0.2), transparent 45%),
        linear-gradient(160deg, var(--classic-deep) 0%, var(--classic-dark) 40%, var(--classic) 100%);
    animation: loginAura 10s ease-in-out infinite alternate;
}

@keyframes loginAura {
    from { filter: saturate(1); transform: scale(1); }
    to { filter: saturate(1.15); transform: scale(1.03); }
}

.login-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
    pointer-events: none;
}

.login-brand {
    display: none;
}

.login-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-panel-top { order: -1; }

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition), gap var(--transition);
}

.login-back-link:hover {
    color: var(--sky-light);
    gap: 0.6rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 2.35rem 2.1rem 2rem;
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.7) inset,
        0 30px 80px rgba(0, 0, 0, 0.35);
}

.login-logo { text-align: center; margin-bottom: 1.35rem; }

.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--classic-deep) 0%, var(--classic) 55%, var(--sky-bright) 130%);
    color: var(--sky-light);
    box-shadow: 0 14px 36px rgba(27, 58, 107, 0.32);
}

.login-logo .logo-icon svg { width: 28px; height: 28px; }

.login-logo-img {
    max-height: 64px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 0.9rem;
    border-radius: 12px;
}

.login-logo h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--classic-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.45;
}

.login-card-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.login-card-divider::before,
.login-card-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.login-card-divider span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.login-alert-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.login-form .login-field { margin-bottom: 1rem; }

.login-form .login-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

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

.login-input-icon {
    position: absolute;
    left: 0.95rem;
    color: #94A3B8;
    pointer-events: none;
    z-index: 1;
}

.login-input-wrap .login-input {
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    font-size: 0.92rem;
    background: #F8FAFC;
    transition: all var(--transition);
    font-family: inherit;
}

.login-input-wrap .login-input:focus {
    background: #fff;
    border-color: var(--teal-bright);
    box-shadow: 0 0 0 4px rgba(91, 184, 232, 0.12);
    outline: none;
}

.login-input-wrap:focus-within .login-input-icon { color: var(--teal); }

.login-toggle-pw {
    position: absolute;
    right: 0.7rem;
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: #94A3B8;
    display: flex;
}

.login-toggle-pw:hover { color: var(--ink); }

.btn-login {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    margin-top: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--classic-dark) 0%, var(--classic) 50%, var(--sky-bright) 140%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(27, 58, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: inherit;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(91, 184, 232, 0.4);
}

.btn-login svg { transition: transform 0.25s ease; }
.btn-login:hover svg { transform: translateX(4px); }

.login-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.login-hint code {
    background: var(--teal-soft);
    color: var(--teal);
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.login-footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
}

.login-brand-bg,
.login-brand-grid,
.login-brand-content,
.login-brand-badge,
.login-brand-features,
.login-brand-wave,
.login-feature-icon { display: none; }

/* ─── Misc UI ─── */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-box input {
    width: 100%;
    padding: 0.6rem 0.8rem 0.6rem 2.2rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: #fff;
    font-family: inherit;
}

.search-box::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #94A3B8;
    border-radius: 50%;
    box-shadow: 5px 5px 0 -6px #94A3B8;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    background: #fff;
}

.pagination a:hover { background: var(--teal-soft); }
.pagination .active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.detail-item { padding: 0.5rem 0; }

.detail-item label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.detail-item span { font-size: 0.9rem; font-weight: 500; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.45;
}

.menu-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--border-strong);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--ink);
}

.action-buttons { display: flex; gap: 0.25rem; }

.confirm-dialog {
    position: fixed;
    inset: 0;
    background: rgba(15, 40, 71, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.confirm-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.confirm-box h4 { margin-bottom: 0.5rem; }
.confirm-box p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.confirm-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

.content-area.website-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 28px - var(--header-height));
}

.website-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.website-toolbar p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.website-toolbar-actions { display: flex; gap: 0.5rem; }

.website-frame-wrapper {
    flex: 1;
    background: #E2E8F0;
    min-height: 0;
}

.website-frame {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 28px - var(--header-height) - 52px);
    border: none;
    display: block;
    background: #fff;
}

.dashboard-website-preview {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
    background: #fff;
}

.company-logo-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.company-logo-preview img {
    max-height: 64px;
    max-width: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.company-table-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 2px;
}

.company-table-logo-placeholder {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 1.25rem;
}

.verify-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 42rem;
}

.verify-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.verify-input-row .form-control { flex: 1; }
.verify-input-row .btn { flex-shrink: 0; white-space: nowrap; }

.verify-steps {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--text);
    line-height: 1.7;
}

.verify-notice {
    background: var(--teal-soft);
    border: 1px solid var(--sky-light);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.875rem;
}

.verify-notice p { margin: 0.5rem 0 0; color: var(--text-muted); }

.verify-summary {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.verify-summary h4 { margin: 0 0 0.75rem; font-size: 0.95rem; }

.ocr-widget { margin: 0.75rem 0 1.25rem; }

.ocr-drop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 1rem;
    border: 1.5px dashed rgba(15, 40, 71, 0.14);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #F8FAFC 0%, #fff 100%);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ocr-drop.is-dragover {
    border-color: var(--accent);
    background: var(--teal-soft);
    box-shadow: 0 0 0 4px rgba(91, 184, 232, 0.1);
}

.ocr-drop-icon { font-size: 1.5rem; line-height: 1; }

.ocr-drop-text {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ocr-drop-text strong { font-size: 0.9rem; color: var(--text); }
.ocr-drop-text span { font-size: 0.8rem; color: var(--text-muted); }
.ocr-drop-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ocr-file-label { cursor: pointer; margin: 0; }

.ocr-progress {
    margin-top: 0.6rem;
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.ocr-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--teal), var(--teal-bright));
    transition: width 0.2s ease;
}

.ocr-status { margin: 0.5rem 0 0; font-size: 0.85rem; min-height: 1.2em; }
.ocr-status-info { color: var(--teal); }
.ocr-status-success { color: var(--success); }
.ocr-status-warn { color: var(--warning); }
.ocr-status-error { color: var(--danger); }

.ocr-preview {
    display: block;
    margin-top: 0.75rem;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
}

.ocr-raw-wrap { margin-top: 0.65rem; font-size: 0.8rem; color: var(--text-muted); }
.ocr-raw-wrap summary { cursor: pointer; user-select: none; }

.ocr-raw {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    max-height: 160px;
    overflow: auto;
    background: var(--classic-dark);
    color: #E2E8F0;
    border-radius: var(--radius);
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.ocr-disclaimer { margin-top: 0.5rem; }
.ocr-widget-compact .ocr-drop { padding: 0.75rem; }
.ocr-widget-compact .ocr-drop-text span { display: none; }
.ocr-widget-compact .ocr-preview { max-height: 120px; }
.form-group .ocr-widget { margin-top: 0.5rem; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .verify-layout.grid-2,
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app-wrapper { padding: 0; gap: 0; }

    .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        border-radius: 0;
        transform: translateX(-105%);
    }

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

    .main-content {
        margin-left: 0;
        border-radius: 0;
        min-height: 100vh;
        border: none;
    }

    .menu-toggle { display: grid; place-items: center; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box { max-width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .content-area { padding: 1.1rem; }
    .page-title { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .content-area,
    .login-panel,
    .login-page::before { animation: none; }
}

/* ─── Admin pages: premium shared patterns ─── */
.page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.4rem;
    border-radius: 18px;
    background:
        radial-gradient(500px 180px at 100% 0%, rgba(135, 206, 235, 0.35), transparent 60%),
        linear-gradient(135deg, var(--classic-deep) 0%, var(--classic) 58%, #3A7CA5 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 40, 71, 0.16);
}

.page-intro-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sky-light);
    margin-bottom: 0.35rem;
}

.page-intro-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.3rem;
}

.page-intro-desc {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
}

.toolbar {
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.search-box input {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    border-radius: 12px;
    min-height: 42px;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--sky-bright);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 184, 232, 0.16);
}

.filter-group .form-control,
.form-control.w-auto {
    width: auto;
    min-width: 150px;
    min-height: 42px;
    border-radius: 12px;
    background: #fff;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--classic-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.filter-chip:hover {
    background: var(--sky-pale);
    border-color: rgba(91, 184, 232, 0.45);
    color: var(--classic);
}

.filter-chip.is-active {
    background: linear-gradient(135deg, var(--classic-dark), var(--classic));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(27, 58, 107, 0.22);
}

.card-flush { padding: 0 !important; }

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--classic) !important; }
.text-sm { font-size: 0.84rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

.action-buttons {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-height: 32px;
}

.table-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.empty-state {
    padding: 3.2rem 1.25rem;
}

.empty-state p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.empty-state .btn { margin-top: 1rem; }

.card-header .btn-sm {
    white-space: nowrap;
}

.detail-panel {
    display: grid;
    gap: 1rem;
}

.detail-item {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.detail-item label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--classic);
}

.detail-item span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--classic-dark);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.form-section-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky-bright), var(--classic));
    box-shadow: 0 0 0 4px rgba(91, 184, 232, 0.18);
}

.website-toolbar {
    background: linear-gradient(180deg, #fff, var(--sky-pale));
}

.website-toolbar p {
    font-weight: 600;
    color: var(--classic-dark);
}

.pagination .active {
    background: linear-gradient(135deg, var(--classic-dark), var(--classic));
    border-color: transparent;
}

@media (max-width: 768px) {
    .page-intro {
        flex-direction: column;
        align-items: flex-start;
    }
}
