/* Force le body à prendre toute la hauteur pour éviter le vide en bas */
/* Suppression du display flex sur le body pour laisser le tableau s'étendre */
body {
    display: block; /* Modifié pour permettre la pleine largeur */
    padding: 20px;
}

/* Conteneur d'entête */
.header-container {
    text-align: center;
    margin-bottom: 30px;
}

.nav-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Style des liens transformés en "boutons" pour plus de clarté */
.button-link {
    background-color: #ffffff;
    border: 2px solid #FF0000;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.button-link:hover {
    background-color: #FF0000;
    color: #ffffff !important;
    text-decoration: none;
}

.button-link.logout {
    border-color: #333;
    color: #333;
}

.button-link.logout:hover {
    background-color: #333;
    color: #fff !important;
}

html {
    background-color: #f4f4f9; /* La même couleur que le body */
    height: 100%;
    margin: 0;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden; /* Empêche les marges des titres de dépasser */
}
  
  h1, h2, h3 {
    text-align: center;
    color: #444;
  }

  
  /* Liens */
  a {
    color: #FF0000;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Formulaire */
  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  form label {
    font-weight: bold;
  }
  
  form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  form button {
    padding: 10px 15px;
    background-color: #FF0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  form button:hover {
    background-color: #cc0000;
  }
  
  /* Tableaux */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }
  
  /* Ajustement du tableau pour qu'il soit plus grand */
table.full-width-table {
    width: 100%;
    max-width: 1200px; /* Largeur augmentée pour le confort visuel */
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
  
  table thead {
    background-color: #FF0000;
    color: #fff;
  }
  
  table th, table td {
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
  }
  
  table tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  

  
  table .expired {
    color: red;
    font-weight: bold;
  }
  
  .actions {
    text-align: center;
  }
  
  .actions i {
    cursor: pointer;
    margin: 0 5px;
    color: #FF0000;
  }
  
  .actions i:hover {
    color: #cc0000;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      width: 95%;
      padding: 10px;
    }
  
    table, thead, tbody, th, td, tr {
      display: block;
    }
  
    table thead tr {
      display: none;
    }
  
    table td {
      text-align: right;
      padding-left: 50%;
      position: relative;
    }
  
    table td::before {
      content: attr(data-label);
      position: absolute;
      left: 10px;
      text-align: left;
      font-weight: bold;
    }
  }
  
    /* Couleurs de fond selon le statut */

/* Publi programmée (Futur) : Fond Bleu, texte noir */
table tr.status-future {
    background-color: #d1ecf1 !important; /* Bleu clair */
    color: #000000 !important;
}

/* Publi en cours : Fond Vert, texte noir */
table tr.status-active {
    background-color: #d4edda !important; /* Vert clair */
    color: #000000 !important;
}

/* Publi passée : Fond Rouge, texte noir */
table tr.status-expired {
    background-color: #f8d7da !important; /* Rouge clair */
    color: #000000 !important;
}

/* On s'assure que le survol reste lisible */
table tr.status-future:hover, 
table tr.status-active:hover, 
table tr.status-expired:hover {
    filter: brightness(95%);
}

/* Optionnel : style pour l'heure sous la date */
table td small {
    display: block;
    color: #555;
    font-weight: normal;
}

.badge-copy {
    background-color: #6c757d;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-right: 5px;
    font-weight: bold;
}

/* Style spécifique pour le bouton Utilisateurs */
.button-link.users {
    border-color: #607d8b; /* Gris-bleu ardoise */
    color: #607d8b;
}

.button-link.users:hover {
    background-color: #607d8b;
    color: #ffffff !important;
}

.remember-me-container {
    display: flex;
    align-items: center; /* Aligne verticalement la case et le texte */
    gap: 10px;           /* Espace entre la case et le texte */
    margin-top: 15px;    /* Espace avec le champ Mot de passe */
    margin-bottom: 15px; /* Espace avec le bouton Se connecter */
    width: 100%;         /* S'assure que le bloc prend toute la largeur */
    justify-content: flex-start; /* Calage forcé à gauche */
}

.remember-me-container input[type="checkbox"] {
    width: auto;         /* Empêche la checkbox de prendre 100% de largeur */
    margin: 0;           /* Supprime les marges par défaut du navigateur */
    cursor: pointer;
}

.remember-me-container label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;   /* Empêche la sélection du texte au clic */
}