/* * SI-ARKA Theme - Elegant & Professional Edition */
:root {
    /* Palet Warna Baru: Kombinasi Hijau Zamrud & Emas */
    --primary: #0f766e;       /* Teal-700 (Hijau Kebiruan Tua - Wibawa) */
    --primary-dark: #0d5e56;  /* Teal-800 */
    --primary-light: #ccfbf1; /* Teal-100 (Background lembut) */
    
    --accent: #d97706;        /* Amber-600 (Emas Gelap - Aksen) */
    --accent-light: #fef3c7;  /* Amber-100 */
    
    --secondary: #0ea5e9;     /* Sky-500 (Biru Cerah untuk Tombol/Info) */
    
    --bg-body: #f0f2f5;       /* Abu-abu kebiruan sangat muda (Lebih modern dari putih polos) */
    --white: #ffffff;
    
    --text-main: #1e293b;     /* Slate-800 (Hitam kebiruan - Mudah dibaca) */
    --text-muted: #64748b;    /* Slate-500 */
    
    --border: #e2e8f0;        /* Slate-200 */
    --radius: 16px;           /* Radius lebih membulat (Modern) */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    
    --danger: #ef4444;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }
body { background: var(--bg-body); color: var(--text-main); min-height: 100vh; font-size: 0.9rem; line-height: 1.5; }

/* --- LAYOUT --- */
.app-container { display: flex; min-height: 100vh; }

/* SIDEBAR (Desktop) */
.sidebar {
    width: 270px; background: var(--white); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; position: fixed; height: 100%; left: 0; top: 0; z-index: 20;
}
.sidebar-header { padding: 2rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.brand-logo { 
    color: var(--primary); background: var(--primary-light); 
    padding: 8px; border-radius: 12px; display: flex; 
}
.brand-text { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.5px; }

.sidebar-menu { padding: 0 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.sidebar-menu a, .menu-btn-logout {
    display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.2rem;
    border-radius: 12px; text-decoration: none; color: var(--text-muted);
    font-weight: 600; transition: all 0.2s; border: none; background: none; width: 100%;
    cursor: pointer; text-align: left; font-size: 0.95rem;
}
.sidebar-menu a:hover, .menu-btn-logout:hover { 
    background: var(--bg-body); color: var(--primary); 
    transform: translateX(4px); /* Efek geser dikit pas hover */
}
.sidebar-menu a.active { 
    background: linear-gradient(90deg, var(--primary-light), transparent); 
    color: var(--primary-dark); 
    border-left: 4px solid var(--primary);
    border-radius: 4px 12px 12px 4px; /* Unik */
}

.user-profile {
    margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--border);
    border-radius: 16px; display: flex; align-items: center; gap: 1rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
}
.avatar {
    width: 2.8rem; height: 2.8rem; 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2);
}

/* MAIN CONTENT */
.main-content { margin-left: 270px; flex: 1; padding: 2.5rem; overflow-y: auto; }
.mobile-header, .bottom-nav, .mobile-spacer { display: none; }

/* --- COMPONENTS --- */

/* Typography & Headers */
.text-header { font-size: 1.75rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.text-sub { color: var(--text-muted); font-size: 1rem; }
.page-header { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; }

/* Cards (Lebih Timbul & Elegan) */
.card { 
    background: var(--white); border: none; 
    border-radius: var(--radius); box-shadow: var(--shadow-card); 
    margin-bottom: 1.5rem; transition: transform 0.2s;
}
/* Efek hover pada card agar interaktif */
.card:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02); }

.card-header { padding: 1.5rem; border-bottom: 1px solid var(--bg-body); }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text-main); }
.card-desc { color: var(--text-muted); font-size: 0.85rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.6rem; color: var(--text-main); font-size: 0.9rem; }
.form-control, .search-input {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
    border-radius: 10px; font-size: 0.95rem; transition: all 0.2s;
    background: #f8fafc;
}
.form-control:focus, .search-input:focus { 
    outline: none; border-color: var(--primary); background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-light); 
}

/* Filter Area */
.filter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1rem; padding: 1.5rem; align-items: end; }
.search-group { position: relative; margin: 0; }
.search-input { padding-left: 2.8rem; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.3rem; }

