body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f8;
    color: #2e3a59;
    margin: 0;
    padding: 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

a {
    color: #2e86de;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 500px;
}

label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    background-color: #2e86de;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

button:hover {
    background-color: #1b66c9;
}


/* Style Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.nav-btn {
    display: inline-block;
    padding: 8px 14px;
    margin-left: 10px;
    border: none;
    border-radius: 6px;
    background-color: #2c3e50;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #34495e;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
}


/* Style Tableau */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    table-layout: fixed;
}

thead {
    background-color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

tbody tr:hover {
    background-color: #f0f0f0;
}

.status-ok {
    color: green;
    font-weight: bold;
}

.status-ko {
    color: red;
    font-weight: bold;
}

.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    margin-right: 5px;
}

.edit-btn {
    background-color: #3498db;
    color: #fff;
}

.delete-btn {
    background-color: #e74c3c;
    color: #fff;
}


/* Style Formulaire */
.status-btn {
    width: 40px;
    height: 20px;
    border-radius: 15px;
    background-color: #e74c3c;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transform: translateY(-5px); /* ou -1px selon le rendu */
}

.status-btn.active {
    background-color: #2ecc71;
}

.status-btn span {
    content: '';
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}

.status-btn.active span {
    left: 22px;
}

.status-toggle {
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}
.status-toggle.active {
    background-color: #28a745; /* vert */
}
.status-toggle span {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}
.status-toggle.active span {
    left: 22px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Ciblage spécifique à la page de login */
.login-page {
    display: flex;
    justify-content: center; /* Centre le formulaire horizontalement */
    align-items: center;     /* Centre le formulaire verticalement */
    flex-direction: column;  /* Aligne les éléments en colonne, h1 au-dessus du formulaire */
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
    background-color: #f4f6f8; /* Couleur de fond */
    text-align: center; /* Centrer le texte du h1 */
}

.login-page h1 {
    font-size: 28px;
    margin-bottom: 20px; /* Espace entre le titre et le formulaire */
    color: #2e86de; /* Couleur du titre */
}

.login-page form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;  /* Largeur maximale du formulaire */
}

.login-page label {
    display: block;
    margin-bottom: 15px;
    font-weight: 400;
}

.login-page input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.login-page button {
    background-color: #2e86de;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
}

.login-page button:hover {
    background-color: #1b66c9;
}

.login-page p {
    color: red;
    text-align: center;
    font-size: 14px;
}


/* Class spécifique pour le bouton Ajouter un site */
.add-site-btn {
    background-color: #2e86de;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.add-site-btn:hover {
    background-color: #1b66c9;
}


/* Class pour la pastille status dans le dashboard */
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e74c3c; /* Rouge par défaut */
}

.status-dot.active {
    background-color: #2ecc71; /* Vert si actif */
}


/* ----------- PROFIL ----------- */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.profile-card {
    width: 100%;
    max-width: 500px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.profile-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.profile-form input[type="email"],
.profile-form input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.success-message {
    color: green;
    margin-bottom: 10px;
}

.error-message {
    color: red;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #2e86de;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #1b66c9;
}

/* Page Users  */
.container {
    max-width: 1400px;
    margin: auto;
    padding: 30px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th,
.user-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.green {
    background-color: #28a745;
}

.status-dot.red {
    background-color: #dc3545;
}

.btn-add-user {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: #2e86de;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.btn-add-user:hover {
    background-color: #1b66c9;
}

/* Flash delete users */
.flash-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin-bottom: 15px;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Modification Users */
.input-readonly {
    background-color: #f1f1f1;
    color: #777;
    cursor: not-allowed;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    /* cursor: pointer; */
    transform: translateY(1px);
}

/* Tableau */
th {
  vertical-align: top;
  padding: 10px;
}

.th-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.th-label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 8px;
}

.th-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.column-search {
  display: none;
  margin-top: 5px;
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-icon, .sort-icon {
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}

/* Icons state */
.sort-icon[data-sort="none"]::before {
  content: "\f0dc"; /* fa-sort */
}

.sort-icon[data-sort="asc"]::before {
  content: "\f062"; /* fa-arrow-up */
}

.sort-icon[data-sort="desc"]::before {
  content: "\f063"; /* fa-arrow-down */
}

