/* 
   Direktori Gereja CMS - Premium Multi-Theme Modern CSS Style
   Author: Google AI Studio Build Agent
   License: MIT
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400&family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================
   THEME DESIGN CONFIGURATION
   ========================================== */
:root {
    /* DEFAULT Warm Olive & Cream (Graceful Earth Theme) */
    --bg-primary: #FAF6F0;      /* Warm cozy linen background */
    --bg-secondary: #F2ECE1;    /* Deep oatmeal gray-beige */
    --bg-card: #FFFFFF;         /* Pure white cards */
    --text-primary: #2C261F;    /* Rich roasted bean dark brown */
    --text-secondary: #6B6153;  /* Dusty sand-charcoal secondary text */
    --border-color: #E6DCCD;    /* Tender oat border */
    --accent: #2A4B35;          /* Sanctuary Cypress/Olive green */
    --accent-rgb: 42, 75, 53;
    --accent-hover: #182F20;    /* Dark forest hover state */
    --accent-light: #F0EBE0;    /* Background pill */
    --shadow-sm: 0 1px 3px rgba(42, 75, 53, 0.04);
    --shadow-md: 0 10px 30px rgba(42, 75, 53, 0.05), 0 1px 3px rgba(0,0,0,0.02);
    --font-heading: 'Crimson Pro', 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-mono {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F6F6F6;
    --bg-card: #FFFFFF;
    --text-primary: #121212;
    --text-secondary: #666666;
    --border-color: #D6D6D6;
    --accent: #000000;
    --accent-rgb: 0, 0, 0;
    --accent-hover: #333333;
    --accent-light: #EBEBEB;
    --shadow-sm: none;
    --shadow-md: none;
    --font-heading: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --border-radius: 0px;
}

body.theme-dark {
    --bg-primary: #0F0E12;      /* Midnight volcanic ash */
    --bg-secondary: #16151B;    /* Shadow obsidian secondary */
    --bg-card: #1D1C24;         /* Sleek console box */
    --text-primary: #F3F4F6;    /* Glistening silver-white text */
    --text-secondary: #9CA3AF;  /* Soft grey dust */
    --border-color: #2F2D3A;    /* Gilded dark border */
    --accent: #D4AF37;          /* Sacred Byzantine Gold */
    --accent-rgb: 212, 175, 55;
    --accent-hover: #F2C94C;    /* Bright gold */
    --accent-light: #2A2832;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.5);
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --border-radius: 16px;
}

body.theme-slate {
    --bg-primary: #F1F5F9;      /* Smooth ice slate */
    --bg-secondary: #E2E8F0;    /* Winter mist */
    --bg-card: #FFFFFF;         /* Premium glowing crystal */
    --text-primary: #0F172A;    /* Deep cosmic blue-black */
    --text-secondary: #475569;  /* Sea slate secondary */
    --border-color: #CBD5E1;    /* Clean wind border */
    --accent: #0D9488;          /* Bright sea teal */
    --accent-rgb: 13, 148, 136;
    --accent-hover: #0F766E;    /* Dark teal state */
    --accent-light: #F0FDF4;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px -10px rgba(13, 148, 136, 0.08), 0 4px 10px -5px rgba(0,0,0,0.03);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 8px;
}

/* ==========================================
   GLOBAL RESET & DEFAULTS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

.mono {
    font-family: 'Space Mono', Courier, monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* Header & Nav */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo span {
    border-radius: var(--border-radius);
    padding: 0.25rem 0.6rem;
    background: var(--accent);
    color: #ffffff;
    margin-right: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        padding-bottom: 0.5rem;
    }
    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

nav a.active {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================
   THEME SWITCHER DROP DOWN
   ========================================== */
.theme-menu-container {
    position: relative;
    display: inline-block;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.theme-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: var(--bg-card);
    min-width: 250px;
    box-shadow: var(--shadow-md), 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    z-index: 1000;
    animation: fadeInSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.theme-dropdown.show {
    display: block;
}

.theme-dropdown a {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-radius: calc(var(--border-radius) - 4px);
    transition: var(--transition);
    text-align: left;
    font-weight: 500;
}

.theme-dropdown a:hover {
    background-color: var(--bg-secondary);
    color: var(--accent);
}

.theme-dropdown a.active {
    background-color: var(--accent);
    color: #ffffff;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero {
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(var(--accent-rgb), 0) 100%);
    pointer-events: none;
    opacity: 0.5;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-family: var(--font-body);
}

.search-box {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15), var(--shadow-md);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.search-box input:focus {
    box-shadow: none;
}

.search-box button {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: calc(var(--border-radius) - 4px);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.15);
}

.search-box button:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

/* ==========================================
   2-COLUMN DIRECTORY GRID WITH PROV SIDEBAR
   ========================================== */
.main-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .main-layout-grid {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        overflow: hidden; /* Prevent page stretching due to horizontal flex */
    }
}

