/* ============================================
   LAYOUT.CSS - Modern Admin Layout Styles
   With Dark/Light Theme Support
   Updated: Violet Theme Color
   ============================================ */

/* CSS Variables for Theme */
:root {
    /* Light Theme (Default) */
    --sidebar-bg: #ffffff;
    --sidebar-border: #f0f0f0;
    --sidebar-text: #64748b;
    --sidebar-text-active: #6d28d9;
    --sidebar-hover-bg: #f8fafc;
    --sidebar-active-bg: rgba(109, 40, 217, 0.08);
    --sidebar-active-text: #6d28d9;
    --sidebar-divider: #94a3b8;
    --sidebar-icon: #94a3b8;
    --sidebar-icon-active: #7c3aed;
    
    --topbar-bg: #ffffff;
    --topbar-border: #f0f0f0;
    --topbar-text: #1e293b;
    --topbar-subtitle: #64748b;
    
    --main-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    
    /* Accent Colors - Updated to Violet */
    --accent-primary: #7c3aed;
    --accent-primary-dark: #6d28d9;
    --accent-primary-light: rgba(124, 58, 237, 0.1);
    --accent-primary-lighter: rgba(124, 58, 237, 0.06);
    --accent-success: #10b981;
    --accent-success-light: rgba(16, 185, 129, 0.1);
    --accent-warning: #f59e0b;
    --accent-warning-light: rgba(245, 158, 11, 0.1);
    --accent-danger: #ef4444;
    --accent-danger-light: rgba(239, 68, 68, 0.1);
    --accent-info: #06b6d4;
    --accent-info-light: rgba(6, 182, 212, 0.1);
    
    /* Gradient - Updated to Violet */
    --gradient-primary: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(124, 58, 237) 100%);
    --gradient-primary-hover: linear-gradient(135deg, rgb(91, 33, 182) 0%, rgb(109, 40, 217) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    
    /* Dimensions */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 70px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --sidebar-bg: #1e1e2d;
    --sidebar-border: #2d2d3a;
    --sidebar-text: #9ca3af;
    --sidebar-text-active: #a78bfa;
    --sidebar-hover-bg: #2d2d3a;
    --sidebar-active-bg: rgba(124, 58, 237, 0.15);
    --sidebar-active-text: #a78bfa;
    --sidebar-divider: #6b7280;
    --sidebar-icon: #6b7280;
    --sidebar-icon-active: #a78bfa;
    
    --topbar-bg: #1e1e2d;
    --topbar-border: #2d2d3a;
    --topbar-text: #ffffff;
    --topbar-subtitle: #9ca3af;
    
    --main-bg: #151521;
    --card-bg: #1e1e2d;
    --card-border: #2d2d3a;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: #2d2d3a;
    --input-bg: #2d2d3a;
    --input-border: #3d3d4a;
    
    /* Dark mode accent adjustments */
    --accent-primary: #a78bfa;
    --accent-primary-dark: #8b5cf6;
    --accent-primary-light: rgba(167, 139, 250, 0.15);
    --accent-primary-lighter: rgba(167, 139, 250, 0.08);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--main-bg);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure Poppins font is used everywhere */
*, *::before, *::after {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

input, button, select, textarea {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all var(--transition-normal);
    overflow: hidden;
}

/* Sidebar Brand - Updated with Violet Gradient */
.sidebar-brand {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    min-height: 70px;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.sidebar-brand-icon i {
    font-size: 20px;
    color: #fff;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.sidebar-brand-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    list-style: none;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--sidebar-border);
    border-radius: 4px;
}

/* Navigation Header */
.nav-header,
.sidebar-divider {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--sidebar-divider);
    padding: 16px 16px 8px;
    margin-top: 8px;
}

.sidebar-divider small {
    color: var(--sidebar-divider);
}

/* Menu Items */
.sidebar-menu > li {
    margin-bottom: 2px;
}

.sidebar-menu > li > a,
.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-menu > li > a i,
.sidebar-menu .nav-link i {
    font-size: 18px;
    color: var(--sidebar-icon);
    width: 24px;
    text-align: center;
    transition: color var(--transition-fast);
}

.sidebar-menu > li > a:hover,
.sidebar-menu .nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

.sidebar-menu > li > a:hover i,
.sidebar-menu .nav-link:hover i {
    color: var(--accent-primary);
}

/* Active State - Updated for Light Tint Style with Left Indicator */
.sidebar-menu > li > a.active,
.sidebar-menu .nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
    position: relative;
}

