/**
 * Audit Dashboard Stylesheet
 * Health Score Gauges, Stat Cards, Overview Metrics, Score Circles & Status Badges
 */

.audit-dashboard-wrapper {
    font-family: var(--font-family-base, 'Inter', system-ui, -apple-system, sans-serif);
    color: var(--color-text-main, #0f172a);
}

.audit-score-card {
    background: var(--color-bg-white, #ffffff);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--color-border-light, #e2e8f0);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.25s ease;
}

.audit-score-card:hover {
    transform: translateY(-3px);
}

.audit-health-gauge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(var(--color-audit-primary, #7c3aed) 85%, #e2e8f0 0);
}

.audit-health-gauge::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 50%;
}

.audit-health-value {
    position: relative;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-main, #0f172a);
    z-index: 1;
}

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

.audit-stats-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.audit-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed { background: #d4edda; color: #155724; }
.status-in-progress { background: #fff3cd; color: #856404; }
.status-failed { background: #f8d7da; color: #721c24; }
.status-pending { background: #d1ecf1; color: #0c5460; }

.audit-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.audit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.score-excellent { background: linear-gradient(135deg, #4CAF50, #45a049); }
.score-good { background: linear-gradient(135deg, #8BC34A, #7CB342); }
.score-average { background: linear-gradient(135deg, #FF9800, #F57C00); }
.score-poor { background: linear-gradient(135deg, #F44336, #D32F2F); }
