/* Paradise FMX - Paradijskerk house style */

:root {
    --paradise-red: #ed1c24;
    --paradise-header-bg: #49596b;
    --paradise-text: #555458;
    --paradise-heading: #323234;
    --paradise-link-hover: midnightblue;
    --paradise-light-gray: #f5f5f7;
    --paradise-border: #ddd;
    --paradise-teal: #01a196;
}

/* Typography - Bitter for headings, PT Sans for body */
html, body, p, ul, li, form, input, button, .btn, .nav-link, .navbar-brand {
    font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .card-title {
    font-family: "Bitter", Georgia, serif;
    color: var(--paradise-heading);
}

h1, .h1 { font-size: 1.6rem; }
h2, .h2 { font-size: 1.35rem; }
h3, .h3 { font-size: 1.2rem; }
h4, .h4 { font-size: 1.1rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.9rem; }

@media (max-width: 576px) {
    h1, .h1 { font-size: 1.35rem; }
    h2, .h2 { font-size: 1.15rem; }
    h3, .h3 { font-size: 1.05rem; }
    .display-4 { font-size: 1.75rem; }
}

body {
    line-height: 1.6;
    font-size: 16px;
    color: var(--paradise-text);
    background: #fff;
}

/* Navbar - dark blue-gray background */
.navbar {
    background: var(--paradise-header-bg) !important;
}

.navbar-brand,
.nav-link {
    color: #fff !important;
}

.nav-link:hover {
    color: #ddd !important;
}

/* Primary buttons - red with teal hover, uppercase */
.btn-primary {
    background-color: var(--paradise-red);
    border-color: var(--paradise-red);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--paradise-teal);
    border-color: var(--paradise-teal);
}

/* Outline primary buttons */
.btn-outline-primary {
    color: var(--paradise-red);
    border-color: var(--paradise-red);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--paradise-red);
    border-color: var(--paradise-red);
    color: #fff;
}

/* Secondary buttons */
.btn-outline-secondary {
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Large buttons keep consistent styling */
.btn-lg {
    border-radius: 8px;
    padding: 0.875rem 2rem;
}

/* Form controls */
input, select, textarea, .form-control, .form-select {
    border-radius: 4px;
}

/* Cards - subtle shadow */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Links */
a {
    color: var(--paradise-red);
}

a:hover {
    color: var(--paradise-link-hover);
}

/* Focus states - red accent */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(237, 28, 36, 0.25);
    outline: none;
}

/* Badges - status colors handled in style.css */

/* Mobile action bar styling */
@media (max-width: 576px) {
    .mobile-action-bar .btn-primary {
        background: var(--paradise-red);
        border-color: var(--paradise-red);
    }

    .mobile-action-bar .btn-outline-primary {
        color: var(--paradise-red);
        border-color: var(--paradise-red);
    }

    .mobile-action-bar .btn-outline-primary:hover {
        background: var(--paradise-red);
        color: #fff;
    }
}

/* Action cards on home */
.action-card .btn-primary {
    background: var(--paradise-red);
    border-color: var(--paradise-red);
}

/* Dropdown menu styling */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-item:hover {
    background-color: var(--paradise-light-gray);
}

/* Timeline dots */
.timeline-item::before {
    background-color: var(--paradise-red);
}

/* Footer */
footer {
    background-color: var(--paradise-light-gray) !important;
}

