/* Basic Reset and Full Height Setup */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Default Colors */
.bg-fixed-white { background: #fff; }
.bg-fixed-blue { background: #a3d5ff; }
.bg-fixed-green { background: #93dc5c; }

/* Transparent header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-logo {
    max-height: 40px;
    display: flex;
    align-items: center;
}

.header-logo a {
    text-decoration: none;
    color: #3d5d5f;
    font-weight: 600; 
    font-size: 1.75rem; 
    transition: color 0.3s ease-in-out, font-weight 0.3s ease-in-out; 
}

.header-logo a:hover {
    color: #333;
    font-weight: 700;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0;
    padding: 0;
}

    nav ul li {
        display: flex;
        align-items: center;
    }

        nav ul li a, .user-link {
            text-decoration: none;
            font-weight: bold;
            color: #4f4f4f;
            padding: 10px 20px;
            border-radius: 4px;
            transition: background 0.3s, color 0.3s;
            display: flex;
            align-items: center; 
        }

            nav ul li a:hover {
                background-color: rgba(51, 51, 51, 0.7);
                color: rgba(255, 255, 255, 0.7);
                backdrop-filter: blur(2px);
            }

ul li.seperator {
    font-size: 1.8rem;
    line-height: 2rem;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #fff;
    margin-top: -5px;
}


/* ── Hamburger button (hidden on desktop) ─────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1010;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #4f4f4f;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

[data-theme="dark"] .nav-hamburger span { background: #c0c0d8; }

/* ── Mobile Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    header {
        padding: 10px 16px;
        flex-wrap: wrap;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .nav-hamburger {
        display: flex;
        margin-left: auto;
    }

    #siteNav {
        display: none;
        width: 100%;
        order: 3;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    #siteNav.nav-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 2px;
        padding: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a, .user-link {
        padding: 10px 12px;
        border-radius: 6px;
        display: block;
        width: 100%;
    }

    /* Dropdowns in mobile nav */
    nav ul li.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.04);
        border-radius: 6px;
        padding: 4px 0 4px 12px;
        margin-top: 2px;
    }

    [data-theme="dark"] #siteNav { border-color: rgba(255,255,255,0.08); }
    [data-theme="dark"] nav ul li.dropdown .dropdown-menu { background: rgba(255,255,255,0.04); }
}

/* Home - Index */
/* Center the hero section in the middle of the screen */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    text-align: center;
    padding: 80px 20px;
    color: #333;
    z-index: 1;
}

/* Add a morphing blob effect behind the hero-section */
.hero-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 55, 120, 0.3), rgba(0, 123, 255, 0.6));
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    animation: blob-animation 10s infinite ease-in-out;
}

/* Keyframes for blob morphing effect with size variation */
@keyframes blob-animation {
    0%, 100% {
        width: 50%;
        height: 50%;
        border-radius: 45% 55% 60% 40% / 40% 60% 55% 45%;
    }
    25% {
        width: 65%;
        height: 60%;
        border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    }
    50% {
        width: 60%;
        height: 75%;
        border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%;
    }
    75% {
        width: 70%;
        height: 60%;
        border-radius: 55% 45% 40% 60% / 60% 40% 45% 55%;
    }
}

/* ── Guest hero ──────────────────────────────────────────────────────────── */

.hero-guest {
    gap: 48px;
    padding-top: 100px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(26, 58, 92, 0.1);
    border: 1px solid rgba(26, 58, 92, 0.2);
    color: #1a3a5c;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 18px;
    color: #666;
    margin: 0;
    max-width: 420px;
    line-height: 1.5;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a3a5c, #2d6ea8);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(26,58,92,0.3);
    transition: opacity 0.2s, transform 0.15s;
}
.hero-cta:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }
.hero-cta:active { transform: scale(0.98); }

/* Feature tiles */
.hero-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 780px;
}

