/* ============================================================
   SIGAP BGTK NTB — Stylesheet Utama (Redesigned)
   Sistem Informasi Gerbang Aspirasi & Pelayanan
   Warna identitas: biru tua (#0d2240) + putih + aksen emas
   ============================================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --primary:        #0d2240;
    --primary-light:  #1a3a5c;
    --primary-dark:   #091832;
    --primary-rgb:    13, 34, 64;
    --accent:         #1e88e5;
    --accent-hover:   #1565c0;
    --accent-rgb:     30, 136, 229;
    --gold:           #d4a843;
    --gold-light:     #f0d68a;
    --gold-rgb:       212, 168, 67;
    --success:        #2e7d32;
    --success-light:  #e8f5e9;
    --warning:        #f9a825;
    --warning-light:  #fff8e1;
    --danger:         #c62828;
    --danger-light:   #ffebee;
    --info:           #0288d1;
    --info-light:     #e1f5fe;
    --bg-light:       #f0f2f5;
    --bg-card:        #ffffff;
    --text-dark:      #1a1d21;
    --text-body:      #333840;
    --text-muted:     #6c757d;
    --border-color:   #e2e6ea;
    --border-light:   #f0f0f0;
    --sidebar-width:  270px;
    --topbar-height:  64px;
    --radius:         0.5rem;
    --radius-lg:      0.75rem;
    --radius-xl:      1rem;
    --radius-2xl:     1.25rem;
    --shadow-xs:      0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:         0 4px 16px rgba(0,0,0,0.06);
    --shadow-md:      0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg:      0 10px 40px rgba(0,0,0,0.10);
    --shadow-xl:      0 20px 60px rgba(0,0,0,0.14);
    --shadow-accent:  0 4px 14px rgba(30,136,229,0.3);
    --shadow-primary: 0 4px 14px rgba(13,34,64,0.25);
    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-body);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

/* Selection */
::selection {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--primary);
}

/* ============================================================
   NAVBAR PUBLIK
   ============================================================ */
.public-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 30px rgba(var(--primary-rgb), 0.35);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--gold);
    position: relative;
    z-index: 1030;
}

.public-navbar::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.public-navbar .navbar-brand {
    color: #fff !important;
    font-size: 1.05rem;
    transition: var(--transition);
}

.public-navbar .navbar-brand:hover {
    transform: scale(1.02);
}

.public-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    font-size: 0.88rem;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}

.public-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.public-navbar .nav-link:hover::after,
.public-navbar .nav-link.active::after {
    width: 60%;
}

/* ============================================================
   FOOTER PUBLIK
   ============================================================ */
.public-footer {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.public-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(var(--gold-rgb), 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.public-footer .container {
    position: relative;
    z-index: 1;
}

.public-footer h6 {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.public-footer a {
    color: var(--gold-light);
    transition: var(--transition-fast);
}

.public-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.public-footer ul li {
    padding: 0.2rem 0;
}

.public-footer ul li i {
    margin-right: 0.4rem;
    color: var(--gold);
}

.public-footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem;
}

/* ============================================================
   HALAMAN PUBLIK
   ============================================================ */
.public-main {
    min-height: calc(100vh - 280px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 35%, var(--primary-light) 65%, var(--accent) 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -35px) scale(1.05); }
}

/* Decorative dots pattern */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    animation: heroFadeUp 0.8s ease-out;
}

.hero-section h1 i {
    color: var(--gold-light);
    filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.4));
}

.hero-section p {
    font-size: 1.08rem;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
    animation: heroFadeUp 0.8s ease-out 0.15s both;
}

.hero-section .mt-3 {
    animation: heroFadeUp 0.8s ease-out 0.3s both;
}

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

.hero-section .btn-light {
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.hero-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-section .btn-outline-light {
    font-weight: 600;
    border-width: 2px;
    transition: var(--transition);
}

.hero-section .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Section Divider */
.section-divider {
    text-align: center;
    padding: 0 1rem;
    margin: 2.5rem 0;
}

.section-divider::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    margin: 0 auto 1rem;
}

/* Kartu Layanan */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.3);
}

.service-card h5 {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.service-card .btn-sigap {
    align-self: flex-start;
}

/* Info Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.feature-card i.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition);
}

.feature-card:hover i.feature-icon {
    transform: scale(1.1);
    color: var(--primary);
}

.feature-card h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Lacak Tiket */
.track-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    max-width: 620px;
    margin: 2rem auto;
    border: 1px solid var(--border-light);
}

.track-box h4 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
}

.track-box .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

.track-box .input-group .form-control {
    border-right: 0;
    padding: 0.65rem 1rem;
}

.track-box .input-group .btn {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Timeline Status */
.timeline {
    position: relative;
    padding-left: 2.2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--border-color) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.2rem;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(var(--accent-rgb), 0.3);
    transition: var(--transition);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:first-child::before {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.timeline-item .timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.timeline-item .timeline-status {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* ============================================================
   LAYOUT ADMIN — SIDEBAR
   ============================================================ */
.admin-wrapper {
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
}

.sidebar-brand {
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    position: relative;
}

.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.4), transparent);
}

