:root {
    /* Layout */
    --sidebar-width: 280px;
    --topbar-height: 64px;
    
    /* Legacy compatibility */
    --card-shadow: var(--ds-shadow-lg);
    --border-radius: var(--ds-radius-md);
}

/* Dark Mode Styles */

[data-theme="dark"] body {
    background-color: var(--ds-bg-primary);
    color: var(--ds-text-primary);
}

[data-theme="dark"] #sidebar {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    border-right: 1px solid var(--ds-border-primary);
}

[data-theme="dark"] .sidebar-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--ds-border-primary);
}

[data-theme="dark"] .user-profile {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--ds-border-primary);
}

[data-theme="dark"] .card,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .modal-content {
    background-color: var(--ds-dark-card);
    color: var(--ds-text-brand);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-header {
    background-color: var(--ds-dark-surface) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Fix modal backdrop and dropdown issues */
[data-theme="dark"] .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--ds-dark-card) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: var(--ds-shadow-lg) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--ds-text-brand) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--ds-dark-surface) !important;
    color: var(--ds-text-brand) !important;
}

/* Fix policy tabs styling */
[data-theme="dark"] .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-tabs .nav-link {
    background-color: var(--ds-dark-surface) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--ds-text-brand) !important;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    background-color: var(--ds-dark-card) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var (--ds-text-brand) !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: var(--ds-dark-card) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    border-bottom-color: var(--ds-dark-card) !important;
    color: var(--ds-text-brand) !important;
}

/* Fix DS tabs component */
[data-theme="dark"] .ds-tabs {
    background-color: var(--ds-dark-surface);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ds-tab {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--ds-text-muted) !important;
}

[data-theme="dark"] .ds-tab:hover {
    background-color: var(--ds-dark-surface) !important;
    color: var(--ds-text-brand) !important;
}

[data-theme="dark"] .ds-tab.active {
    background-color: var(--ds-dark-card) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--ds-text-brand) !important;
}

[data-theme="dark"] .table {
    background-color: var(--ds-dark-card);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: var(--ds-dark-card);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .tab-content {
    background-color: var(--ds-bg-dark);
}

[data-theme="dark"] .tab-pane {
    background-color: var(--ds-bg-dark);
}

[data-theme="dark"] .settings-tab-content {
    background-color: var(--ds-bg-dark);
}

[data-theme="dark"] .table tbody tr {
    background-color: var(--ds-dark-card);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: var(--ds-dark-surface);
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--ds-dark-surface);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd):hover {
    background-color: var(--ds-dark-card);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: var(--ds-dark-surface);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .form-control {
    background-color: var(--ds-dark-surface);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--ds-dark-surface);
    border-color: var(--ds-dark-accent-blue);
    color: var(--ds-text-brand);
    box-shadow: 0 0 0 0.2rem rgba(48, 63, 159, 0.25);
}

[data-theme="dark"] #content {
    background-color: var(--ds-bg-dark);
}

[data-theme="dark"] .breadcrumb {
    background-color: var(--ds-dark-surface);
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--ds-text-muted);
}

[data-theme="dark"] .alert-light {
    background-color: var(--ds-dark-surface);
    color: var(--ds-text-brand);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-light {
    background-color: var(--ds-dark-surface);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .btn-light:hover {
    background-color: var(--ds-dark-card);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .btn-outline-secondary {
    border-color: var(--ds-text-muted);
    color: var(--ds-text-muted);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--ds-dark-surface);
    border-color: var(--ds-text-brand);
    color: var(--ds-text-brand);
}

[data-theme="dark"] .text-muted {
    color: var(--ds-text-muted) !important;
}

[data-theme="dark"] .badge.bg-light {
    background-color: var(--ds-dark-surface) !important;
    color: var(--ds-text-brand);
}

[data-theme="dark"] .nav-link {
    color: var(--ds-text-brand) !important;
}

[data-theme="dark"] .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer {
    background-color: var(--ds-dark-surface);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
body {
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    line-height: var(--ds-line-height-normal);
    color: var(--ds-text-primary);
    background-color: var(--ds-bg-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: all var(--ds-transition-normal);
}

/* Content area */
#content {
    background-color: var(--ds-bg-secondary);
    padding: var(--ds-spacing-lg);
    min-height: 100vh;
    transition: all var(--ds-transition-normal);
}

.content-with-sidebar {
    margin-left: var(--sidebar-width);
}

/* Sidebar Styles */
#sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(180deg, #1E3A8A 0%, #1E40AF 100%);
    color: var(--ds-white);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--ds-transition-normal);
    z-index: var(--ds-z-fixed);
    box-shadow: var(--ds-shadow-xl);
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed {
    width: 60px;
}

#sidebar.collapsed .sidebar-header img {
    width: 30px;
}

#sidebar.collapsed * {
    white-space: nowrap;
}