/* Print - clean look */
@media print {
    .card {
        box-shadow: none !important;
        border: none !important;
    }
    a { color: #000 !important; }
    h1, h2, h3, h4, h5, h6, .card-title { color: #000 !important; }
}

/* ============================================================
   DARK MODE — Bootstrap 5.3 data-bs-theme="dark"
   ============================================================ */
[data-bs-theme="dark"] {
    --paradise-header-bg: #1a1d21;
    --paradise-text: #d1d5db;
    --paradise-heading: #f3f4f6;
    --paradise-light-gray: #1e2228;
    --paradise-border: #374151;
    --paradise-red: #d4736e;
    --paradise-teal: #5bb8b2;
}

[data-bs-theme="dark"] body {
    color: var(--paradise-text);
    background: #121417;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .card-title {
    color: var(--paradise-heading);
}

/* Navbar */
[data-bs-theme="dark"] .navbar {
    background: var(--paradise-header-bg) !important;
}

/* Cards */
[data-bs-theme="dark"] .card {
    background: #1e2228;
    border-color: var(--paradise-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .card-header {
    background: #252a31;
    border-color: var(--paradise-border);
}

/* Links */
[data-bs-theme="dark"] a {
    color: #d4a3a0;
}
[data-bs-theme="dark"] a:hover {
    color: #a5c4e4;
}

/* Buttons — muted red, softer teal hover */
[data-bs-theme="dark"] .btn-primary {
    background-color: var(--paradise-red);
    border-color: var(--paradise-red);
}
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus {
    background-color: var(--paradise-teal);
    border-color: var(--paradise-teal);
}
[data-bs-theme="dark"] .btn-outline-primary {
    color: var(--paradise-red);
    border-color: var(--paradise-red);
}
[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus {
    background-color: var(--paradise-red);
    border-color: var(--paradise-red);
    color: #fff;
}
[data-bs-theme="dark"] .btn:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 115, 110, 0.25);
    outline-color: var(--paradise-red);
}

/* Timeline dot — softer */
[data-bs-theme="dark"] .timeline-item::before {
    background-color: var(--paradise-red);
}

/* Footer */
[data-bs-theme="dark"] footer {
    background-color: #1a1d21 !important;
    border-color: var(--paradise-border) !important;
}

/* Mobile action bar */
@media (max-width: 576px) {
    [data-bs-theme="dark"] .mobile-action-bar {
        background: #1a1d21;
        border-color: var(--paradise-border);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    }
    [data-bs-theme="dark"] .mobile-action-bar .btn-primary {
        background: var(--paradise-red);
        border-color: var(--paradise-red);
    }
}

/* Status badges — darker tinted backgrounds */
[data-bs-theme="dark"] .badge-new {
    background-color: #1e3a5f;
    color: #93c5fd;
}
[data-bs-theme="dark"] .badge-triaged {
    background-color: #2e1065;
    color: #c4b5fd;
}
[data-bs-theme="dark"] .badge-in_progress {
    background-color: #431407;
    color: #fdba74;
}
[data-bs-theme="dark"] .badge-waiting {
    background-color: #1f2937;
    color: #9ca3af;
}
[data-bs-theme="dark"] .badge-completed {
    background-color: #052e16;
    color: #86efac;
}
[data-bs-theme="dark"] .badge-closed {
    background-color: #1f2937;
    color: #9ca3af;
}

/* Asset badges */
[data-bs-theme="dark"] .badge-operational {
    background-color: #052e16;
    color: #86efac;
}
[data-bs-theme="dark"] .badge-attention {
    background-color: #431407;
    color: #fdba74;
}
[data-bs-theme="dark"] .badge-out_of_service {
    background-color: #450a0a;
    color: #fca5a5;
}
[data-bs-theme="dark"] .badge-disposed {
    background-color: #1f2937;
    color: #9ca3af;
}

/* Priority badges */
[data-bs-theme="dark"] .badge-low {
    background-color: #1f2937;
    color: #9ca3af;
}
[data-bs-theme="dark"] .badge-normal {
    background-color: #0c4a6e;
    color: #7dd3fc;
}
[data-bs-theme="dark"] .badge-high {
    background-color: #431407;
    color: #fdba74;
}
[data-bs-theme="dark"] .badge-urgent {
    background-color: #450a0a;
    color: #fca5a5;
}

/* Quote badges */
[data-bs-theme="dark"] .badge-quote-none {
    background-color: #1f2937;
    color: #9ca3af;
}
[data-bs-theme="dark"] .badge-quote-requested {
    background-color: #0c4a6e;
    color: #7dd3fc;
}
[data-bs-theme="dark"] .badge-quote-received {
    background-color: #431407;
    color: #fdba74;
}
[data-bs-theme="dark"] .badge-quote-approved {
    background-color: #052e16;
    color: #86efac;
}

/* Tag badges */
[data-bs-theme="dark"] .badge-tag-red { background-color: #450a0a; color: #fca5a5; }
[data-bs-theme="dark"] .badge-tag-orange { background-color: #431407; color: #fdba74; }
[data-bs-theme="dark"] .badge-tag-yellow { background-color: #422006; color: #fde68a; }
[data-bs-theme="dark"] .badge-tag-green { background-color: #052e16; color: #86efac; }
[data-bs-theme="dark"] .badge-tag-blue { background-color: #1e3a5f; color: #93c5fd; }
[data-bs-theme="dark"] .badge-tag-purple { background-color: #2e1065; color: #c4b5fd; }
[data-bs-theme="dark"] .badge-tag-gray { background-color: #1f2937; color: #9ca3af; }
[data-bs-theme="dark"] .badge-tag-teal { background-color: #042f2e; color: #5eead4; }

/* Timeline */
[data-bs-theme="dark"] .timeline::before {
    background-color: #374151;
}
[data-bs-theme="dark"] .timeline-item::before {
    border-color: #1e2228;
}
/* Navbar link overrides — keep white */
[data-bs-theme="dark"] .navbar a,
[data-bs-theme="dark"] .navbar a:hover {
    color: #fff !important;
}
[data-bs-theme="dark"] .nav-link:hover {
    color: #ddd !important;
}

/* Table-light used in planner headers etc */
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .bg-light {
    background-color: #252a31 !important;
}

/* Empty state */
[data-bs-theme="dark"] .empty-state {
    color: #9ca3af;
}

/* Dropdown */
[data-bs-theme="dark"] .dropdown-menu {
    background: #252a31;
    border-color: var(--paradise-border);
}
[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #2d333b;
}

/* Reaction toggle */
[data-bs-theme="dark"] .reaction-toggle {
    color: #9ca3af;
}
[data-bs-theme="dark"] .reaction-toggle:hover {
    color: #d1d5db;
}
[data-bs-theme="dark"] .reaction-toggle.reacted {
    color: var(--paradise-red);
}

/* Theme toggle */
#theme-toggle {
    text-decoration: none;
}

/* Print always light — reset dark mode */
@media print {
    html[data-bs-theme="dark"] {
        color-scheme: light;
    }
    html[data-bs-theme="dark"] body {
        background: #fff !important;
        color: #000 !important;
    }
    html[data-bs-theme="dark"] .card,
    html[data-bs-theme="dark"] .card-header {
        background: none !important;
        color: #000 !important;
        border: none !important;
    }
    html[data-bs-theme="dark"] h1,
    html[data-bs-theme="dark"] h2,
    html[data-bs-theme="dark"] h3,
    html[data-bs-theme="dark"] h4,
    html[data-bs-theme="dark"] h5,
    html[data-bs-theme="dark"] h6,
    html[data-bs-theme="dark"] .card-title {
        color: #000 !important;
    }
    html[data-bs-theme="dark"] a {
        color: #000 !important;
    }
    html[data-bs-theme="dark"] .text-muted {
        color: #555 !important;
    }
    html[data-bs-theme="dark"] .badge {
        background: #eee !important;
        color: #000 !important;
        border: none !important;
    }
    html[data-bs-theme="dark"] .timeline::before {
        background: #ccc !important;
    }
    html[data-bs-theme="dark"] .timeline-item::before {
        background: #666 !important;
        border-color: #fff !important;
    }
}
