@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --primary: #6366f1; /* Premium Indigo */
    --primary-dark: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.08);
    
    --secondary: #64748b; /* Slate */
    --success: #10b981; /* Emerald */
    --success-light: rgba(16, 185, 129, 0.08);
    
    --warning: #f59e0b; /* Amber */
    --warning-light: rgba(245, 158, 11, 0.08);
    
    --danger: #f43f5e; /* Rose */
    --danger-light: rgba(244, 63, 94, 0.08);
    
    --info: #06b6d4; /* Cyan */
    --info-light: rgba(6, 182, 212, 0.08);
    
    --dark: #0f172a; /* Slate 900 */
    --light: #f8fafc; /* Slate 50 */
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-premium: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 12px -4px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -10px rgba(99, 102, 241, 0.15);

    /* Typography */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

section {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-lg);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--gradient-primary);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
}

.btn-danger {
    background: var(--gradient-danger);
    border: none;
}

.btn-rounded {
    border-radius: 50px;
}

/* Forms */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    transition: var(--transition-base);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-control-modern {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.form-control-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.input-group-modern {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group-modern .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    z-index: 10;
}

.input-group-modern .form-control-modern {
    padding-left: 55px;
}

.btn-modern {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }

/* Status Text and Badges */
.text-baru { color: var(--primary); }
.text-diproses { color: var(--info); }
.text-menunggu { color: var(--warning); }
.text-selesai { color: var(--success); }
.text-ditutup { color: var(--secondary); }

.bg-baru { background-color: var(--primary-light); color: var(--primary); }
.bg-diproses { background-color: var(--info-light); color: var(--info); }
.bg-menunggu { background-color: var(--warning-light); color: var(--warning); }
.bg-selesai { background-color: var(--success-light); color: var(--success); }
.bg-ditutup { background-color: rgba(100, 116, 139, 0.08); color: var(--secondary); }

/* Priority */
.text-rendah { color: var(--success); }
.text-sedang { color: var(--info); }
.text-tinggi { color: var(--warning); }
.text-urgent { color: var(--danger); }

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: var(--primary-light);
    color: var(--primary);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

/* Spinner & Loading */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tables */
.table {
    border-color: var(--border-color);
}

@media (max-width: 768px) {
    .table:not(.table-bordered) {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    background-color: rgba(248, 250, 252, 0.8);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* ==========================================================================
   LANDING PAGE STYLES (index.php)
   ========================================================================== */
/* Standard Hero Section (for subpages) */
.hero-section {
    background: var(--gradient-dark);
    padding: 7.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    color: var(--white) !important;
}

/* Landing Page Hero (Large) */
.hero-landing {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-section p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.btn-hero {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.btn-hero-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    transform: translateY(-3px);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    filter: blur(40px);
    z-index: 1;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: #6366f1;
    top: -50px;
    left: -100px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: #a855f7;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: #06b6d4;
    top: 50%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Stats Section */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -6rem;
}

.stats-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-base);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.stats-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-headings);
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stats-label {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Section Common */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Features */
.feature-section {
    padding: 7rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    height: 100%;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.25);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Kategori */
.kategori-section {
    padding: 7rem 0;
    background: var(--gradient-dark);
    position: relative;
}

.kategori-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.kategori-section .section-title {
    color: var(--white);
}

.kategori-section .section-subtitle {
    color: #94a3b8;
}

.kategori-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: var(--white);
    display: block;
    height: 100%;
    transition: var(--transition-base);
}

.kategori-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-8px);
    color: var(--white);
}

