/* ===== Sidebar Base Styles ===== */
/* Use same spacing variables as trips.css */
:root {
  --sidebar-spacing: 3vh;
  --sidebar-width: 400px;
  --sidebar-gap: 3vh;
  --sidebar-transition-duration: 0.35s;
  --sidebar-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar {
  position: fixed;
  top: var(--sidebar-spacing);
  bottom: var(--sidebar-spacing);
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e4e4e7;

  background-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(5px) !important;
}

.sidebar .timeline-item {
  background-color: rgba(255, 255, 255, 0.7) !important;
}

.sidebar input,
.sidebar select,
.sidebar textarea {
  background-color: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(0.5px) !important;
}

/* ===== Universal Input Field Styling ===== */
/* Apply consistent styling to all input types to ensure uniformity */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
  /* Remove all browser-specific default styling */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  /* Ensure proper sizing */
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;

  /* Consistent spacing */
  padding: 0.5rem 0.75rem !important;
  margin: 0 !important;

  /* Consistent typography */
  line-height: 1.5 !important;
  font-size: 1rem !important;
  font-family: inherit !important;
}

/* Ensure date/time inputs render at proper height even when empty */
input[type="date"],
input[type="time"] {
  /* Match the height of text inputs: padding (0.5rem × 2) + line-height (1.5) + border (1px × 2) ≈ 2.625rem */
  height: 2.625rem !important;
}

/* Style the calendar picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
