/* ── Theme custom properties ─────────────────────────────────────────── */
:root {
    --iotech-surface:         #ffffff;
    --iotech-surface-alt:     #f8f9fa;
    --iotech-card-bg:         #f8f9fa;
    --iotech-card-border:     #ddd;
    --iotech-card-shadow:     rgba(0, 0, 0, 0.2);
    --iotech-card-shadow-lg:  rgba(0, 0, 0, 0.3);
    --iotech-sidebar-shadow:  rgba(0, 0, 0, 0.1);
    --iotech-border:          #dee2e6;
    --iotech-border-subtle:   #f0f0f0;
    --iotech-unread-bg:       #f0f7ff;
    --iotech-item-hover:      #f8f9fa;
    --iotech-overlay:         rgba(0, 0, 0, 0.5);
    --iotech-heading:         #343a40;
    --iotech-muted:           #6c757d;
}

/* ── Layout: sidebar + content ────────────────────────────────────────── */
#sidebar-wrapper {
    width: 250px;
    position: fixed;
    height: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--iotech-surface);
    box-shadow: 2px 0 5px var(--iotech-sidebar-shadow);
}

#top-navbar {
    background-color: var(--iotech-surface);
    border-color: var(--iotech-border);
}

#page-content-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Mobile: hide sidebar, show bottom nav, add bottom padding for it */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        display: none !important;
    }

    #page-content-wrapper {
        margin-left: 0 !important;
        /* space for the fixed bottom nav */
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

/* Desktop: fixed sidebar with content pushed right */
@media (min-width: 992px) {
    #sidebar-wrapper {
        left: 0;
    }

    #page-content-wrapper {
        margin-left: 250px;
    }
}

/* ── Mobile bottom navigation ────────────────────────────────────────── */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--iotech-surface);
    border-top: 1px solid var(--iotech-border);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.7rem;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: #0d6efd;
}

.bottom-nav-item:hover {
    color: #0d6efd;
    text-decoration: none;
}

.bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.1;
    min-width: 16px;
    text-align: center;
}

/* Floating action button (device settings cog) */
.fab-settings {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

@media (max-width: 991.98px) {
    .fab-settings {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
}

/* Custom styles for the cards */
.card {
    box-shadow: 0 6px 12px var(--iotech-card-shadow);
    border: 1px solid var(--iotech-card-border);
    border-radius: 10px;
    background-color: var(--iotech-card-bg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--iotech-card-shadow-lg);
}

/* Center text in card titles */
.card-title {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--iotech-heading);
}

/* Adjust card text color and spacing */
.card-text {
    color: var(--iotech-muted);
    margin-top: 0.5rem;
}

/* Center cards in the row */
.row.justify-content-center {
    margin-top: 2rem; /* Add some space at the top */
    margin-bottom: 2rem; /* Add some space at the bottom */
}

@media (max-width: 768px) { /* Adjust this breakpoint as needed */
    .wide-mobile-tile {
        --bs-gutter-x: 10px;
    }
}

.content-tile {
    padding-left: 5px;
    padding-right: 5px;
}


/* Ensure the links have no text decoration and inherit the default color */
a.text-decoration-none {
    text-decoration: none;
    color: inherit;
}

.clickable-row {
    cursor: pointer;
}

/* ── Clickable nav cards (link to sub-pages) ─────────────────────── */

.clickable-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.clickable-card .card-body {
    position: relative;
}

.clickable-card .card-chevron {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--bs-secondary);
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.clickable-card:hover .card-chevron {
    opacity: 1;
}

@media (max-width: 768px) {
    .btn-group-vertical {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center buttons horizontally */
        width: 100%;
    }
    .btn-group-vertical .btn {
        margin-bottom: 20px;
        width: calc(100% - 20px); /* Ensure there's some space around the buttons, 10px on each side */
    }
    .btn-group-vertical .btn:last-child {
        margin-bottom: 0;
    }
}

.stream-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    background-color: black; /* Fallback for loading times */
    overflow: hidden;
}

.stream-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Contain ensures the entire image fits within the container */
    background-color: black; /* Optional: Set a background color for the container */
}

.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Higher than the sidebar and content */
}

.loading-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--iotech-surface);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


footer {
    text-align: center;
    padding: 1rem 0;
    background: var(--iotech-surface);
}