#sidebar.collapsed .nav-link *:not(i),
#sidebar.collapsed .dropdown-menu,
#sidebar.collapsed .user-profile > div,
#sidebar.collapsed .nav-section-title,
#sidebar.collapsed .sidebar-nav > ul > li > ul,
#sidebar.collapsed .user-profile .nav,
#sidebar.collapsed .dropdown-toggle::after {
    display: none !important;
}

#sidebar.collapsed .nav-link i {
    margin: 0 !important;
    font-size: 1.1rem !important;
}

#sidebar.collapsed .nav-link {
    width: 40px !important;
    min-width: 40px !important;
    padding: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap !important;
    text-indent: -9999px !important;
}

#sidebar.collapsed .nav-link i {
    text-indent: 0 !important;
    position: absolute !important;
}

#sidebar.collapsed .dropdown-toggle {
    pointer-events: none;
}

#sidebar.collapsed .nav-link {
    padding: 10px;
    justify-content: center;
}

#sidebar.collapsed .nav-link i {
    margin: 0;
}

#content.sidebar-collapsed {
    margin-left: 60px;
}

.sidebar-header {
    padding: var(--ds-spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.sidebar-header .hex-logo {
    max-width: 150px;
}

#sidebarToggle {
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--ds-text-on-primary);
}

[data-theme="dark"] #sidebarToggle {
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--ds-text-primary);
}

#sidebar.collapsed .sidebar-header {
    padding: var(--ds-spacing-lg) 0;
    justify-content: center;
}

#sidebar.collapsed .sidebar-header > div {
    width: 100%;
    display: flex;
    justify-content: center;
}

#sidebar.collapsed #sidebarToggle {
    margin: 0 auto;
    position: static;
    display: block;
}

#sidebar.collapsed .hex-logo {
    display: none;
}

#sidebarToggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    color: var(--ds-text-light);
    margin-bottom: 0;
    font-weight: 700;
}

.sidebar-header small {
    color: var(--ds-text-muted);
    display: block;
    margin-top: 2px;
}

/* Navigation Sections */
.nav-section {
    margin: 15px 0;
    padding: 0;
}

.nav-section-title {
    display: block;
    padding: 12px 24px;
    color: var(--ds-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.nav-section-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link {
    color: var(--ds-white) !important;
    padding: var(--ds-spacing-sm) var(--ds-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--ds-spacing-sm);
    font-weight: 500;
    font-size: var(--ds-font-size-sm);
    transition: all var(--ds-transition-fast);
    border-radius: var(--ds-radius-md);
    text-decoration: none;
    margin: var(--ds-spacing-xs) var(--ds-spacing-sm);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ds-white) !important;
    transform: translateX(2px);
}

.nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: var(--ds-white) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Dropdown Styling */
.sidebar-nav .dropdown-menu {
    position: static !important;
    float: none;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-spacing-xs);
    margin: var(--ds-spacing-xs) var(--ds-spacing-sm);
    min-width: auto;
    width: calc(100% - 2rem);
    transform: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-nav .dropdown-item {
    color: var(--ds-white);
    padding: var(--ds-spacing-xs) var(--ds-spacing-sm);
    border-radius: var(--ds-radius-sm);
    transition: all var(--ds-transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--ds-font-size-xs);
    display: flex;
    align-items: center;
    gap: var(--ds-spacing-sm);
    text-decoration: none;
}

.sidebar-nav .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ds-white);
}

