﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* ─── Design Tokens ─── */
:root {
    --brand: #0f4c81;
    --brand-dark: #0a3660;
    --brand-soft: #e7f0f8;
    --accent: #0a9396;
    --accent-light: #94d2bd;
    --ink: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 4px 24px rgba(15, 76, 129, 0.06);
    --shadow-card: 0 8px 32px rgba(15, 76, 129, 0.10);
    --shadow-hover: 0 12px 40px rgba(15, 76, 129, 0.15);
    --radius: 1rem;
    --radius-lg: 1.25rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* ─── Global ─── */
body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 20% 0%, #ffffff 0%, #f5f7fb 45%, #edf2f8 100%);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* ─── Navbar ─── */
.navbar-glass {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-bottom: 1px solid rgba(15, 76, 129, 0.06) !important;
    box-shadow: 0 1px 12px rgba(15, 76, 129, 0.04);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    transition: box-shadow var(--transition);
}

/* Brand area */
.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    margin-top: 1px;
    letter-spacing: 0.01em;
}

/* Nav links */
.navbar .nav-link {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--muted);
    padding: 0.45rem 0.7rem !important;
    border-radius: 0.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.navbar .nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.navbar .nav-link:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.navbar .nav-link:hover i {
    opacity: 1;
}

/* Vertical divider between public and komisi links */
.nav-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 0.3rem;
    align-self: center;
}

/* Login button */
.btn-nav-login {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 1rem !important;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.18);
    transition: var(--transition);
}

.btn-nav-login:hover {
    background: linear-gradient(135deg, var(--brand-dark), #082d4f);
    box-shadow: 0 4px 14px rgba(15, 76, 129, 0.25);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Logout button */
.btn-nav-logout {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem !important;
    transition: var(--transition);
}

.btn-nav-logout:hover {
    color: #dc3545;
    border-color: #f8d7da;
    background: #fef2f2;
}

/* Mobile toggler */
.navbar-toggler {
    color: var(--ink);
    padding: 0.3rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ─── Mobile Sidebar (Offcanvas) ─── */
.sidebar-nav {
    max-width: 300px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid rgba(15, 76, 129, 0.06) !important;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #edf2f8;
}

.sidebar-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.4rem;
    padding-left: 0.5rem;
}

.sidebar-links .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.sidebar-links .nav-link i {
    font-size: 1.05rem;
    color: var(--brand);
    opacity: 0.7;
    width: 1.3rem;
    text-align: center;
}

.sidebar-links .nav-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.sidebar-links .nav-link:hover i {
    opacity: 1;
}

/* ─── Hero Section ─── */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0d3f6c 0%, #0f4c81 25%, #0a7e8c 55%, #0a9396 80%, #78c6a3 100%);
    background-size: 300% 300%;
    animation: gradientShift 14s ease infinite;
    padding: 3.5rem 0 5rem;
    overflow: hidden;
    color: #fff;
}

/* Subtle mesh-like decorative orbs */
.hero-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -40px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(148, 210, 189, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* Wave separator at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: calc(100% + 2px);
    height: 48px;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero content */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
}

/* Info cards (slot waktu) */
.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.info-card .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Hero action buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.30);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

.btn-hero-outline.active {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Schedule page tab switcher */
.schedule-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.schedule-tab:hover {
    background: rgba(255, 255, 255, 0.30);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.schedule-tab.active {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.schedule-tab.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

/* ─── Glassmorphism Card ─── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* ─── Page Header Strip (komisi pages) ─── */
.page-header-strip {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.04) 0%, rgba(10, 147, 150, 0.04) 100%);
    border-bottom: 1px solid rgba(15, 76, 129, 0.06);
    padding: 1.5rem 0;
}

.page-header-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.page-header-sub {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0;
}

/* ─── Stat Card Icon ─── */
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    font-size: 1.2rem;
}

/* ─── Detail Row (key-value pairs) ─── */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.88rem;
}

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

