/* ==========================================================================
   HKBP DIGITAL — MODERN BATAK HERITAGE DESIGN SYSTEM
   Firman • Iman • Doa • Nyanyian
   Top Navbar Layout (Forest Green) + Fluid Content
   Style: Modern, Elegan, Spiritual, Tenang, Bersih, dan Premium
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Mandated Color Palette */
    --color-forest-green:    #214D3A;
    --color-forest-dark:     #17382A;
    --color-forest-deep:     #0F241B;
    --color-sage-green:      #8FA895;
    --color-sage-light:      #E4EBE6;
    --color-warm-ivory:      #F8F4E8;
    --color-ivory-light:     #FCFAF4;
    --color-ivory-card:      #FFFFFF;
    --color-antique-gold:    #C5A35A;
    --color-gold-light:      #E8D7AB;
    --color-gold-subtle:     rgba(197, 163, 90, 0.25);
    --color-charcoal:        #292B27;
    --color-charcoal-muted:  #585C55;
    --color-maroon:          #7A3434;

    /* Semantic Theme Tokens (Light Mode - Default) */
    --bg-page:               #F8F4E8;
    --bg-surface:            #FFFFFF;
    --bg-card:               rgba(255, 255, 255, 0.94);
    --bg-card-glass:         rgba(255, 255, 255, 0.84);
    --text-heading:          #214D3A;
    --text-body:             #292B27;
    --text-muted:            #585C55;
    --border-card:           rgba(143, 168, 149, 0.35);
    --border-gold-accent:    rgba(197, 163, 90, 0.45);
    --hero-overlay-start:    rgba(248, 244, 232, 0.82);
    --hero-overlay-end:      rgba(248, 244, 232, 0.98);

    /* Admin Specific Semantic Tokens (Light Mode) */
    --bg-primary:            #F4F6F4;
    --text-primary:          #1E293B;
    --text-secondary:        #64748B;
    --card-bg:               #FFFFFF;
    --card-border:           rgba(23, 56, 42, 0.12);
    --card-shadow:           0 4px 16px rgba(23, 56, 42, 0.05);
    --card-shadow-hover:     0 10px 28px rgba(23, 56, 42, 0.1);

    /* Typography */
    --font-serif:   'Cinzel', 'Lora', Georgia, serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-reading: 'Lora', Georgia, serif;
    --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Shadows & Glassmorphism */
    --shadow-soft: 0 4px 20px rgba(33, 77, 58, 0.06);
    --shadow-hover: 0 14px 36px rgba(33, 77, 58, 0.12);
    --shadow-paper: 0 8px 30px rgba(33, 77, 58, 0.08);
    --glass-blur: blur(14px);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Tokens (Spiritual & Contemplative Dark Forest) */
[data-theme="dark"] {
    --bg-page:               #0E1612;
    --bg-surface:            #15201A;
    --bg-card:               rgba(21, 32, 26, 0.94);
    --bg-card-glass:         rgba(21, 32, 26, 0.82);
    --text-heading:          #E8D7AB;
    --text-body:             #E2DCD0;
    --text-muted:            #9BA8A0;
    --border-card:           rgba(143, 168, 149, 0.22);
    --border-gold-accent:    rgba(197, 163, 90, 0.4);
    --hero-overlay-start:    rgba(14, 22, 18, 0.82);
    --hero-overlay-end:      rgba(14, 22, 18, 0.98);

    /* Admin Specific Semantic Tokens (Dark Mode) */
    --bg-primary:            #0B1410;
    --text-primary:          #E2ECE5;
    --text-secondary:        #94A3B8;
    --card-bg:               #13221B;
    --card-border:           rgba(197, 163, 90, 0.22);
    --card-shadow:           0 6px 20px rgba(0, 0, 0, 0.4);
    --card-shadow-hover:     0 12px 30px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.hkbp-app-body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle Batak Heritage Stripe */
.heritage-top-stripe,
.footer-heritage-stripe {
    height: 5px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        var(--color-forest-green) 0px,
        var(--color-forest-green) 28px,
        var(--color-antique-gold) 28px,
        var(--color-antique-gold) 40px,
        var(--color-maroon) 40px,
        var(--color-maroon) 68px,
        var(--color-antique-gold) 68px,
        var(--color-antique-gold) 80px
    );
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
    color: var(--text-heading);
    letter-spacing: -0.01em;
    font-weight: 700;
}

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

