/* ============================================
   COMPOSANTS GLOBAUX MODERNES - STYLE 2025
   ============================================ */

/* Cards modernes partout */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 2;
}

.card-header {
    border: none !important;
    padding: 1.25rem 1.5rem !important;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem !important;
}

.card-footer {
    border: none !important;
    padding: 1rem 1.5rem !important;
}

/* Boutons modernes */
.btn {
    border-radius: 10px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408b 100%) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

/* Badges modernes */
.badge {
    padding: 0.4rem 0.8rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

/* Inputs modernes */
.form-control,
.form-select {
    border-radius: 10px !important;
    border: 2px solid #e5e7eb !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
}

/* Tables modernes */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none !important;
    padding: 1rem !important;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem !important;
    border-color: #f3f4f6 !important;
}

/* Alerts modernes */
.alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
}

.alert-warning {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
    color: #92400e !important;
}

.alert-info {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%) !important;
    color: #155e75 !important;
}

/* Les modals sont maintenant gérées par modal-fix.css */

/* List groups modernes */
.list-group-item {
    border: 1px solid #f3f4f6 !important;
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.list-group-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

/* Pagination moderne */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 0.25rem;
    border: none !important;
    color: #667eea;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Progress bars modernes */
.progress {
    border-radius: 10px !important;
    height: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Breadcrumb moderne */
.breadcrumb {
    background: white;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item.active {
    color: #667eea;
    font-weight: 600;
}

/* Animations globales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar globale personnalisée */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408b 100%);
}

/* Container principal */
#main {
    background: #f9fafb;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

#main > * {
    position: relative;
    z-index: 1;
}

/* Responsive global */
@media screen and (max-width: 767px) {
    .card-body {
        padding: 1rem !important;
    }
    
    .btn {
        padding: 0.5rem 1rem !important;
    }
}
