:root {
    /* Soft, calm healthcare sage & slate-teal palette */
    --bengel-green: #2b7a62;
    --bengel-green-dark: #215e4b;
    --bengel-green-light: #edf5f2;
    --bengel-green-border: #c8dfd7;
    --bengel-dark: #1e293b;
    --bengel-sidebar-bg: #1e293b;
    --bengel-sidebar-hover: #29364d;
    --bengel-sidebar-active: #2b7a62;
    --bengel-body-bg: #f8fafc;
    --sidebar-width: 280px;

    /* Override Bootstrap's default sharp green (.text-success, .bg-success, etc.) */
    --bs-success: #2b7a62;
    --bs-success-rgb: 43, 122, 98;
    --bs-success-text-emphasis: #1b4f3f;
    --bs-success-bg-subtle: #e6f2ee;
    --bs-success-border-subtle: #c2ded5;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bengel-body-bg);
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .text-dark {
    color: #1e293b !important;
}

/* Top Navbar */
.bengel-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    z-index: 1030;
}

.navbar-brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* App Shell Layout */
.app-wrapper {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 65px);
}

/* Left Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bengel-sidebar-bg);
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
    padding: 1.25rem 1.25rem 0.5rem;
}

.sidebar-nav .nav-link {
    color: #cbd5e1;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    font-size: 0.93rem;
    border-radius: 0.5rem;
    margin: 0.12rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.18s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--bengel-sidebar-hover);
    color: #f8fafc;
}

.sidebar-nav .nav-link.active {
    background-color: var(--bengel-sidebar-active);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.sidebar-nav .nav-link .chevron-icon {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
    opacity: 0.7;
}

.sidebar-nav .nav-link[aria-expanded="true"] .chevron-icon {
    transform: rotate(90deg);
}

/* Sidebar Child Links */
.sidebar-subnav {
    list-style: none;
    padding-left: 0;
    margin: 0.2rem 0.75rem 0.5rem 1.65rem;
    border-left: 2px solid rgba(148, 163, 184, 0.22);
}

.sidebar-subnav .subnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.9rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.86rem;
    border-radius: 0 0.4rem 0.4rem 0;
    transition: all 0.15s ease;
}

.sidebar-subnav .subnav-link:hover {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-subnav .subnav-link.active {
    color: #6ee7b7;
    font-weight: 600;
    background-color: rgba(43, 122, 98, 0.2);
    border-left: 2px solid #52b798;
    margin-left: -2px;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

@media (max-width: 991.98px) {
    .app-content {
        padding: 1.25rem;
    }
}

/* Custom Brand Buttons & Badges */
.btn-bengel {
    background-color: var(--bengel-green);
    border-color: var(--bengel-green);
    color: #ffffff;
    font-weight: 600;
}

.btn-bengel:hover, .btn-bengel:focus {
    background-color: var(--bengel-green-dark);
    border-color: var(--bengel-green-dark);
    color: #ffffff;
}

.btn-outline-bengel {
    color: var(--bengel-green);
    border-color: #9ec5b8;
    font-weight: 600;
}

.btn-outline-bengel:hover {
    background-color: var(--bengel-green);
    border-color: var(--bengel-green);
    color: #ffffff;
}

.badge-bengel {
    background-color: var(--bengel-green-light);
    color: var(--bengel-green-dark);
    border: 1px solid var(--bengel-green-border);
    font-weight: 600;
}

/* Form Focus State */
.form-control:focus, .form-select:focus {
    border-color: #7eb8a5;
    box-shadow: 0 0 0 0.2rem rgba(43, 122, 98, 0.15);
}

/* Cards */
.content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.content-card.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(125deg, #1e293b 0%, #244743 60%, #2b6756 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.hero-banner h1 {
    color: #ffffff !important;
}

/* Video Container */
.video-frame-wrapper {
    position: relative;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.video-frame-wrapper iframe,
.video-frame-wrapper video {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.app-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.1rem 2rem;
    color: #64748b;
    font-size: 0.875rem;
}