/* Left Border Indicator */
.sidebar-menu > li > a.active::before,
.sidebar-menu .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
}

.sidebar-menu > li > a.active i,
.sidebar-menu .nav-link.active i {
    color: var(--sidebar-icon-active);
}

/* Badge */
.sidebar-menu .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    margin-left: auto;
}

/* Submenu Arrow */
.submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform var(--transition-fast);
}

[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 4px 0 4px 20px;
    margin: 0;
}

.submenu .nav-item {
    margin-bottom: 2px;
}

.submenu .nav-link {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--sidebar-text);
}

.submenu .nav-link i {
    font-size: 14px;
    width: 20px;
}

.submenu .nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

.submenu .nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
    position: relative;
}

/* Submenu Left Border Indicator */
.submenu .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
}

.submenu .nav-link.active i {
    color: var(--sidebar-icon-active);
}

/* Sidebar Footer - Theme Toggle */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-border);
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--sidebar-hover-bg);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent-primary-light);
}

.theme-toggle-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon i {
    font-size: 14px;
    color: #fff;
}

.theme-toggle-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--sidebar-text);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

/* ============================================
   TOP BAR STYLES
   ============================================ */
.top-bar {
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Page Title */
.page-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--topbar-text);
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    color: var(--topbar-subtitle);
    margin: 4px 0 0;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.user-section .form-select {
    width: auto;
    min-width: 120px;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

/* Notification Button */
.notification-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.notification-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.notification-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    border-radius: 20px;
}

/* User Dropdown */
.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.user-dropdown .dropdown-toggle:hover {
    border-color: var(--accent-primary);
}

.user-dropdown .dropdown-toggle::after {
    margin-left: 8px;
    font-size: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.user-dropdown .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-hover);
    padding: 8px;
    min-width: 180px;
}

.user-dropdown .dropdown-item {
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.user-dropdown .dropdown-item:hover {
    background: var(--sidebar-hover-bg);
}

.user-dropdown .dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--text-muted);
}

/* ============================================
   CONTENT CONTAINER
   ============================================ */
.content-wrapper {
    padding: 24px 32px;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--card-border);
    padding: 20px 24px;
}

.card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* ============================================
   ALERT STYLES
   ============================================ */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin: 16px 32px;
    font-weight: 500;
}

.alert-success {
    background: var(--accent-success-light);
    color: var(--accent-success);
}

.alert-danger {
    background: var(--accent-danger-light);
    color: var(--accent-danger);
}

.alert-warning {
    background: var(--accent-warning-light);
    color: var(--accent-warning);
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--sidebar-hover-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 14px 16px;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--sidebar-hover-bg);
}

/* ============================================
   BUTTON STYLES - Updated with Violet
   ============================================ */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 10px 20px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.btn-primary:focus,
.btn-primary:active {
    background: var(--gradient-primary-hover);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.btn-outline-primary {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.btn-light {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}

.btn-light:hover {
    background: var(--sidebar-hover-bg);
    border-color: var(--border-color);
}

/* ============================================
   FORM STYLES - Updated focus color
   ============================================ */
.form-control,
.form-select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--input-bg);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-light);
    color: var(--text-primary);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Form Check - Updated for violet */
.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-light);
}

/* ============================================
   BADGE STYLES - Updated primary
   ============================================ */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge.bg-primary { background: var(--accent-primary) !important; }
