/* Mobile menu language selector */
.language-icons-mobile {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-icons-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: transparent;
  border: none;
}

.language-icons-mobile a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.language-icons-mobile a.active {
  color: #fff;
  font-weight: 600;
  opacity: 1;
}

/* Responsive styles */
@media (max-width: 1200px) {
  /* Hide desktop language selector on mobile */
  .language-icons {
    display: none;
  }

  /* Show mobile language selector */
  .language-icons-mobile {
    display: flex;
  }
}

/* Custom date input styling */
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: transparent;
}

input[type="date"]:focus::-webkit-datetime-edit-text,
input[type="date"]:focus::-webkit-datetime-edit-month-field,
input[type="date"]:focus::-webkit-datetime-edit-day-field,
input[type="date"]:focus::-webkit-datetime-edit-year-field,
input[type="date"]:valid::-webkit-datetime-edit-text,
input[type="date"]:valid::-webkit-datetime-edit-month-field,
input[type="date"]:valid::-webkit-datetime-edit-day-field,
input[type="date"]:valid::-webkit-datetime-edit-year-field {
  color: initial;
}

.date-input-container {
  position: relative;
}

.date-input-container::before {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  transition: all 0.2s ease;
}

.date-input-container:focus-within::before,
.date-input-container.has-value::before {
  opacity: 0;
}

/* Hide default date format text */
input[type="date"] {
  position: relative;
}

/* This creates a custom overlay when not focused/filled */
input[type="date"]::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #6c757d;
  pointer-events: none;
}

/* Hide the overlay when input is focused or has a value */
input[type="date"]:focus::before,
input[type="date"].has-value::before {
  display: none;
}

/* Remove previous date input styling */
.date-input-label {
  font-weight: normal;
  color: #6c757d;
  margin-bottom: 0;
  font-size: 14px;
}

/* Form input focus styles */
input.datepicker:focus {
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
  border-color: #0056b3;
}

/* jQuery UI Calendar fixes */
.ui-datepicker {
  z-index: 1000 !important; /* Ensure it appears above other elements */
  background-color: white !important;
  padding: 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  width: 280px !important;
}

.ui-datepicker-header {
  background: #0056b3 !important; /* Changed to blue */
  color: white !important;
  border: none !important;
  font-weight: bold !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure month/year text is visible */
.ui-datepicker-title {
  font-weight: bold !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
}

/* Improve prev/next arrows */
.ui-datepicker-prev,
.ui-datepicker-next {
  background: rgba(255, 255, 255, 0.2) !important;
  cursor: pointer !important;
  border-radius: 3px !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
  filter: brightness(2) !important; /* Make arrows more visible */
}

.ui-datepicker-calendar .ui-state-default {
  background: transparent !important;
  border: 1px solid #f0f0f0 !important;
  color: #333 !important;
  text-align: center !important;
}

.ui-datepicker-calendar .ui-state-hover {
  background: #e6f2ff !important; /* Light blue hover */
}

.ui-datepicker-calendar .ui-state-active,
.ui-datepicker-calendar .ui-state-highlight {
  background: #0056b3 !important; /* Blue selected date */
  color: white !important;
  border-color: #0056b3 !important;
}

/* Datepicker icon */
input.datepicker {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}
