/* Styles spécifiques pour les pages d'administration */

/* Page de connexion */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-success) 100%);
    display: flex;
    align-items: center;
}

.login-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.auth-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Dashboard admin */
.admin-dashboard .stat-card {
    transition: transform 0.2s ease-in-out;
}

.admin-dashboard .stat-card:hover {
    transform: translateY(-5px);
}

.admin-dashboard .card-footer a {
    text-decoration: none;
    font-weight: 500;
}

.admin-dashboard .card-footer a:hover {
    text-decoration: underline;
}

/* Tables d'administration */
.admin-table {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.admin-table .table {
    margin-bottom: 0;
}

.admin-table .table thead th {
    background-color: var(--bs-light);
    border-top: none;
    font-weight: 600;
    color: var(--bs-dark);
}

.admin-table .table tbody tr:hover {
    background-color: var(--bs-light);
}

/* Actions rapides */
.quick-actions .btn {
    transition: all 0.2s ease-in-out;
}

.quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Badges de statut */
.status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

/* Sidebar admin (pour future utilisation) */
.admin-sidebar {
    background: linear-gradient(180deg, var(--bs-dark) 0%, #2c3e50 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

/* Formulaires d'administration */
.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-label {
    font-weight: 600;
    color: var(--bs-dark);
}

.admin-form .form-control,
.admin-form .form-select {
    border: 2px solid var(--bs-border-color);
    transition: border-color 0.2s ease;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: none;
}

/* Notifications toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.toast {
    min-width: 300px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }

    .admin-dashboard .col-xl-3 {
        margin-bottom: 1rem;
    }
}

/* Indicateurs de chargement */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Boutons d'action */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 0.25rem;
}

/* Alertes personnalisées */
.alert-custom {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.alert-custom .alert-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Cartes de statistiques */
.stat-card {
    background: linear-gradient(135deg, var(--card-bg, #fff) 0%, var(--card-bg-end, #f8f9fa) 100%);
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--bs-primary));
}

.stat-card-primary {
    --card-bg: #4c84ff;
    --card-bg-end: #3b6fdb;
    --card-accent: #ffffff;
    color: white;
}

.stat-card-success {
    --card-bg: #28a745;
    --card-bg-end: #20a83a;
    --card-accent: #ffffff;
    color: white;
}

.stat-card-warning {
    --card-bg: #ffc107;
    --card-bg-end: #e0a800;
    --card-accent: #ffffff;
    color: white;
}

.stat-card-info {
    --card-bg: #17a2b8;
    --card-bg-end: #138496;
    --card-accent: #ffffff;
    color: white;
}