/* Active nav state highlighting */
.list-group-item.active {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
}

.list-group-item.active:hover {
    background-color: #0b5ed7 !important;
}

/* Password visibility toggle */
.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    font-size: 1.1rem;
    z-index: 10;
    line-height: 1;
}

.password-toggle:hover {
    color: #343a40;
}

.password-toggle:focus {
    outline: none;
}

/* Card title icons */
.card-title i {
    color: #0d6efd;
}

h2 i.fa-video {
    color: #0d6efd;
}

/* Status badges */
.status-badge {
    font-weight: 600;
    padding: 0.25em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    display: inline-block;
}

.status-online {
    background-color: #d4edda;
    color: #155724;
}

.status-offline {
    background-color: #f8d7da;
    color: #721c24;
}

/* Alert card states */
.alert-card-active {
    border: 2px solid #dc3545;
    background-color: #fff5f5;
}

.alert-card-clear {
    border: 2px solid #198754;
    background-color: #f6fff6;
}

.alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
}

.alert-row-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.alert-dot-danger {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: #dc3545;
    flex-shrink: 0;
}

.alert-dot-clear {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: #198754;
    flex-shrink: 0;
}

.alert-row-value {
    color: #6c757d;
    font-size: 0.85em;
}

/* ── Notification bell & dropdown ────────────────────────────────────────── */

#notification-bell {
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

#notification-bell:focus-visible {
    outline: 2px solid var(--bs-focus-ring-color, rgba(13, 110, 253, 0.25));
    outline-offset: 2px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 420px;
    background: var(--iotech-surface);
    border: 1px solid var(--iotech-border);
    border-radius: 6px;
    box-shadow: 0 4px 16px var(--iotech-sidebar-shadow);
    z-index: 1050;
    overflow: hidden;
}

.notification-dropdown-body {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    border-bottom: 1px solid var(--iotech-border-subtle);
    color: var(--iotech-heading);
    transition: background 0.15s;
}

.notification-item:hover {
    background: var(--iotech-item-hover);
    color: var(--iotech-heading);
    text-decoration: none;
}

.notification-unread {
    background-color: var(--iotech-unread-bg);
}

.notification-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.notification-severity-info {
    background-color: #0dcaf0;
}

.notification-severity-warning {
    background-color: #ffc107;
}

.notification-severity-critical {
    background-color: #dc3545;
}

/* Notification history page */
.notification-history-item.notification-unread {
    background-color: var(--iotech-unread-bg);
    border-left: 3px solid #0d6efd;
}

/* Card list items — inherit card background instead of Bootstrap white */
.card .list-group-item {
    background-color: transparent;
}

/* ── Onboarding wizard ───────────────────────────────────────────────── */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.onboarding-modal {
    background: var(--iotech-surface);
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    transition: background 0.2s;
}

.onboarding-dot.active {
    background: #0d6efd;
}

.onboarding-icon {
    margin-bottom: 1rem;
}

.onboarding-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.onboarding-tour-items {
    margin: 1rem 0;
}

.onboarding-tour-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

.onboarding-tour-item:last-child {
    border-bottom: none;
}

.onboarding-tour-item i {
    margin-top: 3px;
    flex-shrink: 0;
}

.onboarding-inline-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.onboarding-skip {
    display: block;
    margin: 0.75rem auto 0;
}

.onboarding-close {
    z-index: 1;
}

/* ── Observatory Calendar ─────────────────────────────────────────── */

.obs-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--bs-secondary);
    margin-bottom: 0.25rem;
}

.obs-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.obs-calendar-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 0;
    border: 2px solid transparent;
    transition: border-color 0.15s, background-color 0.15s;
}

.obs-calendar-cell:hover {
    background-color: rgba(0,0,0,0.05);
}

.obs-calendar-empty {
    cursor: default;
}

.obs-calendar-today {
    font-weight: 700;
    border-color: var(--bs-primary) !important;
}

.obs-calendar-selected {
    border-color: var(--bs-dark) !important;
    background-color: rgba(0,0,0,0.08);
}

/* Efficiency color coding */
.obs-calendar-eff-high {
    background-color: rgba(25, 135, 84, 0.2);
}

.obs-calendar-eff-mid {
    background-color: rgba(255, 193, 7, 0.2);
}

