/* ===== Connexion (index.html) ===== */
body.login-page {
  background: url('images/hospital.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

.login-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.login-box h2 {
  margin-bottom: 20px;
  color: #003366;
}

.login-box input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

.login-box button {
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}

.login-box button:hover {
  background-color: #0056b3;
}


/* ===== Sélection (select.html) ===== */
body.select-page {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #e6f0fa;
  color: #003366;
}

.container {
  text-align: center;
  padding: 40px;
}

h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.datetime {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #444;
}

.room-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.room-card {
  background-color: #ffffff;
  border: 2px solid #007BFF;
  border-radius: 15px;
  text-decoration: none;
  color: #003366;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.room-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.room-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.room-card span {
  display: block;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  background-color: #f8f9fa;
}
/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #1e4a78;
  color: white;
  padding: 15px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2.5em;
}

p#date {
  font-size: 1.2em;
  margin-top: 10px;
}

section {
  margin-top: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Style de base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f8ff;
  margin: 0;
  padding: 20px;
  color: #333333d7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.132);
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

header h1 {
  color: #cff4f7f7;
}

#datetime {
  font-size: 1.1em;
  color: #d4d0d0;
}

.dashboard {
  display: flex;
  gap: 20px;
}

.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-panel {
  flex: 1;
}

.access-card, .data-window, .history-window {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.access-card {
  background-color: #e3f2fd;
}

h2 {
  color: #2a5885;
  margin-top: 0;
}

.sensor-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.sensor-box {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.sensor-box h3 {
  margin: 0 0 10px 0;
  font-size: 1em;
}

.sensor-box p {
  font-size: 1.5em;
  margin: 0;
  font-weight: bold;
}

.history-window ul {
  list-style-type: none;
  padding: 0;
}

.history-window li {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.chart-container {
  margin-top: 20px;
}

.chart-container canvas {
  margin-bottom: 20px;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.082);
}
/* style.css */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

.role-selection-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.role-selection-container h1 {
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 24px;
}

.role-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.role-buttons button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.role-buttons button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.role-buttons button:active {
  transform: translateY(0);
}

/* Styles pour le modal */
.password-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 20px;
}

#password-input {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin: 5px 0 15px;
  display: none;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#confirm-password {
  background-color: #2ecc71;
  color: white;
}

#confirm-password:hover {
  background-color: #27ae60;
}

#cancel-password {
  background-color: #e74c3c;
  color: white;
}

#cancel-password:hover {
  background-color: #c0392b;
}