/* Global warm theme for Online Course system */
:root {
    color-scheme: light;
    /* Bootstrap Contextual Color Overrides */
    --bs-primary: #f97316;
    --bs-primary-rgb: 249, 115, 22;
    --bs-warning: #fbbf24;
    --bs-warning-rgb: 251, 191, 36;
    --bs-success: #22c55e;
    --bs-success-rgb: 34, 197, 94;

    --bg-primary: #f97316;
    --bg-primary-dark: #c2410c;
    --bg-surface: #ffffff;
    --bg-surface-soft: #fff5e6;
    --text-primary: #2d1f0c;
    --text-muted: #6b4e2c;
    --border: rgba(135, 77, 0, 0.12);
    --shadow-soft: 0 24px 80px rgba(217, 115, 22, 0.18);
}

body {
    min-height: 100%;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 18%),
                linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    color: var(--text-primary);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

a {
    transition: color .2s ease, transform .2s ease;
}

a:hover {
    color: var(--bg-primary-dark);
}

.navbar {
    background: var(--bg-primary) !important;
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.16);
}

.navbar-brand {
    letter-spacing: .04em;
    font-weight: 700;
}

/* Improved Navbar Menus */
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.15rem;
    border-radius: 50rem;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navbar Dark adjustments */
.navbar.bg-dark .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.navbar.bg-dark .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.card {
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    box-shadow: var(--shadow-soft);
    background: var(--bg-surface);
}

.card-body {
    padding: 1.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.btn-outline-primary {
    border-color: rgba(249, 115, 22, 0.35);
    color: #c2410c;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(249, 115, 22, 0.1);
    color: #a34108;
}

.badge {
    border-radius: 1rem;
    font-size: .9rem;
}

.btn {
    border-radius: 1rem;
}

.form-control,
.form-select {
    border-radius: 1rem;
    border-color: var(--border);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 0.15rem rgba(249, 115, 22, 0.15);
}

.table {
    border-radius: 1rem;
    overflow: hidden;
}

.table thead {
    background: #fff4e6;
}

.table th,
.table td {
    vertical-align: middle;
    border-top: 1px solid rgba(135, 77, 0, 0.08);
}

.footer-note {
    color: var(--text-muted);
}

.hero-title,
.page-title {
    letter-spacing: -.03em;
}

.section-card {
    background: var(--bg-surface-soft);
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.alert-info {
    background: #fff4e6;
    color: var(--text-primary);
    border-color: rgba(249, 115, 22, 0.12);
}

.badge.bg-success {
    background-color: #f59e0b !important;
    color: #ffffff;
}

.badge.bg-warning {
    background-color: #fb923c !important;
    color: #fff;
}

@media (max-width: 767px) {
    .card-body {
        padding: 1.4rem;
    }
}
