/* ===============================
Theme Variables
=============================== */
:root {
    --sp-primary: #0d9488;
    --sp-accent: #6366f1;
    --sp-bg: #f8fafc;
    --sp-surface: #ffffff;
    --sp-text: #0f172a;
    --sp-muted: #64748b;
    --sp-border: #e5e7eb;
}

[data-theme="dark"] {
    --sp-primary: #2dd4bf;
    --sp-accent: #818cf8;
    --sp-bg: #0b1220;
    --sp-surface: #111827;
    --sp-text: #e5e7eb;
    --sp-muted: #94a3b8;
    --sp-border: #1f2933;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--sp-bg);
    color: var(--sp-text);
}

/* ===============================
Utilities
=============================== */
.text-muted {
    color: var(--sp-muted) !important;
}

.card {
    background-color: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

.btn-primary:hover {
    background-color: #0f766e;
    border-color: #0f766e;
}

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

.btn-outline-primary:hover {
    background-color: var(--sp-primary);
    color: #fff;
}

/* ===============================
Navbar
=============================== */
.navbar {
    background-color: var(--sp-surface);
    border-bottom: 1px solid var(--sp-border);
}

/* ===============================
Hero
=============================== */
.hero {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    color: white;
}

/* ===============================
Feature Icons
=============================== */
.feature-icon {
    font-size: 2rem;
}

/* ===============================
Dark Mode Transition
=============================== */
* {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.profile-link {
    color: gray;
    font-size: 0.9rem;
}

.logout-link {
    color: red;
}

/* Map Django's error message tag to Bootstrap danger alert styling */
.alert-error {
    --bs-alert-color: var(--bs-danger-text-emphasis);
    --bs-alert-bg: var(--bs-danger-bg-subtle);
    --bs-alert-border-color: var(--bs-danger-border-subtle);
    --bs-alert-link-color: var(--bs-danger-text-emphasis);
}

.help-inline {
    font-size: small;
}

.error {
    color: red;
}

.required {
    color: red;
}

/* ===============================
Profile Page Styling
=============================== */
.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

.card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-title {
    color: var(--sp-text);
    margin-bottom: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

section {
    padding: 2rem 0;
}

.bg-light {
    background-color: var(--sp-bg) !important;
}

/* ===============================
Message Box
.message-box {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
=============================== */

.no-border-bottom td {
    border-bottom: none !important;
}
