/* ======================================================
   SkillForge Layout Styles
   Version : 1.0
   Description : Navbar, Hero, Sections, Footer
====================================================== */


/* ======================================================
   Navbar
====================================================== */

.navbar {

    height: 80px;

    background: #ffffff;

    transition: .35s ease;

    z-index: 999;

    margin-top: 0 !important;

}

.navbar.sticky-top {
    top: 0 !important;
    margin-top: 0 !important;
}

.navbar.scrolled {

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

}

.navbar-brand {

    font-size: 1.5rem;

    font-weight: 700;

    color: var(--primary) !important;

}

.logo-light {
    display: inline-block !important;
}

.logo-dark {
    display: none !important;
}

[data-bs-theme="dark"] .logo-light,
html.dark-mode .logo-light,
body.dark-mode .logo-light {
    display: none !important;
}

[data-bs-theme="dark"] .logo-dark,
html.dark-mode .logo-dark,
body.dark-mode .logo-dark {
    display: inline-block !important;
}

.navbar-brand-logo {
    height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
}

@media (max-width: 576px) {
    .navbar-brand-logo {
        height: 40px !important;
    }
}

.logo-text {
    color: var(--primary);
}

.navbar-nav {

    gap: 12px;

}

/* ======================================================
   Expandable Top Navbar Global Search Bar
   Positioned directly left of the notification bell; starts as circular icon, expands on click.
====================================================== */
.nav-search-expandable-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-expandable-box {
    display: inline-flex;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background: transparent;
    border: 1px solid transparent;
    padding: 0;
    overflow: hidden;
    transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50% !important;
    background: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.nav-search-icon-btn:hover {
    background: #E2E8F0;
    color: var(--primary, #FF7900);
    transform: scale(1.04);
}

.nav-search-expandable-input {
    width: 0;
    opacity: 0;
    pointer-events: none;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2A2B30;
    transition: opacity 0.2s ease;
    padding: 0;
    margin: 0;
}

.nav-search-expandable-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.nav-search-expandable-close {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    color: #94A3B8;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.nav-search-expandable-close:hover {
    color: #0F172A;
    background: #E2E8F0;
}

/* Expanded State */
.nav-search-expandable-container.is-expanded .nav-search-expandable-box {
    width: 310px;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    padding-left: 2px;
    padding-right: 6px;
}

.nav-search-expandable-container.is-expanded .nav-search-expandable-box:focus-within {
    border-color: var(--primary, #FF7900);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.15);
}

.nav-search-expandable-container.is-expanded .nav-search-icon-btn {
    background: transparent !important;
    color: var(--primary, #FF7900);
    cursor: pointer;
    transform: none;
}

.nav-search-expandable-container.is-expanded .nav-search-expandable-input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.nav-search-expandable-container.is-expanded .nav-search-expandable-close.has-value {
    display: inline-flex !important;
}

/* Floating Search Results Dropdown */
.nav-search-expandable-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 480px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    z-index: 1060;
    animation: navSearchSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navSearchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-search-category-header {
    padding: 6px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    background: #F8FAFC;
    border-radius: 6px;
    margin: 6px 4px 4px 4px;
}

.nav-search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-search-result-item:hover,
.nav-search-result-item.active {
    background: #F1F5F9;
    color: inherit;
    transform: translateX(2px);
}

.nav-search-result-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.85rem;
}

.nav-search-result-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #2A2B30;
    margin-bottom: 1px;
}

.nav-search-result-sub {
    font-size: 0.72rem;
    color: #64748B;
}

.search-highlight {
    background: rgba(255, 121, 0, 0.16);
    color: #E96E00;
    font-weight: 700;
    padding: 0 1px;
    border-radius: 2px;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .nav-search-icon-btn,
body.dark-mode .nav-search-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
}

[data-bs-theme="dark"] .nav-search-icon-btn:hover,
body.dark-mode .nav-search-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #FB923C;
}

[data-bs-theme="dark"] .nav-search-expandable-container.is-expanded .nav-search-expandable-box,
body.dark-mode .nav-search-expandable-container.is-expanded .nav-search-expandable-box {
    background: #2A2B30;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .nav-search-expandable-input,
body.dark-mode .nav-search-expandable-input {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .nav-search-expandable-dropdown,
body.dark-mode .nav-search-expandable-dropdown {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .nav-search-category-header,
body.dark-mode .nav-search-category-header {
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
}

[data-bs-theme="dark"] .nav-search-result-item:hover,
[data-bs-theme="dark"] .nav-search-result-item.active,
body.dark-mode .nav-search-result-item:hover,
body.dark-mode .nav-search-result-item.active {
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .nav-search-result-title,
body.dark-mode .nav-search-result-title {
    color: #F1F5F9;
}

[data-bs-theme="dark"] .nav-search-result-sub,
body.dark-mode .nav-search-result-sub {
    color: #94A3B8;
}

[data-bs-theme="dark"] .nav-search-expandable-close:hover,
body.dark-mode .nav-search-expandable-close:hover {
    color: #F1F5F9;
    background: rgba(255, 255, 255, 0.12);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .nav-search-expandable-container.is-expanded .nav-search-expandable-box {
        width: 220px;
        max-width: calc(100vw - 160px);
    }
    .nav-search-expandable-dropdown {
        width: 290px;
        max-width: calc(100vw - 24px);
        right: -30px;
    }
}

/* Command Palette Modal Styling */
.command-palette-modal .modal-content {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

#commandPaletteInput,
.command-palette-input,
#commandPaletteInput:focus,
.command-palette-input:focus,
[data-bs-theme="dark"] #commandPaletteInput:focus,
body.dark-mode #commandPaletteInput:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.command-palette-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.command-palette-modal .list-group-item {
    transition: all 0.15s ease;
    cursor: pointer;
    background: transparent;
}

.command-palette-modal .list-group-item:hover,
.command-palette-modal .list-group-item.active,
.command-palette-modal .list-group-item.active-palette-item {
    background: rgba(255, 121, 0, 0.08) !important;
    color: #2A2B30 !important;
    transform: translateX(2px);
}

/* ======================================================
   Modern Professional Theme Toggle Button
====================================================== */

.theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--primary, #FF7900);
    outline-offset: 2px;
}

.theme-toggle-btn:hover {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.theme-toggle-btn .theme-icon-sun {
    display: none;
    color: #F59E0B;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.theme-toggle-btn .theme-icon-moon {
    display: block;
    color: #64748B;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.theme-toggle-btn:hover .theme-icon-moon {
    color: #6366F1;
    transform: rotate(18deg) scale(1.1);
}

.theme-toggle-btn:hover .theme-icon-sun {
    color: #F59E0B;
    transform: rotate(45deg) scale(1.1);
}

/* Dark Mode Appearance */
[data-bs-theme="dark"] .theme-toggle-btn,
html.dark-mode .theme-toggle-btn,
body.dark-mode .theme-toggle-btn {
    background: #2A2B30 !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .theme-toggle-btn:hover,
html.dark-mode .theme-toggle-btn:hover,
body.dark-mode .theme-toggle-btn:hover {
    background: #273549 !important;
    border-color: #475569 !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25) !important;
}

[data-bs-theme="dark"] .theme-toggle-btn .theme-icon-moon,
html.dark-mode .theme-toggle-btn .theme-icon-moon,
body.dark-mode .theme-toggle-btn .theme-icon-moon {
    display: none !important;
}

[data-bs-theme="dark"] .theme-toggle-btn .theme-icon-sun,
html.dark-mode .theme-toggle-btn .theme-icon-sun,
body.dark-mode .theme-toggle-btn .theme-icon-sun {
    display: block !important;
    color: #F59E0B !important;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

/* Professional Enterprise Slide Switch with Representation Mode (Sun / Moon) */
.theme-slide-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    padding: 3px;
    background: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

.theme-slide-switch:focus-visible {
    outline: 2px solid var(--primary, #FF7900);
    outline-offset: 2px;
    border-radius: 9999px;
}

.theme-slide-track {
    width: 48px;
    height: 26px;
    border-radius: 9999px;
    background: #E2E8F0;
    border: 1.5px solid #CBD5E1;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.theme-slide-switch:hover .theme-slide-track {
    background: #CBD5E1;
    border-color: #94A3B8;
}

.theme-slide-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: 1.5px;
    left: 2.5px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.theme-thumb-icon-sun {
    font-size: 11px;
    color: #E96E00;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.28s ease;
}

.theme-thumb-icon-moon {
    font-size: 11px;
    color: #FBBF24;
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.28s ease;
}

/* Dark Mode (ON state) */
[data-bs-theme="dark"] .theme-slide-track,
html.dark-mode .theme-slide-track,
body.dark-mode .theme-slide-track {
    background: #141518 !important;
    border-color: #334155 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 121, 0, 0.2);
}

[data-bs-theme="dark"] .theme-slide-switch:hover .theme-slide-track,
html.dark-mode .theme-slide-switch:hover .theme-slide-track,
body.dark-mode .theme-slide-switch:hover .theme-slide-track {
    background: #2A2B30 !important;
    border-color: #475569 !important;
}

[data-bs-theme="dark"] .theme-slide-thumb,
html.dark-mode .theme-slide-thumb,
body.dark-mode .theme-slide-thumb {
    transform: translateX(21px);
    background: #2A2B30 !important;
    border: 1px solid #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 6px rgba(245, 158, 11, 0.35);
}

[data-bs-theme="dark"] .theme-thumb-icon-sun,
html.dark-mode .theme-thumb-icon-sun,
body.dark-mode .theme-thumb-icon-sun {
    display: none !important;
}

[data-bs-theme="dark"] .theme-thumb-icon-moon,
html.dark-mode .theme-thumb-icon-moon,
body.dark-mode .theme-thumb-icon-moon {
    display: flex !important;
    color: #FBBF24 !important;
    transform: rotate(360deg);
}

/* Sidebar Drawer Theme Mode Row */
.drawer-theme-footer {
    border-top: 1px solid #E2E8F0 !important;
    margin-top: auto;
    background: transparent;
}

[data-bs-theme="dark"] .drawer-theme-footer,
body.dark-mode .drawer-theme-footer {
    border-top: 1px solid #334155 !important;
}

.sidebar-theme-row {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sidebar-theme-row:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

[data-bs-theme="dark"] .sidebar-theme-row,
body.dark-mode .sidebar-theme-row {
    background: #2A2B30;
    border-color: #334155;
}

[data-bs-theme="dark"] .sidebar-theme-row:hover,
body.dark-mode .sidebar-theme-row:hover {
    background: #0F172A;
    border-color: #475569;
}

.theme-mode-avatar {
    width: 34px;
    height: 34px;
    background: #FFF7ED;
    color: #E96E00;
    font-size: 0.95rem;
    border: 1px solid #FFEDD5;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .theme-mode-avatar,
body.dark-mode .theme-mode-avatar {
    background: #312E81;
    color: #FBBF24;
    border-color: #3730A3;
}

.theme-mode-label {
    font-size: 0.88rem;
    color: #0F172A;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.2;
}

[data-bs-theme="dark"] .theme-mode-label,
body.dark-mode .theme-mode-label {
    color: #F8FAFC;
}

.theme-mode-status-desc {
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.2;
}

[data-bs-theme="dark"] .theme-mode-status-desc,
body.dark-mode .theme-mode-status-desc {
    color: #94A3B8;
}

/* User Profile Navbar Button */
.profile-btn {
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

[data-bs-theme="dark"] .profile-btn:hover,
html.dark-mode .profile-btn:hover,
body.dark-mode .profile-btn:hover {
    background: #2A2B30 !important;
    border-color: #334155 !important;
}

.command-palette-modal .list-group-item.active-palette-item h6,
.command-palette-modal .list-group-item:hover h6 {
    color: var(--primary, #FF7900) !important;
}

[data-bs-theme="dark"] .command-palette-modal .modal-content,
body.dark-mode .command-palette-modal .modal-content {
    background: #141518 !important;
    border: 1px solid #2A2B30 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7) !important;
}

[data-bs-theme="dark"] .command-palette-modal .modal-header,
body.dark-mode .command-palette-modal .modal-header {
    border-bottom: 1px solid #2A2B30 !important;
    background: #0B0B0D !important;
}

[data-bs-theme="dark"] .command-palette-modal .modal-footer,
body.dark-mode .command-palette-modal .modal-footer {
    border-top: 1px solid #2A2B30 !important;
    background: #0B0B0D !important;
}

[data-bs-theme="dark"] .command-palette-modal .list-group-item:hover,
[data-bs-theme="dark"] .command-palette-modal .list-group-item.active,
[data-bs-theme="dark"] .command-palette-modal .list-group-item.active-palette-item,
body.dark-mode .command-palette-modal .list-group-item:hover,
body.dark-mode .command-palette-modal .list-group-item.active,
body.dark-mode .command-palette-modal .list-group-item.active-palette-item {
    background: rgba(255, 121, 0, 0.15) !important;
    color: #F8FAFC !important;
}

.nav-link {

    color: var(--secondary) !important;

    font-weight: 500;

    position: relative;

    transition: .3s;

}

/* Active Sidebar Navigation Item */
.sidebar .nav-link.active,
.sidebar .menu a.active,
.sidebar .menu-item.active,
.menu a.active {
    background-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.35) !important;
}

.sidebar .nav-link.active i,
.sidebar .menu a.active i,
.sidebar .menu-item.active i,
.menu a.active i {
    color: #ffffff !important;
}

/* Collapsible Sidebar Section Toggle & Accordion Styling */
.sidebar-section-toggle,
.menu-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #64748b !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
    margin-bottom: 2px;
}

.sidebar-section-toggle:hover,
.menu-section-toggle:hover {
    color: #2A2B30 !important;
    background-color: rgba(255, 121, 0, 0.06);
}

.sidebar-section-toggle.active-section,
.menu-section-toggle.active-section {
    color: var(--primary) !important;
}

body.dark-mode .sidebar-section-toggle,
body.dark-mode .menu-section-toggle {
    color: #94a3b8 !important;
}

body.dark-mode .sidebar-section-toggle:hover,
body.dark-mode .menu-section-toggle:hover {
    color: #f8fafc !important;
    background-color: rgba(56, 189, 248, 0.1);
}

body.dark-mode .sidebar-section-toggle.active-section,
body.dark-mode .menu-section-toggle.active-section {
    color: #38bdf8 !important;
}

/* Dropdown Chevron Arrow Rotation Animation */
.chevron-icon {
    font-size: 0.72rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-section-toggle[aria-expanded="true"] .chevron-icon,
.sidebar-section-toggle.open .chevron-icon,
.menu-section-toggle[aria-expanded="true"] .chevron-icon,
.menu-section-toggle.open .chevron-icon {
    transform: rotate(180deg);
}

/* Submenu Smooth Expand & Collapse Animation */
.sidebar-submenu,
.menu-section .submenu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-submenu .nav-link,
.menu-section .nav-link,
.menu-section .submenu a {
    padding: 8px 14px 8px 22px !important;
    font-size: 0.86rem !important;
}

/* ====================================================
   DYNAMIC BREADCRUMB NAVIGATION STYLES
   ==================================================== */
.breadcrumb-wrapper {
    background-color: rgba(248, 250, 252, 0.9) !important;
    backdrop-filter: blur(8px);
    border-color: #e2e8f0 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.breadcrumb-wrapper .breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    /* FontAwesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #94a3b8;
    font-size: 0.75rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.breadcrumb-wrapper a {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-wrapper a:hover {
    color: var(--primary) !important;
}

.breadcrumb-wrapper .breadcrumb-item.active span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Dark Mode Breadcrumb Rules */
body.dark-mode .breadcrumb-wrapper {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: #334155 !important;
}

body.dark-mode .breadcrumb-wrapper a {
    color: #94a3b8;
}

body.dark-mode .breadcrumb-wrapper a:hover {
    color: #38bdf8 !important;
}

body.dark-mode .breadcrumb-wrapper .breadcrumb-item+.breadcrumb-item::before {
    color: #64748b;
}

body.dark-mode .breadcrumb-wrapper .breadcrumb-item.active span {
    color: #38bdf8 !important;
}

body.dark-mode .breadcrumb-wrapper .breadcrumb-item.active i {
    color: #38bdf8 !important;
}

/* ====================================================
   GLOBAL COMMAND PALETTE (CTRL+K) STYLES
   ==================================================== */
.command-palette-modal .modal-content {
    background-color: #ffffff;
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.command-palette-item {
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.command-palette-item:hover,
.active-palette-item {
    background-color: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    transform: translateX(2px);
}

.active-palette-item .palette-icon-wrapper {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.active-palette-item h6 {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Dark Mode Command Palette Styling */
body.dark-mode .command-palette-modal .modal-content {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .command-palette-modal .modal-header,
body.dark-mode .command-palette-modal .modal-footer {
    background-color: #2A2B30 !important;
    border-color: #334155 !important;
}

body.dark-mode #commandPaletteInput {
    color: #f8fafc !important;
}

body.dark-mode #commandPaletteInput::placeholder {
    color: #64748b !important;
}

body.dark-mode .command-palette-item {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

body.dark-mode .command-palette-item:hover,
body.dark-mode .active-palette-item {
    background-color: rgba(56, 189, 248, 0.12) !important;
}

body.dark-mode .active-palette-item h6 {
    color: #38bdf8 !important;
}

/* ====================================================
   REAL-TIME NOTIFICATION CENTER STYLES
   ==================================================== */
.unread-notif-bg {
    background-color: rgba(37, 99, 235, 0.04) !important;
}

.notif-card-item {
    transition: all 0.2s ease;
}

.notif-card-item:hover {
    background-color: rgba(37, 99, 235, 0.07) !important;
    transform: translateY(-1px);
}

.notif-icon-box {
    transition: transform 0.2s ease;
}

.notif-card-item:hover .notif-icon-box {
    transform: scale(1.08);
}

/* Dark Mode Notification Rules */
body.dark-mode .unread-notif-bg {
    background-color: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

body.dark-mode .notif-card-item {
    background-color: #2A2B30 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-mode .notif-card-item:hover {
    background-color: #334155 !important;
}

.nav-link:hover {

    color: var(--primary) !important;

}

.nav-link.active {

    color: var(--primary) !important;

}

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -4px;

    width: 0;

    height: 2px;

    background: var(--primary);

    transition: .3s;

}

.nav-link:hover::after {

    width: 100%;

}

.navbar-toggler {

    border: none;

}

.navbar-toggler:focus {

    box-shadow: none;

}


/* ======================================================
   Hero Section
====================================================== */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    background: linear-gradient(135deg,
            #F8FAFC,
            #EEF4FF);

    overflow: hidden;

}

.hero h1 {

    font-size: 3.4rem;

    line-height: 1.2;

}

.hero p {

    font-size: 1.1rem;

}

.hero-image {

    max-width: 100%;

    animation: floatImage 5s ease-in-out infinite;

}

@keyframes floatImage {

    0% {

        transform: translateY(0px);

    }

    50% {

        transform: translateY(-15px);

    }

    100% {

        transform: translateY(0px);

    }

}


/* ======================================================
   Statistics
====================================================== */

.stats {

    background: white;

}

.stats h2 {

    color: var(--primary);

    font-size: 2.6rem;

    font-weight: 700;

}

.stats p {

    margin: 0;

}


/* ======================================================
   Feature Section
====================================================== */

#features {

    background: transparent;

}

#features .feature-card {

    transition: .35s;

}

#features .feature-card:hover {

    box-shadow: 0 20px 40px rgba(0, 0, 0, .10);

}


/* ======================================================
   CTA Section
====================================================== */

.cta {

    background: linear-gradient(135deg,
            var(--primary),
            #3B82F6);

    color: white;

}

.cta h2 {

    color: white;

}

.cta p {

    color: #E5E7EB;

}


/* ======================================================
   Footer Styling & Perfect Alignment
====================================================== */

.footer {
    background: #0B0B0D !important;
    color: #94A3B8;
    padding: 65px 0 28px;
    border-top: 1px solid #2A2B30;
    position: relative;
    z-index: 10;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-brand img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: block;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #94A3B8 !important;
    max-width: 360px;
}

.footer-title {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #F8FAFC !important;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary, #FF7900);
    border-radius: 2px;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    color: #94A3B8 !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: var(--primary, #FF7900) !important;
    transform: translateX(4px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    color: #CBD5E1;
    font-size: 0.9rem;
    margin-bottom: 0 !important;
}

.footer-contact-list a {
    color: #CBD5E1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: var(--primary, #FF7900) !important;
}

.contact-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 121, 0, 0.12);
    color: var(--primary, #FF7900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary, #FF7900);
    border-color: var(--primary, #FF7900);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.35);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 36px 0 24px;
}

/* Bottom Row Layout: Perfectly Balanced Bilateral Alignment */
.footer-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright-text {
    font-size: 0.82rem;
    color: #94A3B8 !important;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
    text-align: left;
}

.footer-legal-links {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
}

.footer-legal-links .legal-link {
    color: #94A3B8 !important;
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    padding: 2px 0;
}

.footer-legal-links .legal-link:hover {
    color: var(--primary, #FF7900) !important;
}

.link-bullet {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.65rem;
    user-select: none;
    margin: 0 8px;
    display: inline-block;
    vertical-align: middle;
}

@media (min-width: 992px) {
    .footer-bottom {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 28px;
    }

    .copyright-text {
        position: static !important;
        transform: none !important;
        text-align: left !important;
        white-space: nowrap;
        margin-right: auto;
    }

    .footer-legal-links {
        margin-left: auto !important;
        justify-content: flex-end !important;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .footer-bottom {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .copyright-text {
        position: static;
        transform: none;
        text-align: center;
    }

    .footer-legal-links {
        position: static;
        transform: none;
        justify-content: center !important;
        margin: 0 auto !important;
        flex-wrap: wrap;
        gap: 6px 0;
    }
}


/* ======================================================
   Section Heading
====================================================== */

.section-title {

    margin-bottom: 60px;

}

.section-title h2 {

    font-size: 2.5rem;

}

.section-title p {

    max-width: 700px;

    margin: auto;

}


/* ======================================================
   Cards
====================================================== */

.info-card {

    background: white;

    border-radius: 16px;

    padding: 35px;

    box-shadow: var(--shadow);

    transition: .35s;

}

.info-card:hover {

    transform: translateY(-8px);

}


/* ======================================================
   Breadcrumb
====================================================== */

.breadcrumb-section {

    margin-top: 80px;

    background: #EEF4FF;

    padding: 80px 0;

}

.breadcrumb-section h1 {

    margin-bottom: 15px;

}


/* ======================================================
   Page Banner
====================================================== */

.page-banner {

    padding: 120px 0 80px;

    background: linear-gradient(135deg,
            var(--primary),
            #4F8EF7);

    color: white;

    text-align: center;

}

.page-banner h1 {

    color: white;

}


/* ======================================================
   Forms Section
====================================================== */

.auth-section {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #F8FAFC;

}


/* ======================================================
   Dashboard Layout & Enhanced Sidebar Styles
====================================================== */

/* ======================================================
   Platform Navigation Menu Button (Icon Only)
   Inspired by high-end modern SaaS platforms
====================================================== */

.nav-menu-btn,
.nav-menu-btn:focus,
.nav-menu-btn:focus-visible,
.nav-menu-btn:active {
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    padding: 6px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--primary, #E96E00) !important;
    transition: opacity 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    box-shadow: none !important;
}

.nav-menu-btn:hover,
.nav-menu-btn[aria-expanded="true"] {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--primary-dark, #C2410C) !important;
    transform: scale(1.08);
    box-shadow: none !important;
}

/* Offcanvas Drawer Base */
.platform-nav-drawer {
    width: 320px !important;
    max-width: 86vw !important;
    background: #FFFFFF !important;
    border-right: 1px solid #E2E8F0 !important;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.14) !important;
    z-index: 1085 !important;
}

.drawer-header {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-bottom: 1px solid #E2E8F0 !important;
}

.drawer-brand-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.drawer-role-badge {
    background: rgba(255, 121, 0, 0.08);
    border: 1px solid rgba(255, 121, 0, 0.25);
    color: var(--primary, #FF7900);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.role-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 6px #10B981;
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background-color: #E2E8F0;
    color: #0F172A;
    border-color: #CBD5E1;
    transform: rotate(90deg);
}

/* Section Header Labels */
.drawer-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #94A3B8;
    padding: 0 8px;
    margin-bottom: 8px;
}

.section-accent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Premium Navigation Items */
.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid transparent;
    color: #334155;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.drawer-item-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-item-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #2A2B30;
    transition: color 0.18s ease;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-item-arrow {
    font-size: 0.7rem;
    color: #94A3B8;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.drawer-nav-item:hover {
    background: #F8FAFC;
    border-color: #E2E8F0;
    transform: translateX(3px);
}

.drawer-nav-item:hover .drawer-item-icon-box {
    transform: scale(1.08);
    background: #FFFFFF;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 121, 0, 0.3);
}

.drawer-nav-item:hover .drawer-item-title {
    color: var(--primary, #FF7900);
}

.drawer-nav-item:hover .drawer-item-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary, #FF7900);
}

/* Active Item State */
.drawer-nav-item.active {
    background: linear-gradient(90deg, rgba(255, 121, 0, 0.12) 0%, rgba(255, 121, 0, 0.03) 100%) !important;
    border-color: rgba(255, 121, 0, 0.28) !important;
}

.drawer-nav-item.active .drawer-item-icon-box {
    background: rgba(255, 121, 0, 0.15) !important;
    border-color: rgba(255, 121, 0, 0.4) !important;
    color: var(--primary, #FF7900) !important;
}

.drawer-nav-item.active .drawer-item-title {
    color: var(--primary, #FF7900) !important;
    font-weight: 600;
}

.drawer-nav-item.active .drawer-item-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary, #FF7900);
}

/* Subtle Badge Color Helpers */
.bg-purple-subtle {
    background-color: rgba(139, 92, 246, 0.12) !important;
}

.text-purple {
    color: #8B5CF6 !important;
}

.bg-indigo-subtle {
    background-color: rgba(99, 102, 241, 0.12) !important;
}

.text-indigo {
    color: #6366F1 !important;
}

.bg-teal-subtle {
    background-color: rgba(20, 184, 166, 0.12) !important;
}

.text-teal {
    color: #14B8A6 !important;
}

/* Drawer Footer */
.drawer-footer {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0 !important;
}

.drawer-user-avatar-badge {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF7900 0%, #E96E00 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(255, 121, 0, 0.3);
    border: 2px solid #FFFFFF;
}

.online-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    display: inline-block;
}

.drawer-logout-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    transition: all 0.2s ease;
}

.drawer-logout-btn:hover {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* Dark Mode Overrides for Navigation Drawer */
[data-bs-theme="dark"] .nav-menu-btn,
body.dark-mode .nav-menu-btn,
[data-bs-theme="dark"] .nav-menu-btn:focus,
body.dark-mode .nav-menu-btn:focus,
[data-bs-theme="dark"] .nav-menu-btn:focus-visible,
body.dark-mode .nav-menu-btn:focus-visible,
[data-bs-theme="dark"] .nav-menu-btn:active,
body.dark-mode .nav-menu-btn:active {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--primary, #E96E00) !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .nav-menu-btn:hover,
body.dark-mode .nav-menu-btn:hover,
[data-bs-theme="dark"] .nav-menu-btn[aria-expanded="true"],
body.dark-mode .nav-menu-btn[aria-expanded="true"] {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #FB923C !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .platform-nav-drawer,
body.dark-mode .platform-nav-drawer {
    background: #0B1120 !important;
    border-color: #2A2B30 !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.75) !important;
}

[data-bs-theme="dark"] .drawer-header,
body.dark-mode .drawer-header {
    background: linear-gradient(180deg, #0F172A 0%, #0B1120 100%) !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .drawer-brand-logo-wrap,
body.dark-mode .drawer-brand-logo-wrap {
    background: #2A2B30;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .drawer-close-btn,
body.dark-mode .drawer-close-btn,
html.dark-mode .drawer-close-btn {
    background-color: #2A2B30 !important;
    border: 1px solid #334155 !important;
    color: #CBD5E1 !important;
    filter: none !important;
}

[data-bs-theme="dark"] .drawer-close-btn:hover,
body.dark-mode .drawer-close-btn:hover,
html.dark-mode .drawer-close-btn:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .drawer-section-label,
body.dark-mode .drawer-section-label {
    color: #64748B !important;
}

[data-bs-theme="dark"] .drawer-nav-item,
body.dark-mode .drawer-nav-item {
    background: transparent !important;
    border-color: transparent !important;
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .drawer-item-icon-box,
body.dark-mode .drawer-item-icon-box {
    background: #111C31 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .drawer-item-title,
body.dark-mode .drawer-item-title {
    color: #CBD5E1 !important;
}

[data-bs-theme="dark"] .drawer-nav-item:hover,
body.dark-mode .drawer-nav-item:hover {
    background: #111C31 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .drawer-nav-item:hover .drawer-item-icon-box,
body.dark-mode .drawer-nav-item:hover .drawer-item-icon-box {
    background: #2A2B30 !important;
    border-color: rgba(255, 121, 0, 0.4) !important;
    box-shadow: 0 2px 10px rgba(255, 121, 0, 0.15) !important;
}

[data-bs-theme="dark"] .drawer-nav-item:hover .drawer-item-title,
body.dark-mode .drawer-nav-item:hover .drawer-item-title {
    color: #FB923C !important;
}

[data-bs-theme="dark"] .drawer-nav-item.active,
body.dark-mode .drawer-nav-item.active {
    background: linear-gradient(90deg, rgba(255, 121, 0, 0.16) 0%, rgba(255, 121, 0, 0.03) 100%) !important;
    border-color: rgba(255, 121, 0, 0.35) !important;
}

[data-bs-theme="dark"] .drawer-nav-item.active .drawer-item-icon-box,
body.dark-mode .drawer-nav-item.active .drawer-item-icon-box {
    background: rgba(255, 121, 0, 0.2) !important;
    border-color: rgba(255, 121, 0, 0.5) !important;
    color: #FB923C !important;
}

[data-bs-theme="dark"] .drawer-nav-item.active .drawer-item-title,
body.dark-mode .drawer-nav-item.active .drawer-item-title {
    color: #FB923C !important;
}

[data-bs-theme="dark"] .drawer-footer,
body.dark-mode .drawer-footer {
    background: #080D1A !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .drawer-user-avatar-badge,
body.dark-mode .drawer-user-avatar-badge {
    border-color: #2A2B30;
}

/* ======================================================
   Dashboard Layout & Global Sidebar Removal
   Pages now stretch cleanly to 100% full width
====================================================== */

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dashboard-wrapper {
    display: block !important;
    width: 100% !important;
    min-height: 100vh;
    background: var(--light, #F8FAFC);
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dashboard-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Professional balanced gap between top header navbar and dashboard home content across all logins */
.dashboard-wrapper>.navbar~.dashboard-content,
.dashboard-wrapper>.platform-nav-drawer+.dashboard-content,
.dashboard-wrapper>.navbar+.dashboard-content,
.dashboard-wrapper>.navbar+main,
.navbar~.dashboard-wrapper>.dashboard-content,
.navbar~.dashboard-wrapper>main,
.navbar+.dashboard-wrapper>.dashboard-content,
.navbar+.dashboard-wrapper>main,
.navbar~main.dashboard-content,
.navbar+main.dashboard-content,
.management-portal .dashboard-content,
.management-portal .dashboard-content>.container-fluid,
.admin-content-area,
.admin-main-wrapper>.admin-content-area,
main.admin-content-area,
.admin-top-navbar+.admin-content-area,
.admin-top-navbar~.admin-content-area {
    padding-top: 1.5rem !important;
}

/* Remove static left vertical sidebar from all views */
.sidebar,
#mainSidebar,
.sidebar-backdrop {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Navigation Drawer - Matching Image 1 Clean Design */
.platform-nav-drawer {
    width: 250px !important;
    max-width: 85vw !important;
    background: #FFFFFF !important;
    border-right: 1px solid #E2E8F0 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08) !important;
}

.platform-nav-drawer .offcanvas-header {
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
}

.platform-nav-drawer .offcanvas-body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: auto !important;
}

.platform-nav-drawer .offcanvas-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

[data-bs-theme="dark"] .platform-nav-drawer,
body.dark-mode .platform-nav-drawer {
    background: #141518 !important;
    border-right-color: #2A2B30 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .platform-nav-drawer .offcanvas-header,
body.dark-mode .platform-nav-drawer .offcanvas-header {
    background: #141518 !important;
    border-bottom-color: #2A2B30 !important;
}

/* ======================================================
   Student & User Portal Left Sidebar Navigation
   (Matching Reference Mockup)
====================================================== */
.student-dashboard-layout {
    display: flex;
    min-height: calc(100vh - 65px);
    width: 100%;
}

.student-sidebar {
    width: 240px;
    min-width: 240px;
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    flex-shrink: 0;
    transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.student-sidebar.collapsed {
    margin-left: -240px !important;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 991px) {
    .student-sidebar {
        display: none !important;
    }
}

.student-sidebar-nav {
    position: sticky;
    top: 70px;
}

.student-sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.student-sidebar-item i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    color: #64748B;
    transition: color 0.18s ease;
}

.student-sidebar-item:hover {
    background: #F8FAFC;
    color: #FF7900;
}

.student-sidebar-item:hover i {
    color: #FF7900;
}

.student-sidebar-item.active {
    background: #FFF4EC !important;
    color: #FF7900 !important;
    font-weight: 600;
}

.student-sidebar-item.active i {
    color: #FF7900 !important;
}

/* Dark mode for student sidebar */
[data-bs-theme="dark"] .student-sidebar,
body.dark-mode .student-sidebar {
    background: #141518 !important;
    border-right-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .student-sidebar-item,
body.dark-mode .student-sidebar-item {
    color: #94A3B8;
}

[data-bs-theme="dark"] .student-sidebar-item i,
body.dark-mode .student-sidebar-item i {
    color: #64748B;
}

[data-bs-theme="dark"] .student-sidebar-item:hover,
body.dark-mode .student-sidebar-item:hover {
    background: #2A2B30;
    color: #FB923C;
}

[data-bs-theme="dark"] .student-sidebar-item:hover i,
body.dark-mode .student-sidebar-item:hover i {
    color: #FB923C;
}

[data-bs-theme="dark"] .student-sidebar-item.active,
body.dark-mode .student-sidebar-item.active {
    background: rgba(255, 121, 0, 0.16) !important;
    color: #FB923C !important;
}

[data-bs-theme="dark"] .student-sidebar-item.active i,
body.dark-mode .student-sidebar-item.active i {
    color: #FB923C !important;
}

/* ======================================================
   Portal Feature Cards (3-Column Grid)
====================================================== */
.portal-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 121, 0, 0.25) !important;
    border-color: rgba(255, 121, 0, 0.3) !important;
}

.portal-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.portal-card:hover .portal-arrow-circle {
    background: #FF7900 !important;
    color: #FFFFFF !important;
    border-color: #FF7900 !important;
    transform: translateX(3px);
}

.portal-arrow-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #64748B;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .portal-card,
body.dark-mode .portal-card {
    background: #17181B !important;
    border-color: #2A2B30 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .portal-card:hover,
body.dark-mode .portal-card:hover {
    background: #202125 !important;
    border-color: rgba(255, 121, 0, 0.5) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
}

[data-bs-theme="dark"] .portal-card h6,
body.dark-mode .portal-card h6 {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .portal-card small,
body.dark-mode .portal-card small {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .portal-arrow-circle,
body.dark-mode .portal-arrow-circle {
    background: #2A2B30 !important;
    border-color: #334155 !important;
    color: #CBD5E1 !important;
}

/* Hero Welcome Card */
.hero-welcome-card {
    background: linear-gradient(100deg, #FFF9F5 0%, #FFF3EB 50%, #FFE8D6 100%);
    border: 1px solid #FFEDD5;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 4px 20px rgba(255, 121, 0, 0.06);
}

.hero-welcome-card .hero-cta-btn {
    background: #FF7900;
    color: #FFFFFF !important;
    border: none;
    border-radius: 9999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 121, 0, 0.35);
}

.hero-welcome-card .hero-cta-btn:hover {
    background: #E96E00;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 121, 0, 0.45);
}

.hero-quote-text {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
}

.hero-quote-line {
    width: 140px;
    height: 3px;
    background: #FF7900;
    border-radius: 2px;
    margin-top: 6px;
}

/* Hero Welcome Card Dark Mode */
[data-bs-theme="dark"] .hero-welcome-card,
body.dark-mode .hero-welcome-card {
    background: linear-gradient(105deg, #2A2B30 0%, #17181B 50%, #0F172A 100%) !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .hero-welcome-card h1,
body.dark-mode .hero-welcome-card h1 {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .hero-welcome-card p,
body.dark-mode .hero-welcome-card p,
[data-bs-theme="dark"] .hero-welcome-card .hero-quote-text,
body.dark-mode .hero-welcome-card .hero-quote-text {
    color: #CBD5E1 !important;
}

.sidebar-menu-btn {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    color: #2A2B30 !important;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-menu-btn:hover {
    background: var(--primary, #FF7900) !important;
    border-color: var(--primary, #FF7900) !important;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.35);
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar .nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 3px;
    transition: all .2s ease;
}

.sidebar .nav-link:hover {
    color: var(--primary, #FF7900) !important;
    background-color: rgba(255, 121, 0, .08) !important;
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    color: #ffffff !important;
    background: var(--primary, #FF7900) !important;
    background-color: var(--primary, #FF7900) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border-left: none !important;
    box-shadow: 0 4px 12px rgba(255, 121, 0, .35) !important;
}

.sidebar .nav-link.active i {
    color: #ffffff !important;
}

.sidebar-section-toggle {
    color: #64748B !important;
}

.sidebar-section-toggle:hover,
.sidebar-section-toggle.active-section {
    color: var(--primary, #FF7900) !important;
}

.sidebar-footer {
    border-top: 1px solid #E2E8F0 !important;
}

.sidebar-footer .card {
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #2A2B30 !important;
}

.sidebar-footer .text-secondary {
    color: #64748B !important;
}

.sidebar .nav-link::after {
    display: none !important;
}

.fs-xs {
    font-size: 0.75rem;
}

.fs-sm {
    font-size: 0.875rem;
}

/* Dark Mode Sidebar Theme (Rich Navy Slate) */
[data-bs-theme="dark"] .sidebar,
body.dark-mode .sidebar {
    background: #141518 !important;
    border-right: 1px solid #2A2B30 !important;
}

[data-bs-theme="dark"] .sidebar-brand,
body.dark-mode .sidebar-brand {
    border-bottom: 1px solid #2A2B30 !important;
}

[data-bs-theme="dark"] .sidebar-top-header,
body.dark-mode .sidebar-top-header {
    background: #141518 !important;
    border-bottom: 1px solid #2A2B30 !important;
}

[data-bs-theme="dark"] .sidebar-menu-btn,
body.dark-mode .sidebar-menu-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .sidebar .nav-link,
body.dark-mode .sidebar .nav-link {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .sidebar .nav-link:hover,
body.dark-mode .sidebar .nav-link:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 121, 0, 0.15) !important;
}

[data-bs-theme="dark"] .sidebar .nav-link.active,
body.dark-mode .sidebar .nav-link.active {
    color: #FFFFFF !important;
    background: var(--primary, #FF7900) !important;
}

[data-bs-theme="dark"] .sidebar-section-toggle,
body.dark-mode .sidebar-section-toggle {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .sidebar-section-toggle:hover,
body.dark-mode .sidebar-section-toggle.active-section {
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .sidebar-footer,
body.dark-mode .sidebar-footer {
    border-top: 1px solid #2A2B30 !important;
}

[data-bs-theme="dark"] .sidebar-footer .card,
body.dark-mode .sidebar-footer .card {
    background-color: #2A2B30 !important;
    border: 1px solid #334155 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .sidebar-footer .text-secondary,
body.dark-mode .sidebar-footer .text-secondary {
    color: #94A3B8 !important;
}

/* Compact Sidebar Mode */
body.sidebar-compact .sidebar {
    width: 80px;
    min-width: 80px;
}

body.sidebar-compact .sidebar-top-header {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.sidebar-compact .sidebar-top-header #sidebarToggleBtn {
    margin: 0 auto !important;
}

body.sidebar-compact .brand-text,
body.sidebar-compact .menu-label,
body.sidebar-compact .sidebar .nav-link span,
body.sidebar-compact .sidebar-footer .fs-xs,
body.sidebar-compact .compact-text {
    display: none !important;
}

body.sidebar-compact .sidebar .nav-link {
    justify-content: center;
    padding: 12px;
}

body.sidebar-compact .sidebar .nav-link i {
    margin-right: 0 !important;
    font-size: 1.25rem;
}

body.sidebar-compact .sidebar-footer .card {
    padding: 6px !important;
}

/* Sidebar Backdrop Overlay on Mobile */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar Behavior */
@media(max-width:767.98px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        box-shadow: 0 0 25px rgba(0, 0, 0, .2);
        width: 270px !important;
        min-width: 270px !important;
    }

    .sidebar.show {
        left: 0;
    }

    /* Force expanded layout in mobile drawer even if body has sidebar-compact */
    body.sidebar-compact .brand-text,
    body.sidebar-compact .menu-label,
    body.sidebar-compact .sidebar .nav-link span,
    body.sidebar-compact .sidebar-footer .fs-xs,
    body.sidebar-compact .compact-text {
        display: block !important;
    }

    body.sidebar-compact .sidebar .nav-link {
        justify-content: flex-start !important;
        padding: 10px 14px !important;
    }

    body.sidebar-compact .sidebar .nav-link i {
        margin-right: 1rem !important;
        font-size: 0.9rem !important;
    }

    body.sidebar-compact .sidebar-footer .card {
        padding: 16px !important;
    }
}

/* Touch-friendly navigation targets for mobile and tablet */
@media(max-width:1199.98px) {
    .sidebar .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Dark Mode Extensions */
body.dark-mode {
    background-color: #141518 !important;
    color: #F8FAFC !important;
}

body.dark-mode .sidebar,
body.dark-mode .navbar,
body.dark-mode .card,
body.dark-mode .modal-content {
    background-color: #2A2B30 !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

body.dark-mode .sidebar .nav-link {
    color: #94A3B8 !important;
}

body.dark-mode .sidebar .nav-link:hover {
    color: #38BDF8 !important;
    background-color: rgba(56, 189, 248, .12);
}

body.dark-mode .sidebar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

body.dark-mode .dropdown-menu {
    background-color: #2A2B30 !important;
    border-color: #334155 !important;
}

body.dark-mode .dropdown-item {
    color: #CBD5E1 !important;
}

body.dark-mode .dropdown-item:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

body.dark-mode .bg-light,
body.dark-mode .bg-light-subtle {
    background-color: #334155 !important;
    color: #F8FAFC !important;
}

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

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

body.dark-mode .form-control {
    background-color: #141518 !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

/* Spacing Utilities */

.py-section {
    padding: 90px 0;
}

.mt-navbar {
    margin-top: 80px;
}

/* ======================================================
   Professional Profile Button & Avatar Badges
====================================================== */

.profile-avatar-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    cursor: pointer !important;
}

.profile-avatar-btn:hover,
.profile-avatar-btn:focus,
.show>.profile-avatar-btn {
    background: transparent !important;
    border-color: transparent !important;
    transform: scale(1.06);
}

.user-avatar-badge {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    background: linear-gradient(135deg, #FF7900 0%, #E96E00 100%);
    color: #FFFFFF !important;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 121, 0, 0.3);
    user-select: none;
    letter-spacing: 0.5px;
    border: 2px solid #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-btn:hover .user-avatar-badge {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(255, 121, 0, 0.45);
}

.user-avatar-badge-lg {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: linear-gradient(135deg, #FF7900 0%, #E96E00 100%);
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.35);
    user-select: none;
    letter-spacing: 0.5px;
}

.user-avatar-img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.profile-avatar-btn:hover .user-avatar-img {
    transform: scale(1.04) !important;
    box-shadow: 0 4px 14px rgba(255, 121, 0, 0.35) !important;
}

.user-avatar-img-lg {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary, #FF7900) !important;
    display: block !important;
}

.user-status-dot {
    width: 10px;
    height: 10px;
    background-color: #10B981 !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
    transform: translate(25%, 25%) !important;
}

.profile-dropdown-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

/* Dark Mode Overrides for Profile Components */
[data-bs-theme="dark"] .profile-avatar-btn,
body.dark-mode .profile-avatar-btn {
    background: transparent !important;
    border-color: transparent !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .profile-avatar-btn:hover,
[data-bs-theme="dark"] .profile-avatar-btn:focus,
[data-bs-theme="dark"] .show>.profile-avatar-btn,
body.dark-mode .profile-avatar-btn:hover,
body.dark-mode .profile-avatar-btn:focus,
body.dark-mode .show>.profile-avatar-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .user-avatar-badge,
body.dark-mode .user-avatar-badge,
[data-bs-theme="dark"] .user-avatar-img,
body.dark-mode .user-avatar-img {
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .user-status-dot,
body.dark-mode .user-status-dot {
    border-color: #17181B !important;
}

[data-bs-theme="dark"] .profile-dropdown-header,
body.dark-mode .profile-dropdown-header {
    background: #0B0B0D !important;
    border-bottom: 1px solid #2A2B30 !important;
}

/* ======================================================
   Clean Enterprise Profile Page Styling
====================================================== */

.profile-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.profile-hero-banner {
    background: linear-gradient(135deg, #0B0B0D 0%, #17181B 50%, #2A2B30 100%) !important;
    color: #FFFFFF !important;
    position: relative;
}

.profile-hero-avatar-wrapper {
    width: 92px;
    height: 92px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.profile-hero-avatar-img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.profile-hero-avatar-initials {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7900 0%, #E96E00 100%);
    color: #FFFFFF !important;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(255, 121, 0, 0.35);
    user-select: none;
}

.profile-avatar-camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #2A2B30;
    border: 2px solid #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.profile-avatar-camera-btn:hover {
    background: var(--primary, #FF7900);
    color: #FFFFFF;
    transform: scale(1.1);
}

.profile-detail-row {
    padding: 16px 0;
    border-bottom: 1px solid #F1F5F9;
}

.profile-detail-label {
    font-size: 0.88rem;
    color: #64748B;
    font-weight: 500;
}

.profile-detail-value {
    font-size: 0.95rem;
    color: #0F172A;
    font-weight: 600;
}

/* Dark mode profile styling */
[data-bs-theme="dark"] .profile-card,
body.dark-mode .profile-card {
    background: #17181B !important;
    border-color: #2A2B30 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .profile-detail-row,
body.dark-mode .profile-detail-row {
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .profile-detail-label,
body.dark-mode .profile-detail-label {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .profile-detail-value,
body.dark-mode .profile-detail-value {
    color: #F8FAFC !important;
}

/* ======================================================
   Subscription & Payment History Cards & Table
   Flawless Dark & Light Mode Styling
====================================================== */

.subscription-card,
.payment-history-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    min-height: 240px;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .subscription-card,
body.dark-mode .subscription-card,
[data-bs-theme="dark"] .payment-history-card,
body.dark-mode .payment-history-card {
    background: #17181B !important;
    border: 1px solid #2A2B30 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.payment-history-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.875rem;
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
}

.payment-history-table> :not(caption)>*>* {
    background-color: transparent !important;
    box-shadow: none !important;
}

.payment-history-table th {
    background: #F8FAFC !important;
    color: #64748B !important;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    border-bottom: 1px solid #E2E8F0 !important;
}

.payment-history-table td {
    background: transparent !important;
    color: #334155 !important;
    padding: 14px;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle;
}

.payment-history-table tbody tr {
    background: transparent !important;
    transition: background 0.2s ease;
}

.payment-history-table tbody tr:hover {
    background: rgba(255, 121, 0, 0.04) !important;
}

.payment-history-table .payment-date {
    color: #64748B;
    font-size: 0.82rem;
}

.payment-history-table .payment-plan {
    font-weight: 600;
    color: #0F172A;
}

.payment-history-table .payment-amount {
    font-weight: 600;
    color: #0F172A;
}

.payment-history-table .payment-id-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #64748B;
}

/* Dark Mode Table overrides */
[data-bs-theme="dark"] .payment-history-table,
body.dark-mode .payment-history-table,
html.dark-mode .payment-history-table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .payment-history-table> :not(caption)>*>*,
body.dark-mode .payment-history-table> :not(caption)>*>*,
html.dark-mode .payment-history-table> :not(caption)>*>* {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .payment-history-table th,
body.dark-mode .payment-history-table th,
html.dark-mode .payment-history-table th {
    background: #141518 !important;
    color: #94A3B8 !important;
    border-bottom: 1px solid #2A2B30 !important;
}

[data-bs-theme="dark"] .payment-history-table td,
body.dark-mode .payment-history-table td,
html.dark-mode .payment-history-table td {
    background: transparent !important;
    color: #E2E8F0 !important;
    border-bottom: 1px solid #2A2B30 !important;
}

[data-bs-theme="dark"] .payment-history-table tbody tr:hover,
[data-bs-theme="dark"] .payment-history-table tbody tr:hover>*,
body.dark-mode .payment-history-table tbody tr:hover,
body.dark-mode .payment-history-table tbody tr:hover>*,
html.dark-mode .payment-history-table tbody tr:hover,
html.dark-mode .payment-history-table tbody tr:hover>* {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .payment-history-table .payment-date,
body.dark-mode .payment-history-table .payment-date,
html.dark-mode .payment-history-table .payment-date {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .payment-history-table .payment-plan,
body.dark-mode .payment-history-table .payment-plan,
html.dark-mode .payment-history-table .payment-plan {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .payment-history-table .payment-amount,
body.dark-mode .payment-history-table .payment-amount,
html.dark-mode .payment-history-table .payment-amount {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .payment-history-table .payment-id-text,
body.dark-mode .payment-history-table .payment-id-text,
html.dark-mode .payment-history-table .payment-id-text {
    color: #94A3B8 !important;
}

/* Subscription Details Text Colors in Dark Mode */
.sub-plan-name {
    color: #0F172A;
    font-weight: 700;
}

.sub-detail-val {
    color: #0F172A;
    font-weight: 600;
}

[data-bs-theme="dark"] .sub-plan-name,
body.dark-mode .sub-plan-name,
[data-bs-theme="dark"] .sub-detail-val,
body.dark-mode .sub-detail-val {
    color: #F8FAFC !important;
}

/* ======================================================
   Card Surface & Theme Adaptive Components
====================================================== */
/* ======================================================
   Comprehensive Global Dark Mode Rules for All Portals (Admin, Student, Public)
====================================================== */
html[data-bs-theme="dark"],
html[data-bs-theme="dark"] body,
html.dark-mode,
html.dark-mode body,
[data-bs-theme="dark"],
[data-bs-theme="dark"] body,
body.dark-mode {
    background-color: #0B0B0D !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .card,
html.dark-mode .card,
body.dark-mode .card,
[data-bs-theme="dark"] .card-surface,
html.dark-mode .card-surface,
body.dark-mode .card-surface,
[data-bs-theme="dark"] .card-custom,
html.dark-mode .card-custom,
body.dark-mode .card-custom {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .card-header,
body.dark-mode .card-header,
[data-bs-theme="dark"] .card-footer,
body.dark-mode .card-footer {
    background-color: #202125 !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .card-body,
body.dark-mode .card-body {
    background-color: transparent !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .bg-white,
body.dark-mode .bg-white {
    background-color: #17181B !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .bg-light,
body.dark-mode .bg-light,
[data-bs-theme="dark"] .bg-light-subtle,
body.dark-mode .bg-light-subtle,
[data-bs-theme="dark"] .bg-body-tertiary,
body.dark-mode .bg-body-tertiary {
    background-color: #141518 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .text-dark,
body.dark-mode .text-dark,
[data-bs-theme="dark"] .text-body,
body.dark-mode .text-body {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .text-muted,
body.dark-mode .text-muted {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .text-secondary,
body.dark-mode .text-secondary {
    color: #CBD5E1 !important;
}

/* All Tables in Dark Mode */
[data-bs-theme="dark"] .table,
body.dark-mode .table,
[data-bs-theme="dark"] table,
body.dark-mode table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #F8FAFC !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-striped-color: #F8FAFC !important;
    --bs-table-active-bg: rgba(255, 121, 0, 0.1) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03) !important;
    --bs-table-hover-color: #F8FAFC !important;
    --bs-table-border-color: #2A2B30 !important;
    color: #F8FAFC !important;
    border-color: #2A2B30 !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .table> :not(caption)>*>*,
body.dark-mode .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #E2E8F0 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .table thead,
body.dark-mode .table thead,
[data-bs-theme="dark"] .table-light,
body.dark-mode .table-light,
[data-bs-theme="dark"] .table-light th,
body.dark-mode .table-light th,
[data-bs-theme="dark"] .table-dark th,
body.dark-mode .table-dark th,
[data-bs-theme="dark"] .table thead th,
body.dark-mode .table thead th {
    background-color: #141518 !important;
    color: #94A3B8 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover,
body.dark-mode .table-hover tbody tr:hover,
[data-bs-theme="dark"] .table-hover>tbody>tr:hover>*,
body.dark-mode .table-hover>tbody>tr:hover>* {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .table-bordered,
body.dark-mode .table-bordered,
[data-bs-theme="dark"] .table-bordered th,
body.dark-mode .table-bordered th,
[data-bs-theme="dark"] .table-bordered td,
body.dark-mode .table-bordered td {
    border: 1px solid #2A2B30 !important;
}

/* List Groups in Dark Mode */
[data-bs-theme="dark"] .list-group-item,
body.dark-mode .list-group-item {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .list-group-item:hover,
body.dark-mode .list-group-item:hover {
    background-color: #202125 !important;
}

/* Form Controls in Dark Mode */
[data-bs-theme="dark"] .form-control,
body.dark-mode .form-control,
[data-bs-theme="dark"] .form-select,
body.dark-mode .form-select {
    background-color: #141518 !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .form-control:focus,
body.dark-mode .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
body.dark-mode .form-select:focus {
    background-color: #141518 !important;
    border-color: var(--primary, #FF7900) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.25) !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
body.dark-mode .form-control::placeholder {
    color: #64748B !important;
}

/* Pagination in Dark Mode */
[data-bs-theme="dark"] .page-link,
body.dark-mode .page-link {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .page-item.active .page-link,
body.dark-mode .page-item.active .page-link {
    background-color: #FF7900 !important;
    border-color: #FF7900 !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .page-item.disabled .page-link,
body.dark-mode .page-item.disabled .page-link {
    background-color: #141518 !important;
    border-color: #2A2B30 !important;
    color: #475569 !important;
}

/* Badges in Dark Mode */
[data-bs-theme="dark"] .badge.bg-light,
body.dark-mode .badge.bg-light {
    background-color: #2A2B30 !important;
    color: #94A3B8 !important;
    border-color: #334155 !important;
}

/* Modals, Dropdowns & Borders */
[data-bs-theme="dark"] .modal-content,
body.dark-mode .modal-content {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .modal-header,
body.dark-mode .modal-header,
[data-bs-theme="dark"] .modal-footer,
body.dark-mode .modal-footer {
    background-color: #202125 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .border,
body.dark-mode .border,
[data-bs-theme="dark"] .border-top,
body.dark-mode .border-top,
[data-bs-theme="dark"] .border-bottom,
body.dark-mode .border-bottom,
[data-bs-theme="dark"] .border-start,
body.dark-mode .border-start,
[data-bs-theme="dark"] .border-end,
body.dark-mode .border-end {
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .dropdown-menu,
body.dark-mode .dropdown-menu {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .dropdown-item,
body.dark-mode .dropdown-item {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
body.dark-mode .dropdown-item:hover {
    background-color: #2A2B30 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   Aptitude Practice & Palette Responsive Styles
   ========================================================================== */
.apt-palette-btn {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 6px 0 !important;
    text-align: center !important;
    transition: all 0.18s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    cursor: pointer !important;
}

/* Palette States - Light Mode */
.apt-palette-btn.btn-palette-unattended {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
}

.apt-palette-btn.btn-palette-unattended:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

.apt-palette-btn.btn-palette-answered {
    background: #16A34A !important;
    border-color: #15803D !important;
    color: #FFFFFF !important;
}

.apt-palette-btn.btn-palette-flagged {
    background: #D97706 !important;
    border-color: #B45309 !important;
    color: #FFFFFF !important;
}

.apt-palette-btn.is-current {
    outline: 2px solid #FF7900 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.25) !important;
}

/* Palette States - Dark Mode */
[data-bs-theme="dark"] .apt-palette-btn.btn-palette-unattended,
body.dark-mode .apt-palette-btn.btn-palette-unattended {
    background: #2A2B30 !important;
    border: 1px solid #334155 !important;
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .apt-palette-btn.btn-palette-unattended:hover,
body.dark-mode .apt-palette-btn.btn-palette-unattended:hover {
    background: #334155 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .apt-palette-btn.btn-palette-answered,
body.dark-mode .apt-palette-btn.btn-palette-answered {
    background: #16A34A !important;
    border-color: #22C55E !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .apt-palette-btn.btn-palette-flagged,
body.dark-mode .apt-palette-btn.btn-palette-flagged {
    background: #D97706 !important;
    border-color: #F59E0B !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   ATS Resume Checker Responsive Theme Styles
   ========================================================================== */
.ats-main-card,
.ats-side-card,
.ats-report-card,
.ats-stat-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ats-main-card .card-header,
.ats-side-card .card-header,
.ats-report-card .card-header {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

[data-bs-theme="dark"] .ats-main-card,
[data-bs-theme="dark"] .ats-side-card,
[data-bs-theme="dark"] .ats-report-card,
[data-bs-theme="dark"] .ats-stat-card,
body.dark-mode .ats-main-card,
body.dark-mode .ats-side-card,
body.dark-mode .ats-report-card,
body.dark-mode .ats-stat-card {
    background: #17181B !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .ats-main-card .card-header,
[data-bs-theme="dark"] .ats-side-card .card-header,
[data-bs-theme="dark"] .ats-report-card .card-header,
body.dark-mode .ats-main-card .card-header,
body.dark-mode .ats-side-card .card-header,
body.dark-mode .ats-report-card .card-header {
    background: #17181B !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .card.bg-white,
body.dark-mode .card.bg-white,
[data-bs-theme="dark"] .card.border-light-subtle,
body.dark-mode .card.border-light-subtle {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .card.bg-white h1,
[data-bs-theme="dark"] .card.bg-white h2,
[data-bs-theme="dark"] .card.bg-white h3:not(.reading-prompt-text),
[data-bs-theme="dark"] .card.bg-white h4,
[data-bs-theme="dark"] .card.bg-white h5,
[data-bs-theme="dark"] .card.bg-white h6,
[data-bs-theme="dark"] .card.bg-white .text-dark,
body.dark-mode .card.bg-white .text-dark {
    color: #F8FAFC !important;
}




[data-bs-theme="dark"] .text-dark,
body.dark-mode .text-dark,
[data-bs-theme="dark"] .text-body,
body.dark-mode .text-body {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .text-muted,
body.dark-mode .text-muted {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .text-secondary,
body.dark-mode .text-secondary {
    color: #CBD5E1 !important;
}

/* All Tables in Dark Mode */
[data-bs-theme="dark"] .table,
body.dark-mode .table,
[data-bs-theme="dark"] table,
body.dark-mode table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #F8FAFC !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-striped-color: #F8FAFC !important;
    --bs-table-active-bg: rgba(255, 121, 0, 0.1) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03) !important;
    --bs-table-hover-color: #F8FAFC !important;
    --bs-table-border-color: #2A2B30 !important;
    color: #F8FAFC !important;
    border-color: #2A2B30 !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .table> :not(caption)>*>*,
body.dark-mode .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #E2E8F0 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .table thead,
body.dark-mode .table thead,
[data-bs-theme="dark"] .table-light,
body.dark-mode .table-light,
[data-bs-theme="dark"] .table-light th,
body.dark-mode .table-light th,
[data-bs-theme="dark"] .table-dark th,
body.dark-mode .table-dark th,
[data-bs-theme="dark"] .table thead th,
body.dark-mode .table thead th {
    background-color: #141518 !important;
    color: #94A3B8 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover,
body.dark-mode .table-hover tbody tr:hover,
[data-bs-theme="dark"] .table-hover>tbody>tr:hover>*,
body.dark-mode .table-hover>tbody>tr:hover>* {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .table-bordered,
body.dark-mode .table-bordered,
[data-bs-theme="dark"] .table-bordered th,
body.dark-mode .table-bordered th,
[data-bs-theme="dark"] .table-bordered td,
body.dark-mode .table-bordered td {
    border: 1px solid #2A2B30 !important;
}

/* List Groups in Dark Mode */
[data-bs-theme="dark"] .list-group-item,
body.dark-mode .list-group-item {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .list-group-item:hover,
body.dark-mode .list-group-item:hover {
    background-color: #202125 !important;
}

/* Form Controls in Dark Mode */
[data-bs-theme="dark"] .form-control,
body.dark-mode .form-control,
[data-bs-theme="dark"] .form-select,
body.dark-mode .form-select {
    background-color: #141518 !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .form-control:focus,
body.dark-mode .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
body.dark-mode .form-select:focus {
    background-color: #141518 !important;
    border-color: var(--primary, #FF7900) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.25) !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
body.dark-mode .form-control::placeholder {
    color: #64748B !important;
}

/* Pagination in Dark Mode */
[data-bs-theme="dark"] .page-link,
body.dark-mode .page-link {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .page-item.active .page-link,
body.dark-mode .page-item.active .page-link {
    background-color: #FF7900 !important;
    border-color: #FF7900 !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .page-item.disabled .page-link,
body.dark-mode .page-item.disabled .page-link {
    background-color: #141518 !important;
    border-color: #2A2B30 !important;
    color: #475569 !important;
}

/* Badges in Dark Mode */
[data-bs-theme="dark"] .badge.bg-light,
body.dark-mode .badge.bg-light {
    background-color: #2A2B30 !important;
    color: #94A3B8 !important;
    border-color: #334155 !important;
}

/* Modals, Dropdowns & Borders */
[data-bs-theme="dark"] .modal-content,
body.dark-mode .modal-content {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .modal-header,
body.dark-mode .modal-header,
[data-bs-theme="dark"] .modal-footer,
body.dark-mode .modal-footer {
    background-color: #202125 !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .border,
body.dark-mode .border,
[data-bs-theme="dark"] .border-top,
body.dark-mode .border-top,
[data-bs-theme="dark"] .border-bottom,
body.dark-mode .border-bottom,
[data-bs-theme="dark"] .border-start,
body.dark-mode .border-start,
[data-bs-theme="dark"] .border-end,
body.dark-mode .border-end {
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .dropdown-menu,
body.dark-mode .dropdown-menu {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .dropdown-item,
body.dark-mode .dropdown-item {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
body.dark-mode .dropdown-item:hover {
    background-color: #2A2B30 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   Aptitude Practice & Palette Responsive Styles
   ========================================================================== */
.apt-palette-btn {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 6px 0 !important;
    text-align: center !important;
    transition: all 0.18s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    cursor: pointer !important;
}

/* Palette States - Light Mode */
.apt-palette-btn.btn-palette-unattended {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
}

.apt-palette-btn.btn-palette-unattended:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

.apt-palette-btn.btn-palette-answered {
    background: #16A34A !important;
    border-color: #15803D !important;
    color: #FFFFFF !important;
}

.apt-palette-btn.btn-palette-flagged {
    background: #D97706 !important;
    border-color: #B45309 !important;
    color: #FFFFFF !important;
}

.apt-palette-btn.is-current {
    outline: 2px solid #FF7900 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.25) !important;
}

/* Palette States - Dark Mode */
[data-bs-theme="dark"] .apt-palette-btn.btn-palette-unattended,
body.dark-mode .apt-palette-btn.btn-palette-unattended {
    background: #2A2B30 !important;
    border: 1px solid #334155 !important;
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .apt-palette-btn.btn-palette-unattended:hover,
body.dark-mode .apt-palette-btn.btn-palette-unattended:hover {
    background: #334155 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .apt-palette-btn.btn-palette-answered,
body.dark-mode .apt-palette-btn.btn-palette-answered {
    background: #16A34A !important;
    border-color: #22C55E !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .apt-palette-btn.btn-palette-flagged,
body.dark-mode .apt-palette-btn.btn-palette-flagged {
    background: #D97706 !important;
    border-color: #F59E0B !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   ATS Resume Checker Responsive Theme Styles
   ========================================================================== */
.ats-main-card,
.ats-side-card,
.ats-report-card,
.ats-stat-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ats-main-card .card-header,
.ats-side-card .card-header,
.ats-report-card .card-header {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

[data-bs-theme="dark"] .ats-main-card,
[data-bs-theme="dark"] .ats-side-card,
[data-bs-theme="dark"] .ats-report-card,
[data-bs-theme="dark"] .ats-stat-card,
body.dark-mode .ats-main-card,
body.dark-mode .ats-side-card,
body.dark-mode .ats-report-card,
body.dark-mode .ats-stat-card {
    background: #17181B !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .ats-main-card .card-header,
[data-bs-theme="dark"] .ats-side-card .card-header,
[data-bs-theme="dark"] .ats-report-card .card-header,
body.dark-mode .ats-main-card .card-header,
body.dark-mode .ats-side-card .card-header,
body.dark-mode .ats-report-card .card-header {
    background: #17181B !important;
    border-color: #2A2B30 !important;
}

[data-bs-theme="dark"] .card.bg-white,
body.dark-mode .card.bg-white,
[data-bs-theme="dark"] .card.border-light-subtle,
body.dark-mode .card.border-light-subtle {
    background-color: #17181B !important;
    border-color: #2A2B30 !important;
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .card.bg-white h1,
[data-bs-theme="dark"] .card.bg-white h2,
[data-bs-theme="dark"] .card.bg-white h3:not(.reading-prompt-text),
[data-bs-theme="dark"] .card.bg-white h4,
[data-bs-theme="dark"] .card.bg-white h5,
[data-bs-theme="dark"] .card.bg-white h6,
[data-bs-theme="dark"] .card.bg-white .text-dark,
body.dark-mode .card.bg-white .text-dark {
    color: #F8FAFC !important;
}