.detail-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.glass-card .card-body {
    padding: 1.5rem 1.6rem;
}

.glass-card .card-header-custom {
    padding: 1.1rem 1.6rem;
    border-bottom: 1px solid rgba(15, 76, 129, 0.06);
    background: rgba(255, 255, 255, 0.3);
}

.glass-card .card-header-custom h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand);
}

.glass-card .card-header-custom h2 i {
    font-size: 1rem;
    opacity: 0.8;
}

/* ─── Form Enhancements ─── */
.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--ink);
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: 0.6rem;
    border: 1.5px solid #e2e8f0;
    padding: 0.55rem 0.8rem;
    font-size: 0.88rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.08);
    background-color: #fff;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-text {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 0.3rem;
}

/* Form group with step number */
.form-step {
    position: relative;
    padding-left: 2.1rem;
}

.form-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ─── Buttons ─── */
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.6rem 1.4rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #082d4f 100%);
    box-shadow: 0 4px 18px rgba(15, 76, 129, 0.28);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #198754, #157347);
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(25, 135, 84, 0.18);
}

.btn-success:hover,
.btn-success:focus {
    box-shadow: 0 4px 18px rgba(25, 135, 84, 0.28);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
}

/* ─── Divider ─── */
.form-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 50%, transparent);
    margin: 0.25rem 0;
    border: none;
}

/* ─── Cards (general) ─── */
.card {
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-soft);
}

/* ─── Login page card ─── */
.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.login-card .login-header {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    padding: 1.75rem 1.75rem 1.5rem;
    color: #fff;
    text-align: center;
}

.login-card .login-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.5rem 0 0.3rem;
}

.login-card .login-header p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.85;
}

.login-card .login-header .login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.3rem;
}

.login-card .card-body {
    padding: 1.75rem;
}

/* ─── Trust section ─── */
.trust-section {
    padding: 2rem 0;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
}

.trust-item .trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trust-item h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--ink);
}

.trust-item p {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ─── Entrance Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in          { animation: fadeInUp 0.5s ease both; }
.animate-in-delay-1  { animation: fadeInUp 0.5s 0.08s ease both; }
.animate-in-delay-2  { animation: fadeInUp 0.5s 0.16s ease both; }
.animate-in-delay-3  { animation: fadeInUp 0.5s 0.24s ease both; }

/* ─── Footer ─── */
.footer-dark {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 0.82rem;
}

.footer-dark .footer-brand {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-dark a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-dark a:hover {
    color: #fff;
}

/* ─── Table ─── */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.table > :not(caption) > * > * {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

textarea.form-control[readonly] {
    background: #f8fafc;
}

.nav-pills .nav-link.active {
    background-color: var(--brand);
}

.badge.bg-primary-subtle {
    background: var(--brand-soft) !important;
}

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 1.95rem;
    }

    .hero-section {
        padding: 2.5rem 0 4rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-section {
        padding: 2rem 0 3.5rem;
    }

    .brand-logo {
        height: 36px;
    }

    .brand-title {
        font-size: 0.82rem;
    }

    .brand-sub {
        font-size: 0.62rem;
    }

    .navbar-glass {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .glass-card .card-body {
        padding: 1.15rem;
    }

    .glass-card .card-header-custom {
        padding: 0.9rem 1.15rem;
    }

    .info-cards {
        flex-direction: column;
    }

    .trust-section .col-md-4 + .col-md-4 {
        border-top: 1px solid #e2e8f0;
        padding-top: 1rem;
    }

    .form-step {
        padding-left: 0;
    }

    .form-step::before {
        display: none;
    }
}

/* ─── Print ─── */
@media print {
    body {
        background: #fff !important;
        font-size: 11pt;
    }

    .no-print,
    nav,
    footer,
    .btn,
    form {
        display: none !important;
    }

    .card,
    .table-responsive {
        box-shadow: none !important;
        border: 1px solid #d1d5db !important;
    }

    .table {
        font-size: 10pt;
    }
}
