/* Dashboard - Styles spécifiques */

/* Navigation Dashboard */
.dashboard-nav {
    display: flex;
    gap: 0;
    margin: 100px 30px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(74, 85, 104, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4a5568;
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* Dashboard Views */
.dashboard-view {
    display: none;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-view.active {
    display: block;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
}

.dashboard-header p {
    color: rgba(74, 85, 104, 0.7);
    font-size: 1.1rem;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.kpi-card.breakeven.achieved {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.kpi-card.breakeven.not-achieved {
    border-color: #ed8936;
    background: rgba(237, 137, 54, 0.1);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.kpi-header h3 {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.kpi-trend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.kpi-trend.positive {
    background: rgba(72, 187, 120, 0.2);
    color: #38a169;
}

.kpi-trend.negative {
    background: rgba(245, 101, 101, 0.2);
    color: #e53e3e;
}

.kpi-value {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
    line-height: 1.2;
}

.kpi-subtitle {
    color: rgba(74, 85, 104, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Progress Bar */
.kpi-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-label {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #4a5568;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Alerts Section */
.alerts-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.alert.warning {
    background: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.3);
    color: #c05621;
}

.alert.info {
    background: rgba(56, 178, 172, 0.1);
    border: 1px solid rgba(56, 178, 172, 0.3);
    color: #285e61;
}

/* Chart Section */
.chart-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
}

.chart-card h3 {
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.chart-card canvas {
    max-height: 300px;
}

/* Financial & Commercial Content */
.financial-content,
.commercial-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.financial-metrics,
.commercial-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-nav {
        margin: 80px 15px 0;
        flex-direction: column;
        gap: 8px;
    }

    .nav-tab {
        justify-content: center;
        padding: 15px;
    }

    .dashboard-view {
        padding: 20px 15px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .chart-section {
        grid-template-columns: 1fr;
    }

    .chart-card {
        min-width: unset;
    }

    .dashboard-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .kpi-value {
        font-size: 1.6rem;
    }

    .chart-card {
        padding: 20px 15px;
    }
}