[data-theme="dark"] a {
    color: var(--color-gold-light);
}

.container {
    width: 100%;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. App Layout (Left Sidebar + Right Content Area)
   -------------------------------------------------------------------------- */
:root {
    --sidebar-width: 275px;
    --mobile-header-height: 60px;
}

.app-layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* --------------------------------------------------------------------------
   3.1 Left Sidebar (Forest Green #214D3A)
   -------------------------------------------------------------------------- */
.sidebar-forest {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--color-forest-green);
    color: var(--color-warm-ivory);
    border-right: 1px solid rgba(197, 163, 90, 0.28);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    box-shadow: 4px 0 24px rgba(15, 36, 27, 0.16);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Eliminate all browser scrollbars from sidebar completely */
.sidebar-forest::-webkit-scrollbar,
.sidebar-forest *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Top Batak Heritage Stripe */
.sidebar-heritage-stripe {
    height: 5px;
    width: 100%;
    flex-shrink: 0;
    background: repeating-linear-gradient(
        90deg,
        var(--color-forest-green) 0px,
        var(--color-forest-green) 24px,
        var(--color-antique-gold) 24px,
        var(--color-antique-gold) 36px,
        var(--color-maroon) 36px,
        var(--color-maroon) 60px,
        var(--color-antique-gold) 60px,
        var(--color-antique-gold) 72px
    );
}

/* Brand Box in Sidebar */
.sidebar-brand-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.15rem 0.75rem;
    flex-shrink: 0;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-warm-ivory);
}

.brand-cross-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-antique-gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-brand-link:hover .brand-cross-icon {
    background: var(--color-antique-gold);
    color: var(--color-forest-deep);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-title-text {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--color-warm-ivory);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.brand-tagline-text {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Close button on sidebar (mobile only) */
.sidebar-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 163, 90, 0.3);
    color: var(--color-warm-ivory);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-close-btn:hover {
    background: var(--color-maroon);
    border-color: var(--color-maroon);
}

/* Sidebar Batak Divider */
.sidebar-batak-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.15rem 0.65rem;
    flex-shrink: 0;
}

.side-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 163, 90, 0.35), transparent);
}

.side-divider-symbol {
    color: var(--color-antique-gold);
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Scrollable Menu Items (Scrollbar Hidden) */
.sidebar-nav-scroll {
    flex: 1;
    padding: 0.15rem 0.85rem 0.6rem;
    overflow-y: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.sidebar-nav-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.nav-section-group {
    margin-bottom: 0.6rem;
}

.nav-section-heading {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 215, 171, 0.65);
    padding: 0 0.5rem;
    margin-bottom: 0.35rem;
}

.sidebar-menu-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    padding: 0.48rem 0.75rem;
    border-radius: var(--radius-sm);
    color: rgba(248, 244, 232, 0.88);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-link .link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-light);
    opacity: 0.85;
    transition: var(--transition);
}

.sidebar-link .link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link .link-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(197, 163, 90, 0.22);
    color: var(--color-gold-light);
    border: 1px solid rgba(197, 163, 90, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-link:hover {
    color: var(--color-gold-light);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.sidebar-link:hover .link-icon {
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-link.active {
    color: var(--color-gold-light);
    background: rgba(197, 163, 90, 0.18);
    font-weight: 700;
    border-left: 3px solid var(--color-antique-gold);
    box-shadow: inset 0 0 10px rgba(197, 163, 90, 0.08);
}

.sidebar-link.active .link-icon {
    color: var(--color-antique-gold);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Sidebar Bottom Controls Card (Beautified Language & Dark Mode UI)
   -------------------------------------------------------------------------- */
.sidebar-bottom-box {
    padding: 0.7rem 0.85rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 36, 27, 0.4);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-controls-card {
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(197, 163, 90, 0.25);
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.control-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.control-row-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold-light);
    opacity: 0.85;
}

.control-segmented-pill {
    display: flex;
    background: rgba(15, 36, 27, 0.65);
    border: 1px solid rgba(197, 163, 90, 0.24);
    padding: 3px;
    border-radius: 999px;
    gap: 3px;
}

.segment-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(248, 244, 232, 0.75);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-btn .segment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--color-gold-light);
}

.segment-btn:hover {
    color: var(--color-warm-ivory);
    background: rgba(255, 255, 255, 0.08);
}

.segment-btn.active {
    background: linear-gradient(135deg, var(--color-antique-gold) 0%, #D8BB76 100%);
    color: var(--color-forest-deep);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(197, 163, 90, 0.35);
}

.segment-btn.active .segment-icon {
    color: var(--color-forest-deep);
}

.sidebar-church-footnote {
    text-align: center;
    font-size: 0.64rem;
    color: rgba(232, 215, 171, 0.55);
    letter-spacing: 0.04em;
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   3.2 Main Content Wrapper (Right Side Area)
   -------------------------------------------------------------------------- */
.main-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-page);
    position: relative;
}

.main-site-content {
    flex: 1;
    width: 100%;
}

/* --------------------------------------------------------------------------
   3.3 Mobile Header Bar (Only visible on screens < 1024px)
   -------------------------------------------------------------------------- */
.mobile-top-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-forest-green);
    border-bottom: 1px solid rgba(197, 163, 90, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--mobile-header-height);
    padding: 0 1.25rem;
}

