﻿/* admin-referentiels.css */
/* Styles pour les modules Spécialité Médicale & Type Personnel Médical */

/* Cards */
.admin-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .admin-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* Tables */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Badges */
.badge-personnel {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

/* Buttons */
.btn-group-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Search Bar */
.search-container {
    position: relative;
}

    .search-container .input-group {
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        border-radius: 6px;
    }

/* Forms */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* Alert Messages */
.alert {
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #0dcaf0;
}

/* Card Headers */
.card-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
    font-weight: 600;
}

    .card-header h4 {
        margin: 0;
        font-size: 1.25rem;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-group-actions {
        flex-direction: column;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .card-header h4 {
        font-size: 1rem;
    }
}

/* Delete Confirmation */
.delete-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Action Icons */
.action-icon {
    transition: transform 0.2s;
}

    .action-icon:hover {
        transform: scale(1.1);
    }

/* Sidebar Active Item */
.nav-link.active {
    background-color: rgba(13,110,253,0.1);
    color: #0d6efd;
    font-weight: 600;
}
