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

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --success: #198754;
    --danger: #dc3545;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #1a1f36;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --slate: #64748b;
    --slate-light: #cbd5e1;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Navbar */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, #0a3d91 0%, #0d6efd 35%, #8fa4bd 65%, #64748b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ─── Hero — modern minimalist, blue/gray gradient accent ─────── */
.hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -60px 0 auto 0;
    height: 480px;
    background:
        radial-gradient(620px 300px at 12% 0%, rgba(13, 110, 253, 0.09), transparent 62%),
        radial-gradient(560px 280px at 88% 8%, rgba(100, 116, 139, 0.12), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.07);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(13, 110, 253, 0.15);
}
.badge-text-gradient {
    background: linear-gradient(90deg, var(--text) 0%, var(--primary) 65%, var(--slate) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--text) 0%, var(--primary) 65%, var(--slate) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text);
}

.hero-desc {
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 1.5rem;
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

.hero-actions {
    margin-top: 1.5rem;
}

.hero-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* ─── Feature Card — minimalist, soft elevation, hover lift ────── */
.feature-card {
    background: var(--surface);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.1rem) 1.6rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 14px 32px -16px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--slate-light));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -18px rgba(13, 110, 253, 0.22);
    border-color: rgba(13, 110, 253, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

/* ─── Icon 3D badge — gradien biru & abu-abu, efek glossy ──────── */
.feature-icon,
.icon-3d {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.1rem;
    position: relative;
    color: #fff;
    transform: translateZ(0);
}

.icon-3d::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 10px;
    width: 55%;
    height: 34%;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
}

.icon-3d.icon-blue {
    background: linear-gradient(150deg, #5aa2ff 0%, var(--primary) 55%, var(--primary-dark) 100%);
    box-shadow:
        0 12px 22px -8px rgba(13, 110, 253, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -4px 8px rgba(10, 60, 130, 0.25);
}

.icon-3d.icon-slate {
    background: linear-gradient(150deg, #b7c2d0 0%, var(--slate) 55%, #47536b 100%);
    box-shadow:
        0 12px 22px -8px rgba(71, 83, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -4px 8px rgba(30, 41, 59, 0.3);
}

.feature-card:hover .icon-3d {
    transform: translateY(-2px) scale(1.04);
    transition: transform 0.25s ease;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 480px) {
    .hero-cards {
        grid-template-columns: 1fr;
    }
    .icon-3d {
        width: 58px;
        height: 58px;
        font-size: 1.7rem;
        border-radius: 15px;
    }
    .feature-card {
        padding: 1.4rem 1.2rem;
    }
}

/* Auth */
.auth-body {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1.25rem;
}

.auth-back {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-back:hover {
    color: #fff;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.auth-hint {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Page */
main.container {
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: calc(100vh - 130px);
}

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

.page-header h1 {
    font-size: 1.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* Menu grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.menu-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.menu-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.menu-card h3 {
    margin-bottom: 0.5rem;
}

.menu-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.menu-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Table */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.table-wrapper {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.text-center {
    text-align: center;
}

.badge-success {
    background: #d1e7dd;
    color: var(--success);
}

.badge-count {
    background: #e8f0fe;
    color: var(--primary);
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .nav-inner {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
}