.mobile-menu-trigger {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 163, 90, 0.3);
    color: var(--color-warm-ivory);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-trigger:hover {
    background: var(--color-antique-gold);
    color: var(--color-forest-deep);
}

.mobile-theme-pill-group {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(197, 163, 90, 0.3);
    padding: 2px;
    border-radius: 999px;
    gap: 2px;
}

.mobile-theme-choice {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(248, 244, 232, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-theme-choice.active {
    background: var(--color-antique-gold);
    color: var(--color-forest-deep);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-warm-ivory);
}

.mobile-cross-badge {
    color: var(--color-gold-light);
}

.mobile-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Mobile Overlay Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 22, 18, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   4. Hero Section (Lake Toba Serene Visual + Spiritual Tone)
   -------------------------------------------------------------------------- */
.hero-heritage-section {
    position: relative;
    padding: 6.5rem 0 5.5rem;
    text-align: center;
    background-image: 
        linear-gradient(180deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 92%),
        var(--hero-bg-url);
    background-size: cover;
    background-position: center 30%;
    border-bottom: 1px solid var(--border-card);
    overflow: hidden;
}

.hero-ornament-corner {
    position: absolute;
    color: var(--color-antique-gold);
    opacity: 0.25;
    pointer-events: none;
}

.hero-ornament-corner.top-left {
    top: 24px;
    left: 24px;
}

.hero-ornament-corner.top-right {
    top: 24px;
    right: 24px;
}

.hero-content-box {
    position: relative;
    max-width: 820px;
    z-index: 2;
}

.hero-badge-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-gold-accent);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .hero-badge-capsule {
    background: rgba(21, 32, 26, 0.85);
}

.capsule-cross {
    color: var(--color-antique-gold);
}

.capsule-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-heading);
}

.hero-main-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    color: var(--color-forest-green);
    line-height: 1.12;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

[data-theme="dark"] .hero-main-title {
    color: var(--color-gold-light);
}

.hero-main-title span {
    color: var(--color-maroon);
}

[data-theme="dark"] .hero-main-title span {
    color: #D98C8C;
}

.hero-main-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    color: var(--color-antique-gold);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.hero-batak-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: var(--color-antique-gold);
    opacity: 0.5;
}

.divider-icon {
    color: var(--color-antique-gold);
    font-size: 0.9rem;
}

.hero-lead-description {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.25rem;
}

.hero-actions-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-forest-green);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--color-forest-dark);
    color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-forest-green);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border-gold-accent);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

[data-theme="dark"] .btn-hero-secondary {
    background: rgba(21, 32, 26, 0.8);
    color: var(--color-gold-light);
}

.btn-hero-secondary:hover {
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Card Materi Section (7 Cards Grid)
   -------------------------------------------------------------------------- */
.cards-materi-section {
    padding: 4.5rem 0 5.5rem;
}

.section-heading-centered {
    text-align: center;
    margin-bottom: 3.25rem;
}

.section-pre-title {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-antique-gold);
    font-weight: 800;
    display: block;
    margin-bottom: 0.35rem;
}

.section-main-title {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}

.heading-batak-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.accent-line {
    width: 45px;
    height: 1px;
    background: var(--color-antique-gold);
    opacity: 0.5;
}

.accent-symbol {
    color: var(--color-antique-gold);
    font-size: 0.8rem;
}

