/* css/style.css */
body {
  background: #f7f7f7;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}


.login-container {
  background: white;
  padding: 40px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  text-align: center;
}

.login-container h1 {
  margin-bottom: 20px;
}

.login-container input {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background-color: #0052cc;
  color: white;
  border: none;
  cursor: pointer;
}

#loginMessage {
  margin-top: 10px;
}
.dashboard-container {
  max-width: 900px;
  width: 80%;
  margin: 80px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  text-align: center;
}

.dashboard-menu ul {
  list-style: none;
  padding: 0;
}

.dashboard-menu li {
  margin: 15px 0;
}

.dashboard-menu a {
  text-decoration: none;
  font-size: 18px;
  color: #0052cc;
}
/* Boutons stylés */
.button {
  display: inline-block;
  padding: 10px 16px;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #0052cc;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #003d99;
}

.button.delete {
  background-color: #cc0000;
}

.button.delete:hover {
  background-color: #990000;
}
.label-live {
  display: inline-block;
  padding: 5px 10px;
  background-color: #ffcc00;
  color: #333;
  font-weight: bold;
  border-radius: 4px;
  font-size: 14px;
}
.question-block {
  margin-bottom: 20px;
}
.question-block p {
  font-size: 18px;
}
.table-docs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table-docs th,
.table-docs td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.table-docs th {
  background-color: #f2f2f2;
}

.button.delete:hover {
  background-color: #990000;
}
input.quiz-toggle {
  transform: scale(1.2);
  cursor: pointer;
}
.button.delete {
  background-color: #cc0000;
  color: white;
  margin-top: 5px;
}
.button.delete:hover {
  background-color: #990000;
}
.button.pending {
  background-color: #007bff; /* bleu */
  color: white;
}
.button.pending:hover {
  background-color: #0069d9;
}

.button.active {
  background-color: #ffc107; /* jaune */
  color: black;
}
.button.active:hover {
  background-color: #e0a800;
}

.button.complete {
  background-color: #28a745; /* vert */
  color: white;
}
.button.complete:hover {
  background-color: #218838;
}

.button.sent {
  background-color: #fd7e14; /* orange */
  color: white;
}
.button.sent:hover {
  background-color: #e8590c;
}
label.good {
  background: #e0fce0;
  padding: 8px;
  border-radius: 5px;
}

label.bad {
  background: #ffe0e0;
  padding: 8px;
  border-radius: 5px;
}

label.missed {
  background: #fff9d6;
  padding: 8px;
  border-radius: 5px;
}

.good {
  color: green;
  font-weight: bold;
}
.bad {
  color: red;
  font-weight: bold;
}
.good {
  color: #0a0;
  font-weight: bold;
}
.bad {
  color: #d00;
  font-weight: bold;
}
.missed {
  color: #d68b00;
  font-weight: bold;
}
label.good, label.bad, label.missed {
  display: block;
  padding: 8px;
  margin: 4px 0;
  border-radius: 5px;
  background-color: #f5f5f5;
}
label.good {
  background-color: #e0ffe0;
}
label.bad {
  background-color: #ffe0e0;
}
label.missed {
  background-color: #fff5cc;
}
.question-block label {
  display: block;
  margin: 12px 0;
  line-height: 1.5;
}

/* ✅ Responsive Dashboard – Smartphones max 600px */
@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 0 10px;
  }

  .dashboard-container {
    width: 90% !important;
    padding: 20px;
    margin: 10px auto;
    box-shadow: none;
    border-radius: 0;
    text-align: left;
  }

  .dashboard-menu {
    padding-left: 0;
  }

  .dashboard-menu ul {
    padding-left: 0;
  }

  .dashboard-menu li {
    margin: 10px 0;
  }

  .dashboard-menu a {
    display: block;
    font-size: 16px;
    padding: 12px 16px;
    background: #eef3ff;
    border-radius: 6px;
    margin-bottom: 10px;
  }

  .button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin: 10px 0;
    box-sizing: border-box;
  }

  .question-block p,
  .question-block label {
    font-size: 16px;
    line-height: 1.4;
  }

  .table-docs {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table-docs th,
  .table-docs td {
    font-size: 14px;
    padding: 8px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  h1, h2, h3 {
    font-size: 22px;
  }

  /* ✅ Harmonisation des boutons spécifiques */
  .button.delete,
  .button.pending,
  .button.active,
  .button.complete,
  .button.sent {
    font-size: 15px;
    width: 100%;
    display: block;
    margin: 8px 0;
  }

  /* Formulaire mobile */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px;
    padding: 12px;
  }
}


