:root {
    --primary-color: #06adeb;
    --primary-light: #e6f7fd;
    --surface-color: #fcfcfc;
    --surface-muted: #f2f2f2;
    --sidebar-width: 280px;
    --header-height: 70px;
    --text-color: #333;
    --border-color: #f2f2f2;
    --brand-button: #1e1b4b;
    --brand-button-hover: #312e81;
    --brand-button-active: #3730a3;
    --brand-button-focus: 49, 46, 129;
    --brand-card-border: rgba(30, 27, 75, 0.34);
}

body {
    background-color: var(--surface-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

.main-content .card,
.main-content .pos-main-card,
.main-content .pos-item-card,
.main-content .product-hub-card,
.main-content .operation-card,
.main-content .customer-card,
.main-content .service-card,
.main-content .sa-card,
.main-content .sa-smart-row,
.main-content .product-smart-bar {
    position: relative;
}

.main-content .card::after,
.main-content .pos-main-card::after,
.main-content .pos-item-card::after,
.main-content .operation-card::after,
.main-content .customer-card::after,
.main-content .service-card::after,
.main-content .sa-card::after,
.main-content .sa-smart-row::after,
.main-content .product-smart-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--brand-card-border);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.main-content .product-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--brand-card-border);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
}

.app-back-end {
    margin-inline-start: auto !important;
}

.sap-portal-navbar .nav-link {
    padding: .5rem .75rem;
    border: 0;
}

.sap-portal-navbar .nav-link.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

.sap-brand-shine {
    background-image: linear-gradient(
        110deg,
        #0f7a34 0%,
        #22c55e 25%,
        #bbf7d0 45%,
        #22c55e 60%,
        #0f7a34 100%
    );
    background-size: 280% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
    animation: sap-brand-shine 2.8s linear infinite;
}

[dir="rtl"] .sap-brand-shine {
    animation-direction: reverse;
}

@keyframes sap-brand-shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.sap-icon-bubble {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #0f7a34;
}

.sap-course-thumb {
    height: 148px;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(140px 90px at 20% 20%, rgba(34, 197, 94, 0.28), transparent 60%),
        radial-gradient(160px 100px at 85% 35%, rgba(16, 185, 129, 0.22), transparent 60%),
        rgba(34, 197, 94, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f7a34;
}

.sap-course-thumb--video {
    position: relative;
    cursor: pointer;
}

.sap-course-thumb--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(240px 160px at 20% 20%, rgba(0, 0, 0, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.28));
    opacity: 0.9;
    pointer-events: none;
}

.sap-course-thumb--video::before {
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    background: rgba(34, 197, 94, 0.92);
    box-shadow: 0 10px 22px rgba(15, 122, 52, 0.22);
    pointer-events: none;
    z-index: 1;
}

.sap-course-thumb--video i,
.sap-course-thumb--video img {
    position: relative;
    z-index: 2;
}

.sap-course-thumb--video i {
    color: #fff;
    transform: translateX(2px);
}

.sap-course-thumb--video:hover {
    filter: saturate(1.02);
}

.sap-intro-trigger:focus-visible .sap-course-thumb--video {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 3px;
}

.sap-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sap-progress {
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.sap-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #06adeb, #1ea6d2);
    transition: width 0.25s ease;
}