.section-sub-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.materi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.85rem;
}

.materi-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.1rem 1.85rem 1.85rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
}

.materi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-forest-green), var(--color-antique-gold), var(--color-maroon));
    opacity: 0.6;
    transition: var(--transition);
}

.card-batak-edge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(197, 163, 90, 0.12) 3px,
        rgba(197, 163, 90, 0.12) 6px
    );
    border-top-right-radius: 12px;
}

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

.materi-card:hover::before {
    opacity: 1;
    height: 4px;
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(33, 77, 58, 0.08);
    border: 1px solid rgba(197, 163, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-forest-green);
    transition: var(--transition);
}

[data-theme="dark"] .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-gold-light);
}

.materi-card:hover .card-icon-wrapper {
    background: var(--color-forest-green);
    color: var(--color-gold-light);
    transform: scale(1.06);
}

.card-lang-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(197, 163, 90, 0.18);
    color: var(--color-maroon);
    border: 1px solid rgba(197, 163, 90, 0.35);
}

[data-theme="dark"] .card-lang-tag {
    background: rgba(197, 163, 90, 0.15);
    color: var(--color-gold-light);
}

.card-item-title {
    font-size: 1.45rem;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.card-item-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-antique-gold);
    margin-bottom: 0.85rem;
}

.card-item-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 1.65rem;
    flex-grow: 1;
}

.card-read-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-forest-green);
    padding: 0.7rem 1.1rem;
    background: rgba(33, 77, 58, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    transition: var(--transition);
}

[data-theme="dark"] .card-read-link {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-gold-light);
}

.materi-card:hover .card-read-link {
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
    border-color: var(--color-forest-green);
}

.link-arrow {
    transition: transform 0.25s ease;
}

.materi-card:hover .link-arrow {
    transform: translateX(4px);
}

/* Spiritual Quotation Banner */
.spiritual-quote-banner {
    margin-top: 4.5rem;
    background: linear-gradient(135deg, var(--color-forest-green), var(--color-forest-dark));
    color: var(--color-warm-ivory);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-gold-accent);
}

.quote-batak-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(197, 163, 90, 0.03) 0px,
        rgba(197, 163, 90, 0.03) 20px,
        transparent 20px,
        transparent 40px
    );
    pointer-events: none;
}

.quote-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.quote-cross-icon {
    color: var(--color-gold-light);
    margin-bottom: 1.25rem;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-style: italic;
    color: var(--color-gold-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.quote-meaning {
    font-size: 1.05rem;
    color: rgba(248, 244, 232, 0.88);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.quote-source {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 244, 232, 0.65);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Halaman Membaca (Reading Page View)
   -------------------------------------------------------------------------- */
.reading-page-wrapper {
    padding: 2.5rem 0 5rem;
    min-height: 75vh;
}

.reading-container {
    max-width: 900px;
}

.reading-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.read-crumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-weight: 600;
}

.read-crumb-link:hover {
    color: var(--color-forest-green);
}

.read-crumb-sep {
    color: var(--color-antique-gold);
}

.read-crumb-current {
    color: var(--text-heading);
    font-weight: 700;
}

.reading-paper-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3.25rem;
    box-shadow: var(--shadow-paper);
    transition: var(--transition);
}

.paper-corner-batak {
    position: absolute;
    color: var(--color-antique-gold);
    opacity: 0.2;
    pointer-events: none;
}

.paper-corner-batak.top-left {
    top: 18px;
    left: 18px;
}

.paper-corner-batak.top-right {
    top: 18px;
    right: 18px;
}

.reading-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-card);
    margin-bottom: 2.5rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.font-size-controls {
    display: inline-flex;
    background: rgba(33, 77, 58, 0.06);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 2px;
}

[data-theme="dark"] .font-size-controls {
    background: rgba(255, 255, 255, 0.06);
}

