/* ============================================================
   TIGA PELITA - Tigaraksa Peduli Lingkungan Kita
   Palet Warna Kabupaten Tangerang
   ============================================================ */

/* CSS Variables */
:root {
    --primary: #003366;
    --primary-light: #0055a5;
    --primary-dark: #002244;
    --secondary: #0066CC;
    --accent: #FFD700;
    --accent-hover: #e6c200;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

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

.navbar-brand .brand-sub {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    color: var(--accent);
}

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

.nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.nav-links .notif-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.nav-user .user-info {
    text-align: right;
    line-height: 1.2;
}

.nav-user .user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-user .user-role {
    font-size: 0.7rem;
    opacity: 0.7;
    color: var(--accent);
}

.btn-logout {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(220,53,69,0.8);
    border-color: transparent;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
    flex: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.6) 0%, rgba(0, 102, 204, 0.4) 50%, rgba(0, 34, 68, 0.6) 100%), 
                url("../img/header.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: hero-glow 8s ease-in-out infinite;
}

@keyframes hero-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero .hero-accent {
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

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

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

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

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

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

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

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

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

.btn-warning {
    background: var(--warning);
    color: var(--dark);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 16px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
}

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

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

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.primary { background: rgba(0,102,204,0.1); color: var(--secondary); }
.stat-card .stat-icon.accent { background: rgba(255,215,0,0.15); color: #c79d00; }
.stat-card .stat-icon.success { background: rgba(40,167,69,0.1); color: var(--success); }
.stat-card .stat-icon.info { background: rgba(23,162,184,0.1); color: var(--info); }
.stat-card .stat-icon.danger { background: rgba(220,53,69,0.1); color: var(--danger); }

.stat-card .stat-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.stat-card .stat-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

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

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

thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(0,102,204,0.04);
}

tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

tbody tr:last-child {
    border-bottom: none;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: #fff;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--secondary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-errors {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-errors ul {
    list-style: none;
    padding: 0;
}

/* ============================================================
   ALERTS (Messages)
   ============================================================ */
.alerts-container {
    position: fixed;
    top: 74px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================================
   BERITA CARDS
   ============================================================ */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.berita-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.berita-card .berita-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-200);
}

.berita-card .berita-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 3rem;
}

.berita-card .berita-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.berita-card .berita-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.berita-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.berita-card .berita-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.berita-card .berita-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

/* ============================================================
   NOTIFICATION ITEMS
   ============================================================ */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.notif-item:hover {
    background: var(--gray-100);
}

.notif-item.unread {
    background: rgba(0,102,204,0.04);
    border-left: 3px solid var(--secondary);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-icon.jadwal { background: rgba(255,215,0,0.15); color: #c79d00; }
.notif-icon.umum { background: rgba(0,102,204,0.1); color: var(--secondary); }
.notif-icon.info { background: rgba(23,162,184,0.1); color: var(--info); }
.notif-item-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
    padding-right: 16px;
}

.notif-item-container:hover {
    background: var(--gray-100);
}

.notif-item-container.unread {
    background: rgba(0,102,204,0.04);
}

.notif-item-container.notif-jadwal {
    border-left: 4px solid var(--accent);
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    flex: 1;
}

.notif-actions {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .d-none-mobile { display: none; }
}

.notif-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.notif-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--gray-500);
}

/* ============================================================
   FORMSET (Detail Transaksi)
   ============================================================ */
.formset-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
    gap: 8px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.formset-row .form-control {
    padding: 8px 10px;
    font-size: 0.85rem;
}

.formset-actions {
    margin-top: 12px;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.filter-bar .form-group {
    margin-bottom: 0;
    min-width: 150px;
}

.filter-bar label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.filter-bar .form-control {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-primary { background: rgba(0,102,204,0.12); color: var(--secondary); }
.badge-success { background: rgba(40,167,69,0.12); color: var(--success); }
.badge-warning { background: rgba(255,193,7,0.15); color: #856404; }
.badge-danger { background: rgba(220,53,69,0.12); color: var(--danger); }
.badge-info { background: rgba(23,162,184,0.12); color: var(--info); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    z-index: 0;
    pointer-events: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.2);
}

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 32px;
    text-align: center;
    color: #fff;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-header p {
    opacity: 0.85;
    font-size: 0.9rem;
}

.auth-logo-top {
    margin-bottom: 12px;
}

.auth-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.auth-title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-logo-inline {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.auth-body {
    padding: 32px;
}

.auth-footer {
    padding: 16px 32px;
    text-align: center;
    background: var(--gray-100);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px 24px;
    font-size: 0.8rem;
    margin-top: auto;
}

.footer a {
    color: var(--accent);
}

/* ============================================================
   BANK SAMPAH GRID (Landing)
   ============================================================ */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.bank-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.bank-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.bank-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bank-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bank-item p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ============================================================
   SECTION LANDING
   ============================================================ */
.section {
    padding: 60px 24px;
}

.section-light {
    background: #fff;
}

.section .section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-title .accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ============================================================
   CHART CONTAINER
   ============================================================ */
.chart-container {
    position: relative;
    height: 300px;
    padding: 16px;
}

/* ============================================================
   DELETE CONFIRM
   ============================================================ */
.delete-form {
    display: inline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-user {
        display: none;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .formset-row {
        grid-template-columns: 1fr;
    }

    .berita-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .alerts-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 16px;
    }

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

/* Unifying Auth Theme - Removed role-specific overrides to keep design consistent */
/* ============================================================
   INLINE CONTENT SLIDERS
   ============================================================ */
.inline-slider-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    border: 2px dashed #ccd0d5;
    text-align: center;
    position: relative;
}

.content-inline-swiper {
    position: relative;
    user-select: none;
}

.content-inline-swiper .swiper-pagination-bullet {
    background: #fff;
}

.content-inline-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
}

.content-inline-swiper .swiper-button-next,
.content-inline-swiper .swiper-button-prev {
    background: rgba(0,0,0,0.4);
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.content-inline-swiper .swiper-button-next:after,
.content-inline-swiper .swiper-button-prev:after {
    font-size: 0.9rem;
    font-weight: bold;
}

/* ============================================================
   DASHBOARD ENHANCEMENTS
   ============================================================ */
.card-schedule {
    border-left: 6px solid var(--accent) !important;
    background: linear-gradient(to right, #fffdf5, #ffffff) !important;
    margin-bottom: 24px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.schedule-item:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(4px);
}

.schedule-date-box {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 80px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.schedule-date-box .day {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.schedule-date-box .month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.schedule-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.schedule-info p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.schedule-countdown {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(0, 85, 165, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
}

/* ============================================================
   PASSWORD FIELD ENHANCEMENTS
   ============================================================ */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary);
}

.strength-meter {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
    width: 100%;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.4s ease, background-color 0.4s ease;
    background-color: var(--gray-400);
}

.strength-hints {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.strength-hints li {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.strength-hints li i {
    font-size: 0.6rem;
}

.strength-hints li.valid {
    color: var(--success);
    font-weight: 600;
}

