/* Styles pour le système d'abonnement */
.subscription-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.subscription-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.subscription-form h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group-abn {
    margin-bottom: 20px;
}

.form-group-abn label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

.form-group-abn select,
.form-group-abn input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group-abn select:focus,
.form-group-abn input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group-abn input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #6c757d;
}

.montant-display {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 6px;
    margin: 15px 0;
    border: 2px dashed #bdc3c7;
}

.payment-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.payment-instructions h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.payment-method {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #e8ecef;
    display: none;
}

.payment-method p {
    margin: 5px 0;
    line-height: 1.5;
}

.file-preview {
    margin-top: 10px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.required {
    color: #e74c3c;
}

.admin-container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 20px;
        }
        
        .admin-header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 10px;
        }
        
        .demandes-table {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .demandes-table table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .demandes-table th {
            background: #34495e;
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: bold;
        }
        
        .demandes-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #ecf0f1;
        }
        
        .demandes-table tr:hover {
            background: #f8f9fa;
        }
        
        .badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        
        .badge.en_attente { background: #f39c12; color: white; }
        .badge.approuve { background: #27ae60; color: white; }
        .badge.rejete { background: #e74c3c; color: white; }
        
        .actions {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }
        
        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
        }
        
        .btn-success { background: #27ae60; color: white; }
        .btn-danger { background: #e74c3c; color: white; }
        .btn-info { background: #3498db; color: white; }
        .btn-warning { background: #f39c12; color: white; }
        
        .user-info {
            font-weight: bold;
            color: #2c3e50;
        }
        
        .user-email {
            color: #7f8c8d;
            font-size: 12px;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px;
            color: #7f8c8d;
        }
        
        .montant-info {
            font-weight: bold;
            color: #27ae60;
        }
        
        .jours-info {
            background: #ecf0f1;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }
        
        /* Modal d'ajustement */
        .adjust-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }
        
        .adjust-modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .adjust-header {
            display: flex;
            justify-content: between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #ecf0f1;
            padding-bottom: 15px;
        }
        
        .adjust-close {
            font-size: 24px;
            cursor: pointer;
            color: #7f8c8d;
        }
        
        .adjust-close:hover {
            color: #34495e;
        }
        
        .info-section {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
        }
        
        .info-section p {
            margin: 8px 0;
            display: flex;
            justify-content: space-between;
        }
        
        .info-label {
            font-weight: bold;
            color: #34495e;
        }
        
        .info-value {
            color: #2c3e50;
        }
        
        .modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 25px;
        }
		
/* Styles pour le modal d'ajustement */
.adjust-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.adjust-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh; /* Hauteur maximale */
    overflow-y: auto; /* Scroll vertical si nécessaire */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

/* Assurer que le contenu est bien organisé */
.adjust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.adjust-close {
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    background: none;
    border: none;
}

.adjust-close:hover {
    color: #34495e;
}

/* Styles pour le contenu scrollable */
.modal-body {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding-right: 5px;
}

/* Personnaliser la scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Styles DEBUT POUR SUSPENDRE/REACTIVER/SUPPRIMER ABONNEMENT */
		.admin-container {
            max-width: 1400px;
            margin: 20px auto;
            padding: 20px;
        }
        
        .admin-header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 10px;
        }
        
        .filters {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .filter-group {
            display: flex;
            gap: 15px;
            align-items: end;
            flex-wrap: wrap;
        }
        
        .filter-item {
            flex: 1;
            min-width: 200px;
        }
        
        .abonnements-table {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .abonnements-table table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .abonnements-table th {
            background: #34495e;
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: bold;
            position: sticky;
            top: 0;
        }
        
        .abonnements-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #ecf0f1;
        }
        
        .abonnements-table tr:hover {
            background: #f8f9fa;
        }
        
        .badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        
        .badge.actif { background: #27ae60; color: white; }
        .badge.inactif { background: #95a5a6; color: white; }
        .badge.suspendu { background: #f39c12; color: white; }
        .badge.expire { background: #e74c3c; color: white; }
        
        .user-info {
            font-weight: bold;
            color: #2c3e50;
        }
        
        .user-email {
            color: #7f8c8d;
            font-size: 12px;
        }
        
        .statistics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .stat-number {
            font-size: 2em;
            font-weight: bold;
            margin: 10px 0;
        }
        
        .stat-label {
            color: #7f8c8d;
            font-size: 14px;
        }
        
        .text-success { color: #27ae60; }
        .text-warning { color: #f39c12; }
        .text-danger { color: #e74c3c; }
        .text-info { color: #3498db; }
        
        .actions {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }
        
        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
        }
        
        .btn-warning { background: #f39c12; color: white; }
        .btn-danger { background: #e74c3c; color: white; }
        .btn-info { background: #3498db; color: white; }
        
        .empty-state {
            text-align: center;
            padding: 40px;
            color: #7f8c8d;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }
        
        .page-link {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            text-decoration: none;
            color: #34495e;
        }
        
        .page-link.active {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }
        
        .jours-restants {
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 3px;
            background: #ecf0f1;
        }
        
        .jours-restants.danger {
            background: #e74c3c;
            color: white;
        }
        
        .jours-restants.warning {
            background: #f39c12;
            color: white;
        }
        
        .jours-restants.success {
            background: #27ae60;
            color: white;
        }

/* Styles FIN POUR SUSPENDRE/REACTIVER/SUPPRIMER ABONNEMENT */