:root {
    --worship-bg: #0a1628;
    --worship-surface: #0f2240;
    --worship-surface-2: #132a4f;
    --worship-border: #1e3a6b;
    --worship-text: #eef2ff;
    --worship-muted: #94a8d4;
    --worship-accent: #4169e1;
    --worship-accent-hover: #2b4cb8;
    --worship-accent-soft: rgba(65, 105, 225, 0.18);
    --worship-live: #22c55e;
    --worship-staged: #f59e0b;
}

body.worship-body {
    background: var(--worship-bg);
    color: var(--worship-text);
    min-height: 100vh;
}

.text-accent { color: var(--worship-accent) !important; }

/* Red asterisk on required field labels */
.form-label.required-field::after,
label.form-label:has(+ input[data-val-required])::after,
label.form-label:has(+ input[required])::after,
label.form-label:has(+ textarea[data-val-required])::after,
label.form-label:has(+ textarea[required])::after,
label.form-label:has(+ select[data-val-required])::after,
label.form-label:has(+ select[required])::after {
    content: " *";
    color: #ef4444;
    font-weight: 700;
}

.worship-nav {
    background: var(--worship-surface) !important;
}

.worship-nav .nav-link {
    color: var(--worship-muted);
    font-weight: 500;
}

.worship-nav .nav-link:hover,
.worship-nav .nav-link.active {
    color: var(--worship-text);
}

.worship-card {
    background: var(--worship-surface);
    border: 1px solid var(--worship-border);
    border-radius: 12px;
}

.worship-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--worship-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.worship-card-body {
    padding: 1.25rem;
}

.btn-worship {
    background: var(--worship-accent);
    border-color: var(--worship-accent);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
}

.btn-worship:hover {
    background: var(--worship-accent-hover);
    border-color: var(--worship-accent-hover);
    color: #fff;
}

.btn-worship-outline {
    border: 2px solid var(--worship-border);
    color: var(--worship-text);
    background: transparent;
    font-weight: 600;
    border-radius: 10px;
}

.worship-input,
.form-select.worship-input {
    background: var(--worship-surface-2);
    border: 1px solid var(--worship-border);
    color: var(--worship-text);
}

.worship-input:focus,
.form-select.worship-input:focus {
    background: var(--worship-surface-2);
    border-color: var(--worship-accent);
    color: var(--worship-text);
    box-shadow: 0 0 0 0.2rem var(--worship-accent-soft);
}

.badge.bg-accent {
    background: var(--worship-accent) !important;
}

.btn-worship-outline:hover {
    border-color: var(--worship-accent);
    color: var(--worship-text);
    background: var(--worship-accent-soft);
}

/* Confirm modal */

.worship-confirm-modal {
    background: var(--worship-surface);
    border: 1px solid var(--worship-border);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.worship-confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    border: 1px solid var(--worship-border);
    background: rgba(65, 105, 225, 0.15);
    color: var(--worship-accent);
}

.worship-confirm-icon--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.worship-confirm-title {
    color: var(--worship-text);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.worship-confirm-message {
    color: var(--worship-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.worship-confirm-modal .modal-footer .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
}

.worship-confirm-modal .modal-footer .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.btn-touch {
    min-height: 48px;
    min-width: 48px;
    font-size: 1rem;
}

.song-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 -1rem 0;
    padding: 1rem;
    background: linear-gradient(to top, var(--worship-bg) 70%, rgba(10, 22, 40, 0));
    border-top: 1px solid var(--worship-border);
}

#songForm {
    padding-bottom: 1rem;
}

.section-row.is-dragging {
    opacity: 0.55;
}

.section-row.drag-over {
    border-color: var(--worship-accent) !important;
    box-shadow: 0 0 0 1px var(--worship-accent);
}

.section-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--worship-border);
    border-radius: 6px;
    background: var(--worship-surface-2);
    color: var(--worship-muted);
    cursor: grab;
    font-size: 0.85rem;
}

.section-drag-handle:active {
    cursor: grabbing;
}

.section-row-actions .btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.badge-live {
    background: var(--worship-live);
    color: #fff;
}

.badge-staged {
    background: var(--worship-staged);
    color: #111;
}

.text-live {
    color: var(--worship-live) !important;
}

.form-control, .form-select {
    background: var(--worship-surface-2);
    border-color: var(--worship-border);
    color: var(--worship-text);
}

.form-control:focus, .form-select:focus {
    background: var(--worship-surface-2);
    border-color: var(--worship-accent);
    color: var(--worship-text);
    box-shadow: 0 0 0 0.2rem var(--worship-accent-soft);
}

.table-worship {
    --bs-table-bg: transparent;
    --bs-table-color: var(--worship-text);
    --bs-table-border-color: var(--worship-border);
}

.table-worship tbody tr:hover {
    background: var(--worship-accent-soft);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--worship-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--worship-surface-2);
    border: 1px solid var(--worship-border);
    color: var(--worship-text);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.dataTables_wrapper .page-link {
    background: var(--worship-surface-2);
    border-color: var(--worship-border);
    color: var(--worship-muted);
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--worship-accent);
    border-color: var(--worship-accent);
    color: #fff;
}

.dataTables_wrapper .page-link:hover {
    background: var(--worship-accent-soft);
    border-color: var(--worship-accent);
    color: var(--worship-text);
}

.dataTables_wrapper .dataTables_processing {
    background: var(--worship-surface);
    border: 1px solid var(--worship-border);
    color: var(--worship-muted);
}

.hero-worship {
    background: linear-gradient(135deg, var(--worship-surface) 0%, #061018 100%);
    border: 1px solid var(--worship-border);
    border-radius: 16px;
    padding: 3rem 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--worship-accent-soft);
    color: var(--worship-accent);
    border-radius: 12px;
    font-size: 1.25rem;
}
