:root {
    /* Default theme - Dark Gray */
    --primary-color-start: #868686;
    --primary-color-end: #6b6b6b;
    --primary-color-solid: #868686;
}

:root.theme-red {
    --primary-color-start: #aa0000;
    --primary-color-end: #d32f2f;
    --primary-color-solid: #aa0000;
}

:root.theme-blue {
    --primary-color-start: #2FA5DC;
    --primary-color-end: #196EB8;
    --primary-color-solid: #2FA5DC;
}

:root.theme-green {
    --primary-color-start: #539C61;
    --primary-color-end: #3d7a49;
    --primary-color-solid: #539C61;
}

:root.theme-orange {
    --primary-color-start: #F08519;
    --primary-color-end: #d16f12;
    --primary-color-solid: #F08519;
}

:root.theme-teal {
    --primary-color-start: #56AAB7;
    --primary-color-end: #428a96;
    --primary-color-solid: #56AAB7;
}

:root.theme-teal-dark {
    --primary-color-start: #4B8D7F;
    --primary-color-end: #3a7266;
    --primary-color-solid: #4B8D7F;
}

:root.theme-navy {
    --primary-color-start: #566892;
    --primary-color-end: #445171;
    --primary-color-solid: #566892;
}

:root.theme-purple {
    --primary-color-start: #A878B1;
    --primary-color-end: #8d6396;
    --primary-color-solid: #A878B1;
}

:root.theme-indigo {
    --primary-color-start: #243B53;
    --primary-color-end: #1a2d3f;
    --primary-color-solid: #243B53;
}

:root.theme-dark {
    --primary-color-start: #50585D;
    --primary-color-end: #3d4347;
    --primary-color-solid: #50585D;
}

/* Header */
.portal-header {
    background-color: var(--primary-color-solid);
    color: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.portal-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.portal-logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.portal-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 14px;
    transition: transform 0.3s ease;
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.portal-menu-toggle:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Ensure icon is visible */
.portal-menu-toggle i {
    font-size: 18px;
    color: white;
    display: block;
}

/* Show menu toggle button on both mobile and desktop */
@media (min-width: 769px) {
    #portal-menu-toggle.portal-menu-toggle {
        display: flex !important;
    }
}

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

.portal-header-item {
    background-color: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    text-decoration: none;
    min-height: 40px;
    min-width: 40px;
    white-space: nowrap;
}

/* Clock button specific styling */
#portal-clock-btn {
    padding: 10px 14px;
}

#portal-clock-btn i {
    font-size: 18px;
}

#portal-clock-btn #time {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

/* Responsive clock display */
@media (max-width: 1200px) {
    #portal-clock-btn i {
        display: none;
    }
}

@media (max-width: 768px) {
    #portal-clock-btn #time {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #portal-clock-btn {
        display: none !important;
    }
}

.portal-header-item:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Adjust icon sizes for consistency */
.portal-header-item i,
.portal-menu-toggle i {
    font-size: 18px;
    line-height: 1;
}

/* Adjust feather icons to match */
.portal-header-item i[data-feather],
.portal-header-item .icon-lg {
    width: 18px;
    height: 18px;
}

/* Dark mode button specific styling */
#mode-setting-btn {
    padding: 10px 14px;
    min-height: 40px;
    min-width: 40px;
}

#mode-setting-btn i {
    font-size: 18px;
}

/* Apps menu button specific styling */
#portal-apps-menu-btn {
    padding: 10px 14px;
    min-height: 40px;
    min-width: 40px;
}

#portal-apps-menu-btn i {
    font-size: 18px;
}

/* Theme switcher button specific styling */
#portal-theme-toggle-btn {
    padding: 10px 14px;
    min-height: 40px;
    min-width: 40px;
}

#portal-theme-toggle-btn i {
    font-size: 18px;
}

/* User dropdown button specific styling */
#page-header-user-dropdown {
    padding: 10px 14px;
    min-height: 40px;
    min-width: 40px;
    max-width: 40px;
    width: 40px;
    justify-content: center;
}

#page-header-user-dropdown i {
    font-size: 18px;
}

#page-header-user-dropdown span,
#page-header-user-dropdown .fa-chevron-down {
    display: none !important;
}

