:root {
    --primary-color: #529dd2;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #a8c42b;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-bg: #32d1ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: white !important;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #219653);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    border: none;
}

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.stats-card {
    text-align: center;
    padding: 2rem;
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stats-label {
    color: #666;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.table th {
    background-color: var(--light-bg);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table td {
    border: none;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-en_attente {
    background-color: #fff3cd;
    color: #856404;
}

.status-valide {
    background-color: #d4edda;
    color: #155724;
}

.status-rejete {
    background-color: #f8d7da;
    color: #721c24;
}

.status-complete {
    background-color: #d1ecf1;
    color: #0c5460;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: white;
    padding: 5rem 0;
    text-align: center;
    border-radius: 0 0 50% 50% / 0 0 20% 20%;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.transaction-info {
    background: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.transaction-info h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}