/* Sidebar List Styling */
.province-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.province-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Customized scrollbar for tidy list */
.sidebar-list::-webkit-scrollbar {
    width: 4px;
}
.sidebar-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: calc(var(--border-radius) - 4px);
    border: 1px solid transparent;
    transition: var(--transition);
    color: var(--text-primary);
    font-weight: 500;
}

.sidebar-list-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent);
    border-color: var(--border-color);
}

.sidebar-list-item.active {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.15);
}

.sidebar-list-item .badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.sidebar-list-item.active .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Mobile Friendly Horizontal Ribbon fallback for Province list when on Mobile */
@media (max-width: 768px) {
    .province-sidebar {
        position: static;
        padding: 0.75rem 0;
        background: transparent;
        border: none;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .province-sidebar h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        border: none;
        padding-left: 0.25rem;
    }
    .sidebar-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* smooth iOS Momentum Scroll */
        white-space: nowrap;
        gap: 0.5rem;
        max-height: none;
        padding: 0.25rem 0.25rem 0.75rem 0.25rem; /* healthy gutter for active box-shadows */
        width: 100%;
    }
    /* Hide scrollbars for a clean mobile ribbon */
    .sidebar-list::-webkit-scrollbar {
        height: 4px;
        background: transparent;
    }
    .sidebar-list::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 10px;
    }
    .sidebar-list-item {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 50px; /* Pillow-shaped pills for excellent modern touch looks */
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
    }
    .sidebar-list-item.active {
        box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
    }
}

.provinces-headline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    letter-spacing: -0.5px;
}

.provinces-headline span.mono {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
}

.provinces-headline span:not(.mono) {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* ==========================================
   CHURCH GRID DISPLAY
   ========================================== */
.church-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 640px) {
    .church-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.church-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: 320px;
}

.church-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.church-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.church-meta span.mono {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.church-meta span:not(.mono) {
    color: var(--text-secondary);
    font-weight: 600;
}

.church-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    color: var(--text-primary);
}

.church-city-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.church-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.church-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.church-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.church-btn:hover {
    background: var(--accent);
    color: #ffffff !important;
}

/* ==========================================
   CHURCH DETAIL SINGLE PAGE
   ========================================== */
.detail-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
    padding: 3rem 0;
}

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.detail-header {
    margin-bottom: 2.5rem;
}

.detail-header-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.detail-badge {
    background: var(--accent);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    border-radius: 4px;
}

.detail-province {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

.meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.meta-table tr {
    border-bottom: 1px solid var(--border-color);
}

.meta-table tr:last-child {
    border-bottom: none;
}

.meta-table td {
    padding: 1rem 1.5rem;
}

.meta-table td:first-child {
    font-weight: 700;
    width: 30%;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
}

.meta-table td:last-child {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.map-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.map-wrapper {
    position: relative;
    padding-bottom: 60%; /* Slightly adjusted ratio */
    height: 0;
    overflow: hidden;
    border-radius: calc(var(--border-radius) - 4px);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   ADMIN PANEL CONTROL STYLES
   ========================================== */
.admin-header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.admin-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.admin-form-container h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    color: var(--text-primary);
}

/* Base Form Inputs styling */
input, select, textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
    background: var(--bg-card);
}

label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1.25rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

button, .btn {
    font-family: var(--font-body);
    cursor: pointer;
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.15);
}

button:hover, .btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.25);
}

/* Tables styling */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--bg-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1.5px solid var(--border-color);
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: rgba(var(--accent-rgb), 0.015);
}

.admin-table h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-table p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.action-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-delete {
    background: #E11D48;
    border-color: #E11D48;
    color: white;
}

.btn-delete:hover {
    background: #BE123C;
    border-color: #BE123C;
    color: white !important;
}

.btn-edit {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: none;
}

.btn-edit:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
}

.badge-draft {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}

.badge-active {
    display: inline-block;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}

/* ==========================================
   ALERT POPUPS
   ========================================== */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

/* ==========================================
   FOOTER STYLE
   ========================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: 6rem;
    background: var(--bg-secondary);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 640px) {
    .footer-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        justify-content: center;
    }
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}
