body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color:#ddfffb;
}

.title {
  background-color:#ffad00;
  padding: 30px;
}

.no_roles {
  display: flex;
  justify-content: center;
  align-items: center;
}

.no_roles h1 {
  color: rgb(0, 0, 0);
  font-size: 2em;
  text-align: center;
}
.vera {
  color: rgb(255, 255, 255);
}

.vera a {
  cursor: pointer;
}

.login{
    display: flex;
    justify-content: center;
    padding: 20px;

}

.button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
}

.button:hover {
    background-color: #555;
}

.button i {
    margin-left: 5px;
}

.roles {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    align-items: center;
    gap: 100px;
}
 
.roles.button {
    margin-top: 10px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    gap: 20px;
}

#task_execution_finish {
    margin-top: 5px;
    margin-bottom: 20px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    padding: 30px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.form-container label {
    width: 200px;
    text-align: left;
    margin-right: 10px;
    font-weight: bold;
    display: inline-block;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 250px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-left: 10px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-container button {
    margin-top: 15px;
}

.task-list {
  max-width: 1700px;
  margin: 20px auto;
}

.task-box {
  min-width: 1300px; 
  max-width: 1600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 24px 32px;
  margin-bottom: 28px;
  min-height: 56px;
  font-size: 1.3em;
}
.task-name {
  font-weight: bold;
  letter-spacing: 1px;
}
.start-task-btn {
  padding: 12px 28px;
  font-size: 1em;
  border-radius: 8px;
  background: #007bff;
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

a.start-task-btn, 
a.start-task-btn:visited, 
a.start-task-btn:active, 
a.start-task-btn:focus, 
a.start-task-btn:hover {
  text-decoration: none !important;
  color: #fff !important;
}

.start-task-btn:hover {
  background: #0056b3;
  text-decoration: none;     
  color: #fff !important;
}

.start-task-btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.finish-btn {
  justify-content: center;
  text-decoration: none !important;
}

.task-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#task_page {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.stop-task-btn {
  padding: 12px 28px;
  font-size: 1em;
  border-radius: 8px;
  background: #dc3545;
  margin-left: 8px;
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.stop-task-btn:hover {
  background: #a71d2a;
}

.task-check {
  color: #28a745;
  font-size: 1.7em;
  margin-left: 12px;
  display: inline-block;
  vertical-align: middle;
}
.task-content {
  max-width: 800px;
  margin: 40px auto;
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 32px;
  font-size: 1.08em;
}

.task-id {
  margin-bottom: 10px;
  color: #888;
  font-size: 1em;
}

.task-title {
  margin-top: 0;
  font-size: 1.5em;
}

.task-description {
  font-style: italic;
  color: #555;
  margin-bottom: 18px;
  font-size: 1em;
}

.task-guide {
  background: #e6f7e6;
  border-left: 5px solid #28a745;
  padding: 16px;
  margin-bottom: 22px;
  font-size: 1.05em;
}

.task-sensors {
  margin-bottom: 18px;
  font-size: 1em;
}

.task-sensors ul {
  margin-top: 8px;
  padding-left: 20px;
}

.sensor-icon {
  color: #007bff;
  margin-right: 6px;
  font-size: 1.1em; 
}
.recording-text {
  color: #28a745;
  font-weight: bold;
  font-size: 1em;
  margin-left: 12px;
  display: flex;
  align-items: center;
}
.dot-anim {
  display: inline-block;
  width: 24px;
}
.dot-anim::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.2s steps(3, end) infinite;
}
@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px #0003;
  text-align: center;
  min-width: 320px;
}
.modal-warning {
  font-size: 1.2em;
  color: #c0392b;
  margin-bottom: 20px;
}

.modal-buttons {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.skip-task-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

#skip-task-form {
  display: flex;
  gap: 16px;
}

.skip-btn, .go-back-btn {
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.skip-btn {
  background: #e74c3c;
  color: #fff;
}

.skip-btn:hover {
  background: #c0392b;
}

.go-back-btn {
  background: #111;
  color: #fff;
}

.go-back-btn:hover {
  background: #333;
}

.skipped-label {
  color: #e74c3c;
  font-weight: bold;
  margin-right: 16px;
}

.finished-label {
  color: #28a745;
  font-weight: bold;
  margin-right: 16px;
}

.pending-label {
  color: #000000;
  font-weight: bold;
  margin-right: 16px;
}

/* Sensor status: small round icon with colored border and colored background */
.sensor-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 1.2em;
  height: 1.2em;
  color: #c0392b;
  font-size: 1em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.sensor-status .fa-times {
  color: #c0392b;
  font-size: 0.9em;
}
.sensor-status .fa-check {
  color: #218838;
  font-size: 0.9em;
}

.sensor-status.ok {
  color: #218838;
}

.consent-checkbox {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1px;
}

.consent-checkbox input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
}

#consent {
    max-width: 20px;
}

.consent-checkbox label {
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    white-space: nowrap;
}

.finish-redo-form {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