/* Modern Apps Dropdown Menu */
.portal-apps-dropdown-menu {
    width: 500px !important;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-top: 10px;
}

.portal-apps-dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color-start) 0%, var(--primary-color-end) 100%);
    color: white;
    border-bottom: none;
}

.portal-apps-dropdown-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.portal-apps-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    background-color: white;
    max-height: 500px;
    overflow-y: auto;
}

.portal-apps-dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background-color: white;
}

.portal-apps-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(134, 134, 134, 0.05) 0%, rgba(134, 134, 134, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: var(--primary-color-solid);
}

.portal-apps-dropdown-icon {
    font-size: 40px;
    transition: transform 0.3s ease;
}

.portal-apps-dropdown-item:hover .portal-apps-dropdown-icon {
    transform: scale(1.1);
}

.portal-apps-dropdown-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: inherit;
}

/* Scrollbar styling for dropdown grid */
.portal-apps-dropdown-grid::-webkit-scrollbar {
    width: 6px;
}

.portal-apps-dropdown-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.portal-apps-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color-solid);
    border-radius: 3px;
}

.portal-apps-dropdown-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-end);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .portal-apps-dropdown-menu {
        width: 400px !important;
    }

    .portal-apps-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portal-apps-dropdown-menu {
        width: calc(100vw - 40px) !important;
        right: 20px !important;
        left: auto !important;
    }

    .portal-apps-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .portal-apps-dropdown-item {
        padding: 15px 12px;
    }

    .portal-apps-dropdown-icon {
        font-size: 35px;
    }

    .portal-apps-dropdown-label {
        font-size: 12px;
    }
}

/* Sidebar */
.portal-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    color: #495057;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-sidebar.collapsed {
    width: 70px;
}

.portal-sidebar.collapsed .portal-menu-title {
    display: none;
}

.portal-sidebar.collapsed .portal-menu-item span {
    opacity: 0;
    visibility: hidden;
    width: 0;
    position: absolute;
}

.portal-sidebar.collapsed .portal-menu-item {
    justify-content: center !important;
    padding: 0 !important;
    gap: 0 !important;
    position: relative;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    height: 48px !important;
}

.portal-sidebar.collapsed .portal-menu-item i {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 20px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

.portal-sidebar.collapsed .portal-submenu {
    display: none !important;
    position: fixed;
    left: 70px;
    top: 70px;
    width: 250px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 0 8px 8px 0;
    z-index: 1000;
    max-height: none !important;
    padding: 10px 0;
}

.portal-sidebar.collapsed .portal-submenu.expanded {
    display: block !important;
}

.portal-sidebar.collapsed .portal-menu-item.active {
    border-right: 3px solid var(--primary-color-solid);
}

.portal-sidebar.collapsed > div {
    display: block;
}

.portal-sidebar.collapsed > div > .portal-menu-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 !important;
}

.portal-sidebar.collapsed > div > .portal-menu-item i {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 20px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

.portal-sidebar.collapsed .portal-menu-item::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2a3042;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.portal-sidebar.collapsed .portal-menu-item:hover::before {
    opacity: 1;
    visibility: visible;
}

.portal-menu-title {
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}

.portal-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.portal-menu-item span {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}

.portal-menu-item:hover {
    background-color: rgba(134, 134, 134, 0.05);
    color: var(--primary-color-solid);
}

.portal-menu-item.active {
    background-color: rgba(134, 134, 134, 0.1);
    color: var(--primary-color-solid);
    border-right: 3px solid var(--primary-color-solid);
    font-weight: 500;
}

.portal-menu-item i {
    width: 20px;
    font-size: 16px;
    flex-shrink: 0;
}

.portal-menu-item.has-arrow::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.portal-menu-item.has-arrow:hover::after {
    transform: translateX(3px);
}

.portal-menu-item.has-arrow.expanded::after {
    transform: rotate(90deg);
}

/* Hide arrow in collapsed state */
.portal-sidebar.collapsed .portal-menu-item.has-arrow::after {
    display: none !important;
}

/* Submenu */
.portal-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(0, 0, 0, 0.02);
}

.portal-submenu.expanded {
    max-height: 500px;
}