.ctrl-btn {
    border: none;
    background: transparent;
    color: var(--text-body);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.ctrl-btn:hover {
    background: rgba(33, 77, 58, 0.12);
}

.ctrl-btn.active {
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
}

[data-theme="dark"] .ctrl-btn.active {
    background: var(--color-antique-gold);
    color: var(--color-forest-deep);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    background: rgba(33, 77, 58, 0.04);
    color: var(--text-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="dark"] .tool-action-btn {
    background: rgba(255, 255, 255, 0.04);
}

.tool-action-btn:hover,
.tool-action-btn.active {
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
    border-color: var(--color-forest-green);
}

[data-theme="dark"] .tool-action-btn:hover,
[data-theme="dark"] .tool-action-btn.active {
    background: var(--color-antique-gold);
    color: var(--color-forest-deep);
    border-color: var(--color-antique-gold);
}

.reading-notes-drawer {
    margin-bottom: 2rem;
    background: rgba(143, 168, 149, 0.12);
    border: 1px solid var(--border-gold-accent);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.notes-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.notes-close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.notes-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    background: var(--bg-surface);
    color: var(--text-body);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    margin-bottom: 0.75rem;
}

.notes-textarea:focus {
    border-color: var(--color-forest-green);
    box-shadow: 0 0 0 3px rgba(33, 77, 58, 0.12);
}

.notes-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-save-note {
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save-note:hover {
    background: var(--color-forest-dark);
}

.note-save-status {
    font-size: 0.82rem;
    color: var(--color-forest-green);
    font-weight: 600;
}

.reading-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.reading-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(33, 77, 58, 0.08);
    border: 1px solid var(--border-gold-accent);
    color: var(--color-forest-green);
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .reading-icon-badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-gold-light);
}

.reading-main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.reading-subtitle {
    font-size: 1.1rem;
    color: var(--color-antique-gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.reading-batak-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.reading-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.read-badge-item {
    background: rgba(33, 77, 58, 0.06);
    color: var(--color-forest-green);
    border: 1px solid var(--border-card);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

[data-theme="dark"] .read-badge-item {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-gold-light);
}

.reading-body {
    font-family: var(--font-reading);
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-body);
    transition: font-size 0.2s ease;
}

.reading-body.font-sm {
    font-size: 1rem;
    line-height: 1.75;
}
.reading-body.font-md {
    font-size: 1.125rem;
    line-height: 1.85;
}
.reading-body.font-lg {
    font-size: 1.3rem;
    line-height: 1.95;
}

.reading-lead-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-card);
}

.reading-lead-p {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.65;
}

.stage-info-card {
    background: rgba(143, 168, 149, 0.14);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 2.25rem;
    font-family: var(--font-sans);
}

.stage-icon {
    color: var(--color-forest-green);
    flex-shrink: 0;
}

[data-theme="dark"] .stage-icon {
    color: var(--color-gold-light);
}

.stage-details h4 {
    font-size: 0.98rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.stage-details p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.theological-reading-preview {
    margin-bottom: 2.5rem;
}

.preview-heading {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text-heading);
    margin-bottom: 0.85rem;
}

.theological-reading-preview p {
    margin-bottom: 1.25rem;
}

.reading-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-card);
    font-family: var(--font-sans);
}

.btn-read-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
    padding: 0.75rem 1.65rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
}

.btn-read-back:hover {
    background: var(--color-forest-dark);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-read-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: var(--color-forest-green);
    border: 1px solid var(--color-forest-green);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
}

[data-theme="dark"] .btn-read-admin {
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

.btn-read-admin:hover {
    background: var(--color-forest-green);
    color: var(--color-warm-ivory);
}

/* --------------------------------------------------------------------------
   7. Site Footer (Forest Green + Batak Geometric Accents)
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-forest-green);
    color: var(--color-warm-ivory);
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(197, 163, 90, 0.35);
}

.footer-top {
    padding: 4.5rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    gap: 3.5rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.footer-cross-badge {
    color: var(--color-gold-light);
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--color-warm-ivory);
}

.footer-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    font-weight: 600;
}

.footer-desc {
    color: rgba(248, 244, 232, 0.82);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 1.35rem;
    max-width: 440px;
}

.footer-batak-verse {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold-light);
    font-size: 0.95rem;
    border-left: 2px solid var(--color-antique-gold);
    padding-left: 0.85rem;
}

.footer-heading {
    font-family: var(--font-serif);
    color: var(--color-gold-light);
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    color: rgba(248, 244, 232, 0.78);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-gold-light);
    padding-left: 4px;
}

.footer-divider-container {
    padding: 0 1.5rem;
}

.footer-batak-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.5;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: var(--color-antique-gold);
}

.ornament-motif {
    color: var(--color-antique-gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: rgba(248, 244, 232, 0.65);
}

.footer-sub-credit {
    font-size: 0.78rem;
    color: var(--color-gold-light);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   8. Auth (Login) & Admin Pages
   -------------------------------------------------------------------------- */
.auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-gold-accent);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-hover);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
}