.sidebar-brand a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.sidebar-brand a i {
    color: var(--gold);
    margin-right: 0.3rem;
    filter: drop-shadow(0 0 4px rgba(var(--gold-rgb), 0.5));
}

.sidebar-brand small {
    display: block;
    color: var(--gold-light);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

/* Sidebar User Info */
.sidebar-user {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-dark);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(var(--gold-rgb), 0.3);
}

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.3;
}

.sidebar-user-role {
    color: var(--gold-light);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    display: block;
    text-transform: uppercase;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 0.75rem 0;
    flex-grow: 1;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.7rem 1.5rem;
    font-size: 0.84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin: 1px 0;
    position: relative;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 1.3rem;
    text-align: center;
    transition: var(--transition);
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
    border-left-color: rgba(var(--gold-rgb), 0.6);
    padding-left: 1.7rem;
}

.sidebar-nav .nav-link:hover i {
    color: var(--gold-light);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--gold);
    font-weight: 600;
}

.sidebar-nav .nav-link.active i {
    color: var(--gold);
}

.sidebar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--gold);
    border-radius: 3px 0 0 3px;
}

.sidebar-divider {
    padding: 1rem 1.5rem 0.4rem;
}

.sidebar-divider span {
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.sidebar-footer span {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

/* ============================================================
   LAYOUT ADMIN — CONTENT AREA
   ============================================================ */
.admin-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-topbar {
    height: var(--topbar-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.admin-topbar .sidebar-toggle {
    color: var(--primary);
    padding: 0.3rem;
    transition: var(--transition);
    border-radius: var(--radius);
}

.admin-topbar .sidebar-toggle:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

.admin-topbar .navbar-text {
    font-size: 0.85rem;
}

.admin-topbar .navbar-text i.bi-person-circle {
    font-size: 1.3rem;
    color: var(--primary);
}

.admin-main {
    padding: 1.5rem 2rem;
    animation: contentFadeIn 0.4s ease;
}

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

/* Admin Footer */
.admin-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    text-align: center;
}

.admin-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner h4 {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
}

.welcome-banner p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

.welcome-banner .welcome-date {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}

/* ============================================================
   KOMPONEN — Kartu Dashboard / Statistik
   ============================================================ */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.4rem;
}

.stat-card .stat-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 2.8rem;
    color: rgba(var(--primary-rgb), 0.08);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    color: rgba(var(--primary-rgb), 0.12);
    transform: translateY(-50%) scale(1.1);
}

.stat-card.border-success { border-left-color: var(--success); }
.stat-card.border-warning { border-left-color: var(--warning); }
.stat-card.border-danger  { border-left-color: var(--danger); }
.stat-card.border-info    { border-left-color: var(--info); }
.stat-card.border-primary { border-left-color: var(--primary); }
.stat-card.border-accent  { border-left-color: var(--accent); }

/* ============================================================
   KOMPONEN — Tabel
   ============================================================ */
.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.table-card .card-header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary);
    font-weight: 700;
    color: var(--primary);
    padding: 1rem 1.25rem;
}

.table-sigap {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.table-sigap thead th {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.73rem;
    letter-spacing: 0.05em;
    padding: 0.85rem 0.9rem;
    border: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-sigap thead th:first-child {
    border-radius: 0;
}

.table-sigap thead th:last-child {
    border-radius: 0;
}

.table-sigap tbody tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.table-sigap tbody tr:nth-child(even) {
    background: rgba(var(--primary-rgb), 0.015);
}

.table-sigap tbody tr:hover {
    background: rgba(var(--accent-rgb), 0.05);
}

.table-sigap td {
    padding: 0.75rem 0.9rem;
    vertical-align: middle;
    color: var(--text-body);
}

.table-sigap td a {
    font-weight: 600;
}

/* Empty state for tables */
.table-sigap .empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.table-sigap .empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* ============================================================
   KOMPONEN — Form
   ============================================================ */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    border: 1px solid var(--border-light);
}

.form-card h6 {
    font-size: 0.92rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.form-card h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.55rem 0.85rem;
    font-size: 0.87rem;
    transition: var(--transition);
    color: var(--text-body);
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.form-control::placeholder {
    color: #b0b7c0;
    font-size: 0.84rem;
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 0.45rem 0.75rem;
}

.form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.35rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
}

/* ============================================================
   HALAMAN LOGIN
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 7s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 9s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

.login-card {
    background: rgba(255,255,255,0.98);
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    padding: 2.8rem;
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    animation: loginSlideUp 0.6s ease-out;
}

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

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

.login-card .login-logo i {
    font-size: 3.2rem;
    color: var(--primary);
    filter: drop-shadow(0 2px 6px rgba(var(--primary-rgb), 0.2));
}

.login-card .login-logo h4 {
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.6rem;
    letter-spacing: 0.06em;
    font-size: 1.5rem;
}

.login-card .login-logo p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.login-card .btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem;
    width: 100%;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.login-card .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.login-card .btn-login:active {
    transform: translateY(0);
}

/* ============================================================
   KOMPONEN — Badge Status
   ============================================================ */
.badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.4em 0.8em;
    border-radius: 50px;
}

