/* ================================================================
   BIBLIANDO — Design System v2.0
   Modern, professional, harmonious UI with white-label support
   ================================================================ */

/* Bible character descriptions */
.character-description { line-height: 1.7; color: #334155; }
.character-description strong { color: #1e293b; font-weight: 600; }
.bible-ref { color: #2563eb; text-decoration: none; font-weight: 500; }
.bible-ref:hover { text-decoration: underline; }

/* --- CSS Variables (White Label + Design Tokens) --- */
:root {
    /* White label colors (overridden by tenant) */
    --wl-primary: #2563eb;
    --wl-secondary: #1e40af;
    --wl-font-heading: 'Inter', sans-serif;
    --wl-font-body: 'Inter', sans-serif;
    --wl-bg-main: #f1f5f9;
    --wl-bg-card: #ffffff;
    --wl-bg-sidebar: #1e293b;
    --wl-text-main: #1e293b;
    --wl-text-muted: #64748b;
    --wl-text-sidebar: #cbd5e1;
    --wl-btn-text: #ffffff;
    --wl-gradient-angle: 135deg;

    /* Design tokens */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 64px;
    --topbar-height: 60px;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    --wl-bg-main: #0f172a;
    --wl-bg-card: #1e293b;
    --wl-bg-sidebar: #0f172a;
    --wl-text-main: #e2e8f0;
    --wl-text-muted: #94a3b8;
    --wl-text-sidebar: #94a3b8;
}

/* --- Base --- */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--wl-font-body);
    background-color: var(--wl-bg-main);
    color: var(--wl-text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wl-font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- App Layout (Sidebar + Topbar) --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--wl-bg-sidebar);
    color: var(--wl-text-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform var(--transition-base);
    overflow-y: auto;
}

.app-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Sidebar Brand --- */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: var(--topbar-height);
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.sidebar-logo-default {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(var(--wl-gradient-angle), var(--wl-primary), var(--wl-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.sidebar-brand-text {
    font-family: var(--wl-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Sidebar Navigation --- */
.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--wl-text-sidebar);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.sidebar-nav-item i {
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar-nav-item.active {
    background: var(--wl-primary);
    color: var(--wl-btn-text);
    font-weight: 600;
}

/* --- Sidebar Footer --- */
.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: transform var(--transition-fast);
}

.sidebar-premium-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.sidebar-credits {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    padding: 4px;
}

/* --- Collapsible Sidebar --- */
.sidebar-collapse-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: var(--sidebar-width);
    width: 24px;
    height: 48px;
    border-radius: 0 8px 8px 0;
    background: var(--wl-bg-card);
    border: 1px solid rgba(0,0,0,0.1);
    border-left: none;
    color: var(--wl-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1045;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: left var(--transition-base), background var(--transition-fast), color var(--transition-fast);
}

.sidebar-collapse-btn:hover {
    background: var(--wl-primary);
    color: #fff;
}

.sidebar-collapse-btn.collapsed {
    left: var(--sidebar-collapsed-width);
}

.app-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.app-sidebar.collapsed .sidebar-brand-text,
.app-sidebar.collapsed .sidebar-nav-item span,
.app-sidebar.collapsed .sidebar-premium-btn span,
.app-sidebar.collapsed .sidebar-credits {
    display: none;
}

.app-sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 18px 0;
}

.app-sidebar.collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 10px 0;
}

.app-sidebar.collapsed .sidebar-premium-btn {
    font-size: 0;
    padding: 10px;
}

.app-sidebar.collapsed .sidebar-premium-btn i {
    font-size: 0.9rem;
}

.app-sidebar.collapsed ~ .app-main {
    margin-left: var(--sidebar-collapsed-width);
}

/* Tooltip for collapsed sidebar icons */
.app-sidebar.collapsed .sidebar-nav-item {
    position: relative;
}
.app-sidebar.collapsed .sidebar-nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    margin-left: 12px;
    padding: 4px 10px;
    background: var(--wl-bg-card);
    color: var(--wl-text-main);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 1050;
}
.app-sidebar.collapsed .sidebar-nav-item:hover::after {
    opacity: 1;
}

/* --- Topbar --- */
.app-topbar {
    height: var(--topbar-height);
    background: var(--wl-bg-card);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .app-topbar {
    border-bottom-color: rgba(255,255,255,0.06);
}

.topbar-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--wl-text-main);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.topbar-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 400px;
    position: relative;
}

.topbar-search i {
    position: absolute;
    left: 12px;
    color: var(--wl-text-muted);
    font-size: 0.9rem;
}

.topbar-search .form-control {
    padding-left: 34px;
    border-radius: var(--radius-lg);
    background: var(--wl-bg-main);
    border: 1px solid transparent;
}

.topbar-search .form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--wl-primary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    color: var(--wl-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.topbar-icon:hover {
    background: rgba(0,0,0,0.05);
    color: var(--wl-primary);
}

.topbar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.topbar-xp {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wl-text-muted);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--wl-text-main);
    transition: background var(--transition-fast);
}

.topbar-user:hover {
    background: rgba(0,0,0,0.05);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(var(--wl-gradient-angle), var(--wl-primary), var(--wl-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.topbar-username {
    font-weight: 500;
    font-size: 0.875rem;
}

/* --- Flash Messages --- */
.app-flash {
    padding: 16px 20px 0;
}

/* --- Content Area --- */
.app-content {
    flex: 1;
    background: var(--wl-bg-main);
}

/* --- Cards --- */
.card {
    background: var(--wl-bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-weight: 600;
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

[data-theme="dark"] .card {
    border-color: rgba(255,255,255,0.06);
}

/* --- Buttons --- */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--wl-primary);
    border-color: var(--wl-primary);
}

.btn-primary:hover {
    background: var(--wl-secondary);
    border-color: var(--wl-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    color: var(--wl-primary);
    border-color: var(--wl-primary);
}

.btn-outline-primary:hover {
    background: var(--wl-primary);
    border-color: var(--wl-primary);
}

/* --- Forms --- */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border-color: rgba(0,0,0,0.1);
    padding: 8px 12px;
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--wl-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: var(--wl-text-main);
}

/* --- Badges --- */
.badge {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

/* --- Tables --- */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wl-text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 12px 16px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.875rem;
}

[data-theme="dark"] .table thead th {
    border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .table td {
    border-bottom-color: rgba(255,255,255,0.04);
}

/* ================================================================
   SUPER ADMIN LAYOUT
   ================================================================ */
.super-admin-layout {
    display: flex;
    min-height: 100vh;
    background: #0f172a;
}

.sa-sidebar {
    width: 240px;
    background: #1e1b4b;
    color: #c7d2fe;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow-y: auto;
}

.sa-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 60px;
}

.sa-sidebar-brand i {
    font-size: 1.5rem;
    color: #818cf8;
}

.sa-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sa-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.sa-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sa-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    color: #c7d2fe;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    transition: all 150ms;
    white-space: nowrap;
}

.sa-nav-item i {
    font-size: 1.05rem;
    width: 18px;
    text-align: center;
}

.sa-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sa-nav-item.active {
    background: #4f46e5;
    color: #fff;
}

.sa-sidebar-footer {
    padding: 10px 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sa-main {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sa-topbar {
    height: 60px;
    background: #1e1b4b;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.sa-topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.sa-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sa-topbar-right .text-muted {
    color: #94a3b8 !important;
}

.sa-content {
    flex: 1;
    padding: 24px;
    background: #0f172a;
    color: #e2e8f0;
}

.sa-content .card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

.sa-content .card-header {
    border-bottom-color: rgba(255,255,255,0.06);
}

.sa-content .table thead th {
    color: #94a3b8;
    border-bottom-color: rgba(255,255,255,0.08);
}

.sa-content .table td {
    border-bottom-color: rgba(255,255,255,0.04);
}

/* ================================================================
   IMMERSIVE BIBLE THEMES
   ================================================================ */
.immersive-bg {
    position: relative;
    min-height: 100vh;
}

.immersive-bg::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    transition: background var(--transition-slow);
}

/* Book themes */
.theme-genesis::before { background: linear-gradient(180deg, #1e3a5f 0%, #2d5a8f 50%, #6b8cae 100%); }
.theme-exodus::before { background: linear-gradient(180deg, #d4a574 0%, #c4956a 30%, #e8c89e 100%); }
.theme-leviticus::before { background: linear-gradient(180deg, #8b4513 0%, #a0522d 50%, #d2691e 100%); }
.theme-numbers::before { background: linear-gradient(180deg, #cd853f 0%, #daa520 50%, #f0e68c 100%); }
.theme-deuteronomy::before { background: linear-gradient(180deg, #9b8b6f 0%, #b8a888 50%, #d4c5a9 100%); }
.theme-joshua::before { background: linear-gradient(180deg, #6b8e23 0%, #8fbc8f 50%, #bdb76b 100%); }
.theme-judges::before { background: linear-gradient(180deg, #708090 0%, #778899 50%, #b0c4de 100%); }
.theme-ruth::before { background: linear-gradient(180deg, #f4a460 0%, #deb887 50%, #f5deb3 100%); }
.theme-samuel::before { background: linear-gradient(180deg, #556b2f 0%, #6b8e23 50%, #9acd32 100%); }
.theme-kings::before { background: linear-gradient(180deg, #b8860b 0%, #daa520 50%, #ffd700 100%); }
.theme-chronicles::before { background: linear-gradient(180deg, #8b7355 0%, #a0826d 50%, #c4a882 100%); }
.theme-ezra::before { background: linear-gradient(180deg, #7b68ee 0%, #6a5acd 50%, #483d8b 100%); }
.theme-nehemiah::before { background: linear-gradient(180deg, #4682b4 0%, #5f9ea0 50%, #87ceeb 100%); }
.theme-esther::before { background: linear-gradient(180deg, #c71585 0%, #db7093 50%, #ffb6c1 100%); }
.theme-job::before { background: linear-gradient(180deg, #2f4f4f 0%, #4a7070 50%, #6b8e8e 100%); }
.theme-psalms::before { background: linear-gradient(180deg, #228b22 0%, #3cb371 50%, #90ee90 100%); }
.theme-proverbs::before { background: linear-gradient(180deg, #b8860b 0%, #d4a017 50%, #f0d060 100%); }
.theme-ecclesiastes::before { background: linear-gradient(180deg, #696969 0%, #808080 50%, #a9a9a9 100%); }
.theme-songs::before { background: linear-gradient(180deg, #ff69b4 0%, #ff1493 50%, #ffb6c1 100%); }
.theme-isaiah::before { background: linear-gradient(180deg, #4169e1 0%, #6495ed 50%, #87cefa 100%); }
.theme-jeremiah::before { background: linear-gradient(180deg, #8b0000 0%, #b22222 50%, #cd5c5c 100%); }
.theme-lamentations::before { background: linear-gradient(180deg, #191970 0%, #2f2f6f 50%, #4848a0 100%); }
.theme-ezekiel::before { background: linear-gradient(180deg, #9932cc 0%, #ba55d3 50%, #dda0dd 100%); }
.theme-daniel::before { background: linear-gradient(180deg, #ffd700 0%, #ff8c00 50%, #ff4500 100%); }
.theme-hosea::before { background: linear-gradient(180deg, #ff6347 0%, #ff7f50 50%, #ffa07a 100%); }
.theme-joel::before { background: linear-gradient(180deg, #dc143c 0%, #ff1744 50%, #ff6b6b 100%); }
.theme-amos::before { background: linear-gradient(180deg, #8b7355 0%, #a0926b 50%, #c4b496 100%); }
.theme-obadiah::before { background: linear-gradient(180deg, #a0522d 0%, #bc8f8f 50%, #deb887 100%); }
.theme-jonah::before { background: linear-gradient(180deg, #006994 0%, #1e90ff 50%, #87ceeb 100%); }
.theme-micah::before { background: linear-gradient(180deg, #556b2f 0%, #6b8e23 50%, #8fbc8f 100%); }
.theme-nahum::before { background: linear-gradient(180deg, #8b0000 0%, #a52a2a 50%, #cd5c5c 100%); }
.theme-habakkuk::before { background: linear-gradient(180deg, #4b0082 0%, #663399 50%, #9370db 100%); }
.theme-zephaniah::before { background: linear-gradient(180deg, #708090 0%, #778899 50%, #b0c4de 100%); }
.theme-haggai::before { background: linear-gradient(180deg, #cd853f 0%, #d2b48c 50%, #f5deb3 100%); }
.theme-zechariah::before { background: linear-gradient(180deg, #2e8b57 0%, #3cb371 50%, #98fb98 100%); }
.theme-malachi::before { background: linear-gradient(180deg, #ff8c00 0%, #ffa500 50%, #ffd700 100%); }
.theme-matthew::before { background: linear-gradient(180deg, #4682b4 0%, #5f9ea0 50%, #87ceeb 100%); }
.theme-mark::before { background: linear-gradient(180deg, #2e8b57 0%, #3cb371 50%, #90ee90 100%); }
.theme-luke::before { background: linear-gradient(180deg, #6a5acd 0%, #7b68ee 50%, #9370db 100%); }
.theme-john::before { background: linear-gradient(180deg, #ffd700 0%, #ffec8b 50%, #fff8dc 100%); }
.theme-acts::before { background: linear-gradient(180deg, #ff4500 0%, #ff6347 50%, #ffa07a 100%); }
.theme-romans::before { background: linear-gradient(180deg, #191970 0%, #232b8f 50%, #4040a0 100%); }
.theme-corinthians::before { background: linear-gradient(180deg, #8b4513 0%, #a0522d 50%, #d2691e 100%); }
.theme-galatians::before { background: linear-gradient(180deg, #228b22 0%, #2e8b57 50%, #3cb371 100%); }
.theme-ephesians::before { background: linear-gradient(180deg, #4169e1 0%, #4682b4 50%, #6495ed 100%); }
.theme-philippians::before { background: linear-gradient(180deg, #ff1493 0%, #ff69b4 50%, #ffb6c1 100%); }
.theme-colossians::before { background: linear-gradient(180deg, #2f4f4f 0%, #4a7070 50%, #6b8e8e 100%); }
.theme-thessalonians::before { background: linear-gradient(180deg, #daa520 0%, #f0e68c 50%, #fffacd 100%); }
.theme-timothy::before { background: linear-gradient(180deg, #556b2f 0%, #6b8e23 50%, #9acd32 100%); }
.theme-titus::before { background: linear-gradient(180deg, #bc8f8f 0%, #cd853f 50%, #deb887 100%); }
.theme-philemon::before { background: linear-gradient(180deg, #9370db 0%, #ba55d3 50%, #dda0dd 100%); }
.theme-hebrews::before { background: linear-gradient(180deg, #800000 0%, #8b0000 50%, #b22222 100%); }
.theme-james::before { background: linear-gradient(180deg, #b8860b 0%, #d4a017 50%, #f0d060 100%); }
.theme-peter::before { background: linear-gradient(180deg, #4682b4 0%, #5f9ea0 50%, #87ceeb 100%); }
.theme-john-epistles::before { background: linear-gradient(180deg, #ffd700 0%, #ffec8b 50%, #fff8dc 100%); }
.theme-jude::before { background: linear-gradient(180deg, #4b0082 0%, #663399 50%, #9370db 100%); }
.theme-revelation::before { background: linear-gradient(180deg, #4b0082 0%, #800080 50%, #9932cc 100%); }

/* Passage-specific themes */
.theme-red-sea::before { background: linear-gradient(180deg, #006994 0%, #0077be 40%, #00a8cc 100%); }
.theme-mountain::before { background: linear-gradient(180deg, #4a4a4a 0%, #6b6b6b 40%, #a0a0a0 100%); }
.theme-desert::before { background: linear-gradient(180deg, #d4a574 0%, #e8c89e 40%, #f5e6c8 100%); }
.theme-garden::before { background: linear-gradient(180deg, #228b22 0%, #3cb371 40%, #90ee90 100%); }
.theme-temple::before { background: linear-gradient(180deg, #daa520 0%, #f0e68c 40%, #fffacd 100%); }
.theme-night::before { background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 40%, #2c3e50 100%); }
.theme-dawn::before { background: linear-gradient(180deg, #ff9a8b 0%, #ff6a88 40%, #ff99ac 100%); }
.theme-storm::before { background: linear-gradient(180deg, #2c3e50 0%, #34495e 40%, #5d6d7e 100%); }

/* Immersive content readability overlay */
.immersive-bg .immersive-content {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .immersive-bg .immersive-content {
    background: rgba(15,23,42,0.92);
}

/* Theme badge */
.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(8px);
}

/* ================================================================
   COMPONENTS
   ================================================================ */

/* --- Verse Text --- */
.verse-text {
    margin-bottom: 0.5rem;
    cursor: pointer;
    line-height: 1.8;
    font-size: 1.05rem;
}

.verse-text:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-sm);
}

.verse-content {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

/* --- Focus Mode --- */
.focus-mode {
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
}

.focus-mode .navbar,
.focus-mode .app-sidebar,
.focus-mode .app-topbar {
    display: none;
}

/* --- Pulpit Mode --- */
.pulpit-mode {
    background: #000;
    color: #fff;
}

.pulpit-mode .navbar,
.pulpit-mode .app-sidebar,
.pulpit-mode .app-topbar {
    display: none;
}

/* --- Sound Mixer --- */
.mixer-channel {
    background: var(--wl-bg-main);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
}

.mixer-channel .volume-slider {
    width: 100%;
}

/* --- Chat --- */
.chat-message {
    max-width: 80%;
    word-wrap: break-word;
}

/* --- Achievement Card --- */
.achievement-card {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

.achievement-card.earned {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: white;
}

.achievement-card.locked {
    background: var(--wl-bg-main);
    opacity: 0.6;
}

/* --- Pomodoro Timer --- */
.pomodoro-timer {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--wl-font-heading);
}

/* --- Sermon Editor --- */
.sermon-editor textarea {
    border: none;
    outline: none;
    box-shadow: none;
    resize: none;
}

.sermon-editor textarea:focus {
    box-shadow: none;
}

/* --- Loading Overlay --- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* --- XP Badge --- */
.xp-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.app-content {
    animation: fadeIn var(--transition-base);
}

.card {
    animation: slideUp var(--transition-base);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.open {
        transform: translateX(0);
    }
    .app-main {
        margin-left: 0;
    }
    .sidebar-collapse-btn {
        display: none;
    }
    .sa-sidebar {
        transform: translateX(-100%);
    }
    .sa-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .topbar-search {
        display: none;
    }
    .sidebar-brand-text {
        font-size: 1rem;
    }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.5rem; }
}

/* --- Dark mode overrides for Bootstrap components --- */
[data-theme="dark"] .bg-light { background-color: var(--wl-bg-card) !important; }
[data-theme="dark"] .text-dark { color: var(--wl-text-main) !important; }
[data-theme="dark"] .list-group-item {
    background-color: var(--wl-bg-card);
    color: var(--wl-text-main);
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .dropdown-menu {
    background-color: var(--wl-bg-card);
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .dropdown-item {
    color: var(--wl-text-main);
}
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .dropdown-divider {
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .modal-content {
    background-color: var(--wl-bg-card);
    color: var(--wl-text-main);
}
[data-theme="dark"] .text-muted {
    color: var(--wl-text-muted) !important;
}
[data-theme="dark"] .form-text {
    color: var(--wl-text-muted);
}

/* --- White Label: Apply primary color to Bootstrap --- */
.btn-primary {
    --bs-btn-bg: var(--wl-primary);
    --bs-btn-border-color: var(--wl-primary);
    --bs-btn-hover-bg: var(--wl-secondary);
    --bs-btn-hover-border-color: var(--wl-secondary);
    --bs-btn-active-bg: var(--wl-primary);
    --bs-btn-active-border-color: var(--wl-primary);
    --bs-btn-disabled-bg: var(--wl-primary);
    --bs-btn-disabled-border-color: var(--wl-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--wl-primary);
    --bs-btn-border-color: var(--wl-primary);
    --bs-btn-hover-bg: var(--wl-primary);
    --bs-btn-hover-border-color: var(--wl-primary);
    --bs-btn-active-bg: var(--wl-primary);
    --bs-btn-active-border-color: var(--wl-primary);
}

.text-primary { color: var(--wl-primary) !important; }
.bg-primary { background-color: var(--wl-primary) !important; }
.border-primary { border-color: var(--wl-primary) !important; }
.link-primary { color: var(--wl-primary) !important; }
.nav-link.active { color: var(--wl-primary) !important; }
.page-link { color: var(--wl-primary); }
.page-item.active .page-link {
    background-color: var(--wl-primary);
    border-color: var(--wl-primary);
}
.progress-bar { background-color: var(--wl-primary); }
.form-control:focus, .form-select:focus {
    border-color: var(--wl-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wl-primary) 15%, transparent);
}

/* ================================================================
   BIBLE — Immersive Reading Themes
   ================================================================ */
.immersive-bg {
    min-height: calc(100vh - var(--topbar-height));
    transition: background 0.6s ease;
    position: relative;
}
.immersive-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}
.immersive-content {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(37,99,235,0.1);
    color: var(--wl-primary);
}
.verse-text {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.15s;
}
.verse-text:hover {
    background: rgba(37,99,235,0.04);
    border-radius: 4px;
}

/* Book themes */
.theme-genesis { background: linear-gradient(135deg, #e0f2fe, #f0f9ff); }
.theme-genesis::before { background: radial-gradient(circle at 30% 20%, #7dd3fc, transparent 60%); }
.theme-exodus { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.theme-exodus::before { background: radial-gradient(circle at 50% 30%, #fbbf24, transparent 60%); }
.theme-leviticus { background: linear-gradient(135deg, #fef2f2, #fff7ed); }
.theme-leviticus::before { background: radial-gradient(circle at 40% 40%, #f87171, transparent 60%); }
.theme-numbers { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); }
.theme-numbers::before { background: radial-gradient(circle at 60% 20%, #34d399, transparent 60%); }
.theme-deuteronomy { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.theme-joshua { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.theme-judges { background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.theme-ruth { background: linear-gradient(135deg, #fdf4ff, #fae8ff); }
.theme-samuel { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.theme-kings { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.theme-chronicles { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.theme-ezra { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.theme-nehemiah { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.theme-esther { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.theme-job { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.theme-psalms { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.theme-psalms::before { background: radial-gradient(circle at 20% 80%, #4ade80, transparent 50%); }
.theme-proverbs { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.theme-ecclesiastes { background: linear-gradient(135deg, #f5f5f4, #e7e5e4); }
.theme-songs { background: linear-gradient(135deg, #fdf2f8, #fbcfe8); }
.theme-isaiah { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.theme-jeremiah { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.theme-lamentations { background: linear-gradient(135deg, #f1f5f9, #cbd5e1); }
.theme-ezekiel { background: linear-gradient(135deg, #f5f3ff, #ddd6fe); }
.theme-daniel { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.theme-hosea { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.theme-joel { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.theme-amos { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.theme-obadiah { background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.theme-jonah { background: linear-gradient(135deg, #ecfeff, #cffafe); }
.theme-micah { background: linear-gradient(135deg, #f0fdf4, #d1fae5); }
.theme-nahum { background: linear-gradient(135deg, #fef2f2, #fecaca); }
.theme-habakkuk { background: linear-gradient(135deg, #fffbeb, #fde68a); }
.theme-zephaniah { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.theme-haggai { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.theme-zechariah { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.theme-malachi { background: linear-gradient(135deg, #fff7ed, #ffedd5); }

/* NT themes */
.theme-matthew { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.theme-mark { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.theme-luke { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.theme-john { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.theme-acts { background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.theme-romans { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.theme-corinthians { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.theme-galatians { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.theme-ephesians { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.theme-philippians { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.theme-colossians { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.theme-thessalonians { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.theme-timothy { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.theme-titus { background: linear-gradient(135deg, #f5f5f4, #e7e5e4); }
.theme-philemon { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.theme-hebrews { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.theme-james { background: linear-gradient(135deg, #f0fdf4, #d1fae5); }
.theme-peter { background: linear-gradient(135deg, #fffbeb, #fde68a); }
.theme-john-epistles { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.theme-jude { background: linear-gradient(135deg, #fef2f2, #fecaca); }
.theme-revelation { background: linear-gradient(135deg, #f5f3ff, #ddd6fe); }

/* Passage-specific themes */
.theme-dawn { background: linear-gradient(135deg, #fef3c7, #fde68a, #fbbf24); }
.theme-dawn::before { background: radial-gradient(circle at 70% 30%, #fde047, transparent 50%); opacity: 0.15; }
.theme-storm { background: linear-gradient(135deg, #475569, #334155, #1e293b); }
.theme-storm .immersive-content { background: rgba(255,255,255,0.95); }
.theme-storm .theme-badge { background: rgba(255,255,255,0.15); color: #fde68a; }
.theme-red-sea { background: linear-gradient(135deg, #0c4a6e, #075985, #0369a1); }
.theme-red-sea .immersive-content { background: rgba(255,255,255,0.95); }
.theme-red-sea .theme-badge { background: rgba(255,255,255,0.15); color: #7dd3fc; }
.theme-garden { background: linear-gradient(135deg, #166534, #14532d, #052e16); }
.theme-garden .immersive-content { background: rgba(255,255,255,0.95); }
.theme-garden .theme-badge { background: rgba(255,255,255,0.15); color: #4ade80; }

/* Theme toggle */
.theme-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.theme-toggle-wrap .form-check-input {
    cursor: pointer;
}
.immersive-bg.theme-off {
    background: var(--wl-bg-main) !important;
}
.immersive-bg.theme-off::before {
    display: none;
}

/* ================================================================
   READING COMFORT SYSTEM — Panel, Overlay, Focus Mode
   ================================================================ */

/* Brightness / light temperature overlay */
.rc-brightness-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
    opacity: 0;
    background: #000;
}
.rc-brightness-overlay.rc-tint-warm {
    background: linear-gradient(135deg, rgba(255, 180, 80, 0.35), rgba(255, 200, 120, 0.25));
}
.rc-brightness-overlay.rc-tint-cold {
    background: linear-gradient(135deg, rgba(180, 210, 255, 0.30), rgba(200, 220, 255, 0.20));
}

/* Focus mode — dim everything except .rc-focus-target */
body.rc-focus-mode > *:not(.rc-brightness-overlay):not(#readingComfortPanel):not(.rc-focus-target):not(#rcFloatingBtn) {
    opacity: 0.15;
    filter: blur(2px);
    transition: opacity 0.4s ease, filter 0.4s ease;
    pointer-events: none;
}
body.rc-focus-mode .rc-focus-target {
    box-shadow: 0 0 60px rgba(0,0,0,0.15);
    transition: box-shadow 0.4s ease;
}

/* Floating button */
.rc-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9991;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--wl-primary, #2563eb);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.rc-floating-btn:active { transform: scale(0.95); }

/* Sliding panel */
.rc-panel {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    background: var(--wl-bg-card, #fff);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 9992;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid rgba(0,0,0,0.06);
}
.rc-panel.rc-open { right: 0; }

.rc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-weight: 700;
    font-size: 1rem;
    position: sticky;
    top: 0;
    background: var(--wl-bg-card, #fff);
    z-index: 1;
}
.rc-panel-header .rc-close {
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--wl-text-secondary, #666);
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.rc-panel-header .rc-close:hover { background: rgba(0,0,0,0.06); }

.rc-panel-body {
    padding: 16px 20px;
}

.rc-section {
    margin-bottom: 20px;
}
.rc-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wl-text-primary, #333);
    margin-bottom: 8px;
}
.rc-value {
    font-size: 0.78rem;
    color: var(--wl-text-secondary, #888);
    font-weight: 500;
}

/* Sliders */
.rc-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(0,0,0,0.1);
    outline: none;
    cursor: pointer;
}
.rc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wl-primary, #2563eb);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.15s;
}
.rc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.rc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wl-primary, #2563eb);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Control row (slider + buttons) */
.rc-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rc-control-row .rc-slider { flex: 1; }

/* Icon buttons */
.rc-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--wl-bg-card, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--wl-text-primary, #333);
    transition: all 0.15s;
    flex-shrink: 0;
}
.rc-btn-icon:hover {
    background: var(--wl-primary, #2563eb);
    color: #fff;
    border-color: var(--wl-primary, #2563eb);
}

/* Toggle button group */
.rc-btn-group {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
    padding: 3px;
}
.rc-btn-toggle {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--wl-text-secondary, #666);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.rc-btn-toggle:hover { color: var(--wl-text-primary, #333); }
.rc-btn-toggle.active {
    background: var(--wl-bg-card, #fff);
    color: var(--wl-primary, #2563eb);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

/* Action buttons */
.rc-btn-action {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    background: var(--wl-bg-card, #fff);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wl-text-primary, #333);
    transition: all 0.15s;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rc-btn-action:hover {
    border-color: var(--wl-primary, #2563eb);
    color: var(--wl-primary, #2563eb);
}
.rc-btn-action.active {
    background: var(--wl-primary, #2563eb);
    color: #fff;
    border-color: var(--wl-primary, #2563eb);
}

/* Reset button */
.rc-btn-reset {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: #dc2626;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.rc-btn-reset:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Dark theme adjustments */
[data-theme="dark"] .rc-panel {
    background: var(--wl-bg-card, #1a1a2e);
    border-left-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .rc-panel-header {
    background: var(--wl-bg-card, #1a1a2e);
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .rc-slider { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .rc-btn-icon {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: var(--wl-text-primary, #e0e0e0);
}
[data-theme="dark"] .rc-btn-group { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .rc-btn-toggle { color: var(--wl-text-secondary, #888); }
[data-theme="dark"] .rc-btn-toggle.active {
    background: rgba(255,255,255,0.08);
    color: var(--wl-primary, #60a5fa);
}
[data-theme="dark"] .rc-btn-action {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: var(--wl-text-primary, #e0e0e0);
}
[data-theme="dark"] .rc-label { color: var(--wl-text-primary, #e0e0e0); }

/* --- Dictation (Speech-to-Text) --- */
.dictation-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    vertical-align: middle;
    transition: all var(--transition-fast);
}

.dictation-btn.dictating {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
    animation: dictation-pulse 1.5s ease-in-out infinite;
}

@keyframes dictation-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