.portal-submenu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 52px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.portal-submenu-item:hover {
    background-color: rgba(134, 134, 134, 0.05);
    color: var(--primary-color-solid);
    padding-left: 56px;
}

.portal-submenu-item.active {
    color: var(--primary-color-solid);
    font-weight: 500;
}

/* Main Content */
.portal-main-content {
    margin-left: 250px;
    margin-top: 70px;
    padding: 16px;
    min-height: calc(100vh - 70px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 250px);
    box-sizing: border-box;
}

/* Also apply to .main-content class with !important to override app.min.css */
.main-content {
    margin-left: 250px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* When sidebar is collapsed - content expands */
.portal-main-content.expanded,
.main-content.expanded {
    margin-left: 70px !important;
    width: calc(100% - 70px) !important;
}

.portal-page-header {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color-start) 0%, var(--primary-color-end) 100%);
    border-radius: 12px;
    padding: 24px 30px;
    color: white;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(107, 107, 107, 0.2);
}

.portal-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.portal-page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.portal-header-content {
    position: relative;
    z-index: 1;
}

.portal-header-date {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.portal-page-title {
    font-size: 32px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* Dashboard Grid */
.portal-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-content: start;
}

.portal-dashboard-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 15px 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: visible;
}

.portal-dashboard-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.portal-dashboard-icon {
    font-size: 60px;
}

.portal-dashboard-label {
    font-size: 14px;
    font-weight: 500;
}

.portal-dashboard-item-full {
    grid-column: 1 / -1;
}

.portal-apps-dropdown-item-full {
    grid-column: 1 / -1;
}