.auth-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-body);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    background: var(--bg-surface);
    color: var(--text-body);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-forest-green);
    box-shadow: 0 0 0 3px rgba(33, 77, 58, 0.15);
}

.demo-credentials-box {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(197, 163, 90, 0.12);
    border: 1px dashed var(--color-antique-gold);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-body);
}

/* Admin Dashboard Section */
.admin-dashboard-section {
    padding: 3.5rem 0 5rem;
}

.admin-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-antique-gold);
}

.stat-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

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

[data-theme="dark"] .stat-number {
    color: var(--color-gold-light);
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-card);
    font-size: 0.92rem;
}

.admin-table th {
    background: rgba(33, 77, 58, 0.05);
    font-weight: 700;
    color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   9. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .mobile-top-header {
        display: block;
    }

    .sidebar-forest {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 290px;
        max-width: 85vw;
        z-index: 1200;
        transform: translateX(-100%);
        box-shadow: 8px 0 35px rgba(0, 0, 0, 0.4);
    }

    .sidebar-forest.is-open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: inline-flex;
    }

    .sidebar-backdrop {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-heritage-section {
        padding: 4.5rem 0 3.5rem;
    }
    .hero-ornament-corner {
        display: none;
    }
    .materi-grid {
        grid-template-columns: 1fr;
    }
    .reading-paper-card {
        padding: 2.5rem 1.5rem;
    }
    .paper-corner-batak {
        display: none;
    }
    .reading-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   10. STANDALONE ADMIN PANEL CMS (MODERN BATAK HERITAGE)
   ========================================================================== */

.hkbp-admin-body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Admin Left Sidebar --- */
.admin-sidebar {
    width: 275px;
    flex-shrink: 0;
    background-color: #17382A;
    color: #F8F4E8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    border-right: 1px solid rgba(197, 163, 90, 0.25);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .admin-sidebar {
    background-color: #0F2018;
    border-right-color: rgba(197, 163, 90, 0.18);
}

.admin-sidebar-brand {
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-brand-symbol {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(197, 163, 90, 0.25), rgba(197, 163, 90, 0.08));
    border: 1px solid rgba(197, 163, 90, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-antique-gold);
    flex-shrink: 0;
}

.admin-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-brand-church {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #F8F4E8;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.admin-brand-cms {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-antique-gold);
    margin-top: 2px;
}

.admin-ulos-divider {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #7A3434 0%, #C5A35A 50%, #214D3A 100%);
}

.admin-nav-menu {
    flex: 1;
    padding: 1.25rem 0.85rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(248, 244, 232, 0.45);
    padding: 0.5rem 0.75rem 0.25rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: rgba(248, 244, 232, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateX(3px);
}

.admin-nav-item.active {
    background: linear-gradient(90deg, rgba(197, 163, 90, 0.25), rgba(197, 163, 90, 0.08));
    color: #FFFFFF;
    font-weight: 600;
    border-left: 3px solid var(--color-antique-gold);
}

.admin-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-antique-gold);
    flex-shrink: 0;
}

.admin-ext-pill {
    font-size: 0.62rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(248, 244, 232, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.admin-nav-logout {
    color: #FCA5A5;
    margin-top: 0.5rem;
}

.admin-nav-logout:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.admin-sidebar-footer {
    padding: 1rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-antique-gold);
    color: #17382A;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    font-size: 0.65rem;
    color: var(--color-gold-light);
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* --- Admin Mobile Header --- */
.admin-mobile-header {
    display: none;
    height: 60px;
    background-color: #17382A;
    color: #FFFFFF;
    padding: 0 1.25rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 110;
    border-bottom: 2px solid var(--color-antique-gold);
}

.admin-mobile-menu-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.admin-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-mobile-brand .admin-brand-icon {
    color: var(--color-antique-gold);
}

.admin-mobile-brand .admin-brand-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-mobile-web-link {
    color: var(--color-antique-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 95;
    backdrop-filter: blur(2px);
}

.admin-sidebar-backdrop.show {
    display: block;
}

/* --- Admin Main Area --- */
.admin-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-primary);
}

.admin-topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 90;
}

.admin-topbar-title-block {
    display: flex;
    flex-direction: column;
}

