:root {
    --primary-color: #33cc66; /* Default, will be overridden by inline style if needed */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -1px;
    display: block;
}

.form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05); /* Will be refined in inline style */
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    z-index: 10;
}

.recovery-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

#error_message {
    margin-top: 20px;
    border-radius: 12px;
    display: none;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 8px;
}

/* --- Personnel List v2.0 Styles --- */

.personnel-container {
    background-color: #f8f9fa;
    min-height: 100%;
}

.search-wrapper .form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding-top: 10px;
    padding-bottom: 10px;
    background: white;
}

.btn-primary-modern {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-modern:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.rounded-4 {
    border-radius: 1rem !important;
}

.vignette-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border: 2px solid white;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.vignette-text {
    line-height: 1;
    display: inline-block;
}

.mac-button {
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mac-button:hover {
    transform: scale(1.1);
}

.mac-button.red {
    background-color: #ff5f57;
}

.mac-button i {
    font-size: 0.6rem;
}

.grey-header-modal {
    background-color: #D3D3D3 !important;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom: 1px solid #dee2e6;
}

.header-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
    text-transform: none; /* Inscription au UACC was not all caps */
}

.cursor-pointer {
    cursor: pointer;
}

/* Disable Fancybox drag-to-close cursor */
.fancybox__content, .fancybox__slide {
    cursor: default !important;
}

.extra-small {
    font-size: 0.7rem;
}

#table-personnel thead th {
    font-size: 13px;
    text-transform: none;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #eee;
    padding: 15px;
}

#table-personnel tbody td {
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
}

.btn-edit:hover {
    color: #0d6efd !important;
}

.btn-password:hover {
    color: #0a58ca !important;
}
