body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styles de base pour le nav */
nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

nav.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 70px;
}

/* Cible les liens */
nav.navbar ul li a {
  display: block;
  padding: 0 25px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

nav.navbar ul li a:hover {
  color: #3498db;
}

/* Burger toggle (caché checkbox) */
nav.navbar .nav-toggle {
  display: none;
}

/* Icone burger */
nav.navbar .burger {
  display: none;
  cursor: pointer;
  padding: 0 25px;
}

nav.navbar .burger div {
  width: 22px;
  height: 2px;
  background: #2c3e50;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Responsive : écrans <= 768px */
@media (max-width: 768px) {
  nav.navbar ul {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 220px;
    flex-direction: column;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 10px 10px;
  }

  nav.navbar ul li {
    width: 100%;
  }

  nav.navbar ul li a {
    padding: 15px 25px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #f1f1f1;
  }

  /* Affiche burger */
  nav.navbar .burger {
    display: block;
  }

  /* checkbox cochée = ouvre le menu */
  nav.navbar .nav-toggle:checked ~ ul {
    right: 0;
  }

  /* Animation */
  nav.navbar .nav-toggle:checked + .burger .line1 {
    transform: rotate(45deg) translate(5px, 5px);
    background: #3498db;
  }
  nav.navbar .nav-toggle:checked + .burger .line2 {
    opacity: 0;
  }
  nav.navbar .nav-toggle:checked + .burger .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    background: #3498db;
  }
}



.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  width: 90%;
}

.buttons {
  margin-bottom: 20px;
}

button {
  background-color: #3498db;
  border: none;
  color: white;
  padding: 12px 24px;
  margin: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.status {
  margin-top: 20px;
}

.status-indicator {
  font-weight: bold;
}

.status-indicator.on {
  color: #27ae60;
}

.status-indicator.off {
  color: #e74c3c;
}

#tpsChart {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  width: 90%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
  border: 1px solid #f1f1f1;
}

.login-container {
  max-width: 350px;
  margin: 100px auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.login-container input {
  width: 100%;
  padding: 12px 15px;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.login-container input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.login-container button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 1rem;
}

.login-container .error {
  color: #e74c3c;
  margin-top: 15px;
  font-size: 0.9rem;
}

.login-container .info {
  color: #27ae60;
  margin-top: 15px;
  font-size: 0.9rem;
}

/* Styles pour les liens dans la page de login */
.login-container .links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.login-container .link {
  color: #3498db;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.login-container .link:hover {
  color: #2980b9;
  text-decoration: underline;
}