.admin-page-crumb {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-antique-gold);
}

.admin-page-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.25;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-theme-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.admin-theme-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-theme-btn.active {
    background-color: var(--color-forest-green);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(33, 77, 58, 0.25);
}

[data-theme="dark"] .admin-theme-btn.active {
    background-color: var(--color-antique-gold);
    color: #17382A;
}

.admin-btn-view-site {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    background: var(--card-bg);
    transition: all 0.2s ease;
}

.admin-btn-view-site:hover {
    border-color: var(--color-antique-gold);
    color: var(--color-forest-green);
    background: rgba(197, 163, 90, 0.08);
}

.admin-main-content {
    padding: 2rem;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.admin-footer {
    padding: 1.25rem 2rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Admin Flash Alerts --- */
.admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.admin-alert-success {
    background-color: rgba(33, 77, 58, 0.08);
    border: 1px solid rgba(33, 77, 58, 0.25);
    color: #17382A;
}

[data-theme="dark"] .admin-alert-success {
    background-color: rgba(143, 168, 149, 0.15);
    border-color: rgba(143, 168, 149, 0.3);
    color: #A3E635;
}

.admin-alert-danger {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #991B1B;
}

[data-theme="dark"] .admin-alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
}

/* --- Admin Welcome Banner --- */
.admin-welcome-banner {
    background: linear-gradient(135deg, #1A4232 0%, #112B20 100%);
    color: #FFFFFF;
    border-radius: 14px;
    padding: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(197, 163, 90, 0.35);
    box-shadow: 0 10px 28px rgba(23, 56, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.admin-welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background: radial-gradient(circle at right, rgba(197, 163, 90, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.admin-welcome-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #F8F4E8;
    margin-bottom: 0.5rem;
}

.admin-welcome-text p {
    font-size: 0.95rem;
    color: rgba(248, 244, 232, 0.85);
    max-width: 650px;
    line-height: 1.6;
    margin: 0;
}

.admin-welcome-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* --- Admin Buttons --- */
.admin-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-forest-green), #183B2C);
    color: #FFFFFF;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(197, 163, 90, 0.4);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33, 77, 58, 0.25);
    transition: all 0.2s ease;
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(33, 77, 58, 0.35);
    border-color: var(--color-antique-gold);
    color: #FFFFFF;
}

.admin-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.admin-btn-large {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
}

/* --- Stats Grid --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-count {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin: 2px 0 4px;
}

.stat-link {
    font-size: 0.78rem;
    color: var(--color-forest-green);
    font-weight: 600;
    text-decoration: none;
}

.stat-link:hover {
    color: var(--color-antique-gold);
    text-decoration: underline;
}

.stat-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Admin Panel Card --- */
.admin-panel-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--card-border);
}

.panel-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-card-action {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-forest-green);
    text-decoration: none;
}

.panel-card-action:hover {
    color: var(--color-antique-gold);
    text-decoration: underline;
}

/* --- Two Columns Grid --- */
.admin-columns-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
}

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

.admin-data-table th {
    padding: 0.75rem 1rem;
    background: rgba(33, 77, 58, 0.04);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--card-border);
    text-align: left;
}

[data-theme="dark"] .admin-data-table th {
    background: rgba(255, 255, 255, 0.03);
}

.admin-data-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle;
}

.admin-data-table tr:hover td {
    background-color: rgba(33, 77, 58, 0.02);
}

.admin-code-tag {
    background: rgba(33, 77, 58, 0.08);
    color: var(--color-forest-green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: monospace;
}

[data-theme="dark"] .admin-code-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-gold-light);
}

/* --- Badges --- */
.badge-status-active, .badge-status-published {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #16A34A;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-status-draft {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.15);
    color: #CA8A04;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-cat-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(197, 163, 90, 0.15);
    color: #8C6D23;
    font-size: 0.78rem;
    font-weight: 600;
}

[data-theme="dark"] .badge-cat-tag {
    color: var(--color-gold-light);
}

/* --- Recent Materi List --- */
.recent-materi-list {
    display: flex;
    flex-direction: column;
}

.recent-materi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
}

.recent-materi-item:last-child {
    border-bottom: none;
}

.recent-materi-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-cat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-antique-gold);
    letter-spacing: 0.06em;
}