.kategori-card i {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
    transition: var(--transition-base);
    background: linear-gradient(135deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kategori-card:hover i {
    transform: scale(1.15);
}

.kategori-card h6 {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* FAQ */
.faq-section {
    padding: 7rem 0;
    background: var(--white);
}

.faq-card {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.faq-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-card .card-body {
    padding: 2rem 2.25rem;
    border-left: 5px solid var(--primary);
}

/* CTA */
.cta-section {
    padding: 6rem 0;
    background: var(--light);
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: 30px;
    padding: 5rem 4rem;
    box-shadow: var(--shadow-premium);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.cta-card h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

/* ==========================================================================
   PORTAL PANELS (header.php, header-admin.php)
   ========================================================================== */
:root {
    --sidebar-width: 270px;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gradient-dark);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 25px rgba(0,0,0,0.05);
    transition: var(--transition-base);
}

.sidebar-brand {
    padding: 2.5rem 1.75rem;
    text-align: center;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand h4 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.35rem;
}

.sidebar-brand small {
    color: #64748b;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar .nav-item {
    margin: 0.25rem 1.25rem;
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.sidebar .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar .nav-link.active {
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.sidebar .nav-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 1.5rem 1.25rem;
}

.sidebar .nav-heading {
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 2rem 0.5rem;
    letter-spacing: 0.08em;
}

/* Main Content Workspace */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition-base);
}

/* Topbar */
.topbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 99;
}

.content-wrapper {
    padding: 2.25rem 2rem;
}

/* ==========================================================================
   PORTAL DASHBOARD PAGES (dashboard.php, admin/index.php)
   ========================================================================== */
.dashboard-welcome {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 350px; height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.dashboard-welcome h2 {
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.dashboard-welcome p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    transition: var(--transition-base);
}

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

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

/* Stat Cards Modern */
.stat-card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card-modern .card-body {
    padding: 2rem;
}

.stat-card-modern .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.stat-card-modern .stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    font-family: var(--font-headings);
}

.stat-card-modern .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat colors (Modern variations) */
.stat-card-modern.total { background-color: var(--white); border: 1px solid var(--border-color); }
.stat-card-modern.total .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card-modern.total .stat-value { color: var(--dark); }

.stat-card-modern.baru { background: #eff6ff; border: 1px solid #dbeafe; }
.stat-card-modern.baru .stat-icon { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.stat-card-modern.baru .stat-value { color: #1e3a8a; }

.stat-card-modern.diproses { background: #ecfeff; border: 1px solid #cffafe; }
.stat-card-modern.diproses .stat-icon { background: rgba(6, 182, 212, 0.15); color: #0891b2; }
.stat-card-modern.diproses .stat-value { color: #164e63; }

.stat-card-modern.menunggu { background: #fffbeb; border: 1px solid #fef3c7; }
.stat-card-modern.menunggu .stat-icon { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.stat-card-modern.menunggu .stat-value { color: #78350f; }

.stat-card-modern.selesai { background: #ecfdf5; border: 1px solid #d1fae5; }
.stat-card-modern.selesai .stat-icon { background: rgba(16, 185, 129, 0.15); color: #059669; }
.stat-card-modern.selesai .stat-value { color: #064e3b; }

.stat-card-modern.ditutup { background: #f8fafc; border: 1px solid #e2e8f0; }
.stat-card-modern.ditutup .stat-icon { background: rgba(100, 116, 139, 0.15); color: #475569; }
.stat-card-modern.ditutup .stat-value { color: #0f172a; }

/* Category Stats List */
.category-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--light);
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    transition: var(--transition-base);
}

.category-item:hover {
    background: var(--white);
    border-color: var(--border-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.category-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-color);
}

.category-info {
    flex: 1;
}

.category-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--secondary);
}

.category-badge {
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* LOGIN LAYOUT (login.php) */
.login-page {
    background: var(--gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 40%);
    z-index: 1;
}

.login-page .login-card {
    position: relative;
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.login-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.login-header i {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-body {
    padding: 3rem 2.5rem 2.5rem;
}

.btn-login {
    background: var(--gradient-primary);
    border: none;
    padding: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-login:hover {
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   RESPONSIVENESS AND COLLAPSE OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .topbar {
        padding: 1.25rem 1.5rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .stats-section {
        margin-top: -3rem;
    }
    
    .stats-card {
        padding: 1.75rem 1.5rem;
        border-radius: 20px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-section, .kategori-section, .faq-section, .cta-section {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-card {
        padding: 3rem 2rem;
        border-radius: 24px;
    }
    
    .cta-card h3 {
        font-size: 1.75rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Close Button (Mobile) */
.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .sidebar-close {
        display: flex;
    }
}

body.sidebar-open {
    overflow: hidden;
}

/* Notification dropdown */
.notification-dropdown {
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    padding: 0.5rem 0;
}

.notification-dropdown .dropdown-header {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.notification-item:hover {
    background-color: var(--light);
}

.notification-item.unread {
    background-color: var(--primary-light);
}

.notification-item i {
    font-size: 1.1rem;
    margin-top: 2px;
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-light) !important;
    border: none !important;
    color: var(--primary) !important;
    border-radius: 8px !important;
}

/* Mobile Button Group Utility */
@media (max-width: 576px) {
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
}

/* Progress Ring */
.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: transparent;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.progress-ring-bg {
    stroke: #e9ecef;
}

.progress-ring-fill {
    stroke: url(#gradient);
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Quick Actions */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 16px;
    background: var(--white);
    border: 2px dashed var(--border-color);
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition-base);
    height: 100%;
}

.quick-action:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
    color: var(--primary);
    transform: translateY(-3px);
}

.quick-action i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quick-action span {
    font-weight: 500;
    font-size: 0.9rem;
}

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

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

.counter {
    display: inline-block;
}

/* Verification Pages Styling */
.search-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.btn-search {
    padding: 0.875rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    transition: var(--transition-base);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: var(--white);
}

.result-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.result-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.result-body {
    padding: 2rem;
}

.info-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.verified-badge {
    background: var(--gradient-success);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.search-type-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    color: var(--secondary);
}

.search-type-btn:hover,
.search-type-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.no-result {
    text-align: center;
    padding: 4rem 2rem;
}

.no-result i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.data-section {
    background: var(--light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.parent-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.summary-card {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

@media (max-width: 768px) {
    .search-card {
        padding: 1.5rem;
        margin-top: -2rem;
        border-radius: 20px;
    }
    
    .result-body {
        padding: 1.25rem;
    }
    
    .btn-search {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-type-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* Buat Tiket Page Styling */
.form-card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: var(--white);
    border: 1px solid var(--border-color);
}

.success-card {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--success);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.tiket-code {
    background: var(--light);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-headings);
    letter-spacing: 2px;
    display: inline-block;
    color: var(--primary);
    border: 1px solid var(--border-color);
    margin: 1rem 0;
}

.kategori-btn {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition-base);
    height: 100%;
}

.kategori-btn:hover {
    border-color: var(--primary);
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.kategori-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.kategori-btn input {
    display: none;
}

.kategori-btn i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition-base);
}

.kategori-btn.selected i {
    color: var(--primary);
}

@media (max-width: 576px) {
    .kategori-btn {
        padding: 1rem;
    }
    .kategori-btn i {
        font-size: 1.5rem;
    }
}

/* Ticket List Page Styles */
.page-header {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 25px 30px;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.page-header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-weight: 700;
}

.page-header .breadcrumb-text {
    position: relative;
    z-index: 1;
    opacity: 0.9;
    font-size: 0.9rem;
}

.quick-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.quick-stat-btn {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.quick-stat-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-stat-btn.all {
    background: var(--light);
    color: var(--secondary);
    border-color: var(--border-color);
}
.quick-stat-btn.all:hover, .quick-stat-btn.all.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.quick-stat-btn.baru {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}
.quick-stat-btn.baru:hover, .quick-stat-btn.baru.active {
    background: #2563eb;
    color: var(--white);
    border-color: transparent;
}

.quick-stat-btn.proses {
    background: #ecfeff;
    color: #0891b2;
    border-color: #cffafe;
}
.quick-stat-btn.proses:hover, .quick-stat-btn.proses.active {
    background: #0891b2;
    color: var(--white);
    border-color: transparent;
}

.quick-stat-btn.menunggu {
    background: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
}
.quick-stat-btn.menunggu:hover, .quick-stat-btn.menunggu.active {
    background: #d97706;
    color: var(--white);
    border-color: transparent;
}

.quick-stat-btn.selesai {
    background: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}
.quick-stat-btn.selesai:hover, .quick-stat-btn.selesai.active {
    background: #059669;
    color: var(--white);
    border-color: transparent;
}

.quick-stat-btn.ditutup {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}
.quick-stat-btn.ditutup:hover, .quick-stat-btn.ditutup.active {
    background: #475569;
    color: var(--white);
    border-color: transparent;
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px;
    }
    
    .quick-stats {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .quick-stat-btn {
        white-space: nowrap;
    }
    
    .ticket-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ticket-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* FAQ Page Styling */
.faq-item {
    border-left: 3px solid var(--primary);
    transition: var(--transition-base);
}
.faq-item:hover {
    background: var(--light);
}
.kategori-filter .btn.active {
    background: var(--primary);
    color: var(--white);
}
.article-content {
    line-height: 1.8;
}
.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-headings);
}
.article-content ul, .article-content ol {
    margin-bottom: 1rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Public Navbar Styling */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-base);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    font-family: var(--font-headings);
    display: inline-flex;
    align-items: center;
}

.navbar .nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition-base);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* Mobile Toggler Styles */
.navbar-toggler {
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--light) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--dark) !important;
}

.navbar-toggler-icon {
    filter: none;
}

/* Mobile Menu Collapsed Style */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        border-radius: 16px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
    }
    
    .navbar .nav-link {
        color: var(--dark) !important;
        margin-bottom: 0.5rem;
    }
    
    .navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0.75rem 1rem !important;
        background: rgba(99, 102, 241, 0.03) !important;
        border-left: 3px solid var(--primary) !important;
        border-radius: 12px !important;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .navbar .dropdown-item {
        color: var(--dark) !important;
        font-weight: 500;
        padding: 0.6rem 1rem !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        transition: var(--transition-base);
    }
    
    .navbar .dropdown-item:hover {
        background: var(--primary-light) !important;
        color: var(--primary) !important;
        transform: translateX(4px);
    }
    
    .navbar .dropdown-item i {
        font-size: 1.1rem;
        margin-right: 0.75rem;
    }
}



