/* Mobile-first common styles */

.border-light-gray {
  border-color: #e5e7eb !important;
}

.leave-card {
  transition: transform 0.2s;
  background-color: #fff;
}

.leave-card:hover {
  transform: translateX(5px);
  background-color: #f9fafb;
}

.leave-card:active {
  transform: scale(0.98);
}

/* Mobile-friendly dropdowns */
.mobile-select {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.5;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 50px;
  font-weight: 500;
  color: #111827;
}

.mobile-select:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mobile-select:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}

.mobile-select option {
  font-size: 18px;
  padding: 14px;
  background-color: #fff;
  color: #111827;
}

/* Date inputs mobile-friendly */
.mobile-date-input {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.5;
  width: 100%;
  transition: all 0.2s ease;
  min-height: 50px;
  font-weight: 500;
  color: #111827;
}

.mobile-date-input:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Calendar picker enhancements for mobile */
.mobile-date-input::-webkit-calendar-picker-indicator {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  cursor: pointer;
}

.mobile-date-input::-webkit-datetime-edit {
  padding: 0;
  font-size: 18px;
}

.mobile-date-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.mobile-date-input::-webkit-datetime-edit-text {
  padding: 0 4px;
}

.mobile-date-input::-webkit-datetime-edit-month-field,
.mobile-date-input::-webkit-datetime-edit-day-field,
.mobile-date-input::-webkit-datetime-edit-year-field {
  padding: 2px;
}

/* Text areas mobile-friendly */
.mobile-textarea {
  appearance: none;
  -webkit-appearance: none;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  resize: vertical;
  transition: all 0.2s ease;
}

.mobile-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Date Range Picker */
.date-range-picker {
  position: relative;
}

.date-range-display {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.5;
  width: 100%;
  min-height: 50px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.date-range-display:hover {
  background-color: #fff;
  border-color: #3b82f6;
}

.date-range-display i {
  font-size: 20px;
  color: #6b7280;
}

.date-range-calendar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 1000;
  margin-top: 8px;
}

/* Make calendar more compact on larger screens */
@media (min-width: 768px) {
  .date-range-calendar {
    max-width: 360px;
    left: auto;
    right: auto;
    padding: 12px;
  }

  .calendar-header {
    margin-bottom: 12px;
  }

  .calendar-header span {
    font-size: 14px;
  }

  .calendar-grid {
    gap: 2px;
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-header span {
  font-weight: 600;
  font-size: 16px;
  color: #111827;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  min-height: 40px;
}

@media (min-width: 768px) {
  .calendar-day {
    min-height: 36px;
    font-size: 14px;
  }

  .calendar-day.header {
    font-size: 12px;
  }
}

.calendar-day.header {
  font-weight: 600;
  color: #6b7280;
  font-size: 14px;
  cursor: default;
}

.calendar-day.disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.calendar-day.today {
  border-color: #3b82f6;
}

.calendar-day.selected {
  background-color: #3b82f6;
  color: #fff;
}

.calendar-day.in-range {
  background-color: #dbeafe;
  color: #1e40af;
}

.calendar-day:not(.header):not(.disabled):hover {
  background-color: #f3f4f6;
}

.calendar-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.calendar-footer button {
  flex: 1;
}
