/* ============================================================
   GKJ KERTEN PIKET — Premium SaaS Dashboard
   Warna utama: Biru-teal premium (bukan hitam)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-body: #F0F4F8;
    --bg-card: #FFFFFF;
    --bg-sidebar: linear-gradient(180deg, #0F2B46 0%, #164E6E 50%, #1A6B8A 100%);
    --bg-sidebar-hover: rgba(255,255,255,0.1);
    --bg-sidebar-active: rgba(255,255,255,0.18);
    --primary: #1A6B8A;
    --primary-light: #2A8FAD;
    --primary-dark: #0F4C66;
    --primary-ghost: rgba(26,107,138,0.08);
    --accent: #D4A843;
    --accent-light: #F0D078;
    --accent-dark: #B08A2E;
    --text-dark: #1A2332;
    --text-body: #3D4F5F;
    --text-muted: #8899A6;
    --text-light: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F0F4F8;
    --success: #2D9F6F;
    --success-bg: #E6F7F0;
    --warning: #D4943A;
    --warning-bg: #FEF5E7;
    --danger: #C0392B;
    --danger-bg: #FDEDEC;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(15,43,70,0.06);
    --shadow-md: 0 4px 12px rgba(15,43,70,0.08);
    --shadow-lg: 0 8px 30px rgba(15,43,70,0.12);
    --shadow-xl: 0 16px 50px rgba(15,43,70,0.16);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Background Pattern ---------- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(26,107,138,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(212,168,67,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Layout ---------- */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: 272px;
    min-height: 100vh;
    background: var(--bg-sidebar);
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
    pointer-events: none;
}

.sidebar-brand {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .logo-icon {
    width: 48px; height: 48px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #0F2B46;
    box-shadow: 0 4px 16px rgba(212,168,67,0.35);
}

.sidebar-brand h1 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.sidebar-brand p {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 14px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-light);
}

.nav-item.active {
    background: var(--bg-sidebar-active);
    color: var(--text-light);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.nav-item svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
}

.nav-item.active svg,
.nav-item:hover svg {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px 20px 24px;
    position: relative;
    z-index: 2;
}

.sidebar-footer .user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
}

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #0F2B46;
}

.user-info span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.user-info small {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

/* ---------- Main Content ---------- */
.main-content {
    flex: 1;
    margin-left: 272px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Top Bar ---------- */
.topbar {
    height: 68px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.topbar-left .breadcrumb {
    font-size: 12.5px;
    color: var(--text-muted);
}

.topbar-left .breadcrumb span {
    color: var(--primary);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,107,138,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,107,138,0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: #0F2B46;
    box-shadow: 0 2px 8px rgba(212,168,67,0.3);
}
.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,168,67,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-ghost);
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
    padding: 8px 12px;
}
.btn-ghost:hover {
    background: var(--border-light);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #A93226;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: #24895D;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn-icon {
    padding: 9px;
    border-radius: var(--radius-sm);
}

/* ---------- Page Content ---------- */
.page-content {
    flex: 1;
    padding: 28px 32px 40px;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    border-radius: 50%;
    transform: translate(30%, -30%);
    opacity: 0.06;
}

.stat-card:nth-child(1)::after { background: var(--primary); }
.stat-card:nth-child(2)::after { background: var(--accent); }
.stat-card:nth-child(3)::after { background: var(--success); }
.stat-card:nth-child(4)::after { background: #8E44AD; }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.stat-icon svg { width: 22px; height: 22px; }

.stat-icon.blue { background: rgba(26,107,138,0.1); color: var(--primary); }
.stat-icon.gold { background: rgba(212,168,67,0.12); color: var(--accent-dark); }
.stat-icon.green { background: rgba(45,159,111,0.1); color: var(--success); }
.stat-icon.purple { background: rgba(142,68,173,0.1); color: #8E44AD; }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- Cards / Panels ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-body { padding: 24px; }

/* ---------- Table ---------- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table thead th {
    background: var(--bg-body);
    padding: 12px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1.5px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--primary-ghost);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-primary { background: rgba(26,107,138,0.1); color: var(--primary); }
.badge-accent { background: rgba(212,168,67,0.12); color: var(--accent-dark); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: var(--border-light); color: var(--text-muted); }

/* ---------- Form ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,138,0.1);
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 80px; }

.form-select {
    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='%238899A6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15,35,54,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-lg { max-width: 900px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: none;
    background: var(--border-light);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal-body { padding: 20px 28px 28px; }

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 28px 24px;
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success);
    min-width: 300px;
    animation: slideInRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dark);
}

.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--primary); }

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* ---------- Jadwal Grid (tampilan jadwal) ---------- */
.jadwal-section {
    margin-bottom: 28px;
}

.jadwal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.jadwal-section-title .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.jadwal-section-title h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.jadwal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.jadwal-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
}

.jadwal-table thead th:first-child {
    text-align: left;
    width: 40px;
}

.jadwal-table thead th:nth-child(2) {
    text-align: left;
    min-width: 180px;
}

.jadwal-table tbody td {
    padding: 9px 14px;
    border: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-body);
}

.jadwal-table tbody td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    background: var(--bg-body);
    width: 40px;
}

