/* Modern Enterprise & Glassmorphism Theme */
body[data-theme="modern"], body:not([data-theme]) {
    --bg-body: #f1f5f9;
    --text-color: #0f172a;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    
    --card-bg: #ffffff;
    --card-border: 1px solid #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --border-radius: 12px;
    --btn-radius: 8px;
    --input-radius: 8px;
    
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-active-bg: #2563eb;
    --sidebar-active-text: #ffffff;
    --sidebar-hover-bg: #1e293b;
    
    --topbar-bg: rgba(255, 255, 255, 0.85);
    --topbar-border: 1px solid #e2e8f0;
}

[data-theme="modern"] .app-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
}

[data-theme="modern"] .sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1e293b;
}

[data-theme="modern"] .brand-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

[data-theme="modern"] .sidebar-nav {
    list-style: none;
    padding: 16px 12px;
    flex-grow: 1;
    overflow-y: auto;
}

[data-theme="modern"] .nav-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #64748b;
    padding: 12px 12px 6px 12px;
}

[data-theme="modern"] .nav-item {
    margin-bottom: 4px;
}

[data-theme="modern"] .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

[data-theme="modern"] .nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: #ffffff;
    transform: translateX(3px);
}

[data-theme="modern"] .nav-item.active .nav-link {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    font-weight: 600;
}

[data-theme="modern"] .nav-link .nav-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    justify-content: center;
}

[data-theme="modern"] .app-topbar {
    background: var(--topbar-bg);
    backdrop-filter: blur(8px);
    border-bottom: var(--topbar-border);
    position: sticky;
    top: 0;
}

[data-theme="modern"] .topbar-search {
    position: relative;
    max-width: 360px;
    width: 100%;
}

[data-theme="modern"] .topbar-search input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    font-size: 13px;
    width: 100%;
}

[data-theme="modern"] .theme-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="modern"] .theme-switch-btn:hover {
    background: #e2e8f0;
}

/* Modern Card Hover Effects */
[data-theme="modern"] .card-metric {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="modern"] .card-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

[data-theme="modern"] .metric-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