.sidebar-nav .dropdown-item i {
    font-size: var(--ds-font-size-xs);
    color: var(--ds-white);
    width: 16px;
    text-align: center;
}

.nav-link.dropdown-toggle {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 32px;
}

.nav-link.dropdown-toggle::after {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    margin-top: 0;
}

.nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

/* User Profile */
.user-profile {
    padding: var(--ds-spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.user-profile .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.user-profile .nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Logo */
.hex-logo {
    width: 80%;
    height: auto;
    display: block;
    padding: 10px;
}

.hex-logo path {
    fill: var(--ds-text-light);
}


.navbar {
    background-color: var(--ds-primary-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--ds-text-light) !important;
    font-weight: 600;
}

.card {
    border: 1px solid var(--ds-border-primary);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-md);
    margin-bottom: var(--ds-spacing-lg);
    background: var(--ds-surface);
    transition: all var(--ds-transition-normal);
}

.card:hover {
    box-shadow: var(--ds-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--ds-bg-secondary) !important;
    color: var(--ds-text-primary) !important;
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0 !important;
    border-bottom: 1px solid var(--ds-border-primary);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--ds-primary);
    border-color: var(--ds-primary);
    color: var(--ds-text-on-primary);
    padding: var(--ds-spacing-sm) var(--ds-spacing-lg);
    font-weight: 500;
    border-radius: var(--ds-radius-md);
    transition: all var(--ds-transition-fast);
    box-shadow: var(--ds-shadow-sm);
}

.btn-primary:hover {
    background-color: var(--ds-primary-hover);
    border-color: var(--ds-primary-hover);
    color: var(--ds-text-on-primary);
    transform: translateY(-1px);
    box-shadow: var(--ds-shadow-md);
}

.progress {
    height: 8px;
    border-radius: var(--border-radius);
    background-color: var(--ds-bg-light);
}

.progress-bar {
    background-color: var(--ds-primary-blue);
}

.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-success {
    background-color: var(--ds-bg-light);
    color: var(--ds-text-brand);
}

.alert-danger {
    background-color: #FFEBEE;
    color: var(--ds-danger);
}

.form-control {
    border-radius: var(--ds-radius-md);
    border: 1px solid var(--ds-border-primary);
    padding: var(--ds-spacing-sm) var(--ds-spacing-md);
    background-color: var(--ds-surface);
    color: var(--ds-text-primary);
    transition: all var(--ds-transition-fast);
}

.form-control:focus {
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Policy Content Styles */
.policy-content {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

.status-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.review-status-strip {
    background: rgba(var(--bs-light-rgb), 0.7);
    backdrop-filter: blur(10px);
}

.review-notes {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-wrapper {
    width: 100%;
    padding: 0 1rem;
}

.content-wrapper h1 {
    font-size: 2rem;
    color: var(--bs-gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bs-gray-200);
}

.content-wrapper ul {
    list-style-type: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-wrapper ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.content-wrapper ul li:before {
    content: "•";
    position: absolute;
    left: -1.5rem;
    color: var(--bs-primary);
}

.content-wrapper h2 {
    font-size: 1.5rem;
    color: var(--bs-gray-800);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper h3 {
    font-size: 1.25rem;
    color: var(--bs-gray-700);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-wrapper p {
    color: var(--bs-gray-700);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
}

.content-wrapper ul, .content-wrapper ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--bs-gray-700);
}

.policy-content h1 {
    color: var(--ds-primary-blue);
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid var(--ds-primary-blue);
    padding-bottom: 0.5rem;
}

.policy-content h2 {
    color: var(--ds-secondary-blue);
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 2rem;
}

.policy-content h3 {
    color: var(--ds-accent-blue);
    font-size: 1.2rem;
    font-weight: 500;
}

.policy-content p {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: justify;
}

.policy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Content Specific Styles */
.assessment-score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--ds-accent-blue);
}

.category-score {
    font-size: 1.2rem;
    color: var(--ds-secondary-blue);
}

.mfa-container {
    max-width: 400px;
    margin: 2rem auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    background: var(--ds-text-light);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--ds-accent-blue);
}

/* Tables */
.table {
    background: var(--ds-surface);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    box-shadow: var(--ds-shadow-md);
    border: 1px solid var(--ds-border-primary);
}

.table th {
    background: var(--ds-bg-secondary);
    color: var(--ds-text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--ds-border-primary);
    padding: var(--ds-spacing-md);
    font-size: var(--ds-font-size-sm);
}

.table td {
    color: var(--ds-text-primary);
    border-color: var(--ds-border-primary);
    vertical-align: middle;
    padding: var(--ds-spacing-md);
}

.table tbody tr:hover {
    background-color: var(--ds-surface-hover);
}

/* Badges */
.badge {
    padding: var(--ds-spacing-xs) var(--ds-spacing-sm);
    border-radius: var(--ds-radius-full);
    font-weight: 500;
    font-size: var(--ds-font-size-xs);
}

.badge-primary {
    background-color: var(--ds-primary-light);
    color: var(--ds-primary);
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--ds-text-light);
    border: 1px solid var(--ds-accent-blue);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.dropdown-item {
    color: var(--ds-text-brand);
    padding: 8px 16px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--ds-bg-light);
    color: var(--ds-primary-blue);
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--ds-primary-blue);
}

