/* Custom styles for EAA Compliance Checker */

/* Progress bar animations */
.progress-bar {
    transition: width 0.6s ease;
}

/* Score display styling */
.display-4 {
    color: var(--bs-primary);
}

/* Badge colors for compliance levels */
.badge.compliance-high {
    background-color: var(--bs-success);
}

.badge.compliance-moderate {
    background-color: var(--bs-warning);
}

.badge.compliance-low {
    background-color: var(--bs-orange, #fd7e14);
}

.badge.compliance-none {
    background-color: var(--bs-danger);
}

/* Result item styling */
.result-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.result-item.passed {
    border-left-color: var(--bs-success);
    background-color: rgba(25, 135, 84, 0.1);
}

.result-item.failed {
    border-left-color: var(--bs-danger);
    background-color: rgba(220, 53, 69, 0.1);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* WCAG reference styling */
.wcag-reference {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-pulse {
    animation: pulse 2s infinite;
}

/* Score circle styling */
.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.score-excellent {
    background: linear-gradient(135deg, var(--bs-success), #20c997);
    color: white;
}

.score-good {
    background: linear-gradient(135deg, var(--bs-info), #17a2b8);
    color: white;
}

.score-fair {
    background: linear-gradient(135deg, var(--bs-warning), #ffc107);
    color: var(--bs-dark);
}

.score-poor {
    background: linear-gradient(135deg, var(--bs-danger), #dc3545);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Focus indicators for accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .result-item {
        border-left-width: 6px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .progress-bar,
    .result-item {
        transition: none;
    }
    
    .loading-pulse {
        animation: none;
    }
}