.obs-calendar-eff-low {
    background-color: rgba(220, 53, 69, 0.2);
}

.obs-calendar-eff-none.obs-calendar-has-data {
    background-color: rgba(108, 117, 125, 0.15);
}

.obs-calendar-num {
    font-size: 0.85rem;
}

.obs-calendar-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Night chart container */
#chart-wrapper {
    max-height: 400px;
}

.chart-toggle.active {
    background-color: var(--bs-secondary);
    color: #fff;
}

/* Responsive: smaller calendar cells on mobile */
@media (max-width: 576px) {
    .obs-calendar-cell {
        font-size: 0.75rem;
        padding: 4px 0;
    }
    .obs-calendar-grid {
        gap: 2px;
    }
    .obs-calendar-badge {
        width: 14px;
        height: 14px;
        font-size: 0.55rem;
    }
    .obs-calendar-day-name {
        font-size: 0.7rem;
    }
}

/* ── Dome Health Page ──────────────────────────────────────────────── */

.dome-health-chart-wrapper {
    position: relative;
    height: 300px;
}

.dome-health-anomaly-alert {
    border-left: 4px solid var(--bs-danger);
}

.dome-health-anomaly-clear {
    border-left: 4px solid var(--bs-success);
}

/* P1 Meter — Hero Power Display */
.power-hero {
    text-align: center;
    padding: 1rem 1rem 0.5rem;
}

.power-hero-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.power-hero-label {
    font-size: 0.95rem;
    color: var(--bs-secondary);
    margin-top: 0.25rem;
}

.power-hero-consuming .power-hero-value {
    color: var(--bs-body-color);
}

.power-hero-returning .power-hero-value {
    color: var(--bs-success);
}

/* Compact metadata row below hero */
.power-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--bs-secondary);
}

/* P1 Meter — Inline Power Chart */
.power-chart-wrapper {
    position: relative;
    height: 200px;
}

/* P1 Meter — Technical Section Toggle */
.technical-toggle {
    cursor: pointer;
    user-select: none;
}

.technical-toggle-icon {
    transition: transform 0.25s ease;
    display: inline-block;
}

.technical-toggle[aria-expanded="true"] .technical-toggle-icon {
    transform: rotate(90deg);
}

/* Dome Configuration — pending state indicators */
.dome-config-pending-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2em 0.65em;
    border-radius: 0.25rem;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.dome-config-field-pending {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 193, 7, 0.25) !important;
}

.dome-config-field-hint {
    font-size: 0.8rem;
    color: #856404;
    margin-top: 0.3rem;
}

.dome-config-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

/* ── Edit Device page ────────────────────────────────────────────────── */

/* Suppress the global card lift animation on static form cards */
.edit-page .card:hover {
    transform: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Notification preference rows */
.notif-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e9ecef;
}

.notif-pref-row:last-child {
    border-bottom: none;
}

.notif-pref-label {
    flex: 1;
    font-size: 0.9rem;
}

