/* Styles pour Meeting Rooms Manager - Interface inspirée de Gmail */

/* Styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f7f7f7;
  color: var(--text-color, #202124);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body a {
  text-decoration: none;
}

/* Styles spécifiques au thème clair */
body.light-theme {
  background-color: #f7f7f7;
  color: #202124;
}

body.light-theme .page-header {
  background-color: white;
}

body.light-theme .form-group label {
  color: #333;
}

body.light-theme .fas,
body.light-theme .far,
body.light-theme .fab {
  color: #fff;
}

body.light-theme .sidebar {
  background-color: #111;
  color: white;
}

body.light-theme .sidebar-header {
  background-color: var(--primary-dark);
}

body.light-theme .sidebar a {
  color: white;
}

body.light-theme table th {
  background-color: #f5f5f5;
  color: #111111;
}

body.light-theme table td {
  border-bottom: 1px solid #eee;
}

body.light-theme .card,
body.light-theme .dashboard-card {
  background-color: white;
}

/* Styles spécifiques pour les pages admin en mode clair */
body.light-theme .admin-section {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-theme .admin-section h1,
body.light-theme .admin-section h2 {
  color: #111;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color, #4285f4);
}

body.light-theme .admin-section form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

body.light-theme .admin-section .form-group {
  margin-bottom: 1.2rem;
}

body.light-theme .admin-section label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

body.light-theme .admin-section input,
body.light-theme .admin-section select,
body.light-theme .admin-section textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

body.light-theme .admin-section input:focus,
body.light-theme .admin-section select:focus,
body.light-theme .admin-section textarea:focus {
  border-color: var(--primary-color, #4285f4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

body.light-theme .alert-success {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

body.light-theme .alert-danger {
  background-color: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

body.logged-out {
  background-color: #b30000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Styles pour la barre latérale */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background-color: #111 !important;
  color: var(--sidebar-text, white);
  transition: width 0.3s ease, left 0.3s ease;
  overflow-x: hidden;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px !important;
  background-color: #00695c; /* Teal plus clair */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  display: inline-block;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-brand img {
  margin-bottom: 0;
  max-width: 100%;
  margin-top: 15px;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.sidebar-nav li {
  margin: 0;
  padding: 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: white;
  transition: background-color 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav li a i {
  margin-right: 15px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: margin-right 0.3s ease;
  color: #fff;
}

.sidebar-nav li a .nav-text {
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--secondary-color);
}

/* Barre latérale réduite */
.sidebar.collapsed {
  width: 70px;
}

.sidebar.collapsed .sidebar-brand {
  display: none;
}

.sidebar.collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-nav li a .nav-text {
  opacity: 0;
  width: 0;
  visibility: hidden;
}

.sidebar.collapsed .sidebar-nav li a i {
  margin-right: 0;
}

/* Contenu principal */
.main-content {
  margin-left: 260px;
  flex: 1;
  width: calc(100% - 260px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.main-content.expanded {
  margin-left: 70px;
  width: calc(100% - 70px);
}

/* Bouton de menu mobile */
.mobile-menu-button {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* En-tête de page */
.page-header {
  background-color: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
}

.current-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-user span {
  font-size: 0.9rem;
  color: #555;
}

.current-user i {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

/* Contenu principal */
main {
  padding: 25px;
  min-height: calc(
    100vh - 120px
  ); /* Pour que le contenu prenne tout l'espace disponible */
}

/* Contenu pour les utilisateurs déconnectés */
.logged-out-content {
  margin: 0 auto;
  max-width: 450px;
  width: 100%;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pied de page */
footer {
  background-color: transparent;
  color: var(--text-color);
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

/* Formulaires */
form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--label-color, #333); /* Utilisation d'une variable CSS */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00796b;
  box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.2);
}

/* General Button Styles (Consolidated) */
.btn {
  display: inline-block;
  padding: 8px 16px; /* From later definition */
  font-size: 0.95rem; /* From earlier definition */
  font-weight: 500;
  text-align: center; /* From earlier definition */
  border: none; /* From earlier definition. Note: this makes border-color on btn-primary/danger ineffective */
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease; /* From later definition */
}

.btn-primary {
  background-color: #b30000 !important; /* Added fallback from original */
  color: white;
  /* border-color: var(--primary-color); /* Was in later def, but ineffective with border:none */
}

.btn-primary:hover {
  background-color: var(
    --primary-dark,
    #00695c
  ); /* Added fallback from original */
  /* border-color: var(--primary-dark); /* Was in later def, but ineffective with border:none */
}

.btn-secondary {
  /* Style from later definition, made effective */
  background-color: var(--secondary-color); /* This was the overriding style */
  border: 1px solid var(--secondary-color); /* Effective border after cascade */
  color: white; /* This was the overriding style */
}

.btn-secondary:hover {
  /* Style from later definition, with consistent border hover */
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-danger {
  background-color: var(--danger-color);
  /* border-color: var(--danger-color); /* Was in later def, but ineffective with border:none */
  color: white;
}

.btn-danger:hover {
  background-color: var(--danger-dark);
  /* border-color: var(--danger-dark); /* Was in later def, but ineffective with border:none */
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Tableaux */
.table-container {
  overflow-x: auto;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

table th,
table td {
  padding: 10px 15px;
  text-align: left;
}

/* Cartes */
.card {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eeeeee;
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #111111;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #eeeeee;
}

/* Cartes du tableau de bord */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 77, 64, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 77, 64, 0.15);
}

.dashboard-card .card-icon {
  font-size: 2.5em;
  color: #00796b;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #fbe8e8;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #000000;
}

.dashboard-card p {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--text-color, #00796b);
  margin: 0 0 15px 0;
}

.dashboard-card .btn {
  margin-top: auto;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
}

.dashboard-card .btn-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Alertes / Messages */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-success {
  background-color: #e0f2f1;
  color: #111111;
  border-color: #b2dfdb;
}

.alert-danger {
  background-color: #ffebee;
  color: #b71c1c;
  border-color: #ffcdd2;
}

.alert-info {
  background-color: #e1f5fe;
  color: #0277bd;
  border-color: #b3e5fc;
}

.alert-warning {
  background-color: #fff8e1;
  color: #ff8f00;
  border-color: #ffe082;
}

/* Nouveau style de tableau de bord - styles ajoutés */

/* Bannière de bienvenue */
.dashboard-welcome-banner {
  background-color: var(--dark-secondary-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.welcome-content h2 {
  color: #111111;
  margin: 0 0 5px 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.date-today {
  color: #111111;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.time-today {
  background-color: #111111;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-left: 5px;
}

.notifications {
  flex: 0 0 auto;
  max-width: 350px;
}

/* Structure du tableau de bord */
.dashboard-main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

@media (min-width: 992px) {
  .dashboard-main-content {
    grid-template-columns: 3fr 2fr;
  }
}

.dashboard-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.section-header {
  background-color: #f9f9f9;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #111;
  display: flex;
  align-items: center;
}

.section-header h2 i {
  margin-right: 8px;
  color: var(--text-color);
}

.section-header .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Planification des salles */
.room-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  padding: 20px;
}

.room-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 77, 64, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--primary-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 77, 64, 0.15);
}

.room-card-header {
  padding: 15px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.room-capacity {
  background-color: var(--secondary-color);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
}

.room-capacity i {
  margin-right: 4px;
  font-size: 0.8rem;
  color: var(--primary-dark);
}

.room-card-body {
  padding: 15px;
  flex-grow: 1;
}

.room-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.room-card-footer {
  padding: 10px 15px;
  background-color: #fafafa;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

/* Couleurs des salles */
/* .room-color-1 { border-top-color: #00796b; } /* Teal */
/* .room-color-2 { border-top-color: #0097a7; } Cyan */
/* .room-color-3 { border-top-color: #009688; } Teal plus clair */

/* Liste des réservations dans les salles */
.booking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-item {
  background-color: #f9f9f9;
  border-left: 4px solid #4db6ac;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}

.booking-item.booking-now {
  background-color: #e0f2f1;
  border-left-color: #00796b;
  box-shadow: 0 0 0 1px #4db6ac;
}

.booking-time {
  font-size: 0.9rem;
  color: #00796b;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.status-badge {
  background-color: #00796b;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.booking-details h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: 500;
}

.booked-by {
  font-size: 0.8rem;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

.booking-desc {
  font-size: 0.85rem;
  color: #444;
  margin-top: 5px;
  font-style: italic;
}

/* État vide pour les réservations */
.empty-booking,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  color: #757575;
}

.empty-booking i,
.empty-state i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* Tableau des réservations à venir */
.user-bookings-table {
}

.today-booking {
  background-color: #f9fffe;
}

.booking-title {
  font-weight: 500;
  color: #00695c;
}

.today-badge {
  background-color: #00796b;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
}

.booking-datetime {
  display: flex;
  flex-direction: column;
}

.booking-date {
  font-weight: 500;
  color: #333;
}

.booking-time {
  font-size: 0.85rem;
  color: #00796b;
}

.booking-actions {
  white-space: nowrap;
}

.booking-actions .btn {
  padding: 4px 8px;
  margin-right: 5px;
}

.booking-actions .btn i {
  font-size: 0.85rem;
}

/* Actions du tableau de bord */
.dashboard-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.dashboard-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Styles pour la page Mes Réservations (my-bookings.php) */
.my-bookings-header {
  margin-bottom: 25px;
}

.my-bookings-header h2 {
  color: #111111;
  margin-bottom: 15px;
  font-size: 1.6rem;
  font-weight: 600;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-tab {
  padding: 10px 15px;
  background-color: white;
  border-radius: 6px;
  color: var(--text-color, #333);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-tab:hover {
  background-color: #ffe5e5;
  transform: translateY(-2px);
}

.filter-tab.active {
  background-color: var(--primary-dark);
  color: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.filter-tab.active i {
  color: #fff;
}

.booking-list-container {
  margin-bottom: 30px;
}

.booking-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.booking-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #00796b;
}

.booking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.booking-past {
  border-top-color: #9e9e9e;
}

.booking-current {
  border-top-color: #00796b;
}

.booking-upcoming {
  border-top-color: #00bfa5;
}

.booking-card-header {
  padding: 15px;
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.booking-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #111111;
}

.booking-status {
  display: flex;
}

.status-badge {
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
}

.status-current {
  background-color: #00796b;
  color: white;
}

.status-past {
  background-color: #9e9e9e;
  color: white;
}

.status-today {
  background-color: #ff9800;
  color: white;
}

.status-upcoming {
  background-color: #4db6ac;
  color: white;
}

.booking-card-body {
  padding: 15px;
  flex-grow: 1;
}

.booking-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #333;
}

.booking-detail-item i {
  color: var(--text-color, #00796b);
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.booking-detail-item small {
  color: #666;
  font-size: 0.85rem;
  margin-left: 5px;
}

.booking-time-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.booking-description {
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

.booking-description span {
  font-style: italic;
  color: #555;
}

.booking-created {
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
}

.booking-card-footer {
  padding: 15px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-card-footer .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
}

@media (max-width: 768px) {
  .booking-cards {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .filter-tab {
    white-space: nowrap;
  }

  .booking-card-footer {
    flex-direction: column;
  }

  .booking-card-footer .btn {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Sidebar devient off-canvas sur mobile */
  .sidebar {
    left: -260px;
    box-shadow: none;
  }

  .sidebar.open {
    left: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .main-content.expanded {
    margin-left: 0;
    width: 100%;
  }

  .mobile-menu-button {
    display: block;
  }

  .sidebar-toggle-btn {
    display: none; /* Masquer le bouton de basculement sur mobile */
  }

  /* Ajustement de l'en-tête mobile */
  .page-header {
    padding: 15px;
  }

  .page-header h1 {
    font-size: 1.3rem;
  }

  /* Ajustement des cartes du tableau de bord */
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  /* Ajustement de la marge du contenu principal */
  main {
    padding: 15px;
  }

  .dashboard-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .notifications {
    max-width: 100%;
    margin-top: 15px;
  }

  .room-schedule-grid {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
}

/* Pour les tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .main-content {
    margin-left: 200px;
    width: calc(100% - 200px);
  }

  .main-content.expanded {
    margin-left: 70px;
    width: calc(100% - 70px);
  }

  .dashboard-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Styles pour la vue journalière (view=day) */
.day-view-header h2 {
  color: #111111;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.day-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.day-navigation .btn i {
  margin-right: 5px;
}

.day-navigation .btn i:last-child {
  margin-right: 0;
  margin-left: 5px;
}

.room-day-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.room-day-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #00796b;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.room-day-card.room-color-1 {
  border-top-color: #00796b;
}
.room-day-card.room-color-2 {
  border-top-color: #0097a7;
}
.room-day-card.room-color-3 {
  border-top-color: #009688;
}

.room-day-header {
  background-color: #f9f9f9;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.room-day-header h3 {
  margin: 0 0 5px 0;
  color: #111111;
  font-size: 1.2rem;
}

.room-details {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.room-location,
.room-capacity {
  display: flex;
  align-items: center;
  gap: 5px;
}

.room-day-body {
  padding: 15px;
  min-height: 600px;
  flex-grow: 1;
}

.room-description {
  margin-bottom: 20px;
  color: #555;
  font-size: 0.9rem;
}

.day-timeline {
  display: flex;
  position: relative;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  min-height: 500px;
}

.timeline-hours {
  width: 50px;
  min-width: 50px;
  background-color: #f9f9f9;
  border-right: 1px solid #eee;
  position: relative;
}

.timeline-hour {
  position: relative;
  border-bottom: 1px solid #eee;
}

.timeline-hour:last-child {
  border-bottom: none;
}

.hour-label {
  position: absolute;
  top: -10px;
  right: 5px;
  font-size: 0.8rem;
  color: #666;
}

.timeline-events {
  flex-grow: 1;
  position: relative;
  background: repeating-linear-gradient(
    to bottom,
    #ffffff,
    #ffffff 59px,
    #f5f5f5 59px,
    #f5f5f5 60px
  );
}

.current-time-indicator {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f44336;
  z-index: 5;
}

.time-now {
  position: absolute;
  top: -10px;
  right: 5px;
  background-color: #f44336;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.8rem;
}

.timeline-event {
  position: absolute;
  left: 1px;
  right: 1px;
  background-color: rgba(0, 121, 107, 0.1);
  border-left: 4px solid #00796b;
  border-radius: 4px;
  padding: 5px;
  overflow: hidden;
  transition: all 0.2s ease;
  z-index: 2;
}

.timeline-event:hover {
  background-color: rgba(0, 121, 107, 0.2);
  transform: translateX(1px);
  z-index: 3;
}

.event-current {
  background-color: rgba(0, 121, 107, 0.2);
  border-left-color: #111111;
  box-shadow: 0 0 0 1px #00796b;
  z-index: 3;
}

.event-content {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-title {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111111;
}

.event-time {
  font-size: 0.85rem;
  font-weight: 500;
  color: #00796b;
  margin-bottom: 3px;
}

.event-user {
  font-size: 0.8rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-description {
  font-size: 0.8rem;
  margin-top: 5px;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Styles pour les tooltips de la vue journalière */
.event-tooltip {
  font-size: 0.9rem;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #00796b;
  animation: fadeIn 0.2s ease;
}

.event-tooltip h4 {
  margin: 0 0 5px 0;
  color: #111111;
  font-size: 1rem;
}

.tooltip-time {
  color: #00796b;
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.tooltip-user {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.tooltip-desc {
  color: #666;
  font-size: 0.85rem;
  border-top: 1px solid #eee;
  padding-top: 5px;
  margin-top: 5px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive pour la vue journalière */
@media (max-width: 768px) {
  .room-day-schedule {
    grid-template-columns: 1fr;
  }

  .day-navigation {
    justify-content: center;
  }

  .day-view-header h2 {
    text-align: center;
    font-size: 1.4rem;
  }

  .timeline-event {
    padding: 3px;
  }

  .event-title {
    font-size: 0.9rem;
  }
}

/* Styles spécifiques pour la section admin */
.admin-section {
  padding: 25px;
  background-color: var(--bg-color, #f9f9f9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.admin-section h2 {
  color: #111111;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
}

.admin-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: var(--bg-color, white);
  color: var(--text-color, #333);
}

.admin-section th,
.admin-section td {
  border: 1px solid var(--table-border-color, #ddd);
  padding: 12px;
  text-align: left;
}

.admin-section th {
  background-color: var(--table-header-bg, #f2f2f2);
  color: var(--table-header-text, #333);
  font-weight: 600;
}

.admin-section tr:nth-child(even) {
  background-color: var(--table-row-even-bg, #f9f9f9);
}

.admin-section tr:hover {
  background-color: var(--table-row-hover-bg, #f1f1f1);
}

.admin-section .admin-actions a {
  margin-right: 8px;
  padding: 6px 10px;
  font-size: 0.9em;
}

.admin-section .form-group {
  margin-bottom: 20px;
}

.admin-section .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--label-color, #333);
}

.admin-section input[type="text"],
.admin-section input[type="number"],
.admin-section textarea,
.admin-section select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--input-border-color, #ccc);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--input-bg, white);
  color: var(--input-text-color, #333);
}

.admin-section textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-section .btn {
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 1em;
  margin-top: 10px;
}

.admin-section .btn-primary {
  background-color: var(--primary-color, #007bff);
  color: white;
  border: 1px solid var(--primary-color, #007bff);
}

.admin-section .btn-primary:hover {
  background-color: var(--primary-dark, #0056b3);
  border-color: var(--primary-dark, #0056b3);
}

.admin-section .btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.admin-section .btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.admin-section .btn-danger {
  background-color: var(--danger-color, #dc3545);
  color: white;
  border: 1px solid var(--danger-color, #dc3545);
}

.admin-section .btn-danger:hover {
  background-color: var(--danger-dark, #b02a37);
  border-color: var(--danger-dark, #b02a37);
}

.admin-section hr {
  border: 0;
  height: 1px;
  background-color: var(--table-border-color, #ddd);
  margin: 30px 0;
}

/* Styles de tableau améliorés pour tous les thèmes */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

table th,
table td {
  padding: 10px 15px;
  text-align: left;
}

/* Actions admin */
.actions {
  display: flex;
  gap: 10px;
}

.actions a,
.actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  text-decoration: none;
  font-size: 0.9em;
}

.actions a i,
.actions button i {
  margin-right: 5px;
}

/* Styles pour le bouton de basculement du thème */
.theme-toggle-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2em;
  cursor: pointer;
  padding: 5px;
  margin-right: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.theme-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Styles pour la barre d'en-tête et la zone utilisateur */
.current-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

#toggleFormBtn {
  padding: 6px 15px;
  line-height: 1.1;	
}

#toggleText {
  font-size: 0.6em;
}