.sap-progress-bar--complete {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.sap-welcome-text {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
    color: #6c757d;
}

.sap-welcome-text strong {
    color: var(--text-color);
    font-weight: 700;
}

.sap-nav-actions .btn {
    min-height: 40px;
    min-width: 40px;
}

.sap-lang-btn {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sap-lang-btn:hover {
    background: rgba(34, 197, 94, 0.10) !important;
}

.sap-lang-btn:focus,
.sap-lang-btn:focus-visible,
.sap-lang-btn:active {
    box-shadow: none !important;
}

.sap-lectures-list .list-group-item {
    border-color: rgba(15, 122, 52, 0.16);
}

.sap-lectures-list .list-group-item.active {
    background: linear-gradient(90deg, #0f7a34 0%, #22c55e 55%, #10b981 100%);
    border-color: rgba(15, 122, 52, 0.38);
    color: #fff;
}

.sap-lectures-list .list-group-item.active .opacity-75 {
    opacity: 0.88 !important;
}

.sap-lectures-list .list-group-item-action:hover,
.sap-lectures-list .list-group-item-action:focus {
    background-color: rgba(34, 197, 94, 0.10);
}

.sap-trainers-strip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    overflow-x: auto;
    padding: 8px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.sap-trainer-item {
    width: 96px;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
    text-align: center;
    scroll-snap-align: start;
}

.sap-trainer-avatar {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    margin-inline: auto;
    background: radial-gradient(40px 30px at 25% 20%, rgba(34, 197, 94, 0.35), transparent 60%),
        radial-gradient(44px 34px at 75% 30%, rgba(16, 185, 129, 0.28), transparent 60%),
        rgba(34, 197, 94, 0.08);
    border: 2px solid rgba(34, 197, 94, 0.28);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f7a34;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sap-trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sap-trainer-avatar i {
    font-size: 2.25rem;
}

.sap-trainer-name {
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sap-trainer-item:hover .sap-trainer-avatar,
.sap-trainer-item:focus .sap-trainer-avatar {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 122, 52, 0.15);
    border-color: rgba(34, 197, 94, 0.45);
}

.sap-trainers-strip::-webkit-scrollbar {
    height: 8px;
}

.sap-trainers-strip::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.28);
    border-radius: 999px;
}

@media (min-width: 768px) {
    .sap-trainers-strip {
        overflow-x: visible;
        flex-wrap: wrap;
        scroll-snap-type: none;
        padding: 10px 0;
    }

    .sap-trainer-item {
        width: 110px;
    }

    .sap-trainer-avatar {
        width: 86px;
        height: 86px;
    }
}

@media (prefers-color-scheme: dark) {
    .sap-trainer-avatar {
        background: radial-gradient(40px 30px at 25% 20%, rgba(34, 197, 94, 0.25), transparent 60%),
            radial-gradient(44px 34px at 75% 30%, rgba(16, 185, 129, 0.20), transparent 60%),
            rgba(255, 255, 255, 0.06);
        border-color: rgba(34, 197, 94, 0.35);
        color: rgba(187, 247, 208, 0.95);
    }

    .sap-trainer-item:hover .sap-trainer-avatar,
    .sap-trainer-item:focus .sap-trainer-avatar {
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    }
}

.sap-trainer-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 3px solid rgba(34, 197, 94, 0.28);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.08);
    color: #0f7a34;
}

.sap-trainer-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sap-trainer-hero-avatar i {
    font-size: 3rem;
}

@media (min-width: 768px) {
    .sap-trainer-hero-avatar {
        width: 160px;
        height: 160px;
    }
}

@media (prefers-color-scheme: dark) {
    .sap-trainer-hero-avatar {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(34, 197, 94, 0.35);
        color: rgba(187, 247, 208, 0.95);
    }
}

@media (max-width: 576px) {
    .sap-portal-navbar .navbar-brand {
        max-width: 70vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #1e1b4b;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.18);
}

body:not(.dark-mode) #sidebarMenu.sidebar {
    background-color: #1e1b4b !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    left: auto;
    right: 0;
    box-shadow: -2px 0 14px rgba(0, 0, 0, 0.18);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.sidebar-menu {
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #666;
    padding: 12px 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

[dir="rtl"] .sidebar .nav-link {
    border-left: none;
    border-right: 4px solid transparent;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--surface-muted);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-light), transparent);
    border-left-color: var(--primary-color);
}

[dir="rtl"] .sidebar .nav-link.active {
    background: linear-gradient(270deg, var(--primary-light), transparent);
    border-right-color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

[dir="rtl"] .sidebar .nav-link i {
    margin-right: 0;
    margin-left: 10px;
}

.sidebar-submenu {
    margin: 4px 0 8px;
    padding: 4px 0;
}

.sidebar-sub-link {
    font-size: 0.86rem;
    padding-block: 8px;
    padding-inline: 52px 25px;
    color: rgba(102, 102, 102, 0.92);
    border-left-width: 2px;
}

[dir="rtl"] .sidebar-sub-link {
    padding-inline: 25px 52px;
    border-right-width: 2px;
}

.sidebar-sub-link:hover {
    background-color: rgba(6, 173, 235, 0.06);
}

.sidebar-sub-link.active {
    font-weight: 600;
    background: linear-gradient(90deg, rgba(6, 173, 235, 0.14), transparent);
}

[dir="rtl"] .sidebar-sub-link.active {
    background: linear-gradient(270deg, rgba(6, 173, 235, 0.14), transparent);
}

body:not(.dark-mode) .sidebar .nav-link {
    color: rgba(226, 232, 240, 0.92);
}

body:not(.dark-mode) .sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

body:not(.dark-mode) .sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(6, 173, 235, 0.18), transparent);
    color: #e2e8f0;
}