/* Footer */
.footer {
    background-color: var(--ds-text-light);
    border-top: 1px solid var(--ds-accent-blue);
    padding: 1rem 0;
}

.footer-with-sidebar {
    margin-left: var(--sidebar-width);
}

.assessment-list {
    margin-top: 2rem;
}

.assessment-item {
    background: var(--ds-text-light);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Tab Styling */
.settings-tabs {
    display: flex;
    list-style: none;
    border-bottom: none;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(13, 71, 161, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.settings-tabs li {
    margin: 0;
}

.settings-tab {
    color: var(--ds-primary-blue);
    background-color: var(--ds-text-light);
    border: 1px solid var(--ds-accent-blue);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    white-space: nowrap;
}

.settings-tab:hover {
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--ds-primary-blue);
    border-color: var(--ds-primary-blue);
}

.settings-tab.active {
    color: var(--ds-text-light);
    background-color: var(--ds-primary-blue);
    border-color: var(--ds-primary-blue);
    font-weight: 600;
}

.settings-tab i {
    color: inherit;
}

.settings-tab-content {
    background: var(--ds-text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

.nav-section {
    margin: 15px 0;
}

.nav-section-title {
    display: block;
    padding: 10px 20px;
    color: var(--ds-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-section-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section-items .nav-item {
    margin: 5px 15px;
}

.sidebar-nav .dropdown-menu {
    position: static !important;
    float: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--border-radius);
    padding: 5px;
    margin: 5px 0;
    min-width: auto;
    width: calc(100% - 10px);
    transform: none !important;
}

.sidebar-nav .dropdown-item {
    color: var(--ds-white);
    padding: var(--ds-spacing-xs) var(--ds-spacing-sm);
    border-radius: var(--ds-radius-sm);
    transition: all var(--ds-transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--ds-font-size-xs);
}

.sidebar-nav .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ds-white);
}

.sidebar-nav .dropdown-item i {
    width: 16px;
    margin-right: var(--ds-spacing-xs);
    color: var(--ds-white);
    font-size: var(--ds-font-size-xs);
}

.nav-link.dropdown-toggle::after {
    float: right;
    transition: transform 0.2s ease;
}

.nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Billing Dashboard Styles */
.usage-at-limit {
    border: 2px solid var(--bs-danger) !important;
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.1) 0%, 
        rgba(220, 53, 69, 0.05) 100%) !important;
}

.usage-at-limit .card-body {
    background: rgba(220, 53, 69, 0.03);
    border-radius: 6px;
}

.usage-near-limit {
    border: 2px solid var(--bs-warning) !important;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 193, 7, 0.05) 100%) !important;
}

.usage-meter .progress-bar.bg-danger {
    background: linear-gradient(90deg, #dc3545 0%, #b02a37 100%) !important;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.alert-at-limit {
    border-left: 4px solid var(--bs-danger);
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.1) 0%, 
        rgba(220, 53, 69, 0.05) 100%);
}

.alert-near-limit {
    border-left: 4px solid var(--bs-warning);
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 193, 7, 0.05) 100%);
}