/* Dark Theme Overrides */
[data-theme="dark"] body {
    background-color: #121212 !important;
}
/* Global Text Colors & Variables */
[data-theme="dark"] {
    --color-default: #e0e0e0;
    --color-secondary: #cccccc;
}

[data-theme="dark"] body,
[data-theme="dark"] footer,
[data-theme="dark"] .footer,
[data-theme="dark"] div:not(.badge):not(.badge *):not(.btn):not(.btn *):not([class*="alert-"]):not([class*="alert-"] *):not(.bg-warning):not(.bg-warning *):not(.bg-info):not(.bg-info *):not(.bg-pending):not(.bg-pending *):not(.bot-status-pill):not(.bot-status-pill *):not([class*="bot-status"]):not([class*="bot-status"] *),
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p:not([class*="alert-"] *),
[data-theme="dark"] span:not(.theme-option span):not(.navbar span):not(.header span):not(.badge):not(.badge *):not(.btn):not(.btn *):not([class*="badge"]):not([class*="-badge"]):not([class*="-badge"] *):not([class*="-subtle"]):not([class*="-subtle"] *):not([class*="alert-"] *):not(.bg-warning *):not(.bg-info *):not(.bg-pending *):not(.bot-status-pill):not(.bot-status-pill *):not([class*="bot-status"]):not([class*="bot-status"] *),
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] label,
[data-theme="dark"] strong:not(.badge *):not(.btn *):not(.bg-warning *),
[data-theme="dark"] b:not(.badge *):not(.btn *):not(.bg-warning *),
[data-theme="dark"] small,
[data-theme="dark"] article,
[data-theme="dark"] section {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-dark:not(.badge):not(.badge *):not(.btn):not(.btn *):not(.bg-warning):not(.bg-warning *):not(.bg-info):not(.bg-info *):not(.bg-pending):not(.bg-pending *):not(.status-expired):not(.status-expired *) {
    color: #e0e0e0 !important;
}

[data-theme="dark"] a:not(.btn):not(.theme-option):not(.navbar a):not(.header a):not(.badge) {
    color: #66b2ff !important;
}
[data-theme="dark"] a:not(.btn):not(.theme-option):not(.navbar a):not(.header a):not(.badge):hover {
    color: #ffc732 !important;
}


[data-theme="dark"] section.announcement,
[data-theme="dark"] .announcement-update {
    background-color: #1e1e1e !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .announcement-item,
[data-theme="dark"] .announcement-item-update {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] h1.announcement-text,
[data-theme="dark"] .announcement-text-update,
[data-theme="dark"] .heading-update,
[data-theme="dark"] .main-title {
    color: #ffffff !important;
    border-color: #444 !important;
}

[data-theme="dark"] .content,
[data-theme="dark"] .announcement-content-text-update {
    color: #cccccc !important;
}

[data-theme="dark"] .sub-title,
[data-theme="dark"] .time,
[data-theme="dark"] h1.announcement-text .clock,
[data-theme="dark"] .clock,
[data-theme="dark"] .time-update {
    color: #aaa !important;
}

/* Calendar & Cards */
[data-theme="dark"] .company-calendar-section {
    background: #121212 !important;
}

[data-theme="dark"] .glass-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .company-calendar-section .section-header h2,
[data-theme="dark"] .calendar-header h3,
[data-theme="dark"] .holiday-list-card h3 {
    color: #ffffff !important;
    border-color: #444 !important;
}

[data-theme="dark"] .calendar-nav-btn {
    background: #2a2a2a !important;
    color: #fff !important;
}
[data-theme="dark"] .calendar-nav-btn:hover {
    background: #3498db !important;
}

[data-theme="dark"] .calendar-today-btn {
    background: #3498db !important;
    color: #ffffff !important;
}
[data-theme="dark"] .calendar-today-btn:hover {
    background: #2980b9 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .calendar-grid-header div {
    color: #a0aec0 !important;
}
[data-theme="dark"] .calendar-grid-header div:first-child {
    color: #ff6b6b !important;
}
[data-theme="dark"] .calendar-grid-header div:last-child {
    color: #a78bfa !important;
}

[data-theme="dark"] .calendar-day {
    background: #222222 !important;
    border-color: #333333 !important;
    color: #dddddd !important;
}

[data-theme="dark"] .calendar-day:hover:not(.empty):not(.holiday):not(.today) {
    background: rgba(52, 152, 219, 0.15) !important;
    border-color: #3498db !important;
    color: #3498db !important;
}

[data-theme="dark"] .calendar-day.empty {
    background: transparent !important;
    border: none !important;
    color: transparent !important;
}

/* Today (Current Day) */
[data-theme="dark"] .calendar-day.today {
    background: rgba(52, 152, 219, 0.25) !important;
    border: 2px solid #3498db !important;
    color: #5dade2 !important;
    font-weight: 700 !important;
}
[data-theme="dark"] .calendar-day.today:hover {
    background: #3498db !important;
    border-color: #3498db !important;
    color: #ffffff !important;
}

/* Holiday (Company Holiday - Red Accent) */
[data-theme="dark"] .calendar-day.holiday {
    background: rgba(231, 76, 60, 0.25) !important;
    border: 1px solid rgba(231, 76, 60, 0.6) !important;
    color: #ff6b6b !important;
    font-weight: 700 !important;
}
[data-theme="dark"] .calendar-day.holiday:hover {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #ffffff !important;
}
[data-theme="dark"] .calendar-day.holiday::after {
    background: #e74c3c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

/* Today & Holiday Combined */
[data-theme="dark"] .calendar-day.today.holiday {
    background: rgba(231, 76, 60, 0.3) !important;
    border: 2px solid #e74c3c !important;
    box-shadow: 0 0 0 2px #3498db !important;
    color: #ff6b6b !important;
}

[data-theme="dark"] .holiday-item {
    background: #2a2a2a !important;
    border-color: #444 !important;
}
[data-theme="dark"] .holiday-item:hover {
    background: #333 !important;
}
[data-theme="dark"] .holiday-name {
    color: #fff !important;
}
[data-theme="dark"] .holiday-date {
    color: #bbb !important;
}

/* Base components */
[data-theme="dark"] .section-bg {
    background-color: #1a1a1a !important;
}
[data-theme="dark"] .section-header h2 {
    color: #fff !important;
}
[data-theme="dark"] .breadcrumbs {
    background-color: #1a1a1a !important;
}

[data-theme="dark"] .popup {
    background-color: rgba(0, 0, 0, 0.82) !important;
}

[data-theme="dark"] .popup-content,
[data-theme="dark"] .popup_img-content {
    background: #182234 !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .popup-header {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .popup-body {
    background: #182234 !important;
}

[data-theme="dark"] .popup-content .close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .popup-content .close-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

[data-theme="dark"] .popup-content .main-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .popup-content .sub-title {
    color: #94a3b8 !important;
}

[data-theme="dark"] .popup-content .time {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .popup-content .content-box,
[data-theme="dark"] .popup-content .content,
[data-theme="dark"] .popup-content p.content {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .popup-content .content-text {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .popup-content .popup-image-wrapper,
[data-theme="dark"] .popup-content .popup-image,
[data-theme="dark"] .popup-content .popup-image-container {
    border-color: #334155 !important;
    background: #0f172a !important;
}

[data-theme="dark"] .popup-content .popup-thumb-card {
    background: #0b1120 !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .popup-content .popup-thumb-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .popup-content .popup-thumb-badge {
    background: rgba(15, 23, 42, 0.88) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .popup-content .popup-thumb-card:hover .popup-thumb-badge {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
}

[data-theme="dark"] .popup-content .popup-footer {
    background: #111827 !important;
    border-top-color: #334155 !important;
}

[data-theme="dark"] .popup-content .disable-link {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .popup-content .disable-link:hover {
    background: #334155 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .popup-content .announcement-item-popup + .announcement-item-popup {
    border-top-color: #334155 !important;
}

/* Fix inline white/light backgrounds and specific containers */
[data-theme="dark"] [style*="background-color: #f8f9fa"],
[data-theme="dark"] [style*="background-color:#f8f9fa"],
[data-theme="dark"] [style*="background: #f8f9fa"],
[data-theme="dark"] [style*="background:#f8f9fa"],
[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] [style*="background-color:#fff"],
[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .subscribe-container,
[data-theme="dark"] .our-story,
[data-theme="dark"] .card,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .company-calendar-section,
[data-theme="dark"] .holiday-item,
[data-theme="dark"] .swal2-popup,
[data-theme="dark"] #cookie-consent {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

[data-theme="dark"] .navbar .dropdown ul {
    background: rgba(24, 24, 27, 0.98) !important;
    border: 1px solid #3f3f46 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .navbar .dropdown ul a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .navbar .dropdown ul a.active {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .navbar .dropdown ul a:hover,
[data-theme="dark"] .navbar .dropdown ul li:hover > a {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

/* Cookie Consent Banner */
[data-theme="dark"] #cookie-consent {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-top: 1px solid #333 !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.6) !important;
    z-index: 9999999 !important;
}
[data-theme="dark"] #cookie-consent div,
[data-theme="dark"] #cookie-consent span {
    color: #e0e0e0 !important;
}
[data-theme="dark"] #cookie-consent a {
    color: #66b2ff !important;
    text-decoration: underline !important;
}
[data-theme="dark"] #cookie-consent a:hover {
    color: #ffc732 !important;
}
[data-theme="dark"] .holiday-item:hover {
    background-color: #2c1a1a !important;
}

/* Theme Switcher Button & Popup UI (Positioned below #lang-switcher-btn) */
#theme-switcher-btn {
    position: fixed;
    top: 182px;
    bottom: auto;
    right: 20px;
    z-index: 990;
    background: #3498db;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

#theme-switcher-btn:hover {
    transform: scale(1.1);
    background: #2980b9;
}

body.mobile-nav-active #theme-switcher-btn,
body.nav-dropdown-open #theme-switcher-btn,
body.has-dropdown-open #theme-switcher-btn,
.header:hover ~ #theme-switcher-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -10 !important;
    transform: scale(0.6) !important;
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease !important;
}

@supports selector(:has(*)) {
    body:has(#navbar .dropdown:hover) #theme-switcher-btn,
    body:has(#navbar .dropdown:focus-within) #theme-switcher-btn,
    body:has(.navbar .dropdown:hover) #theme-switcher-btn,
    body:has(.navbar .dropdown:focus-within) #theme-switcher-btn,
    body:has(.header .dropdown:hover) #theme-switcher-btn,
    body:has(.header .dropdown:focus-within) #theme-switcher-btn,
    body:has(.header:hover) #theme-switcher-btn,
    body:has(#navbar:hover) #theme-switcher-btn {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: -10 !important;
        transform: scale(0.6) !important;
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease !important;
    }
}

#theme-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
    z-index: 100000;
}

#theme-popup.show {
    visibility: visible;
    opacity: 1;
}

.theme-popup-inner {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
#theme-popup.show .theme-popup-inner {
    transform: translateY(0);
}

[data-theme="dark"] .theme-popup-inner {
    background: #1e1e1e;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.theme-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.theme-popup-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}
[data-theme="dark"] .theme-popup-header h3 {
    color: #fff;
}

.theme-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.theme-popup-close:hover {
    color: #e74c3c;
}

/* Theme Popup Footer Close Button */
.theme-popup-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: center;
}

[data-theme="dark"] .theme-popup-footer {
    border-top-color: #333;
}

.theme-popup-bottom-close {
    width: 100%;
    padding: 10px 18px;
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-popup-bottom-close:hover,
.theme-popup-bottom-close:active {
    background: #e2e8f0;
    color: #2d3748;
}

[data-theme="dark"] .theme-popup-bottom-close {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-theme="dark"] .theme-popup-bottom-close:hover,
[data-theme="dark"] .theme-popup-bottom-close:active {
    background: #4a5568;
    color: #ffffff;
}

@media (max-width: 768px) {
    .theme-popup-close {
        min-width: 44px;
        min-height: 44px;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    .theme-popup-bottom-close {
        padding: 12px 20px;
        font-size: 15px;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.35);
        border-radius: 14px;
    }

    .theme-popup-bottom-close:active {
        background: #ef4444;
        color: #ffffff;
    }
}

.theme-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #edf2f7;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #555;
}

[data-theme="dark"] .theme-option {
    background: #2a2a2a;
    border-color: #444;
    color: #bbb;
}

.theme-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
[data-theme="dark"] .theme-option:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.theme-option.active {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.theme-option i {
    font-size: 28px;
    margin-bottom: 10px;
}
.theme-option span {
    font-size: 14px;
    font-weight: 600;
}

[data-theme="dark"] .constructions .card-item,
[data-theme="dark"] .services .service-item,
[data-theme="dark"] .card-item {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

[data-theme="dark"] .card-item h4,
[data-theme="dark"] .card-item p {
    color: #e0e0e0 !important;
}

/* ==========================================================================
   Global Bootstrap, Admin & Form Controls Dark Theme
   ========================================================================== */
/* ==========================================================================
   Global Bootstrap Alerts Dark Theme Styles
   ========================================================================== */
[data-theme="dark"] .alert-warning {
    background-color: #332701 !important;
    border-color: #664d03 !important;
    color: #ffda6a !important;
}
[data-theme="dark"] .alert-warning *,
[data-theme="dark"] .alert-warning div,
[data-theme="dark"] .alert-warning p,
[data-theme="dark"] .alert-warning span,
[data-theme="dark"] .alert-warning i,
[data-theme="dark"] .alert-warning a {
    color: #ffda6a !important;
}
[data-theme="dark"] .alert-warning a {
    text-decoration: underline !important;
}

[data-theme="dark"] .alert-info {
    background-color: #032830 !important;
    border-color: #087990 !important;
    color: #6edff6 !important;
}
[data-theme="dark"] .alert-info *,
[data-theme="dark"] .alert-info div,
[data-theme="dark"] .alert-info p,
[data-theme="dark"] .alert-info span,
[data-theme="dark"] .alert-info i,
[data-theme="dark"] .alert-info a {
    color: #6edff6 !important;
}
[data-theme="dark"] .alert-info a {
    text-decoration: underline !important;
}

[data-theme="dark"] .alert-success {
    background-color: #051b11 !important;
    border-color: #0f5132 !important;
    color: #75b798 !important;
}
[data-theme="dark"] .alert-success *,
[data-theme="dark"] .alert-success div,
[data-theme="dark"] .alert-success p,
[data-theme="dark"] .alert-success span,
[data-theme="dark"] .alert-success i,
[data-theme="dark"] .alert-success a {
    color: #75b798 !important;
}

[data-theme="dark"] .alert-danger {
    background-color: #2c0b0e !important;
    border-color: #842029 !important;
    color: #ea868f !important;
}
[data-theme="dark"] .alert-danger *,
[data-theme="dark"] .alert-danger div,
[data-theme="dark"] .alert-danger p,
[data-theme="dark"] .alert-danger span,
[data-theme="dark"] .alert-danger i,
[data-theme="dark"] .alert-danger a {
    color: #ea868f !important;
}

[data-theme="dark"] .alert-primary {
    background-color: #031633 !important;
    border-color: #084298 !important;
    color: #6ea8fe !important;
}
[data-theme="dark"] .alert-primary *,
[data-theme="dark"] .alert-primary div,
[data-theme="dark"] .alert-primary p,
[data-theme="dark"] .alert-primary span,
[data-theme="dark"] .alert-primary i,
[data-theme="dark"] .alert-primary a {
    color: #6ea8fe !important;
}

[data-theme="dark"] .alert-secondary {
    background-color: #1f2327 !important;
    border-color: #41464b !important;
    color: #a7acb1 !important;
}
[data-theme="dark"] .alert-secondary *,
[data-theme="dark"] .alert-secondary div,
[data-theme="dark"] .alert-secondary p,
[data-theme="dark"] .alert-secondary span,
[data-theme="dark"] .alert-secondary i {
    color: #a7acb1 !important;
}

[data-theme="dark"] .alert-light {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .alert-dark {
    background-color: #161719 !important;
    border-color: #292a2d !important;
    color: #dee2e6 !important;
}

/* ==========================================================================
   Badges Dark Theme Styles & Visibility Safeguards
   ========================================================================== */
[data-theme="dark"] .badge.bg-warning,
[data-theme="dark"] .badge.bg-warning.text-dark,
[data-theme="dark"] .badge-warning,
[data-theme="dark"] .bg-warning {
    background-color: #ffc107 !important;
    color: #121212 !important;
}
[data-theme="dark"] .badge.bg-warning *,
[data-theme="dark"] .badge.bg-warning.text-dark *,
[data-theme="dark"] .badge-warning *,
[data-theme="dark"] .bg-warning * {
    color: #121212 !important;
}

[data-theme="dark"] .badge.bg-info,
[data-theme="dark"] .badge.bg-info.text-dark,
[data-theme="dark"] .bg-info {
    background-color: #0dcaf0 !important;
    color: #121212 !important;
}
[data-theme="dark"] .badge.bg-info *,
[data-theme="dark"] .badge.bg-info.text-dark *,
[data-theme="dark"] .bg-info * {
    color: #121212 !important;
}

[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.bg-light.text-dark,
[data-theme="dark"] .badge.bg-white {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .badge.bg-light *,
[data-theme="dark"] .badge.bg-light.text-dark *,
[data-theme="dark"] .badge.bg-white * {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .badge.bg-primary,
[data-theme="dark"] .badge.bg-success,
[data-theme="dark"] .badge.bg-danger,
[data-theme="dark"] .badge.bg-secondary,
[data-theme="dark"] .badge.bg-dark {
    color: #ffffff !important;
}
[data-theme="dark"] .badge.bg-primary *,
[data-theme="dark"] .badge.bg-success *,
[data-theme="dark"] .badge.bg-danger *,
[data-theme="dark"] .badge.bg-secondary *,
[data-theme="dark"] .badge.bg-dark * {
    color: #ffffff !important;
}

/* Event Log & Custom System Badges */
[data-theme="dark"] .badge-create {
    background-color: #064e3b !important;
    color: #6ee7b7 !important;
}
[data-theme="dark"] .badge-update {
    background-color: #713f12 !important;
    color: #fde047 !important;
}
[data-theme="dark"] .badge-delete {
    background-color: #7f1d1d !important;
    color: #fca5a5 !important;
}
[data-theme="dark"] .badge-post {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
}
[data-theme="dark"] .badge-query {
    background-color: #581c87 !important;
    color: #d8b4fe !important;
}
[data-theme="dark"] .badge-view {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .badge-count {
    background-color: #1e3a8a !important;
    color: #bfdbfe !important;
}
[data-theme="dark"] .bg-pending {
    background-color: #ffc107 !important;
    color: #121212 !important;
}
[data-theme="dark"] .bg-pending * {
    color: #121212 !important;
}
[data-theme="dark"] .bg-rejected {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .category-badge {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .status-expired {
    background-color: #ffc107 !important;
    color: #121212 !important;
}
[data-theme="dark"] .status-missing {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Subtle Badges & Feature Badges in Dark Mode */
[data-theme="dark"] .bg-danger-subtle,
[data-theme="dark"] .badge.bg-danger-subtle,
[data-theme="dark"] .standard-feature-badge.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
}
[data-theme="dark"] .bg-danger-subtle *,
[data-theme="dark"] .badge.bg-danger-subtle *,
[data-theme="dark"] .standard-feature-badge.bg-danger-subtle * {
    color: #fca5a5 !important;
}

[data-theme="dark"] .bg-primary-subtle,
[data-theme="dark"] .badge.bg-primary-subtle,
[data-theme="dark"] .standard-feature-badge.bg-primary-subtle {
    background-color: rgba(59, 130, 246, 0.22) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #93c5fd !important;
}
[data-theme="dark"] .bg-primary-subtle *,
[data-theme="dark"] .badge.bg-primary-subtle *,
[data-theme="dark"] .standard-feature-badge.bg-primary-subtle * {
    color: #93c5fd !important;
}

[data-theme="dark"] .bg-success-subtle,
[data-theme="dark"] .badge.bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.22) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #86efac !important;
}
[data-theme="dark"] .bg-success-subtle * {
    color: #86efac !important;
}

[data-theme="dark"] .bg-warning-subtle,
[data-theme="dark"] .badge.bg-warning-subtle {
    background-color: rgba(234, 179, 8, 0.22) !important;
    border-color: rgba(234, 179, 8, 0.5) !important;
    color: #fde047 !important;
}
[data-theme="dark"] .bg-warning-subtle * {
    color: #fde047 !important;
}

[data-theme="dark"] .bg-info-subtle,
[data-theme="dark"] .badge.bg-info-subtle {
    background-color: rgba(6, 182, 212, 0.22) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    color: #67e8f9 !important;
}
[data-theme="dark"] .bg-info-subtle * {
    color: #67e8f9 !important;
}

/* Bot Status Pills (Light & Dark Theme Visibility Safeguard) */
.bot-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}
.bot-status-pill.bot-status-active,
.bot-status-active {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
}
.bot-status-pill.bot-status-active *,
.bot-status-active * {
    color: #15803d !important;
}
.bot-status-pill.bot-status-inactive,
.bot-status-inactive {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}
.bot-status-pill.bot-status-inactive *,
.bot-status-inactive * {
    color: #b91c1c !important;
}

[data-theme="dark"] .bot-status-pill.bot-status-active,
[data-theme="dark"] .bot-status-active,
[data-theme="dark"] span.bot-status-active,
[data-theme="dark"] div.bot-status-active {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.45) !important;
}
[data-theme="dark"] .bot-status-pill.bot-status-active *,
[data-theme="dark"] .bot-status-active *,
[data-theme="dark"] span.bot-status-active *,
[data-theme="dark"] div.bot-status-active * {
    color: #4ade80 !important;
}

[data-theme="dark"] .bot-status-pill.bot-status-inactive,
[data-theme="dark"] .bot-status-inactive,
[data-theme="dark"] span.bot-status-inactive,
[data-theme="dark"] div.bot-status-inactive {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.45) !important;
}
[data-theme="dark"] .bot-status-pill.bot-status-inactive *,
[data-theme="dark"] .bot-status-inactive *,
[data-theme="dark"] span.bot-status-inactive *,
[data-theme="dark"] div.bot-status-inactive * {
    color: #f87171 !important;
}

[data-theme="dark"] .status-pill.active { background-color: rgba(34, 197, 94, 0.2) !important; color: #4ade80 !important; }
[data-theme="dark"] .status-pill.active * { color: #4ade80 !important; }
[data-theme="dark"] .status-pill.upcoming { background-color: rgba(234, 179, 8, 0.2) !important; color: #facc15 !important; }
[data-theme="dark"] .status-pill.upcoming * { color: #facc15 !important; }
[data-theme="dark"] .status-pill.expired { background-color: rgba(239, 68, 68, 0.2) !important; color: #f87171 !important; }
[data-theme="dark"] .status-pill.expired * { color: #f87171 !important; }
[data-theme="dark"] .status-pill.disabled { background-color: rgba(148, 163, 184, 0.2) !important; color: #94a3b8 !important; }
[data-theme="dark"] .status-pill.disabled * { color: #94a3b8 !important; }

/* ==========================================================================
   Buttons Dark Theme Styles
   ========================================================================== */
[data-theme="dark"] .btn-warning,
[data-theme="dark"] a.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #121212 !important;
}
[data-theme="dark"] .btn-warning *,
[data-theme="dark"] a.btn-warning * {
    color: #121212 !important;
}
[data-theme="dark"] .btn-warning:hover,
[data-theme="dark"] a.btn-warning:hover {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #121212 !important;
}

[data-theme="dark"] .btn-info,
[data-theme="dark"] a.btn-info {
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    color: #121212 !important;
}
[data-theme="dark"] .btn-info *,
[data-theme="dark"] a.btn-info * {
    color: #121212 !important;
}

[data-theme="dark"] .btn-light,
[data-theme="dark"] a.btn-light {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] a.btn-light:hover {
    background-color: #383838 !important;
    border-color: #555555 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-dark {
    color: #cbd5e1 !important;
    border-color: #64748b !important;
}
[data-theme="dark"] .btn-outline-dark:hover {
    background-color: #334155 !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-light {
    color: #f8f9fa !important;
    border-color: #f8f9fa !important;
}
[data-theme="dark"] .btn-outline-light:hover {
    background-color: #f8f9fa !important;
    color: #121212 !important;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-success,
[data-theme="dark"] .btn-danger,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-dark {
    color: #ffffff !important;
}
[data-theme="dark"] .btn-primary *,
[data-theme="dark"] .btn-success *,
[data-theme="dark"] .btn-danger *,
[data-theme="dark"] .btn-secondary *,
[data-theme="dark"] .btn-dark * {
    color: #ffffff !important;
}

/* Dashboard Action Buttons & Links */
[data-theme="dark"] .card_3-content a,
[data-theme="dark"] .card_3-content button,
[data-theme="dark"] .View2 a,
[data-theme="dark"] .View2 button,
[data-theme="dark"] .card_3-out,
[data-theme="dark"] .card_3-out a,
[data-theme="dark"] .card_3-out button {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
}

[data-theme="dark"] .card_3-content a *,
[data-theme="dark"] .card_3-content button *,
[data-theme="dark"] .View2 a *,
[data-theme="dark"] .View2 button *,
[data-theme="dark"] .card_3-out *,
[data-theme="dark"] .card_3-content a > button,
[data-theme="dark"] .View2 a > button,
[data-theme="dark"] .card_3-out > button {
    color: #ffffff !important;
    background: transparent !important;
}

[data-theme="dark"] .card_3-content a:hover,
[data-theme="dark"] .card_3-content button:hover,
[data-theme="dark"] .View2 a:hover,
[data-theme="dark"] .View2 button:hover,
[data-theme="dark"] .card_3-out:hover,
[data-theme="dark"] .card_3-out a:hover,
[data-theme="dark"] .card_3-out button:hover {
    background-color: #0b5ed7 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .card_3-content h3 {
    color: #ffffff !important;
}
[data-theme="dark"] .card_3-content p {
    color: #e0e0e0 !important;
}

/* ==========================================================================
   Global Bootstrap, Admin & Form Controls Dark Theme
   ========================================================================== */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="file"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #242424 !important;
    border-color: #444444 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    background-color: #2a2a2a !important;
    border-color: #3498db !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #777777 !important;
}

[data-theme="dark"] select option,
[data-theme="dark"] .form-select option {
    background-color: #242424 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .input-group-text {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .input-group-text * {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-control[readonly],
[data-theme="dark"] .form-select:disabled,
[data-theme="dark"] input:disabled,
[data-theme="dark"] select:disabled,
[data-theme="dark"] textarea:disabled {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
    color: #777777 !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .form-check-input {
    background-color: #242424 !important;
    border-color: #555555 !important;
}
[data-theme="dark"] .form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}
[data-theme="dark"] .form-check-label {
    color: #e0e0e0 !important;
}

/* ==========================================================================
   Tables & Contextual Rows Dark Theme
   ========================================================================== */
[data-theme="dark"] table,
[data-theme="dark"] .table {
    color: #e0e0e0 !important;
    border-color: #333333 !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td,
[data-theme="dark"] table th,
[data-theme="dark"] table td {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333333 !important;
}

[data-theme="dark"] thead.table-light th,
[data-theme="dark"] thead th {
    background-color: #252525 !important;
    color: #cbd5e1 !important;
    border-bottom: 2px solid #383838 !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
[data-theme="dark"] table tr:nth-child(even) td,
[data-theme="dark"] table tr:nth-child(even) th {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .table-hover > tbody > tr:hover > *,
[data-theme="dark"] table tr:hover td {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
}

/* Custom Table Styles */
[data-theme="dark"] .table-style th,
[data-theme="dark"] .info-table th {
    background-color: #1e3a1e !important;
    color: #86efac !important;
    border-color: #333333 !important;
}
[data-theme="dark"] .table-style td,
[data-theme="dark"] .info-table td {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333333 !important;
}
[data-theme="dark"] .table-style tr:nth-child(even) td,
[data-theme="dark"] .info-table tr:nth-child(even) td {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .table-style tr:hover td,
[data-theme="dark"] .info-table tr:hover td {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table-primary,
[data-theme="dark"] .table-primary > th,
[data-theme="dark"] .table-primary > td {
    background-color: #082f49 !important;
    color: #bae6fd !important;
}
[data-theme="dark"] .table-success,
[data-theme="dark"] .table-success > th,
[data-theme="dark"] .table-success > td {
    background-color: #052e16 !important;
    color: #bbf7d0 !important;
}
[data-theme="dark"] .table-warning,
[data-theme="dark"] .table-warning > th,
[data-theme="dark"] .table-warning > td {
    background-color: #451a03 !important;
    color: #fed7aa !important;
}
[data-theme="dark"] .table-danger,
[data-theme="dark"] .table-danger > th,
[data-theme="dark"] .table-danger > td {
    background-color: #450a0a !important;
    color: #fecaca !important;
}
[data-theme="dark"] .table-info,
[data-theme="dark"] .table-info > th,
[data-theme="dark"] .table-info > td {
    background-color: #083344 !important;
    color: #a5f3fc !important;
}
[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light > th,
[data-theme="dark"] .table-light > td {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* ==========================================================================
   Pagination, Breadcrumbs, Nav Tabs & List Groups
   ========================================================================== */
[data-theme="dark"] .pagination .page-link {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #66b2ff !important;
}
[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}
[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: #171717 !important;
    border-color: #262626 !important;
    color: #555555 !important;
}

[data-theme="dark"] .breadcrumb {
    background-color: transparent !important;
}
[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .breadcrumb-item a {
    color: #66b2ff !important;
}
[data-theme="dark"] .breadcrumb-item.active {
    color: #94a3b8 !important;
}
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #64748b !important;
}

[data-theme="dark"] .list-group-item {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .list-group-item:hover {
    background-color: #262626 !important;
}
[data-theme="dark"] .list-group-item-action {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .list-group-item.bg-warning.text-dark {
    background-color: #ffc107 !important;
    color: #121212 !important;
}

[data-theme="dark"] .nav-tabs {
    border-bottom-color: #333333 !important;
}
[data-theme="dark"] .nav-tabs .nav-link {
    color: #94a3b8 !important;
    border-color: transparent !important;
}
[data-theme="dark"] .nav-tabs .nav-link:hover {
    color: #cbd5e1 !important;
    border-color: #333333 !important;
}
[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #1e1e1e !important;
    border-color: #333333 #333333 #1e1e1e !important;
    color: #ffffff !important;
}
[data-theme="dark"] .nav-pills .nav-link {
    color: #94a3b8 !important;
}
[data-theme="dark"] .nav-pills .nav-link.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Card Headers, Footers, Accordions, Modals & SweetAlert2
   ========================================================================== */
[data-theme="dark"] .card-header {
    background-color: #252525 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .card-footer {
    background-color: #252525 !important;
    border-color: #333333 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .modal-content {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .modal-update-preview {
    background: #182234 !important;
    border-color: #334155 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .modal-update-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] .modal-update-body {
    background: #182234 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .modal-update-body * {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .changelog-item {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .changelog-item span {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .changelog-item i {
    color: #38bdf8 !important;
}

[data-theme="dark"] .modal-update-footer {
    background: #111827 !important;
    border-top-color: #334155 !important;
}

[data-theme="dark"] .modal-update-footer small,
[data-theme="dark"] .modal-update-footer .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .timer-progress-bar {
    background: #334155 !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    background-color: #252525 !important;
    border-color: #333333 !important;
}

[data-theme="dark"] .modal-title {
    color: #ffffff !important;
}

[data-theme="dark"] .accordion-item {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .accordion-button {
    background-color: #242424 !important;
    color: #e0e0e0 !important;
    border-color: #333333 !important;
}
[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #1e3a5f !important;
    color: #93c5fd !important;
    box-shadow: none !important;
}
[data-theme="dark"] .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}
[data-theme="dark"] .accordion-body {
    background-color: #1e1e1e !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .swal2-popup {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #333333 !important;
}
[data-theme="dark"] .swal2-title {
    color: #ffffff !important;
}
[data-theme="dark"] .swal2-html-container {
    color: #cbd5e1 !important;
}

/* ==========================================================================
   Admin Specific Containers Dark Theme
   ========================================================================== */
[data-theme="dark"] .content-box {
    background-color: #242424 !important;
    border-color: #383838 !important;
    color: #e0e0e0 !important;
}
/* Announce module forms, containers and cards */
[data-theme="dark"] form#announceForm,
[data-theme="dark"] #announceForm,
[data-theme="dark"] .container > form,
[data-theme="dark"] form[action*="announce"],
[data-theme="dark"] form[action*="anm"],
[data-theme="dark"] .announce-card,
[data-theme="dark"] .card-announce,
[data-theme="dark"] .announce-body {
    background-color: #1e1e1e !important;
    background: #1e1e1e !important;
    border: 1px solid #333333 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .approver-box {
    background-color: #1e293b !important;
    background: #1e293b !important;
    border-color: #334155 !important;
    border-left: 5px solid #38bdf8 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .approver-box h3 {
    color: #38bdf8 !important;
}

[data-theme="dark"] #gmail_options,
[data-theme="dark"] #email_list {
    background-color: #242424 !important;
    background: #242424 !important;
    border-color: #383838 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] #email_list div {
    border-bottom-color: #2e2e2e !important;
}

[data-theme="dark"] .checkbox-group label {
    color: #cbd5e1 !important;
}

/* Sharing System Containers */
[data-theme="dark"] .upload-container,
[data-theme="dark"] .history-container,
[data-theme="dark"] .sharing-container {
    background-color: #1e1e1e !important;
    background: #1e1e1e !important;
    border: 1px solid #333333 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .upload-container h3,
[data-theme="dark"] .history-container h3,
[data-theme="dark"] .history-container h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .result-card {
    background-color: #242424 !important;
    border-color: #383838 !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .sticky-controls {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .no-data {
    background-color: #3f1212 !important;
    color: #fca5a5 !important;
}
[data-theme="dark"] .stat-card,
[data-theme="dark"] .table-card {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .filter-section {
    background-color: #252525 !important;
    border-color: #383838 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

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

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: #2a2a2a !important;
    color: #3498db !important;
}

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

.theme-btn-fallback {
    display: none;
}
#theme-switcher-btn .fas:empty + .theme-btn-fallback {
    display: inline-block;
    font-size: 18px;
}

/* ==========================================================================
   Admin & General Footer Dark Theme Styles
   ========================================================================== */
[data-theme="dark"] footer,
[data-theme="dark"] .footer,
[data-theme="dark"] footer.bg-light,
[data-theme="dark"] .footer.bg-light {
    background-color: #1e1e1e !important;
    color: #cbd5e1 !important;
    border-color: #333333 !important;
}

[data-theme="dark"] footer *,
[data-theme="dark"] .footer * {
    color: #cbd5e1;
}

[data-theme="dark"] footer strong,
[data-theme="dark"] footer strong span,
[data-theme="dark"] .footer strong,
[data-theme="dark"] .footer strong span {
    color: #ffffff !important;
}

[data-theme="dark"] footer .credits,
[data-theme="dark"] .footer .credits {
    color: #94a3b8 !important;
}

[data-theme="dark"] footer a,
[data-theme="dark"] footer .credits a,
[data-theme="dark"] .footer a,
[data-theme="dark"] .footer .credits a {
    color: #66b2ff !important;
}

[data-theme="dark"] footer a:hover,
[data-theme="dark"] footer .credits a:hover,
[data-theme="dark"] .footer a:hover,
[data-theme="dark"] .footer .credits a:hover {
    color: #ffc732 !important;
}

[data-theme="dark"] footer .app-version,
[data-theme="dark"] .footer .app-version {
    color: #66b2ff !important;
    font-weight: 600;
}

/* ==========================================================================
   Admin & General Footer Layout & Alignment
   ========================================================================== */
footer.text-center,
.footer.text-center {
    text-align: center;
}

.footer .col-md-3.footer-links,
.footer .footer-links {
    text-align: left !important;
}

.footer .col-md-3.footer-links strong,
.footer .footer-links strong {
    display: inline-block !important;
    min-width: 80px !important;
    text-align: left !important;
    font-weight: 700 !important;
}

.footer .col-md-3.footer-links span,
.footer .footer-links span {
    display: inline-block !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.footer .col-md-3.footer-links .social-links,
.footer .footer-links .social-links {
    display: flex !important;
    justify-content: center !important;
}

footer .credits,
.footer .credits {
    text-align: center;
}

/* ==========================================================================
   GLightbox Dark Theme Styles
   ========================================================================== */
[data-theme="dark"] .glightbox-clean .gslide-description,
[data-theme="dark"] .gslide-description {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .glightbox-clean .gdesc-inner,
[data-theme="dark"] .gdesc-inner {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .gdesc-inner .gslide-title,
[data-theme="dark"] .glightbox-clean .gslide-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .gdesc-inner .gslide-desc,
[data-theme="dark"] .glightbox-clean .gslide-desc {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .gdesc-inner *,
[data-theme="dark"] .gdesc-inner h4,
[data-theme="dark"] .gdesc-inner p,
[data-theme="dark"] .gdesc-inner span {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .gdesc-inner a {
    color: #66b2ff !important;
}

[data-theme="dark"] .gslide-inline,
[data-theme="dark"] .gslide-external {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* ==========================================================================
   Performance System Dark Theme Styles
   ========================================================================== */
[data-theme="dark"] .perf-card,
[data-theme="dark"] .perf-item-card,
[data-theme="dark"] .admin-perf-card {
    background: #1e1e1e !important;
    border-color: #333333 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .perf-title,
[data-theme="dark"] .admin-perf-card h5 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .perf-desc,
[data-theme="dark"] .admin-perf-meta {
    color: #94a3b8 !important;
}

[data-theme="dark"] ::selection {
    background: #01939c !important;
    color: #ffffff !important;
}

[data-theme="dark"] ::-moz-selection {
    background: #01939c !important;
    color: #ffffff !important;
}

[data-theme="dark"] .projects .portfolio-flters li,
[data-theme="dark"] .portfolio-flters li {
    background: #27272a !important;
    color: #cbd5e1 !important;
    border-color: #3f3f46 !important;
}

[data-theme="dark"] .projects .portfolio-flters li.filter-active,
[data-theme="dark"] .projects .portfolio-flters li:hover,
[data-theme="dark"] .portfolio-flters li.filter-active,
[data-theme="dark"] .portfolio-flters li:hover {
    background: #01939c !important;
    color: #ffffff !important;
    border-color: #01939c !important;
    box-shadow: 0 4px 14px rgba(1, 147, 156, 0.45) !important;
}

[data-theme="dark"] .perf-btn-view {
    background: rgba(1, 147, 156, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .perf-btn-view:hover {
    background: #01939c !important;
    color: #ffffff !important;
}

[data-theme="dark"] .modal-popup-dialog {
    background: #1e1e1e !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .modal-popup-header {
    background: #18181b !important;
    border-color: #27272a !important;
}

[data-theme="dark"] .modal-popup-toolbar {
    background: #1e1e1e !important;
    border-color: #27272a !important;
}

[data-theme="dark"] .modal-popup-body {
    background: #121212 !important;
}

/* Uptime Status Badge - Below-Header Left Position */
#uptime-status-badge {
    position: fixed !important;
    top: 115px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 99999 !important;
}

body.mobile-nav-active #uptime-status-badge {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    #uptime-status-badge {
        top: 108px !important;
        left: 15px !important;
        bottom: auto !important;
        width: 28px !important;
        max-width: 28px !important;
        height: 30px !important;
        overflow: hidden !important;
        border-radius: 6px !important;
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }
}

/* ==========================================================================
   Catalog & Portfolio Thumbnail Dark Theme Styles
   ========================================================================== */
[data-theme="dark"] .catalog-card-inner {
    background: #182234 !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .catalog-card-inner:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .file-thumbnail {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .file-thumbnail:hover {
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .catalog-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .catalog-file-list li a {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .catalog-file-list li a:hover {
    background: #1e293b !important;
    color: #7dd3fc !important;
    border-color: #60a5fa !important;
}

[data-theme="dark"] .catalog-stats {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* ==========================================================================
   Products Page Images & Cards Dark Theme Styles
   ========================================================================== */
[data-theme="dark"] .product-thumb-item {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .product-thumb-item:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* ==========================================================================
   Recent Blog Posts - Dark Theme Clear Visible Card Frame / Border
   ========================================================================== */
[data-theme="dark"] .recent-blog-posts .post-item {
    background: #1e293b !important;
    border: 2px solid #475569 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="dark"] .recent-blog-posts .post-item:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 12px 36px rgba(56, 189, 248, 0.3), 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-5px) !important;
}

[data-theme="dark"] .recent-blog-posts .post-item .post-img {
    background: #0f172a !important;
    border-bottom: 2px solid #334155 !important;
}

[data-theme="dark"] .recent-blog-posts .post-item .post-content {
    background: #1e293b !important;
}

[data-theme="dark"] .recent-blog-posts .post-item .post-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .recent-blog-posts .post-item:hover .post-title {
    color: #38bdf8 !important;
}

[data-theme="dark"] .recent-blog-posts .post-item hr {
    border-top-color: #334155 !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .recent-blog-posts .post-item p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .recent-blog-posts .post-item .readmore {
    color: #38bdf8 !important;
}

[data-theme="dark"] .recent-blog-posts .post-item:hover .readmore {
    color: #7dd3fc !important;
}

[data-theme="dark"] .recent-blog-posts .post-item .post-date {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .recent-blog-posts .post-item {
        background: #1e293b !important;
        border: 2px solid #475569 !important;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5) !important;
    }
    :root:not([data-theme="light"]) .recent-blog-posts .post-item .post-img {
        background: #0f172a !important;
        border-bottom: 2px solid #334155 !important;
    }
    :root:not([data-theme="light"]) .recent-blog-posts .post-item .post-content {
        background: #1e293b !important;
    }
    :root:not([data-theme="light"]) .recent-blog-posts .post-item .post-title {
        color: #f8fafc !important;
    }
    :root:not([data-theme="light"]) .recent-blog-posts .post-item hr {
        border-top-color: #334155 !important;
    }
    :root:not([data-theme="light"]) .recent-blog-posts .post-item p {
        color: #cbd5e1 !important;
    }
    :root:not([data-theme="light"]) .recent-blog-posts .post-item .readmore {
        color: #38bdf8 !important;
    }
}






/* ==========================================================================
   Home / Index Page Dark Theme Enhancements
   ========================================================================== */
[data-theme="dark"] #get-started {
    background: rgba(1, 147, 156, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] #get-started .card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
[data-theme="dark"] #get-started h2 {
    color: #f8fafc !important;
}
[data-theme="dark"] #get-started .lead {
    color: #cbd5e1 !important;
}
[data-theme="dark"] #get-started .text-muted {
    color: #94a3b8 !important;
}
[data-theme="dark"] #get-started .d-flex.align-items-center.justify-content-center {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .constructions .card {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}
[data-theme="dark"] .constructions .card-title {
    color: #f8fafc !important;
}
[data-theme="dark"] .constructions .card-text.text-muted {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .constructions blockquote {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .hero-blur-box {
    background: rgba(10, 15, 26, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] #carousel-features {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] #hero_1 .section-header h2 {
    color: #f8fafc !important;
}

[data-theme="dark"] #hero_1 .section-header p {
    color: #94a3b8 !important;
}
