/* ==========================================================================
   STYLE TECHNIQUE ET DESIGN - GESTION DES MEMBRES ADMIN
   ========================================================================== */
:root {
    --primary-eu: #4a51ff;
    --primary-eu-light: rgba(74, 81, 255, 0.06);
    --danger-eu: #ff4757;
    --danger-eu-light: #fff5f5;
    --danger-eu-border: #ffe3e3;
    --success-eu: #2ed573;
    --success-eu-light: #f0fdf4;
    --border-eu: rgba(0, 0, 0, 0.06);
    --text-eu-dark: #111111;
    --text-eu-muted: #626262;
}

body {
    background-color: #f8fafc;
}

.eu-admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* En-tête */
.eu-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

@media(max-width: 768px) {
    .eu-page-header { flex-direction: column; align-items: flex-start; }
}

.eu-header-txt h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-eu-dark);
    margin: 0 0 8px 0;
    letter-spacing: -1px;
}

.eu-header-txt p {
    color: var(--text-eu-muted);
    margin: 0;
    font-size: 0.95rem;
}

.eu-stats-badge {
    background: #ffffff;
    border: 1px solid var(--border-eu);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-eu-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    display: flex;
    align-items: center;
    gap: 10px;
}

.eu-stats-badge i {
    color: var(--primary-eu);
}

/* Alertes Flash Notifications */
.eu-alert {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDownIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eu-alert-success { background: var(--success-eu-light); color: #166534; border: 1px solid #bbf7d0; }
.eu-alert-danger { background: var(--danger-eu-light); color: #991b1b; border: 1px solid var(--danger-eu-border); }

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

/* Tableau et Container */
.eu-card-table {
    background: #ffffff;
    border: 1px solid var(--border-eu);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.01);
    overflow: hidden;
    padding: 8px 0;
}

.eu-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.eu-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.eu-table th {
    background: #ffffff;
    padding: 18px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-eu-muted);
    border-bottom: 1px solid var(--border-eu);
}

.eu-table td {
    padding: 16px 24px;
    font-size: 0.95rem;
    color: var(--text-eu-dark);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.eu-table tbody tr:last-child td {
    border-bottom: none;
}

.eu-table tr {
    transition: background-color 0.2s ease;
}

.eu-table tbody tr:hover {
    background-color: #fafafa;
}

.eu-table-empty {
    text-align: center !important;
    padding: 60px !important;
    color: var(--text-eu-muted);
    font-weight: 500;
}

/* Cellules Spécifiques */
.eu-user-cell-prenom {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.eu-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-eu-light);
    color: var(--primary-eu);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 1px solid rgba(74, 81, 255, 0.12);
}

.eu-email-text {
    color: var(--text-eu-muted);
    font-weight: 500;
}

/* Sélecteur de Rôle déporté */
.eu-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eu-role-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-eu-dark);
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.eu-role-select:focus {
    border-color: var(--primary-eu);
    box-shadow: 0 0 0 3px rgba(74, 81, 255, 0.12);
}

.eu-role-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.eu-self-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Bouton Supprimer */
.eu-btn-delete {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eu-btn-delete:hover:not(:disabled) {
    color: var(--danger-eu);
    border-color: #ffcbd1;
    background: var(--danger-eu-light);
}

.eu-btn-delete:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Pagination Structurelle */
.eu-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 10px 24px;
    border-top: 1px solid #f1f5f9;
}

.eu-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-eu-dark);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.eu-page-btn:hover:not(.disabled) {
    background: #f8fafc;
}

.eu-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.eu-page-numbers {
    display: flex;
    gap: 6px;
}

.eu-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-eu-muted);
}

.eu-page-link:hover {
    background: #f1f5f9;
    color: var(--text-eu-dark);
}

.eu-page-link.active {
    background: var(--danger-eu); /* Liaison rouge admin */
    color: #ffffff;
}

/* Boîte Modale Méticuleuse */
.eu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.eu-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.eu-modal-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.eu-modal-overlay.active .eu-modal-box {
    transform: scale(1) translateY(0);
}

.eu-modal-icon {
    width: 56px;
    height: 56px;
    background: var(--danger-eu-light);
    color: var(--danger-eu);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 20px auto;
    border: 1px solid var(--danger-eu-border);
}

.eu-modal-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-eu-dark);
    margin: 0 0 10px 0;
}

.eu-modal-box p {
    color: var(--text-eu-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.eu-modal-actions {
    display: flex;
    gap: 12px;
}

.eu-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.eu-modal-btn.btn-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.eu-modal-btn.btn-cancel:hover { background: #f8fafc; }

.eu-modal-btn.btn-confirm {
    background: var(--danger-eu);
    border: none;
    color: #ffffff;
}

.eu-modal-btn.btn-confirm:hover { background: #dc2626; }