/* static/css/controls.css - Form and Day Controls Styles */

/* Trip Form Styles */
#trip-form {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  background-color: transparent;
  padding: 0;
  position: relative;
  z-index: 10020;
}

#trip-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

#trip-form input[type="text"],
#trip-form input[type="number"] {
  flex: 1 1 120px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
}

#trip-form button,
#trip-form input[type="submit"] {
  background-color: #87CEEB;
  color: #000;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10020;
  pointer-events: auto;
}

#trip-form button:hover,
#trip-form input[type="submit"]:hover {
  background-color: #6BB6CD;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

#trip-form button:active,
#trip-form input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background-color: #5AA5BC;
}

/* Day Controls with Checkboxes */
#day-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 10010;
}

#day-controls > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

#day-controls label {
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#day-controls label:hover {
  opacity: 0.8;
}

#day-controls input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4285f4;
}

#day-controls input[type="checkbox"]:hover {
  transform: scale(1.1);
}

/* Old day toggle button styles (for backward compatibility) */
.day-toggle {
  background-color: #e74c3c;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.day-toggle:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.day-toggle.active {
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}