.notif-pref-channels {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.notif-pref-channels .form-check {
    margin: 0;
}

.notif-pref-secondary {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    border-left: 2px solid #dee2e6;
    transition: opacity 0.15s ease;
}

.notif-pref-secondary.notif-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.notif-channel-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Help icon — small ⓘ button shown next to field labels */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #adb5bd;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    cursor: pointer;
    margin-left: 0.3rem;
    vertical-align: middle;
    line-height: 1;
    user-select: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.help-icon:hover,
.help-icon:focus {
    background-color: #6c757d;
    outline: none;
}

/* ── Safe-area padding (iPhone home indicator) ───────────────────── */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* ── Auth pages (login, password reset, etc.) ────────────────────── */

.auth-page {
    min-height: 100vh;
    background: var(--iotech-surface);
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.auth-brand {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-brand-img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

.auth-content {
    width: 100%;
    max-width: 400px;
}

.auth-heading {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.auth-subheading {
    color: var(--iotech-muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

/* Divider between two auth options */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: #adb5bd;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.auth-divider span {
    padding: 0 0.75rem;
}

/* Inline error state for auth forms */
.auth-error {
    font-size: 0.875rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

/* ── Brand banner ───────────────────────────────────────────────────── */
.brand-banner {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* ── Theme toggle button ─────────────────────────────────────────────── */

/* Sidebar variant — full-width, left-aligned, matches sidebar nav items */
.theme-toggle-sidebar {
    display: flex;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--bs-secondary-color, #6c757d);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    text-align: left;
    align-items: center;
    transition: color 0.15s, background-color 0.15s;
    touch-action: manipulation;
}

.theme-toggle-sidebar:hover {
    color: var(--bs-body-color);
    background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.05));
}

/* Mobile dark mode switch */
.theme-switch-mobile {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

/* ── Dark mode overrides ─────────────────────────────────────────────── */
[data-bs-theme="dark"] {
    /* Custom property overrides — all selector rules are kept flat below */
    --iotech-surface:        #1e293b;
    --iotech-surface-alt:    #0f172a;
    --iotech-card-bg:        #1e293b;
    --iotech-card-border:    #334155;
    --iotech-card-shadow:    rgba(0, 0, 0, 0.5);
    --iotech-card-shadow-lg: rgba(0, 0, 0, 0.7);
    --iotech-sidebar-shadow: rgba(0, 0, 0, 0.5);
    --iotech-border:         #334155;
    --iotech-border-subtle:  #253347;
    --iotech-unread-bg:      rgba(59, 130, 246, 0.12);
    --iotech-item-hover:     rgba(255, 255, 255, 0.05);
    --iotech-overlay:        rgba(0, 0, 0, 0.75);
    --iotech-heading:        #e2e8f0;
    --iotech-muted:          #94a3b8;
}

/* ── Dark mode selector overrides (flat — no CSS nesting) ────────────── */

/* Keep card title icons readable */
[data-bs-theme="dark"] .card-title i {
    color: #60a5fa;
}

/* Alert/status badges */
[data-bs-theme="dark"] .status-online {
    background-color: rgba(25, 135, 84, 0.2);
    color: #6ee7b7;
}

[data-bs-theme="dark"] .status-offline {
    background-color: rgba(220, 53, 69, 0.2);
    color: #fca5a5;
}

[data-bs-theme="dark"] .alert-card-active {
    border-color: #f87171;
    background-color: rgba(220, 53, 69, 0.1);
}

[data-bs-theme="dark"] .alert-card-clear {
    border-color: #34d399;
    background-color: rgba(25, 135, 84, 0.1);
}

/* Dome config pending */
[data-bs-theme="dark"] .dome-config-pending-badge {
    background-color: rgba(255, 193, 7, 0.15);
    color: #fbbf24;
    border-color: rgba(255, 193, 7, 0.4);
}

[data-bs-theme="dark"] .dome-config-field-hint {
    color: #fbbf24;
}

/* Auth page */
[data-bs-theme="dark"] .auth-page {
    background: #0f172a;
}

/* Onboarding dots */
[data-bs-theme="dark"] .onboarding-dot {
    background: #334155;
}

[data-bs-theme="dark"] .onboarding-dot.active {
    background: #60a5fa;
}

/* Bottom nav */
[data-bs-theme="dark"] .bottom-nav-item.active {
    color: #60a5fa;
}

[data-bs-theme="dark"] .bottom-nav-item:hover {
    color: #60a5fa;
}

/* Nav list group active */
[data-bs-theme="dark"] .list-group-item.active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .list-group-item.active:hover {
    background-color: #2563eb !important;
}

/* Sidebar nav items */
[data-bs-theme="dark"] .list-group-item-action {
    background-color: var(--iotech-surface) !important;
    color: #cbd5e1;
    border-color: var(--iotech-border);
}

[data-bs-theme="dark"] .list-group-item-action:hover {
    background-color: var(--iotech-item-hover) !important;
    color: #e2e8f0;
}

/* Top navbar */
[data-bs-theme="dark"] #top-navbar {
    background-color: var(--iotech-surface) !important;
    border-color: var(--iotech-border) !important;
}

/* Sidebar border */
[data-bs-theme="dark"] #sidebar-wrapper {
    border-color: var(--iotech-border) !important;
}

/* Banner images have opaque white backgrounds —
   mix-blend-mode: multiply makes white areas transparent on any dark surface */
[data-bs-theme="dark"] .auth-brand-img,
[data-bs-theme="dark"] .brand-logo,
[data-bs-theme="dark"] .brand-banner {
    mix-blend-mode: multiply;
}
