/* Container de la table pour l'effet de carte */
.admin-table-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 1.5rem;
}

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

.admin-table thead {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}

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

/* Badge pour le LevelCode */
.badge-code {
    display: inline-block;
    padding: 4px 10px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 700;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace; /* Optionnel : pour un look code */
}

/* Actions */
.actions-cell {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: var(--primary);
}

/* Entête spécifique aux pages de création/édition */
.admin-page-header {
    margin-bottom: 2rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

/* Conteneur pour le formulaire inclus */
.admin-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Carte de formulaire type "Admin" */
.admin-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Actions du formulaire (bas de carte) */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Zone de danger pour la suppression */
.danger-zone {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid #fee2e2;
    border-radius: var(--radius-lg);
    background-color: #fef2f2;
}

.danger-zone h2 {
    color: #991b1b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-zone p {
    color: #b91c1c;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Ajustement pour aligner les boutons de retour et titre */
.admin-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

/* Fiche de détails */
.details-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
}

.details-row {
    display: flex;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.details-row:last-child {
    border-bottom: none;
}

.details-label {
    width: 250px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.details-value {
    flex: 1;
    color: #1e293b;
    font-weight: 500;
}

/* Barre d'actions en bas de page */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.actions-group {
    display: flex;
    gap: 1rem;
}
