﻿/* =============================================
   LAYOUT COMÚN - BIMMers Cloud
   Estilos reutilizables para top-bar, sidebar y temas
   ============================================= */

/* ========== VARIABLES DE TEMA ========== */
:root {
    --bg-primary: #f5f7f9;
    --bg-secondary: #ffffff;
    --header-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f8f8f8;
    --sidebar-active: #e8f4fa;
    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-muted: #999999;
    --border: #e0e0e0;
    --brand-green: #006400;
    --accent-blue: #0696d7;
    --ink: #2d2d2d;
    --text: #5a5a5a;
    --bg: #f5f7f9;
    --card: #ffffff;
    --stroke: #e0e0e0;
    --hover: #f7f9fa;
}

[data-theme="dark"] {
    --bg-primary: #0a1628;
    --bg-secondary: #132337;
    --header-bg: linear-gradient(135deg, #0a1628 0%, #050d18 100%);
    --sidebar-bg: #0f1d32;
    --sidebar-hover: #1a3150;
    --sidebar-active: #1e3a5f;
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d4a6f;
    --brand-green: #10b981;
    --accent-blue: #38bdf8;
    --ink: #f0f4f8;
    --text: #94a3b8;
    --bg: #0a1628;
    --card: #132337;
    --stroke: #2d4a6f;
    --hover: #1e3a5f;
}

/* ========== RESET BÁSICO ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--header-bg);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.project-info {
    display: flex;
    flex-direction: column;
}

.project-name-header {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.project-breadcrumb {
    font-size: 11px;
    opacity: 0.7;
}

/* Los enlaces del breadcrumb (Proyectos / Nombre del proyecto) heredan el color
   del texto de la barra (no azul de enlace), así respetan tema claro/oscuro. */
.project-breadcrumb a,
.breadcrumb-link {
    color: inherit;
    text-decoration: none;
}

    .project-breadcrumb a:hover,
    .breadcrumb-link:hover {
        text-decoration: underline;
        opacity: 1;
    }

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

    .nav-link:hover {
        background: rgba(255,255,255,0.2);
    }

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

    .user-pill:hover {
        background: rgba(255,255,255,0.2);
    }

.btn-salir {
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

    .btn-salir:hover {
        background: rgba(255,255,255,0.2);
    }

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    padding: 4px;
    gap: 2px;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
}

    .theme-btn:hover {
        color: white;
    }

    .theme-btn.active {
        background: var(--accent-blue);
        color: white;
        box-shadow: 0 2px 8px rgba(6, 150, 215, 0.4);
    }

    .theme-btn svg {
        width: 18px;
        height: 18px;
    }

.icon-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

    .icon-btn:hover {
        background: rgba(255,255,255,0.2);
    }

/* Botón toggle sidebar */
.sidebar-toggle-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .sidebar-toggle-btn:hover {
        background: rgba(255,255,255,0.2);
    }

    .sidebar-toggle-btn svg {
        width: 20px;
        height: 20px;
    }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ========== LAYOUT CONTAINER ========== */
.layout-container {
    display: flex;
    height: calc(100vh - 52px);
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 220px;
    background: var(--card);
    border-right: 1px solid var(--stroke);
    overflow-y: auto;
    flex-shrink: 0;
    transition: margin-left 0.3s ease;
}

    .sidebar.collapsed {
        margin-left: -220px;
    }

.project-selector {
    padding: 16px 12px;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.nav-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--stroke);
}

.nav-label {
    padding: 0 12px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nav-item {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

    .nav-item:hover {
        background: var(--hover);
    }

    .nav-item.active {
        background: var(--sidebar-active);
        color: var(--accent-blue);
        font-weight: 600;
        border-left: 3px solid var(--accent-blue);
        padding-left: 9px;
    }

.nav-badge {
    margin-left: auto;
    background: var(--accent-blue);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.nav-section.control-proyecto {
    background: rgba(6, 150, 215, 0.03);
}

    .nav-section.control-proyecto .nav-label {
        color: var(--accent-blue);
    }

.new-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    margin-left: 6px;
}

/* Overlay móvil */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

    .sidebar-overlay.active {
        display: block;
    }

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-toggle-btn {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 52px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 52px);
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        margin-left: 0 !important;
    }

        .sidebar.open {
            left: 0;
        }

    .top-bar-right .nav-link {
        display: none;
    }

    .top-bar-right .theme-toggle {
        display: none;
    }
}