/* Tables (Lebih Bersih) */
.table-responsive { width: 100%; overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.table-custom { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-custom th {
    padding: 1rem 1.5rem; background: #f8fafc; border-bottom: 1px solid var(--border);
    font-weight: 700; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.table-custom td { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--bg-body); color: var(--text-main); font-size: 0.95rem; vertical-align: middle; }
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tr:hover td { background: #fdfdfd; }

/* Badges (Warna Pastel) */
.badge { padding: 0.35rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; display: inline-block; letter-spacing: 0.5px; }
.badge-published { background: #dcfce7; color: #15803d; } /* Hijau Pastel */
.badge-draft { background: #f3f4f6; color: #64748b; } /* Abu Pastel */

/* Buttons (Gradient & Shadow) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.7rem 1.4rem; font-weight: 600; border-radius: 10px;
    text-decoration: none; transition: all 0.2s; border: 1px solid transparent; font-size: 0.9rem; cursor: pointer;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(15, 118, 110, 0.4); }

.btn-outline { background: white; border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-body); border-color: var(--text-muted); }

.btn-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--bg-body); background: #f8fafc; color: var(--text-muted);
    text-decoration: none; transition: all 0.2s;
}
.btn-icon:hover { background: var(--white); color: var(--primary); border-color: var(--primary-light); transform: scale(1.05); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.btn-icon-danger:hover { color: var(--danger); border-color: #fee2e2; background: #fff1f2; }

.btn-add-large { 
    background: linear-gradient(135deg, var(--accent), #b45309); 
    color: white; padding: 0.8rem 1.5rem; border-radius: 12px; 
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; 
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); transition: 0.2s;
}
.btn-add-large:hover { transform: translateY(-2px); filter: brightness(1.1); }

.action-group { display: flex; gap: 8px; justify-content: flex-end; }

/* Dashboard Stats (Card Style) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { 
    background: var(--white); padding: 1.5rem; border-radius: 20px; 
    box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.02);
    position: relative; overflow: hidden;
}
/* Aksen warna warni pada card stats */
.stat-card:nth-child(1) { border-bottom: 4px solid var(--primary); }
.stat-card:nth-child(2) { border-bottom: 4px solid var(--secondary); }
.stat-card:nth-child(3) { border-bottom: 4px solid var(--accent); }
.stat-card:nth-child(4) { border-bottom: 4px solid var(--danger); }

.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.stat-title { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-icon { 
    color: var(--primary); background: var(--primary-light); 
    padding: 8px; border-radius: 10px; font-size: 1.2rem; 
}
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.2rem; letter-spacing: -1px; }
.stat-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Activity List */
.activity-list { padding: 0 1.5rem; }
.activity-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--bg-body); }
.activity-item:last-child { border-bottom: none; }
.activity-avatar {
    width: 2.5rem; height: 2.5rem; background: var(--accent-light); color: var(--accent);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.activity-content { flex: 1; min-width: 0; }
.activity-title { font-weight: 700; color: var(--text-main); margin-bottom: 0.2rem; font-size: 1rem; }
.activity-sub { color: var(--text-muted); font-size: 0.85rem; }
.activity-date { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); background: var(--bg-body); padding: 4px 10px; border-radius: 20px; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* Radio Card (Wali) */
.radio-group { display: flex; gap: 1.5rem; }
.radio-card { flex: 1; cursor: pointer; position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-content {
    border: 2px solid var(--bg-body); border-radius: 16px; padding: 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
    transition: all 0.2s; text-align: center; background: #f8fafc;
}
.radio-card input:checked + .radio-content { 
    border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); 
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(15, 118, 110, 0.15);
}

/* --- MOBILE RESPONSIVE (HEADER GRADIENT & NAV BARU) --- */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 0; }
    .page-header { display: none; } 
    
    /* HEADER KEREN (GRADIENT TEAL to BLUE) */
    .mobile-header {
        /* Gradasi dari Teal Tua ke Biru Malam - Elegan & Misterius */
        background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
        color: white; 
        padding: 2.5rem 1.5rem 3.5rem 1.5rem;
        border-bottom-left-radius: 35px; 
        border-bottom-right-radius: 35px;
        margin-bottom: 2rem; 
        box-shadow: 0 15px 30px -10px rgba(14, 116, 144, 0.5);
        position: relative; 
        overflow: hidden;
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        z-index: 1;
    }

    /* Dekorasi Lingkaran (Overlay) */
    .mobile-header::before {
        content: ''; position: absolute; top: -40px; right: -40px;
        width: 200px; height: 200px; 
        background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
        border-radius: 50%; pointer-events: none;
    }
    .mobile-header::after {
        content: ''; position: absolute; bottom: -20px; left: -20px;
        width: 120px; height: 120px; 
        background: rgba(255,255,255,0.05);
        border-radius: 50%; pointer-events: none;
    }

    .header-left { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; }
    .header-icon-bg {
        background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
        width: 52px; height: 52px; border-radius: 16px;
        display: flex; align-items: center; justify-content: center;
        border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .header-icon-bg span { font-size: 30px; color: #ccfbf1; } /* Ikon warna muda */
    
    .header-text h1 { font-size: 1.4rem; font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    .header-text p { font-size: 0.9rem; margin: 0; opacity: 0.85; font-weight: 500; letter-spacing: 0.5px; }

    /* Avatar Kanan */
    .header-right { position: relative; z-index: 2; }
    .header-avatar {
        width: 44px; height: 44px; background: white; color: var(--primary);
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        border: 2px solid rgba(255,255,255,0.5);
    }
    
    .content-body { padding: 0 1.5rem; margin-top: -2rem; position: relative; z-index: 5; }
    .filter-grid { grid-template-columns: 1fr; gap: 1rem; }
    .desktop-only { display: none; }
    .form-grid, .grid-2 { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
    
    /* Bottom Nav (Modern Glassmorphism) */
    .bottom-nav {
        position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px); border-top: 1px solid rgba(0,0,0,0.05);
        padding: 0.8rem 0; display: flex; justify-content: space-around; align-items: flex-end; z-index: 50;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
    }
    .nav-item {
        display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
        color: #94a3b8; text-decoration: none; font-size: 0.7rem; font-weight: 600; width: 4rem;
        transition: 0.2s;
    }
    .nav-item.active { color: var(--primary); transform: translateY(-3px); }
    .nav-item.active span { font-weight: 800; }
    
    /* Floating Add Button (Tengah) */
    .nav-fab-container { position: relative; top: -2rem; }
    .nav-fab {
        width: 3.8rem; height: 3.8rem; 
        background: linear-gradient(135deg, var(--accent), #d97706); /* Tombol Orange Emas */
        border-radius: 50%; 
        display: flex; align-items: center; justify-content: center; color: white; 
        box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4); text-decoration: none; 
        border: 4px solid rgba(255,255,255,0.9);
        transition: 0.2s;
    }
    .nav-fab span { font-size: 36px; }
    .nav-fab:active { transform: scale(0.9); }
    
    .mobile-spacer { display: block; height: 6rem; }
}