/* Icon Colors */
.portal-icon-red { color: var(--primary-color-solid); }
.portal-icon-red-static { color: #aa0000; }
.portal-icon-green { color: #539C61; }
.portal-icon-blue { color: #008FD7; }
.portal-icon-orange { color: #F08519; }
.portal-icon-teal { color: #56AAB7; }
.portal-icon-teal-dark { color: #4B8D7F; }
.portal-icon-navy { color: #566892; }
.portal-icon-purple { color: #A878B1; }
.portal-icon-dark { color: #50585D; }
.portal-icon-indigo { color: #243B53; }

/* Footer */
.portal-footer {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6c757d;
    background-color: transparent;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* Mobile overlay */
.portal-sidebar-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Page content padding fix */
.page-content {
    padding: 94px 12px 60px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-sidebar {
        transform: translateX(-100%);
    }

    .portal-sidebar.mobile-open {
        transform: translateX(0);
        z-index: 999;
    }

    .portal-main-content,
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Also override .page-content for mobile */
    .page-content {
        padding: 80px 12px 60px !important;
    }

    /* Mobile greeting fix - ensure portal header is visible */
    .portal-page-header {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    /* Mobile page title fix */
    .portal-page-title {
        font-size: 20px !important;
    }

    .portal-header-date {
        font-size: 13px !important;
    }

    .portal-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .portal-dashboard-item {
        padding: 18px 12px 28px;
    }

    .portal-page-header {
        padding: 20px !important;
    }

    .portal-page-title {
        font-size: 24px;
    }

    .portal-header-date {
        font-size: 13px;
    }

    .portal-dashboard-icon {
        font-size: 50px;
    }

    .portal-apps-dropdown {
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 400px;
    }

    .portal-apps-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Page content padding override for small mobile */
    .page-content {
        padding: 75px 10px 60px !important;
    }

    .portal-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-item {
        padding: 16px 10px 26px;
    }

    .portal-header-item span {
        display: none;
    }

    .portal-page-header {
        padding: 16px !important;
        margin-top: 0 !important;
    }

    .portal-page-title {
        font-size: 18px !important;
    }

    .portal-header-date {
        font-size: 12px !important;
    }

    .portal-dashboard-icon {
        font-size: 45px;
    }

    .portal-apps-dropdown {
        right: 5px;
        width: calc(100vw - 10px);
    }

    .portal-apps-dropdown-icon {
        font-size: 35px;
    }
}

/* ========================================
   Dark Mode Styles
   ======================================== */

/* Body dark mode */
body[data-layout-mode=dark] {
    background-color: #191e22;
    color: #ced4da;
}

/* Portal Header - Dark Mode */
body[data-layout-mode=dark] .portal-header {
    background-color: #282f36;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body[data-layout-mode=dark] .portal-menu-toggle,
body[data-layout-mode=dark] .portal-header-item {
    background-color: rgba(255,255,255,0.08);
    color: #e9ecef;
}

body[data-layout-mode=dark] .portal-menu-toggle:hover,
body[data-layout-mode=dark] .portal-header-item:hover {
    background-color: rgba(255,255,255,0.15);
}

/* Portal Sidebar - Dark Mode */
body[data-layout-mode=dark] .portal-sidebar {
    background-color: #242a30;
    border-right: 1px solid rgba(255,255,255,0.1);
    color: #ced4da;
}

body[data-layout-mode=dark] .portal-menu-item {
    color: #ced4da;
}

body[data-layout-mode=dark] .portal-menu-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}

body[data-layout-mode=dark] .portal-menu-item.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--primary-color-solid);
    border-right: 3px solid var(--primary-color-solid);
}

body[data-layout-mode=dark] .portal-menu-title {
    color: #99a4b1;
}

body[data-layout-mode=dark] .portal-submenu {
    background-color: rgba(0, 0, 0, 0.2);
}

body[data-layout-mode=dark] .portal-submenu-item {
    color: #99a4b1;
}

body[data-layout-mode=dark] .portal-submenu-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color-solid);
}

body[data-layout-mode=dark] .portal-submenu-item.active {
    color: var(--primary-color-solid);
}

/* Collapsed Submenu in Dark Mode */
body[data-layout-mode=dark] .portal-sidebar.collapsed .portal-submenu {
    background-color: #242a30;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

/* Portal Page Header - Dark Mode */
body[data-layout-mode=dark] .portal-page-header {
    background: linear-gradient(135deg, #2a3139 0%, #1e252b 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Portal Overlay - Dark Mode */
body[data-layout-mode=dark] .portal-sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Dropdown Menus - Dark Mode */
body[data-layout-mode=dark] .dropdown-menu {
    background-color: #242a30;
    border-color: rgba(255,255,255,0.1);
}

body[data-layout-mode=dark] .dropdown-item {
    color: #ced4da;
}

body[data-layout-mode=dark] .dropdown-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}

/* Apps Dropdown - Dark Mode */
body[data-layout-mode=dark] .portal-apps-dropdown-header {
    background: linear-gradient(135deg, #2a3139 0%, #1e252b 100%);
}

body[data-layout-mode=dark] .portal-apps-dropdown-grid {
    background-color: #242a30;
}

body[data-layout-mode=dark] .portal-apps-dropdown-item {
    background-color: #2d343c;
    border-color: rgba(255,255,255,0.1);
    color: #ced4da;
}

body[data-layout-mode=dark] .portal-apps-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 100%);
    border-color: var(--primary-color-solid);
    color: #fff;
}

/* Cards - Dark Mode */
body[data-layout-mode=dark] .card {
    background-color: #242a30;
    border-color: rgba(255,255,255,0.1);
}

body[data-layout-mode=dark] .card-header {
    background-color: transparent;
    border-color: rgba(255,255,255,0.1);
    color: #ced4da;
}

/* Forms - Dark Mode */
body[data-layout-mode=dark] .form-control,
body[data-layout-mode=dark] .form-select {
    background-color: #2d343c;
    border-color: rgba(255,255,255,0.1);
    color: #ced4da;
}

body[data-layout-mode=dark] .form-control:focus,
body[data-layout-mode=dark] .form-select:focus {
    background-color: #2d343c;
    border-color: var(--primary-color-solid);
    color: #fff;
}

/* Tables - Dark Mode */
body[data-layout-mode=dark] .table {
    color: #ced4da;
}

body[data-layout-mode=dark] .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.02);
}

body[data-layout-mode=dark] .table-hover > tbody > tr:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Buttons - Dark Mode adjustments */
body[data-layout-mode=dark] .btn-light {
    background-color: #2d343c;
    border-color: rgba(255,255,255,0.1);
    color: #ced4da;
}

body[data-layout-mode=dark] .btn-light:hover {
    background-color: #323942;
    color: #fff;
}

/* Footer - Dark Mode */
body[data-layout-mode=dark] .portal-footer {
    background-color: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #99a4b1;
}

