/**
 * Améliorations CSS - Formulaires de Réclamation
 * Fichier: assets/css/reclamation-form.css
 */

/* Section Titles Styling */
.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-family: var(--font-family-title);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.section-title i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Enhanced Form Sections */
.form-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 107, 53, 0.1);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-smooth);
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.15);
}

/* Checkbox & Radio Styling */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    margin-bottom: 0.5rem;
}

.checkbox-label:hover,
.radio-label:hover {
    background: rgba(255, 107, 53, 0.05);
}

input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary);
}

/* File Upload Wrapper */
.file-upload-wrapper {
    border: 2px dashed rgba(255, 107, 53, 0.3);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-smooth);
    background: rgba(255, 107, 53, 0.02);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
    transform: scale(1.01);
}

.file-upload-wrapper i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.file-upload-wrapper p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 2px solid #E0E0E0;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Alert Styling */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(239, 83, 80, 0.05) 100%);
    border-left-color: #F44336;
    color: #C62828;
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.05) 100%);
    border-left-color: #4CAF50;
    color: #2E7D32;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 202, 40, 0.05) 100%);
    border-left-color: #FFC107;
    color: #F57F17;
}

.alert-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(66, 165, 245, 0.05) 100%);
    border-left-color: #2196F3;
    color: #1565C0;
}

/* Responsive Grid */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

/* Enhanced Button Styling */
.btn-lg {
    font-size: 1.0625rem;
    padding: 1.125rem 2.25rem;
    min-height: 52px;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFF;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-control.is-invalid {
    border-color: #F44336;
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.1);
}

.invalid-feedback {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #F44336;
    font-weight: 500;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Card Enhancement */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}

/* Card Body Padding */
.card-body.p-4 {
    padding: 2rem !important;
}

.card-body.p-5 {
    padding: 3rem !important;
}

/* Success Message Box */
.success-message {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border: 2px solid #4CAF50;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.success-message h2 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.success-message p {
    color: #388E3C;
    line-height: 1.6;
}

/* Required Field Indicator */
.form-label::after {
    content: '';
}

.form-label[for*="required"]::after,
.form-label:has(+ .form-control[required])::after {
    content: ' *';
    color: #F44336;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Breadcrumb Enhancement */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-gray);
    margin: 0 0.5rem;
}

/* Navbar Brand Badge */
.navbar-brand-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.75rem;
}

/* Navbar and Mobile Menu are handled by style.css to ensure global consistency */


/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.2);
}

.stat-card h3 {
    margin: 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