.hero-feature {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 20px 22px;
    width: 170px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.hero-feature-icon {
    font-size: 26px;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.hero-feature-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.hero-feature-sub {
    font-size: 11.5px;
    color: #888;
    line-height: 1.4;
}

/* Dark mode */
[data-theme="dark"] .hero-badge {
    background: rgba(90,122,191,0.15);
    border-color: rgba(90,122,191,0.3);
    color: #7aabf0;
}
[data-theme="dark"] .hero-title { color: #e0e0e0; }
[data-theme="dark"] .hero-tagline { color: #7a7a9a; }
[data-theme="dark"] .hero-feature {
    background: rgba(30,30,46,0.7);
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .hero-feature-icon { color: #7aabf0; }
[data-theme="dark"] .hero-feature-label { color: #e0e0e0; }
[data-theme="dark"] .hero-feature-sub { color: #5a5a7a; }


/* Container for the main content */
.renderBodyContainer {
    margin-top: 55px;
    flex: 1;
}

.home-calendar-wrap {
    padding: 12px 16px 0;
}

/* Footer Styling */
footer.sticky-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Navbar Styling */
.navbar-fixed-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-scroll {
    box-shadow: none;
}

.navbar-scroll .navbar-brand,
.navbar-scroll .nav-link,
.navbar-scroll .fa-bars {
    color: black;
}

.navbar-scrolled {
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link,
.navbar-scrolled .fa-bars {
    color: #4f4f4f;
}

@media (max-width: 991px) {
    .navbar-scroll {
        background-color: #fff;
    }

    .navbar-scroll .navbar-brand,
    .navbar-scroll .nav-link,
    .navbar-scroll .fa-bars {
        color: #4f4f4f !important;
    }
}

/* Focus States */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-white.input-group > .form-control:focus {
    border-color: #fff;
    box-shadow: inset 0 0 0 1px #fff;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.75);
}

/* Heading Styles */
.display-1 {
    font-weight: 500 !important;
    letter-spacing: 40px;
}

@media (min-width: 1600px) {
    .display-1 {
        font-size: 10rem;
    }
}

/* Intro Section Heights */
@media (max-width: 450px) {
    #intro {
        height: 950px !important;
    }
}

@media (min-width: 550px) and (max-width: 750px) {
    #intro {
        height: 1100px !important;
    }
}

@media (min-width: 800px) and (max-width: 990px) {
    #intro {
        height: 600px !important;
    }
}

/* Product Wrapper and Layout */
.product-wrapper-container {
    display: flex; 
}

.product-wrapper {
    margin-left: 0.01%;
    width: 103%;
    min-height: 120px;
    border: solid 1px #ccc;
    background: #fff;
    box-shadow: 0 0 8px #ccc;
}

.product-image {
    padding-left: 5px;
    background: #fff;
    background-size: cover;
    align-content: center;
    align-items: center;
}

.fixed-width-image {
    width: 200px;
    height: auto;
    object-fit: cover;
}

.border-right {
    border-right: 1px solid #ccc;
}

.row > .col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-text {
    font-size: 0.7rem;
}

.small-left-margin {
    margin: 0;
    padding-left: 0;
}

/* Totals Container Styling */
.totals-container {
    width: 320px;
    margin-right: 10px;
    margin-left: 2.5vw;
}

.totals-container .total-box {
    background: #fff;
    padding: 10px;
    padding-bottom: 0;
    border: 1px solid #ccc;
    box-shadow: 0 0 8px #ccc;
    margin-bottom: 5px;
}

.totals-container .total-box p {
    margin-top: 0;
}

.total-box,
.product-summary-container {
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 0 8px #ccc;
    margin-bottom: 10px;
}

.product-summary {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.product-summary h5 {
    font-size: 19px;
    margin: 0;
}

.product-summary p {
    font-size: 14px;
    margin: 0;
}

.total-box h4 {
    margin-top: 5px;
}

.button-row {
    display: flex;
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px;
}

.continue-box {
    background: lightgray;
    padding: 0;
    width: 50%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 8px #ccc;
    margin: 0 auto 10px;
    font-size: 29px;
    font-weight: bold;
    text-align: center;
    transition: background 0.5s ease, width 0.5s ease;
}

.cancel-box {
    background: lightgray;
    padding: 0;
    width: 50%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 8px #ccc;
    margin: 0 auto 10px;
    font-size: 29px;
    font-weight: bold;
    text-align: center;
    transition: background 0.5s ease, width 0.5s ease;
}

.continue-box:hover
{
    background: lightgreen;
    width: 60%;
    cursor: pointer;
}

.cancel-box:hover {
    background: lightcoral; 
    width: 60%;
    cursor: pointer;
}

.continue-box a {
    color: black;
    text-decoration: none;
}

.center-continue-box {
    width: 25%;
    margin: 0 auto;
    display: block;
}

.center-continue-box:hover {
    width: 30%;
}

#warningMessage {
    color: red;
    display: none;
    margin: 0;
    padding: 5px;
    padding-top: 0;
    margin-bottom: 5px;
    font-weight: bolder;
    border: 1px solid red;
    border-top: 0;
    animation: flashBorderRed 1s linear infinite;
    border-radius: 0 0 5px 5px;
}

@keyframes flashBorderRed {
    0% {
        border-color: red;
    }

    50% {
        border-color: transparent;
    }

    100% {
        border-color: red;
        border-width: 1px;
    }
}


/* Delivery Details Container */
.delivery-details-container {
    padding: 15px;
    border: 1px solid #ccc;
    box-shadow: 0 0 8px #ccc;
    background: #fff;
    margin-right: 0px;
}

.delivery-details-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.delivery-details-container .form-group {
    margin-bottom: 13px;
}

.delivery-details-container .form-control {
    width: 100%;
    box-sizing: border-box;
}


/* Projects Page Specific Styles */
.projects-page .projects-filter-options {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.projects-page .projects-clickable-card {
    cursor: pointer;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    text-align: left;
}

    .projects-page .projects-clickable-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transform: scale(1.02);
    }

.projects-page .projects-vr {
    border-left: 2px solid #007bff;
    height: 100%;
}

.projects-page .card-image {
    max-width: 60px;
    object-fit: cover;
}

.projects-page h4 {
    font-weight: 600;
}

.projects-page p {
    font-size: 14px;
    margin-bottom: 5px;
}

.projects-page .projects-clickable-card i {
    margin-right: 5px;
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-page .projects-clickable-card {
        text-align: center;
    }

    .projects-page .projects-vr {
        display: none;
    }

    .projects-page .row div.col-6 {
        width: 100%;
    }
}

.project-shared-container {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 1px 10px 0;
}

.project-details {
    background: #d2f5fe;
}

.project-delivery-details {
    background: #d2fed9;
}

.project-contractor-details {
    background: #fed2d2;
}

/* Icons */
.icon-black {
    color: black;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-menu li {
    display: block;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle {
    cursor: pointer;
}

/* Calendar List View */
.cal-lv-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 8px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 10px;
    margin-top: 18px;
}
.cal-lv-date-header:first-child { margin-top: 0; }
.cal-lv-date-text { font-size: 15px; font-weight: 700; color: #1a3a5c; }
.cal-lv-count {
    font-size: 12px; color: #6c757d;
    background: #f0f2f5; padding: 2px 10px; border-radius: 12px;
}
.cal-lv-card {
    display: flex; align-items: stretch;
    border: 1px solid #e5e5e5; border-radius: 8px;
    margin-bottom: 8px; cursor: pointer; overflow: hidden;
    transition: box-shadow 0.15s, transform 0.1s;
    background: #fff;
}
.cal-lv-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); transform: translateY(-1px); }
.cal-lv-accent { width: 5px; flex-shrink: 0; }
.cal-lv-body { flex: 1; padding: 10px 14px; }
.cal-lv-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.cal-lv-left { display: flex; align-items: flex-start; gap: 10px; }
.cal-lv-type-badge {
    display: inline-flex; align-items: center;
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 4px; white-space: nowrap; margin-top: 1px;
}
.cal-lv-project { font-size: 14px; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
.cal-lv-company { font-size: 12px; color: #6c757d; }
.cal-lv-stats { display: flex; gap: 20px; align-items: flex-start; }
.cal-lv-stat { display: flex; flex-direction: column; align-items: flex-end; }
.cal-lv-stat-label { font-size: 10px; color: #9a9aaa; text-transform: uppercase; letter-spacing: 0.4px; }
.cal-lv-stat-value { font-size: 13px; font-weight: 700; color: #1a1a2e; }
.cal-lv-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cal-lv-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 2px;
}

.cal-lv-item-chip {
    font-size: 11.5px;
    color: #4a5568;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 2px 8px;
    white-space: nowrap;
}

.cal-lv-note { font-size: 12px; color: #6c757d; margin-top: 5px; }
.cal-lv-no-price {
    font-size: 12px;
    font-weight: 600;
    color: #856404;
}

/* Orange dot on calendar chip for pending price */
.cal-chip-no-price {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f5a623;
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===================== DARK THEME ===================== */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] body {
    background: linear-gradient(160deg, #060e18 0%, #0d1e30 55%, #102338 100%);
    background-attachment: fixed;
    color: #e0e0e0;
}

/* Header */
[data-theme="dark"] header {
    background: rgba(10, 10, 20, 0.2);
}

[data-theme="dark"] nav ul li a,
[data-theme="dark"] .header-logo a {
    color: #c0c0d0;
}

/* Dropdown nav */
[data-theme="dark"] .dropdown-menu {
    background-color: #1e1e2e;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

[data-theme="dark"] .dropdown-menu li a {
    color: #c0c0d0;
}

[data-theme="dark"] .dropdown-menu li a:hover {
    background-color: #2a2a3e;
    color: #ffffff;
}

/* Cards & containers */
[data-theme="dark"] .project-details-container,
[data-theme="dark"] .project-details-addresses,
[data-theme="dark"] .project-details-contact,
[data-theme="dark"] .project-details-order-history,
[data-theme="dark"] .project-details-order-requests,
[data-theme="dark"] .project-details-order-change-requests,
[data-theme="dark"] .project-details-calendar-view {
    background: #1e1e2e;
    border-color: #2d2d4e;
}

[data-theme="dark"] .project-details-title {
    color: #e0e0e0;
}

[data-theme="dark"] .project-details-info {
    color: #a0a0b0;
}

[data-theme="dark"] .project-details-contact ul li a,
[data-theme="dark"] .project-details-addresses ul li a {
    background: #2a2a3e;
    color: rgba(220,220,240,0.85);
}

[data-theme="dark"] .project-details-contact ul li a:hover,
[data-theme="dark"] .project-details-addresses ul li a:hover {
    background: #3a3a5e;
}

/* Projects page cards */
[data-theme="dark"] .projects-page .projects-clickable-card {
    background: #1e1e2e;
    border-color: #2d2d4e;
    color: #e0e0e0;
}

[data-theme="dark"] .projects-page .projects-filter-options {
    background: #1a1a2a;
    border-color: #2d2d4e;
}

/* Sections */
[data-theme="dark"] .project-details {
    background: #163040;
}

[data-theme="dark"] .project-delivery-details {
    background: #163020;
}

[data-theme="dark"] .project-contractor-details {
    background: #301620;
}

/* Product / totals boxes */
[data-theme="dark"] .product-wrapper,
[data-theme="dark"] .total-box,
[data-theme="dark"] .product-summary-container,
[data-theme="dark"] .delivery-details-container {
    background: #1e1e2e;
    border-color: #2d2d4e;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

[data-theme="dark"] .product-image {
    background: #1e1e2e;
}

/* Order tables */
[data-theme="dark"] .order-table {
    border-color: #2d2d4e;
}

[data-theme="dark"] .order-table th,
[data-theme="dark"] .order-table td {
    border-color: #2d2d4e;
    color: #e0e0e0;
}

[data-theme="dark"] .order-table th {
    background-color: #252535;
}

[data-theme="dark"] .order-table tr:nth-child(even) {
    background-color: #1a1a28;
}

[data-theme="dark"] .order-table tr:hover {
    background-color: #22223a;
}

[data-theme="dark"] .order-table thead th[colspan] {
    background-color: #252535;
}

[data-theme="dark"] .order-table tfoot tr:last-child td {
    background: linear-gradient(to top, #252535, #1e1e2e);
}

/* Calendar */
[data-theme="dark"] .calendar-table th {
    background-color: #1a2a3a;
    border-color: #2d2d4e;
    color: #e0e0e0;
}

[data-theme="dark"] .calendar-table td {
    border-color: #2d2d4e;
}

[data-theme="dark"] .day-cell {
    background-color: #1e1e2e;
    color: #e0e0e0;
}

[data-theme="dark"] .day-cell:hover {
    background-color: #2a2a4e;
}

[data-theme="dark"] .current {
    background-color: #1a3a5a;
}

[data-theme="dark"] .faded {
    color: #555;
}

[data-theme="dark"] .calendar-table #calendarBody a {
    background-color: #252535;
    border-color: #3d3d5e;
    color: #e0e0e0;
}

[data-theme="dark"] .calendar-table #calendarBody a:hover {
    background-color: #303050;
}

/* Bootstrap overrides */
[data-theme="dark"] .card {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #e0e0e0;
}

[data-theme="dark"] .card-body {
    color: #e0e0e0;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #252535;
    border-color: #3d3d5e;
    color: #e0e0e0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #2a2a45;
    color: #e0e0e0;
}

[data-theme="dark"] .modal-content {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #e0e0e0;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: #2d2d4e;
}

[data-theme="dark"] .nav-tabs {
    border-color: #2d2d4e;
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: #a0a0c0;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #1e1e2e;
    border-color: #2d2d4e #2d2d4e #1e1e2e;
    color: #e0e0e0;
}

[data-theme="dark"] .tab-content {
    color: #e0e0e0;
}

[data-theme="dark"] .alert-info {
    background-color: #1a2a3a;
    border-color: #1a3a5a;
    color: #80c0ff;
}

[data-theme="dark"] .alert-success {
    background-color: #1a2e1a;
    border-color: #1a4a1a;
    color: #80d080;
}

[data-theme="dark"] .alert-danger {
    background-color: #2e1a1a;
    border-color: #4a1a1a;
    color: #d08080;
}

[data-theme="dark"] .text-muted {
    color: #7a7a9a !important;
}

[data-theme="dark"] .table {
    color: #e0e0e0;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    border-color: #2d2d4e;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.03);
}

[data-theme="dark"] .badge.bg-light {
    background-color: #2a2a3e !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] footer {
    background-color: #0e0e1e;
    border-color: #2d2d4e !important;
    color: #7a7a9a;
}

[data-theme="dark"] footer a {
    color: #7a7adf;
}

[data-theme="dark"] .projects-page .projects-filter-options h4,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: #e0e0e0;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

[data-theme="dark"] .border-top {
    border-color: #2d2d4e !important;
}

/* Bootstrap-select dark */
[data-theme="dark"] .bootstrap-select .dropdown-menu {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
}

[data-theme="dark"] .bootstrap-select .dropdown-item {
    color: #e0e0e0;
}

[data-theme="dark"] .bootstrap-select .dropdown-item:hover,
[data-theme="dark"] .bootstrap-select .dropdown-item:focus {
    background-color: #2a2a4e;
    color: #fff;
}

[data-theme="dark"] .bootstrap-select > .dropdown-toggle {
    background-color: #252535;
    border-color: #3d3d5e;
    color: #e0e0e0;
}
/* ── Missing alert variants ─────────────────────────────────────────────── */
[data-theme="dark"] .alert-warning {
    background-color: #2e2410;
    border-color: #5a4010;
    color: #f0c060;
}

[data-theme="dark"] .alert-light,
[data-theme="dark"] .alert-secondary {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #c0c0d8;
}

[data-theme="dark"] .alert-primary {
    background-color: #1a2a40;
    border-color: #1a3a60;
    color: #80b0f0;
}

/* ── Links ──────────────────────────────────────────────────────────────── */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: #7a9cdf;
}
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover {
    color: #a0bcff;
}

/* ── Horizontal rule ────────────────────────────────────────────────────── */
[data-theme="dark"] hr {
    border-color: #2d2d4e;
    opacity: 1;
}

/* ── Text utilities ─────────────────────────────────────────────────────── */
[data-theme="dark"] .text-dark {
    color: #c0c0d8 !important;
}
[data-theme="dark"] .text-body {
    color: #e0e0e0 !important;
}
[data-theme="dark"] .text-black {
    color: #e0e0e0 !important;
}

/* ── Placeholders ───────────────────────────────────────────────────────── */
[data-theme="dark"] ::placeholder {
    color: #5a5a7a !important;
    opacity: 1;
}

/* ── Input group ────────────────────────────────────────────────────────── */
[data-theme="dark"] .input-group-text {
    background-color: #1e1e2e;
    border-color: #3d3d5e;
    color: #a0a0c0;
}

/* ── Checkboxes & radios ────────────────────────────────────────────────── */
[data-theme="dark"] .form-check-input {
    background-color: #252535;
    border-color: #4d4d6e;
}
[data-theme="dark"] .form-check-input:checked {
    background-color: #4a6da8;
    border-color: #4a6da8;
}
[data-theme="dark"] .form-check-label {
    color: #c0c0d8;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
[data-theme="dark"] .btn-light {
    background-color: #2a2a3e;
    border-color: #3d3d5e;
    color: #e0e0e0;
}
[data-theme="dark"] .btn-light:hover {
    background-color: #34344e;
    border-color: #4d4d6e;
    color: #ffffff;
}
[data-theme="dark"] .btn-outline-secondary {
    color: #a0a0c0;
    border-color: #4d4d6e;
}
[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #2a2a4e;
    color: #ffffff;
    border-color: #6d6d9e;
}
[data-theme="dark"] .btn-outline-dark {
    color: #c0c0d8;
    border-color: #4d4d6e;
}
[data-theme="dark"] .btn-outline-dark:hover {
    background-color: #2a2a3e;
    color: #ffffff;
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
[data-theme="dark"] .badge.bg-secondary {
    background-color: #3a3a5e !important;
    color: #c0c0d8 !important;
}
[data-theme="dark"] .badge.bg-warning {
    background-color: #5a4010 !important;
    color: #f0c060 !important;
}
[data-theme="dark"] .badge.bg-dark {
    background-color: #0e0e1e !important;
    color: #e0e0e0 !important;
}

/* ── List groups ────────────────────────────────────────────────────────── */
[data-theme="dark"] .list-group-item {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #e0e0e0;
}
[data-theme="dark"] .list-group-item:hover,
[data-theme="dark"] .list-group-item:focus {
    background-color: #252540;
    color: #ffffff;
}
[data-theme="dark"] .list-group-item.active {
    background-color: #1a3a5c;
    border-color: #1a3a5c;
}

/* ── Table improvements ─────────────────────────────────────────────────── */
[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: rgba(255,255,255,0.06);
    color: #e0e0e0;
}
[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light th,
[data-theme="dark"] .table-light td {
    background-color: #252535 !important;
    color: #e0e0e0 !important;
    border-color: #2d2d4e !important;
}
[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    color: #e0e0e0;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
[data-theme="dark"] .page-link {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #a0a0c0;
}
[data-theme="dark"] .page-link:hover {
    background-color: #2a2a4e;
    color: #ffffff;
}
[data-theme="dark"] .page-item.disabled .page-link {
    background-color: #1a1a28;
    color: #555570;
}

/* ── Dropdown ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .dropdown-menu {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
}
[data-theme="dark"] .dropdown-item {
    color: #c0c0d8;
}
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: #2a2a4e;
    color: #ffffff;
}
[data-theme="dark"] .dropdown-item.active {
    background-color: #1a3a5c;
    color: #ffffff;
}
[data-theme="dark"] .dropdown-divider {
    border-color: #2d2d4e;
}
[data-theme="dark"] .dropdown-header {
    color: #7a7a9a;
}

/* ── Quill WYSIWYG editor ───────────────────────────────────────────────── */
[data-theme="dark"] .ql-toolbar.ql-snow {
    background-color: #1e1e2e !important;
    border-color: #3d3d5e !important;
}
[data-theme="dark"] .ql-container.ql-snow {
    background-color: #252535 !important;
    border-color: #3d3d5e !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .ql-editor {
    background-color: #252535 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .ql-editor.ql-blank::before {
    color: #5a5a7a !important;
}
[data-theme="dark"] .ql-snow .ql-stroke {
    stroke: #a0a0c0;
}
[data-theme="dark"] .ql-snow .ql-fill,
[data-theme="dark"] .ql-snow .ql-stroke.ql-fill {
    fill: #a0a0c0;
}
[data-theme="dark"] .ql-snow .ql-picker {
    color: #a0a0c0;
}
[data-theme="dark"] .ql-snow .ql-picker-options {
    background-color: #1e1e2e;
    border-color: #3d3d5e;
}
[data-theme="dark"] .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,
[data-theme="dark"] .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    border-color: #3d3d5e;
}
[data-theme="dark"] .ql-snow button:hover .ql-stroke,
[data-theme="dark"] .ql-snow .ql-picker-label:hover .ql-stroke {
    stroke: #ffffff;
}

/* ── Custom page panels (co-*, mr-*, od-*) ──────────────────────────────── */
[data-theme="dark"] .co-left-panel,
[data-theme="dark"] .co-right-panel,
[data-theme="dark"] .co-bottom-bar {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #e0e0e0;
}
[data-theme="dark"] .co-section {
    background-color: #252535;
    border-color: #2d2d4e;
}
[data-theme="dark"] .co-section-label {
    color: #7a7a9a;
}
[data-theme="dark"] .co-field-label {
    color: #7a7a9a;
}
[data-theme="dark"] .co-readonly {
    background-color: #1a1a2a !important;
    color: #c0c0d8 !important;
    border-color: #2d2d4e !important;
}
/* Fixed options backgrounds */
[data-theme="dark"] .co-fixed-options.co-fixed-none { background: #252535; }
[data-theme="dark"] .co-fixed-options.co-fixed-partial { background: #1a2a40; }
[data-theme="dark"] .co-fixed-options.co-fixed-all { background: #1a2e20; }
[data-theme="dark"] .co-fixed-check {
    background: rgba(255,255,255,0.05);
    border-color: #3d3d5e;
    color: #c0c0d8;
}
/* Product header */
[data-theme="dark"] .co-product-header {
    background-color: #252535;
    border-color: #2d2d4e;
}
[data-theme="dark"] .co-ph-name,
[data-theme="dark"] .co-ph-col {
    color: #7a7a9a;
}
/* Product rows */
[data-theme="dark"] .co-product-row {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
}
[data-theme="dark"] .co-product-name {
    color: #e0e0e0;
}
[data-theme="dark"] .co-product-sub {
    color: #7a7a9a;
}
[data-theme="dark"] .co-product-img-wrap {
    background-color: #252535;
    border-color: #3d3d5e;
}
/* Price chips */
[data-theme="dark"] .co-price-ok {
    background: #1a3020;
    color: #6ddb8a;
    border-color: #2a5035;
}
[data-theme="dark"] .co-price-warn {
    background: #2e2410;
    color: #f0c060;
    border-color: #5a4010;
}
[data-theme="dark"] .co-price-none { color: #5a5a7a; }
[data-theme="dark"] .co-price-unaccepted { color: #f06080; }
/* Bottom bar */
[data-theme="dark"] .co-total-item span { color: #7a7a9a; }
[data-theme="dark"] .co-total-item strong { color: #e0e0e0; }
[data-theme="dark"] .co-total-grand strong { color: #80b0f0; }
[data-theme="dark"] .co-total-divider { background: #2d2d4e; }
[data-theme="dark"] .co-warning-band {
    background: #2e1520;
    border-color: #5a2030;
    color: #f08090;
}
[data-theme="dark"] .mr-left-panel,
[data-theme="dark"] .mr-right-panel,
[data-theme="dark"] .mr-card,
[data-theme="dark"] .mr-detail-header,
[data-theme="dark"] .mr-detail-body,
[data-theme="dark"] .mr-edit-section {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #e0e0e0;
}
[data-theme="dark"] .mr-card:hover {
    background-color: #252540;
}
[data-theme="dark"] .mr-card.active {
    background-color: #1a2a3a;
    border-color: #1a3a5c;
}
[data-theme="dark"] .od-section,
[data-theme="dark"] .od-detail-card {
    background-color: #1e1e2e;
    border-color: #2d2d4e;
    color: #e0e0e0;
}

/* ── Email preview modal ────────────────────────────────────────────────── */
[data-theme="dark"] #templatePreviewContent {
    background-color: #1e1e2e !important;
    border-color: #2d2d4e !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] #templatePreviewContent p,
[data-theme="dark"] #templatePreviewContent li,
[data-theme="dark"] #templatePreviewContent h1,
[data-theme="dark"] #templatePreviewContent h2,
[data-theme="dark"] #templatePreviewContent h3 {
    color: #e0e0e0 !important;
}
[data-theme="dark"] #templatePreviewContent strong {
    color: #ffffff !important;
}

/* ── Miscellaneous ──────────────────────────────────────────────────────── */
[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: #2d2d4e !important;
}
[data-theme="dark"] .bg-white {
    background-color: #1e1e2e !important;
}
[data-theme="dark"] .bg-light {
    background-color: #1a1a2a !important;
    color: #c0c0d8 !important;
}
[data-theme="dark"] .shadow-sm {
    box-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}
[data-theme="dark"] .shadow {
    box-shadow: 0 3px 10px rgba(0,0,0,0.6) !important;
}

/* Calendar List View — dark */
[data-theme="dark"] .cal-lv-date-header { border-color: #2d2d4e; }
[data-theme="dark"] .cal-lv-date-text { color: #80b0f0; }
[data-theme="dark"] .cal-lv-count { background: #252535; color: #7a7a9a; }
[data-theme="dark"] .cal-lv-card { border-color: #2d2d4e; background: #1e1e2e; }
[data-theme="dark"] .cal-lv-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.4); }
[data-theme="dark"] .cal-lv-project { color: #e0e0e0; }
[data-theme="dark"] .cal-lv-company { color: #7a7a9a; }
[data-theme="dark"] .cal-lv-stat-label { color: #5a5a7a; }
[data-theme="dark"] .cal-lv-stat-value { color: #c0c0d8; }
[data-theme="dark"] .cal-lv-note { color: #7a7a9a; }
[data-theme="dark"] .cal-lv-no-price { color: #ffc107; }
[data-theme="dark"] .cal-lv-item-chip { background: #252535; border-color: #3a3a5a; color: #9090b0; }


/* ===================== END DARK THEME ===================== */

/* ── Confirm Modal ──────────────────────────────────────────────────────── */

.cm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.cm-backdrop.cm-visible {
    opacity: 1;
    pointer-events: auto;
}

.cm-dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 380px;
    margin: 16px;
    transform: scale(0.92) translateY(8px);
    transition: transform 0.18s ease, opacity 0.18s ease;
    opacity: 0;
}

.cm-backdrop.cm-visible .cm-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cm-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff0f0;
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

.cm-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 8px;
}

.cm-message {
    font-size: 13.5px;
    color: #666;
    text-align: center;
    line-height: 1.55;
    margin-bottom: 24px;
}

.cm-actions {
    display: flex;
    gap: 10px;
}

.cm-btn-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.cm-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.cm-btn-confirm {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #e53935;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.cm-btn-confirm:hover { background: #c62828; }

/* Dark mode */
[data-theme="dark"] .cm-dialog {
    background: #1e1e2e;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] .cm-title { color: #e0e0e8; }
[data-theme="dark"] .cm-message { color: #888; }
[data-theme="dark"] .cm-btn-cancel {
    background: #1e1e2e;
    border-color: #3a3a5a;
    color: #aaa;
}
[data-theme="dark"] .cm-btn-cancel:hover { background: #2a2a3e; }
[data-theme="dark"] .cm-icon { background: #3a1a1a; }

/* ── Dashboard ───────────────────────────────────────────────────────────── */

.db-page { max-width: 1200px; }

.db-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.db-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stat cards row */
.db-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.db-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 12px;
    text-decoration: none;
    flex: 1;
    min-width: 180px;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
}

.db-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.09); text-decoration: none; }

.db-stat-blue  { background: #e8f0fb; border-color: #c8d8ec; color: #1a3a5c; }
.db-stat-orange { background: #fff4e5; border-color: #fcd9a0; color: #7c3d00; }
.db-stat-neutral { background: #f8f9fa; border-color: #e5e5e5; color: #333; cursor: default; }
.db-stat-neutral:hover { transform: none; box-shadow: none; }

.db-stat-icon {
    font-size: 26px;
    opacity: 0.75;
    flex-shrink: 0;
    margin-top: 2px;
}

.db-stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 3px;
}

.db-stat-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Projects-by-status inside stat card */
.db-stat-projects { flex: 2; }

.db-status-bars { display: flex; flex-direction: column; gap: 5px; }

.db-status-bar-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
}

.db-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.db-status-name { flex: 1; color: #555; }
.db-status-count { font-weight: 700; color: #333; font-size: 13px; }

/* Section card (recent activity) */
.db-section-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.db-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #1a3a5c;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.db-view-all {
    font-size: 12px;
    font-weight: 600;
    color: #2d7dd2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-view-all:hover { text-decoration: underline; }

/* Activity rows */
.db-activity-list { display: flex; flex-direction: column; }

.db-activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.db-activity-row:last-child { border-bottom: none; }
.db-activity-row:hover { background: #f8f9fa; text-decoration: none; color: inherit; }

.db-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.db-act-created { background: #dcfce7; color: #166534; }
.db-act-updated { background: #dbeafe; color: #1e40af; }

.db-activity-info { flex: 1; min-width: 0; }

.db-activity-project {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-activity-meta {
    font-size: 11.5px;
    color: #aaa;
    margin-top: 1px;
}

/* Request status badges in activity */
.db-req-badge {
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 7px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.db-req-pending   { background: #fef3c7; color: #92400e; }
.db-req-changes   { background: #dbeafe; color: #1e40af; }
.db-req-confirmed { background: #dcfce7; color: #166534; }
.db-req-cancelled { background: #fee2e2; color: #991b1b; }
.db-req-finished  { background: #ede9fe; color: #5b21b6; }

.db-empty-activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: #ccc;
    font-size: 13px;
}

.db-empty-activity i { font-size: 28px; }
.db-empty-hint { font-size: 12px; color: #bbb; }

/* Dark mode */
[data-theme="dark"] .db-header-title { color: #a0c0e8; }
[data-theme="dark"] .db-stat-blue  { background: #1a2a3e; border-color: #2a3a5e; color: #a0c0e8; }
[data-theme="dark"] .db-stat-orange { background: #2a1e0e; border-color: #4a3010; color: #f5c07a; }
[data-theme="dark"] .db-stat-neutral { background: #1e1e2e; border-color: #2e2e4a; color: #c0c0d0; }
[data-theme="dark"] .db-status-name { color: #888; }
[data-theme="dark"] .db-status-count { color: #c0c0d0; }
[data-theme="dark"] .db-section-card { background: #1e1e2e; border-color: #2e2e4a; }
[data-theme="dark"] .db-section-header { background: #181828; border-color: #2e2e4a; color: #a0c0e8; }
[data-theme="dark"] .db-activity-row:hover { background: #252535; }
[data-theme="dark"] .db-activity-project { color: #d0d0e8; }
[data-theme="dark"] .db-activity-meta { color: #666; }
[data-theme="dark"] .db-empty-activity { color: #444; }

.db-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    margin-left: 5px;
    vertical-align: middle;
}

.db-chip-delivery {
    background: #e0f0ff;
    color: #1a5fa8;
    min-width: 90px;
    justify-content: flex-start;
}

.db-chip-pallets {
    background: #f3f4f6;
    color: #374151;
    min-width: 52px;
    justify-content: flex-start;
}

[data-theme="dark"] .db-chip-delivery {
    background: #1a2d4a;
    color: #7ab4e8;
}

[data-theme="dark"] .db-chip-pallets {
    background: #252535;
    color: #9090b0;
}
