/* Styles pour le tableau de bord d'investigation Ba7ath */

#ba7ath-dashboard {
    background: #0b111a;
    border-radius: 8px;
    padding: 24px;
    color: #e0e0e0;
    border: 1px solid rgba(13, 202, 240, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
}

.dashboard-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    color: #a8b2c1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn:hover {
    background: rgba(13, 202, 240, 0.1);
    color: #fff;
    border-color: rgba(13, 202, 240, 0.5);
}

.tab-btn.active {
    background: #0dcaf0;
    color: #000;
    border-color: #0dcaf0;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.4);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.kpi-card {
    background: linear-gradient(135deg, #151e2b 0%, #1e293b 100%);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kpi-card h3 {
    font-size: 1.1rem;
    color: #a8b2c1;
    margin-bottom: 12px;
    font-family: 'Cairo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-card .value {
    font-size: 3rem;
    color: #11caa0;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(17, 202, 160, 0.25);
}

.chart-box {
    background: #151e2b;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-box h4 {
    color: #0dcaf0;
    margin-bottom: 24px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.bar-comparison {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-item span {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

.bar-bg {
    background: #05080c;
    border-radius: 6px;
    height: 36px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
    color: #0f172a;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.bar-fill.accent {
    background: linear-gradient(90deg, #0f766e, #11caa0);
    color: #fff;
    box-shadow: 0 0 15px rgba(17, 202, 160, 0.4);
}

.bar-fill.warning {
    background: linear-gradient(90deg, #be123c, #ff4757);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.flag-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flag-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flag-row span {
    width: 60px;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 600;
}

.flag-row span:last-child {
    width: auto;
    font-weight: 700;
    color: #fff;
}

.flag-bar {
    height: 12px;
    background: linear-gradient(90deg, #0284c7, #0dcaf0);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(13, 202, 240, 0.3);
    transition: width 1s ease-in-out;
}