.jadwal-table tbody td:nth-child(2) {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 12.5px;
    white-space: nowrap;
}

.jadwal-table tbody tr:nth-child(even) td:nth-child(n+3) {
    background: rgba(26,107,138,0.02);
}

.jadwal-table tbody tr:hover td {
    background: rgba(26,107,138,0.04);
}

/* ---------- Jadwal Edit Grid ---------- */
.jadwal-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.jadwal-edit-grid .form-select {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 64px; height: 64px;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(136,153,166,0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(136,153,166,0.5);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(80px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---------- Utilities ---------- */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent-dark); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.gap-10 { gap: 10px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ---------- Hidden Sections ---------- */
.section-panel { display: none; }
.section-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ---------- Print Preview (canvas wrapper) ---------- */
.print-preview-area {
    background: var(--bg-body);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.print-preview-area canvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar { padding: 0 16px; }
    .page-content { padding: 20px 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .jadwal-edit-grid { grid-template-columns: 1fr; }
    .modal { margin: 10px; }
}

/* ---------- Tab nav for sub-sections ---------- */
.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover { color: var(--text-dark); }

.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ---------- Loading Spinner ---------- */
.spinner {
    width: 20px; height: 20px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Gereja Tab Pills ---------- */
.gereja-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gereja-tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.gereja-tab:hover { border-color: var(--primary); color: var(--primary); }

.gereja-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Action Buttons Group ---------- */
.action-group {
    display: flex;
    gap: 6px;
}

.action-group .btn-icon {
    width: 32px; height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.action-group .btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ghost);
}

.action-group .btn-icon.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

.action-group .btn-icon svg { width: 15px; height: 15px; }

/* ---------- Divider ---------- */
.divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* ---------- Info Box ---------- */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--primary-ghost);
    border: 1px solid rgba(26,107,138,0.12);
    font-size: 13px;
    color: var(--primary-dark);
    line-height: 1.5;
}

.info-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Search Input ---------- */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-muted);
}

.search-input-wrapper .form-input {
    padding-left: 36px;
    width: 240px;
}

/* ---------- Label Kolom Dynamic Items ---------- */
.label-kolom-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.label-kolom-item:last-child {
    border-bottom: none;
}

.label-kolom-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary-ghost);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.label-kolom-input {
    max-width: 200px !important;
    font-weight: 600 !important;
}
/* ---------- Drag and Drop Sorting ---------- */
.petugas-row { transition: transform 0.2s, box-shadow 0.2s; cursor: default; }
.petugas-row.dragging { opacity: 0.5; background: var(--primary-ghost) !important; border: 1.5px dashed var(--primary) !important; transform: scale(1.02); box-shadow: var(--shadow-lg); z-index: 1001; }
.drag-handle { transition: color 0.2s; }
.drag-handle:hover { color: var(--primary); }
.petugas-row[draggable='true'] { user-select: none; }

