:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --gold: #d4a843;
    --gold-dark: #b8922e;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --font-family: 'Inter', sans-serif;
}

/* Dark mode */
.dark {
    --bs-body-bg: #1a1a2e;
    --bs-body-color: #e0e0e0;
}
.dark .bg-white, .dark .card { background-color: #2d2d44 !important; color: #e0e0e0 !important; }
.dark .text-dark { color: #e0e0e0 !important; }
.dark .bg-light { background-color: #2d2d44 !important; }
.dark .border { border-color: #404060 !important; }
.dark .table { color: #e0e0e0; }
.dark .table-striped>tbody>tr:nth-of-type(odd)>*, .dark .table-light { --bs-table-bg-type: #2d2d44; }

/* Body & Typography */
body { font-family: var(--font-family); font-size: 16px; line-height: 1.6; }

/* Top Bar */
.top-bar { font-size: 0.8rem; }

/* Running Text */
.running-text { font-size: 0.85rem; }

/* Header/Navbar */
.header .navbar { padding: 0.5rem 0; transition: all 0.3s ease; }
.header .navbar-scrolled { background-color: rgba(255,255,255,0.98) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.header .nav-link { padding: 0.5rem 1rem; font-weight: 500; color: #333; transition: color 0.3s; font-size: 0.9rem; }
.header .nav-link:hover, .header .nav-link.active { color: var(--primary); }
.header .dropdown-menu { border: none; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border-radius: 10px; }
.header .dropdown-item { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.header .dropdown-item:hover { background-color: #f0f7ff; color: var(--primary); }

/* Hero Section */
.hero-section { position: relative; overflow: hidden; }
.hero-section .carousel-item { height: 500px; }
.hero-section .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-section .carousel-caption { background: rgba(0,0,0,0.5); padding: 2rem; border-radius: 15px; bottom: 10%; }

/* Section */
.section { padding: 4rem 0; }
.section-title { font-weight: 700; position: relative; padding-bottom: 15px; margin-bottom: 30px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--gold); border-radius: 2px; }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* Cards */
.berita-card { border: none; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 2px 15px rgba(0,0,0,0.08); height: 100%; }
.berita-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.berita-card img { height: 200px; object-fit: cover; }
.berita-card .card-body { padding: 1.2rem; }
.berita-card .card-title { font-weight: 600; font-size: 1rem; line-height: 1.4; }
.berita-card .card-text { font-size: 0.85rem; color: #666; }
.berita-card .badge { font-size: 0.7rem; }

/* Agenda Card */
.agenda-card { border-left: 4px solid var(--primary); border-radius: 8px; padding: 1rem; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.agenda-card .date-box { width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.agenda-card .date-box .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.agenda-card .date-box .month { font-size: 0.7rem; text-transform: uppercase; }

/* Galeri Card */
.galeri-card { border-radius: 12px; overflow: hidden; position: relative; }
.galeri-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.galeri-card:hover img { transform: scale(1.05); }
.galeri-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 1rem; color: white; }

/* Statistik */
.stat-card { text-align: center; padding: 2rem; border-radius: 15px; background: white; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: transform 0.3s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-icon { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.8rem; }
.stat-card .stat-number { font-size: 2rem; font-weight: 700; }

/* Sambutan */
.sambutan-card { background: linear-gradient(135deg, #f0f7ff, #e6f0ff); border-radius: 15px; padding: 2rem; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--primary); }
.timeline-item { position: relative; margin-bottom: 1.5rem; padding: 1rem; background: white; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.timeline-item::before { content: ''; position: absolute; left: -25px; top: 1.2rem; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; border: 2px solid white; }

/* Footer */
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--gold) !important; }

/* Breadcrumb */
.breadcrumb { background: #f8f9fa; border-radius: 10px; padding: 0.75rem 1rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }

/* Status Badges */
.badge-pending { background-color: #fbbf24; color: #000; }
.badge-processing { background-color: #3b82f6; }
.badge-completed { background-color: #22c55e; }
.badge-rejected { background-color: #ef4444; }
.badge-revision { background-color: #f97316; }

/* Admin Dashboard */
.admin-sidebar { width: var(--sidebar-width); min-height: 100vh; background: #1a1a2e; position: fixed; top: 0; left: 0; z-index: 1040; transition: all 0.3s; }
.admin-sidebar .nav-link { color: #a0aec0; padding: 0.75rem 1.2rem; font-size: 0.85rem; transition: all 0.2s; border-left: 3px solid transparent; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: white; background: rgba(255,255,255,0.1); border-left-color: var(--gold); }
.admin-sidebar .nav-link i { width: 20px; margin-right: 10px; }
.admin-sidebar .sidebar-header { padding: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-content { margin-left: var(--sidebar-width); min-height: 100vh; background: #f1f5f9; }
.admin-topbar { height: var(--topbar-height); background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.admin-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Form Styles */
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.15); }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-gold { background-color: var(--gold); border-color: var(--gold); color: white; }
.btn-gold:hover { background-color: var(--gold-dark); border-color: var(--gold-dark); color: white; }

/* Table Styles */
.table thead th { background: #f8f9fa; border-bottom: 2px solid #dee2e6; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.table td { vertical-align: middle; font-size: 0.9rem; }

/* Pagination */
.pagination .page-link { color: var(--primary); border-radius: 8px; margin: 0 2px; }
.pagination .page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); }

/* Loading Animation */
.loading-spinner { display: flex; justify-content: center; align-items: center; height: 100vh; }
.loading-spinner .spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .hero-section .carousel-item { height: 300px; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .section { padding: 2rem 0; }
    .berita-card img { height: 150px; }
    .stat-card { padding: 1rem; }
    .stat-card .stat-number { font-size: 1.5rem; }
}

/* Print Styles */
@media print {
    .no-print, .header, .footer, .btn-back-to-top { display: none !important; }
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
}