body:not(.dark-mode)[dir="rtl"] .sidebar .nav-link.active {
    background: linear-gradient(270deg, rgba(6, 173, 235, 0.18), transparent);
}

body:not(.dark-mode) .sidebar .sidebar-sub-link {
    color: rgba(226, 232, 240, 0.72);
}

body:not(.dark-mode) .sidebar .sidebar-sub-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

body:not(.dark-mode) .sidebar .sidebar-sub-link.active {
    background: linear-gradient(90deg, rgba(6, 173, 235, 0.18), transparent);
    color: #e2e8f0;
}

body:not(.dark-mode)[dir="rtl"] .sidebar .sidebar-sub-link.active {
    background: linear-gradient(270deg, rgba(6, 173, 235, 0.18), transparent);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1040;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

[dir="rtl"] .main-header {
    left: 0;
    right: var(--sidebar-width);
}

.news-ticker {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: var(--sidebar-width);
    height: 44px;
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1039;
}

[dir="rtl"] .news-ticker {
    left: 0;
    right: var(--sidebar-width);
}

.news-ticker__viewport {
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 18px;
}

.news-ticker__text {
    white-space: nowrap;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    animation: newsTickerMove var(--news-ticker-duration, 22s) linear infinite;
    will-change: transform;
}

@keyframes newsTickerMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile:hover {
    background-color: var(--surface-muted);
}

/* Light Mode Surfaces */
.card {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

.bg-white {
    background-color: var(--surface-color) !important;
}

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

.border,
.border-top,
.border-bottom,
.border-start,
.border-end {
    border-color: var(--border-color) !important;
}

.form-control,
.form-select,
.input-group-text {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-info {
    margin: 0 10px;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
    transition: all 0.3s;
}

body.has-news-ticker .main-content {
    margin-top: calc(var(--header-height) + 44px);
    min-height: calc(100vh - var(--header-height) - 44px);
}

[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    [dir="rtl"] .sidebar {
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-header {
        left: 0;
        right: 0;
        padding: 0 20px;
    }

    .news-ticker {
        left: 0;
        right: 0;
    }

    .main-content {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------------------------------------------------------
   DARK MODE STYLES
   --------------------------------------------------------- */

/* Core Dark Mode Colors */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
    --brand-button: #111827;
    --brand-button-hover: #1f2937;
    --brand-button-active: #334155;
    --brand-button-focus: 17, 24, 39;
    --brand-card-border: rgba(99, 102, 241, 0.38);
}

.btn-primary {
    --bs-btn-bg: var(--brand-button);
    --bs-btn-border-color: var(--brand-button);
    --bs-btn-hover-bg: var(--brand-button-hover);
    --bs-btn-hover-border-color: var(--brand-button-hover);
    --bs-btn-active-bg: var(--brand-button-active);
    --bs-btn-active-border-color: var(--brand-button-active);
    --bs-btn-focus-shadow-rgb: var(--brand-button-focus);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-button);
    --bs-btn-border-color: var(--brand-button);
    --bs-btn-hover-bg: var(--brand-button);
    --bs-btn-hover-border-color: var(--brand-button);
    --bs-btn-active-bg: var(--brand-button-active);
    --bs-btn-active-border-color: var(--brand-button-active);
    --bs-btn-focus-shadow-rgb: var(--brand-button-focus);
}

.btn-secondary {
    --bs-btn-bg: var(--brand-button);
    --bs-btn-border-color: var(--brand-button);
    --bs-btn-hover-bg: var(--brand-button-hover);
    --bs-btn-hover-border-color: var(--brand-button-hover);
    --bs-btn-active-bg: var(--brand-button-active);
    --bs-btn-active-border-color: var(--brand-button-active);
    --bs-btn-focus-shadow-rgb: var(--brand-button-focus);
}

.btn-outline-secondary {
    --bs-btn-color: var(--brand-button);
    --bs-btn-border-color: var(--brand-button);
    --bs-btn-hover-bg: var(--brand-button);
    --bs-btn-hover-border-color: var(--brand-button);
    --bs-btn-active-bg: var(--brand-button-active);
    --bs-btn-active-border-color: var(--brand-button-active);
    --bs-btn-focus-shadow-rgb: var(--brand-button-focus);
}

/* Sidebar Dark Mode */
body.dark-mode .sidebar {
    background-color: #111827;
    border-color: #1f2937;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

body.dark-mode .sidebar-header {
    border-bottom-color: #1f2937;
}

body.dark-mode .sidebar .nav-link {
    color: #94a3b8;
}

body.dark-mode .sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(6, 173, 235, 0.15), transparent);
    color: var(--primary-color);
}

body.dark-mode[dir="rtl"] .sidebar .nav-link.active {
    background: linear-gradient(270deg, rgba(6, 173, 235, 0.15), transparent);
}

body.dark-mode .sidebar .sidebar-sub-link {
    color: rgba(226, 232, 240, 0.72);
}

body.dark-mode .sidebar .sidebar-sub-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .sidebar .sidebar-sub-link.active {
    background: linear-gradient(90deg, rgba(6, 173, 235, 0.18), transparent);
    color: #e2e8f0;
}

body.dark-mode[dir="rtl"] .sidebar .sidebar-sub-link.active {
    background: linear-gradient(270deg, rgba(6, 173, 235, 0.18), transparent);
}

/* Header Dark Mode */
body.dark-mode .main-header {
    background-color: #1e293b;
    border-bottom-color: #334155;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body.dark-mode .news-ticker {
    background-color: var(--primary-color);
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

body.dark-mode .text-dark {
    color: #f1f5f9 !important;
}

body.dark-mode .user-profile:hover {
    background-color: #334155;
}

body.dark-mode .user-status .text-muted {
    color: #94a3b8 !important;
}

/* Bootstrap Overrides for Dark Mode */
body.dark-mode .card {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .card-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom-color: #334155;
}

body.dark-mode .bg-white {
    background-color: #1e293b !important;
}

body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .border {
    border-color: #334155 !important;
}

body.dark-mode .shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.2) !important;
}

/* Forms & Inputs */
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .form-control::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background-color: #1e293b;
    border-color: var(--primary-color);
    color: #e2e8f0;
}

body.dark-mode .form-control[readonly],
body.dark-mode .bg-light {
    background-color: #0f172a !important;
    border-color: #334155;
}

body.dark-mode .input-group-text {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

/* Dropdowns */
body.dark-mode .dropdown-menu {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background-color: #334155;
    color: #fff;
}

body.dark-mode .dropdown-divider {
    border-top-color: #334155;
}

/* Icons */
body.dark-mode .text-secondary {
    color: #94a3b8 !important;
}

/* Offcanvas */
body.dark-mode .offcanvas-lg {
    background-color: #111827;
}

body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Modals */
body.dark-mode .modal-content {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .modal-header {
    border-bottom-color: #334155;
}

body.dark-mode .modal-footer {
    border-top-color: #334155;
}

body.dark-mode .modal-title {
    color: #e2e8f0;
}

/* Tables Dark Mode */
body.dark-mode .table {
    color: #e2e8f0;
    --bs-table-color: #e2e8f0;
    --bs-table-bg: transparent;
    --bs-table-border-color: #334155;
    --bs-table-hover-bg: #334155;
    --bs-table-hover-color: #e2e8f0;
    --bs-table-striped-bg: #2d3748;
    --bs-table-striped-color: #e2e8f0;
}

body.dark-mode .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .table-hover > tbody > tr:hover > * {
    color: #fff;
    background-color: #334155;
}

body.dark-mode .table thead th {
    border-bottom-color: #475569;
    color: #94a3b8;
    font-weight: 600;
}
