/* Barra de Navegación de Vistas Principal */
.main-view-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 125px; /* Justo debajo del header */
    z-index: 950;
    margin-bottom: 10px;
}

.view-tab {
    padding: 10px 24px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.view-tab:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.view-tab.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Ajustes para el host de análisis */
.analysis-host {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.analysis-tabs-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.analysis-tab-panel { display: none; }
.analysis-tab-panel.active { display: block; }

/* --- Gantt Professional Toolbar --- */
.gantt-toolbar {
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.zoom-controls {
    display: flex;
    background: #edf2f7;
    padding: 4px;
    border-radius: 8px;
    gap: 2px;
}

.zoom-controls button {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-controls button.active {
    background: white;
    color: #3182ce;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons button {
    border: 1px solid #dbe3ee;
    background: white;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
}

.action-buttons button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.gantt-canvas {
    flex: 1;
    min-height: 360px;
    overflow: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: 0;
}

.gantt-svg-wrapper {
    min-height: 100%;
    min-width: 100%;
}

/* Gantt Professional Styles */
.gantt-professional-container { display: flex; flex-direction: column; height: 75vh; }
.gantt-toolbar { padding: 10px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; }
.gantt-kpi-strip { display: flex; gap: 20px; padding: 15px; background: #1e293b; color: white; border-radius: 0 0 8px 8px; }
.kpi-item span { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; margin-right: 5px; }

/* Analysis Dashboard Grid */
.analysis-dashboard { display: flex; flex-direction: column; gap: 20px; }
.dashboard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-row .large { grid-column: span 1; }
.dashboard-card { background: white; border-radius: 8px; padding: 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.dashboard-card h3 { font-size: 0.9rem; color: #64748b; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }

/* Gantt Bar Colors */
.bar-crit { fill: #ef4444 !important; }
.bar-normal { fill: #3b82f6 !important; }
body.dark-mode .main-view-nav { background: rgba(30, 41, 59, 0.8); border-color: #334155; }
body.dark-mode .view-tab { color: #94a3b8; }
body.dark-mode .view-tab:hover { background: #334155; color: #f1f5f9; }