/* ========== SCROLLBAR SIDEBAR ========== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
}

[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
}


/* ========== NOTIFICACIONES DROPDOWN ========== */
.notif-container {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 14px;
    text-align: center;
    line-height: 1.2;
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

    .notifications-dropdown.active {
        display: block;
    }

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--stroke);
}

.notif-header-left {
    display: flex;
    flex-direction: column;
}

    .notif-header-left h3 {
        font-size: 15px;
        font-weight: 600;
        color: var(--ink);
        margin: 0 0 2px 0;
    }

    .notif-header-left span {
        font-size: 12px;
        color: var(--text-muted);
    }

.notif-header button {
    font-size: 12px;
    color: var(--accent-blue);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

    .notif-header button:hover {
        background: rgba(6, 150, 215, 0.1);
    }

.notif-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.notif-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--stroke);
    cursor: pointer;
    transition: background 0.2s;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: var(--hover);
    }

    .notif-item.unread {
        background: rgba(6, 150, 215, 0.05);
        border-left: 3px solid var(--accent-blue);
    }

.notif-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 4px;
}

.notif-item-desc {
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== MODAL CONFIGURACIÓN DE MÓDULOS ========== */
.modal-config-modulos {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

    .modal-config-modulos.active {
        display: flex;
    }

.modal-config-box {
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0696d7 0%, #0466a8 100%);
    color: white;
}

    .modal-config-header h3 {
        font-size: 18px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

.modal-config-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .modal-config-close:hover {
        background: rgba(255,255,255,0.3);
    }

.modal-config-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.config-license-info {
    background: linear-gradient(135deg, rgba(6, 150, 215, 0.1) 0%, rgba(6, 150, 215, 0.05) 100%);
    border: 1px solid rgba(6, 150, 215, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .config-license-info .license-icon {
        font-size: 28px;
    }

    .config-license-info .license-text h4 {
        color: var(--ink);
        font-size: 15px;
        font-weight: 600;
        margin: 0 0 2px 0;
    }

    .config-license-info .license-text p {
        color: var(--text);
        font-size: 13px;
        margin: 0;
    }

.config-license-badge {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

    .config-license-badge.free {
        background: #e5e7eb;
        color: #374151;
    }

    .config-license-badge.starter {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .config-license-badge.pro {
        background: #fef3c7;
        color: #d97706;
    }

    .config-license-badge.enterprise {
        background: #ede9fe;
        color: #7c3aed;
    }

.modules-config-section {
    margin-bottom: 24px;
}

.modules-config-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--stroke);
}

    .modules-config-section-header span:last-child {
        font-size: 14px;
        font-weight: 500;
        color: var(--ink);
    }

.plan-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

    .plan-tag.free {
        background: #e5e7eb;
        color: #374151;
    }

    .plan-tag.starter {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .plan-tag.pro {
        background: #fef3c7;
        color: #d97706;
    }

    .plan-tag.enterprise {
        background: #ede9fe;
        color: #7c3aed;
    }

.modules-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.module-config-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border: 2px solid var(--stroke);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

    .module-config-item:hover:not(.locked) {
        border-color: var(--accent-blue);
        background: rgba(6, 150, 215, 0.05);
    }

    .module-config-item.active {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.08);
    }

    .module-config-item.locked {
        opacity: 0.5;
        cursor: not-allowed;
        background: var(--bg);
    }

.module-config-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--stroke);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
    transition: all 0.2s;
}

.module-config-item.active .module-config-checkbox {
    background: #10b981;
    border-color: #10b981;
}

.module-config-item.locked .module-config-checkbox {
    background: #9ca3af;
    border-color: #9ca3af;
}

.module-config-icon {
    font-size: 18px;
}

.module-config-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    flex: 1;
}

.module-config-item.locked .module-config-name {
    color: var(--text-muted);
}

.module-lock-icon {
    font-size: 14px;
    color: #9ca3af;
}

.modal-config-footer {
    padding: 16px 24px;
    background: var(--bg);
    border-top: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-counter {
    font-size: 13px;
    color: var(--text);
}

    .config-counter strong {
        color: var(--accent-blue);
        font-weight: 700;
    }

.modal-config-actions {
    display: flex;
    gap: 10px;
}

.btn-config-cancel {
    padding: 10px 20px;
    background: var(--card);
    border: 1px solid var(--stroke);
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-config-cancel:hover {
        background: var(--hover);
    }

.btn-config-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .btn-config-save:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .btn-config-save:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* ========== TOAST NOTIFICACIONES ========== */
.layout-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 24px;
    background: #333;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

    .layout-toast.show {
        transform: translateY(0);
        opacity: 1;
    }

    .layout-toast.success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .layout-toast.error {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .layout-toast.info {
        background: linear-gradient(135deg, #0696d7 0%, #0466a8 100%);
    }

/* ========== TEMA OSCURO - CONTENIDO PÁGINAS ========== */
/* Estilos para que las páginas de contenido se adapten al modo oscuro */

[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .container {
    background: transparent;
}

/* Tarjetas de estadísticas */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .stats-card,
[data-theme="dark"] .card,
[data-theme="dark"] .chart-card {
    background: var(--card);
    border-color: var(--stroke);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .chart-title {
    color: var(--text);
}

/* Gráficos */
[data-theme="dark"] .chart-title {
    border-bottom-color: var(--stroke);
}

/* Sección títulos */
[data-theme="dark"] .section-title {
    color: var(--ink);
    border-bottom-color: var(--accent-blue);
}

/* Headers de contenido */
[data-theme="dark"] .content-header,
[data-theme="dark"] .export-header {
    background: transparent;
}

/* Botones de exportar */
[data-theme="dark"] .export-btn {
    background: #10b981;
    color: white;
}

    [data-theme="dark"] .export-btn:hover {
        background: #059669;
    }

/* Tablas */
[data-theme="dark"] table {
    background: var(--card);
    color: var(--text);
}

[data-theme="dark"] th {
    background: var(--bg-secondary);
    color: var(--ink);
    border-color: var(--stroke);
}

[data-theme="dark"] td {
    border-color: var(--stroke);
    color: var(--text);
}

[data-theme="dark"] tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Inputs y formularios */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--card);
    border-color: var(--stroke);
    color: var(--ink);
}

    [data-theme="dark"] input::placeholder,
    [data-theme="dark"] textarea::placeholder {
        color: var(--text-muted);
    }

    [data-theme="dark"] input:focus,
    [data-theme="dark"] select:focus,
    [data-theme="dark"] textarea:focus {
        border-color: var(--accent-blue);
        outline: none;
    }

/* Loading overlay */
[data-theme="dark"] .loading-overlay {
    background: rgba(0,0,0,0.7);
}

[data-theme="dark"] .loading-box {
    background: var(--card);
    color: var(--text);
}

/* Modales genéricos */
[data-theme="dark"] .modal,
[data-theme="dark"] .modal-content {
    background: var(--card);
    color: var(--text);
}

/* Badges y tags */
[data-theme="dark"] .badge,
[data-theme="dark"] .tag {
    opacity: 0.9;
}

/* Scrollbars en contenido */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

    [data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
        background: #718096;
    }

/* Fix específico para Chart.js en modo oscuro */
[data-theme="dark"] canvas {
    filter: none;
}

/* ========== DASHBOARD ESPECÍFICO - MODO OSCURO ========== */
/* Tarjetas de estadísticas del dashboard */
[data-theme="dark"] .stats-overview .stat-card,
[data-theme="dark"] .stat-card {
    background: var(--card) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

    [data-theme="dark"] .stat-card .stat-value {
        text-shadow: 0 0 10px currentColor;
    }

/* Grid de gráficos */
[data-theme="dark"] .charts-grid .chart-card,
[data-theme="dark"] .chart-card {
    background: var(--card) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .charts-grid .chart-title,
[data-theme="dark"] .chart-title {
    color: var(--ink) !important;
    border-bottom-color: var(--stroke) !important;
}

/* Mejorar legibilidad de textos en cards */
[data-theme="dark"] .stat-label {
    color: #94a3b8 !important;
}

/* Loading box */
[data-theme="dark"] .loading-box {
    background: var(--card) !important;
    color: var(--text) !important;
}

/* Overview cards */
[data-theme="dark"] .overview-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .data-card {
    background: var(--card) !important;
    border-color: var(--stroke) !important;
}

/* Contenedor principal */
[data-theme="dark"] .container {
    background: transparent !important;
}

[data-theme="dark"] #dashboardContent,
[data-theme="dark"] #page-content {
    background: var(--bg) !important;
}

/* Sección títulos */
[data-theme="dark"] .section-title {
    color: var(--ink) !important;
    border-bottom-color: var(--accent-blue) !important;
}

/* Líneas divisorias */
[data-theme="dark"] hr,
[data-theme="dark"] .divider {
    border-color: var(--stroke);
}

/* Links en contenido */
[data-theme="dark"] a:not(.nav-item):not(.nav-link):not(.user-pill) {
    color: var(--accent-blue);
}

    [data-theme="dark"] a:not(.nav-item):not(.nav-link):not(.user-pill):hover {
        color: #38bdf8;
    }