/* ============================================================
   KOMPONEN — Tombol
   ============================================================ */
.btn-sigap {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.55rem 1.4rem;
    transition: var(--transition);
    font-size: 0.87rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-sigap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.5s;
}

.btn-sigap:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-sigap:hover::before {
    left: 100%;
}

.btn-sigap:active {
    transform: translateY(0);
}

.btn-outline-sigap {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.5rem 1.4rem;
    transition: var(--transition);
    background: transparent;
    font-size: 0.87rem;
}

.btn-outline-sigap:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

/* ============================================================
   KOMPONEN — Grafik / Chart Container
   ============================================================ */
.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    height: 100%;
}

.chart-card h6 {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card h6 i {
    color: var(--accent);
    font-size: 1rem;
}

/* ============================================================
   HALAMAN SUKSES SUBMIT
   ============================================================ */
.success-box {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    max-width: 560px;
    margin: 2.5rem auto;
    border: 1px solid var(--border-light);
}

.success-box .success-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--success), #43a047);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(46,125,50,0.3);
}

@keyframes scaleIn {
    0% { transform: scale(0) rotate(-10deg); }
    70% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

.success-box .ticket-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(var(--primary-rgb), 0.06));
    border: 2px dashed rgba(var(--accent-rgb), 0.4);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.8rem;
    display: inline-block;
    margin: 1rem 0;
    letter-spacing: 0.06em;
    transition: var(--transition);
}

.success-box .ticket-number:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

/* ============================================================
   KOMPONEN — Breadcrumb
   ============================================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.82rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--accent);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   KOMPONEN — Modal
   ============================================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--accent-rgb), 0.03) 100%);
    border-bottom: 2px solid var(--border-light);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-size: 1.05rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: rgba(var(--primary-rgb), 0.015);
}

.modal-backdrop.show {
    backdrop-filter: blur(4px);
}

/* ============================================================
   KOMPONEN — Alerts
   ============================================================ */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    font-size: 0.87rem;
    box-shadow: var(--shadow-xs);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #7a6200;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* ============================================================
   KOMPONEN — Cards (Bootstrap override)
   ============================================================ */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

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

.card .card-header {
    background: rgba(var(--primary-rgb), 0.02);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
}

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

/* ============================================================
   KOMPONEN — Pagination
   ============================================================ */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius) !important;
    margin: 0 2px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    transition: var(--transition-fast);
}

.pagination .page-link:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   KOMPONEN — List Group
   ============================================================ */
.list-group-item {
    border-color: var(--border-light);
    transition: var(--transition-fast);
    font-size: 0.87rem;
}

.list-group-item:hover {
    background: rgba(var(--accent-rgb), 0.03);
}

/* ============================================================
   PAGE HEADING
   ============================================================ */
.page-heading {
    margin-bottom: 1.5rem;
}

.page-heading h4 {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-heading h4 i {
    color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

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

    .admin-main {
        padding: 1.25rem 1rem;
    }

    /* Overlay saat sidebar terbuka */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(3px);
        z-index: 1035;
        transition: var(--transition);
    }

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

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.92rem;
    }

    .stat-card {
        padding: 1.1rem;
    }

    .stat-card .stat-value {
        font-size: 1.6rem;
    }

    .stat-card .stat-icon {
        font-size: 2.2rem;
    }

    .welcome-banner {
        padding: 1.5rem;
    }

    .welcome-banner h4 {
        font-size: 1.1rem;
    }

    .form-card {
        padding: 1.25rem;
    }

    .table-sigap thead th {
        padding: 0.65rem 0.6rem;
        font-size: 0.68rem;
    }

    .table-sigap td {
        padding: 0.6rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.88rem;
    }

    .login-card {
        margin: 1rem;
        padding: 1.8rem;
    }

    .stat-card .stat-value {
        font-size: 1.3rem;
    }

    .track-box {
        padding: 1.5rem;
        margin: 1rem;
    }

    .success-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .btn-sigap, .btn-outline-sigap {
        padding: 0.5rem 1rem;
        font-size: 0.84rem;
    }
}

/* ============================================================
   UTILITAS TAMBAHAN
   ============================================================ */
.cursor-pointer { cursor: pointer; }

.text-primary-dark { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.border-gold { border-color: var(--gold) !important; }

/* Scrollbar kustom untuk sidebar */
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* General scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #c5ccd4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8b2bc;
}

/* Animasi fade-in untuk konten */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Stagger animation for cards */
.stagger-item {
    opacity: 0;
    transform: translateY(15px);
    animation: staggerIn 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }

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

/* Pulse animation for icons */
.pulse-icon {
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover lift */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Print — sembunyikan sidebar & navbar */
@media print {
    .admin-sidebar,
    .admin-topbar,
    .public-navbar,
    .public-footer {
        display: none !important;
    }
    .admin-content {
        margin-left: 0 !important;
    }
}