.recent-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recent-batak {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.btn-action-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-forest-green);
    background: rgba(33, 77, 58, 0.08);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-action-edit:hover {
    background: var(--color-forest-green);
    color: #FFFFFF;
}

/* --- System Env Grid --- */
.system-env-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.env-item {
    padding: 0.85rem;
    background: rgba(33, 77, 58, 0.04);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[data-theme="dark"] .env-item {
    background: rgba(255, 255, 255, 0.03);
}

.env-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.env-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* --- Settings Form --- */
.admin-page-header-row {
    margin-bottom: 2rem;
}

.admin-section-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-antique-gold);
    margin-bottom: 0.25rem;
}

.admin-section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.admin-section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 750px;
    line-height: 1.5;
    margin: 0;
}

.admin-settings-card {
    border-left: 4px solid var(--color-antique-gold);
}

.settings-group-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(197, 163, 90, 0.15);
    color: #8C6D23;
}

[data-theme="dark"] .settings-group-badge {
    color: var(--color-gold-light);
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field-group.full-width {
    grid-column: 1 / -1;
}

.admin-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.label-req {
    color: #EF4444;
    font-weight: 700;
}

.admin-form-input, .admin-form-textarea, .admin-select {
    width: 100%;
    border: 1.5px solid var(--card-border);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.92rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form-input:focus, .admin-form-textarea:focus, .admin-select:focus {
    outline: none;
    border-color: var(--color-antique-gold);
    box-shadow: 0 0 0 3px rgba(197, 163, 90, 0.2);
}

.admin-form-textarea {
    resize: vertical;
    line-height: 1.6;
}

.admin-field-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* --- Sticky Submit Bar --- */
.admin-submit-bar {
    position: sticky;
    bottom: 1.5rem;
    z-index: 85;
    background-color: var(--card-bg);
    border: 1px solid var(--color-antique-gold);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 2rem;
}

.submit-bar-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.submit-bar-info svg {
    color: var(--color-forest-green);
    flex-shrink: 0;
}

/* --- Materi Management View Styles --- */
.admin-toolbar-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.admin-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 220px;
}

.filter-search-field {
    flex: 1;
    min-width: 260px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-search-input {
    width: 100%;
    border: 1.5px solid var(--card-border);
    border-radius: 8px;
    padding: 0.65rem 2.5rem 0.65rem 0.85rem;
    font-size: 0.9rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.admin-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--color-antique-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.btn-filter-reset {
    font-size: 0.82rem;
    color: #EF4444;
    text-decoration: underline;
    padding-bottom: 0.65rem;
    font-weight: 600;
}

.materi-table-title {
    font-size: 0.95rem;
    color: var(--text-heading);
}

.materi-table-batak {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--color-antique-gold);
    font-style: italic;
    margin-top: 2px;
}

.table-action-btns {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.btn-table-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-forest-green);
    background: rgba(33, 77, 58, 0.08);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-table-edit:hover {
    background: var(--color-forest-green);
    color: #FFFFFF;
}

.btn-table-delete {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-table-delete:hover {
    background: #EF4444;
    color: #FFFFFF;
}

.admin-empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.empty-icon {
    color: var(--color-antique-gold);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.admin-empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.admin-empty-state p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Form Two Columns --- */
.admin-form-two-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* --- Categories List Grid --- */
.admin-categories-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.category-item-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.cat-order-pill {
    background: var(--color-forest-green);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.cat-count-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(197, 163, 90, 0.15);
    color: #8C6D23;
}

[data-theme="dark"] .cat-count-badge {
    color: var(--color-gold-light);
}

.cat-view-materi-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-forest-green);
    text-decoration: none;
}

.cat-view-materi-link:hover {
    color: var(--color-antique-gold);
    text-decoration: underline;
}

/* --- Responsive Media Queries for Admin --- */
@media (max-width: 1024px) {
    .admin-mobile-header {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 120;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

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

    .admin-form-two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        padding: 0 1.25rem;
    }

    .admin-main-content {
        padding: 1.25rem;
    }

    .admin-welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .admin-welcome-actions {
        width: 100%;
        flex-direction: column;
    }

    .admin-welcome-actions .admin-btn-primary,
    .admin-welcome-actions .admin-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-submit-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .admin-submit-bar .admin-btn-large {
        width: 100%;
        justify-content: center;
    }

    .admin-categories-list-grid {
        grid-template-columns: 1fr;
    }
}