.badge.bg-success { background: var(--accent-success) !important; }
.badge.bg-warning { background: var(--accent-warning) !important; color: #fff !important; }
.badge.bg-danger { background: var(--accent-danger) !important; }
.badge.bg-info { background: var(--accent-info) !important; }

/* ============================================
   PAGINATION - Updated for violet
   ============================================ */
.page-link {
    color: var(--accent-primary);
    border-color: var(--border-color);
    background: var(--card-bg);
}

.page-link:hover {
    color: var(--accent-primary-dark);
    background: var(--accent-primary-light);
    border-color: var(--accent-primary);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--card-bg);
}

/* ============================================
   LINK STYLES - Updated for violet
   ============================================ */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary-dark);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0 16px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .user-section {
        gap: 8px;
    }
    
    .page-title h2 {
        font-size: 18px;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--sidebar-border);
}

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

[dir="rtl"] .submenu {
    padding-left: 0;
    padding-right: 20px;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--main-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   UTILITY CLASSES - Updated for violet
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--accent-primary) !important;
}

.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-success { background: var(--gradient-success) !important; }
.bg-gradient-warning { background: var(--gradient-warning) !important; }
.bg-gradient-info { background: var(--gradient-info) !important; }

/* Border primary */
.border-primary {
    border-color: var(--accent-primary) !important;
}

/* ============================================
   SELECTION HIGHLIGHT
   ============================================ */
::selection {
    background: var(--accent-primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--accent-primary);
    color: #ffffff;
}

/* ============================================
   SIDEBAR OVERLAY FOR MOBILE
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

@media (max-width: 1199px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   LOADING SPINNER - Updated for violet
   ============================================ */
.spinner-border {
    color: var(--accent-primary);
}

.spinner-grow {
    color: var(--accent-primary);
}

/* ============================================
   PROGRESS BAR - Updated for violet
   ============================================ */
.progress-bar {
    background: var(--gradient-primary);
}

/* ============================================
   NAV TABS & PILLS - Updated for violet
   ============================================ */
.nav-tabs .nav-link.active {
    color: var(--accent-primary);
    border-color: var(--border-color) var(--border-color) var(--card-bg);
}

.nav-tabs .nav-link:hover {
    border-color: var(--border-color);
    color: var(--accent-primary);
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: #fff;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
}

.nav-pills .nav-link:hover {
    color: var(--accent-primary);
}

/* ============================================
   TOOLTIP - Updated for dark theme support
   ============================================ */
.tooltip-inner {
    background: var(--text-primary);
    color: var(--card-bg);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
}

/* ============================================
   DROPDOWN - Updated styling
   ============================================ */
.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-hover);
    padding: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--gradient-primary);
    color: #fff;
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* ============================================
   MODAL - Updated styling
   ============================================ */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    padding: 24px;
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

.btn-close {
    filter: var(--text-primary);
}

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

/* ============================================
   BREADCRUMB - Updated styling
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.breadcrumb-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--accent-primary);
}

.breadcrumb-item a:hover {
    color: var(--accent-primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ============================================
   ACCORDION - Updated styling
   ============================================ */
.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) !important;
    margin-bottom: 8px;
}

.accordion-button {
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 500;
    padding: 16px 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px var(--accent-primary-light);
    border-color: var(--accent-primary);
}

.accordion-body {
    padding: 20px;
    color: var(--text-secondary);
}

/* ============================================
   LIST GROUP - Updated styling
   ============================================ */
.list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 14px 20px;
}

.list-group-item:hover {
    background: var(--sidebar-hover-bg);
}

.list-group-item.active {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* ============================================
   STATUS DOTS
   ============================================ */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.active {
    background: var(--accent-success);
}

.status-dot.inactive {
    background: var(--accent-danger);
}

.status-dot.pending {
    background: var(--accent-warning);
}

.status-dot.info {
    background: var(--accent-info);
}