body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    background-color: #f7fcfa;
    color: #222037;
}

.container {
    margin: 0 25px;
}

h2 {
    text-align: center;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-scroll {
    flex: 1;
    overflow-y: auto;
}

/* Assure-toi que la table prend bien toute la largeur */
.table-scroll table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

th,
td {
    padding: 10px;
    text-align: left;
}

tr td:first-child {
    padding-left: 20px;
}

tr {
    background-color: #fff;
    overflow: hidden;
}

table td {
    border-bottom: 1px solid #eeeff1;
    font-size: 14px
}

.td-name {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.td-btn {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    padding-right: 20px;
}



#searchInput {
    border-radius: 12px;
    background-color: #f5f7fb;
    border: none;
    padding: 16px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    margin: 10px 10px 20px 10px;
    color: #7c818f;
}

.status {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    color: white;
    font-size: 12px;
}

.date {
    font-size: 12px;
    font-weight: 600;
    padding: 4px;
    background-color: #f5f6fd;
    border-radius: 4px;
    color: #7f8087;
}

.light-orange {
    background-color: #ffc107;
}

.orange {
    background-color: #fea00e;
}

.cyan {
    background-color: #17A2B8 !important;
    color: #fff !important;
}

.green {
    background-color: #25BCA1;
}

.red {
    background-color: #DC3545;
}

.dark-orange {
    background-color: #fd7e14;
}

/* Bouton Voir */
.view-btn {
    padding: 5px 10px;
    background-color: #17A2B8;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.view-btn:hover {
    background-color: #0056b3;
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal td:first-child {
    max-width: 400px;
    /* ou ajuste la largeur selon ton design */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.modal table {
    width: 100%;
    border-collapse: collapse;
}

.modal th,
.modal td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.modal th {
    background-color: #f4f4f4;
}

.modale-btn {
    border-radius: 8px;
    padding: 8px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.modale-btn:hover {
    opacity: 80%;
}

.flatchr-field {
    margin-bottom: 15px;
}

.flatchr-field label {
    display: block;
    margin-bottom: 5px;
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.option-wrapper input {
    margin: 0;
    cursor: pointer;
}

.option-wrapper label {
    cursor: pointer;
    font-size: 14px;
}

#statusButtons {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eeeff1;
}

.status-btn {
    padding: 8px 0px;
    margin: 0px 12px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #7f8087;
    transition: background 0.3s;
    background-color: #fff;
    border-bottom: 2px solid transparent;
}

.status-btn.active {
    border-bottom: 2px solid #50DDC4;
    color: #222037;
    font-weight: bold;
}

.status-btn span {
    font-size: 12px;
    font-weight: 600;
    padding: 4px;
    background-color: #f5f6fd;
    border-radius: 4px;
}

.status-btn.active span {
    color: #50DDC4;
    background-color: rgba(80, 221, 195, 0.2);
}


.status-btn:hover {
    opacity: 0.8;
}

.status-btn.light-orange {
    background-color: #ffc107;
    color: white;
}

.status-btn.orange {
    background-color: #fea00e;
    color: white;
}

.status-btn.dark-orange {
    background-color: #fd7e14;
    color: white;
}

.status-btn.green {
    background-color: #25BCA1;
    color: white;
}

.status-btn.red {
    background-color: #DC3545;
    color: white;
}

.status-btn.purple {
    background-color: #6F42C1;
    color: white;
}

/* Boutons de pagination */
.pagination {
    margin: 0px;
    margin-bottom: 8px;
    text-align: center;
}

.pagination a {
    font-size: 12px;
    padding: 8px 12px;
    margin: 5px;
    background-color: #f5f6fd;
    color: #7c818f;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #233048;
    color: white;
    border: none;
}

.pagination a:hover {
    background-color: #50DDC4;
    color: white;
}

#statusPaginationContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0px;
    border-bottom: 1px solid #eeeff1;
}

#statusButtons {
    margin: 0;
    border: none;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #f7fcfa;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: loginFadeIn 0.5s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    width: 120px;
    margin-bottom: 24px;
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #222037;
}

.login-subtitle {
    color: #7c818f;
    font-size: 14px;
    margin: 0 0 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    text-align: left;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222037;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e2e9;
    border-radius: 10px;
    font-size: 14px;
    color: #222037;
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-field input:focus {
    border-color: #50DDC4;
    box-shadow: 0 0 0 3px rgba(80, 221, 196, 0.15);
    background-color: #fff;
}

.login-field input::placeholder {
    color: #b0b5c0;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #50DDC4, #3cc4ac);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.3px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 221, 196, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.login-error {
    background-color: #fef2f2;
    color: #DC3545;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* Side Drawer */
.side-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.side-drawer {
    position: fixed;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: 1200px;
    max-width: calc(100% - 100px);
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding: 30px;
}

.side-drawer.open {
    transform: translateX(0);
}

.side-drawer-columns {
    display: flex;
    gap: 25px;
    height: 100%;
}

.side-drawer-column {
    flex: 1;
    min-width: 0;
}

.side-drawer-column:first-child {
    flex: 0 0 280px;
    border-right: 1px solid #eeeff1;
    padding-right: 20px;
}

.side-drawer-column:nth-child(2) {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.side-drawer-column:nth-child(3) {
    flex: 0 0 200px;
    border-left: 1px solid #eeeff1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.side-drawer-overlay.active {
    display: block;
}

.side-drawer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8087;
}

.side-drawer-close:hover {
    color: #222037;
}

.side-drawer-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeff1;
}

.side-drawer h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #222037;
    text-align: left;
}

.side-drawer-info {
    margin-bottom: 20px;
}

.side-drawer-field {
    margin-bottom: 15px;
}

.side-drawer-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #7f8087;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.side-drawer-field .value {
    font-size: 15px;
    color: #222037;
    font-weight: 500;
}

.side-drawer-field .status {
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    display: inline-block;
}

.side-drawer-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eeeff1;
}

.side-drawer-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.side-drawer-btn:hover {
    opacity: 0.85;
}

.side-drawer-btn.cv {
    background-color: #198754;
    color: #fff;
}

.side-drawer-btn.entretien {
    background-color: #17A2B8;
    color: #fff;
}

.side-drawer-btn.archive {
    background-color: #6c757d;
    color: #fff;
}

.side-drawer-btn.delete-cv {
    background-color: #fd7e14;
    color: #fff;
}

.side-drawer-btn.upload-cv {
    background-color: #17A2B8;
    color: #fff;
}

.side-drawer-btn.delete {
    background-color: #DC3545;
    color: #fff;
}

.campagne-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #50DDC4;
}

#drawerEntretienDetails {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#drawerEntretienDetails th,
#drawerEntretienDetails td {
    border: 1px solid #eeeff1;
    padding: 8px;
    text-align: left;
}

#drawerEntretienDetails th {
    background-color: #f5f6fd;
    font-weight: 600;
    color: #222037;
}

#drawerEntretienDetails td:first-child {
    font-weight: 500;
    color: #7f8087;
    width: 40%;
}

#drawerEntretienDetails td:last-child {
    color: #222037;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #25BCA1;
}

.notification.error {
    background-color: #DC3545;
}