/* Days on the Road Bottom Sheet Styles */

.days-on-road-sheet-content {
  padding: 0 24px 24px;
}

.calendar-month-picker {
  text-align: center;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-month-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  padding: 8px 12px;
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 14px;
  min-width: 200px;
}

.calendar-month-select:focus {
  outline: none;
  border-color: var(--yellow);
  background-color: rgba(255, 193, 7, 0.1);
}

.calendar-month-select option {
  background-color: #1a1a1a;
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .calendar-month-select {
    min-width: 150px;
    font-size: 13px;
    padding: 6px 10px;
  }
}

.days-on-road-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.total-days {
  font-family: var(--_fonts---font-family--instrument-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--yellow);
  margin-bottom: 8px;
}

.calendar-container {
  max-height: 500px;
  overflow-y: auto;
}

.calendar-view {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calendar-month {
  margin-bottom: 24px;
}

.month-title {
  font-family: var(--_fonts---font-family--instrument-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--yellow);
  margin-bottom: 16px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 auto;
  max-width: 400px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  position: relative;
  min-height: 40px;
}

.calendar-day.has-activity {
  background-color: var(--yellow);
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day.has-activity:hover {
  background-color: rgba(255, 193, 7, 0.8);
  transform: scale(1.05);
}

.day-number {
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.day-km {
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 9px;
  font-weight: 600;
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
}

/* Day Activities Popup */
.day-activities-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483645; /* Leave room for custom cursor above popup */
  cursor: default;
}

.day-activities-popup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.popup-header h3 {
  margin: 0;
  font-family: var(--_fonts---font-family--instrument-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.popup-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--black);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: 60vh;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-activity-item {
  padding: 16px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--yellow);
}

.activity-name {
  font-family: var(--_fonts---font-family--instrument-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 8px;
}

.activity-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.activity-metric {
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .day-activities-popup {
    max-width: 95vw;
    max-height: 85vh;
  }

  .popup-header {
    padding: 16px 20px;
  }

  .popup-content {
    padding: 16px 20px;
  }

  .activity-details {
    gap: 12px;
  }
}