/* --- Base inputs & selects -------------------------------------------- */
input,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.875rem 1.25rem;
  padding-left: 0.75rem;
  border: none;
  border-radius: 1rem;
  background: var(--input);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: box-shadow 0.2s ease;
}

select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2368799e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 20px 20px;
  padding-right: 2.5rem;
}

/* --- Unified select variant (hero, date-widget, compare) --------------- */
.hero-select,
.date-preset-select,
.date-year-select,
.compare-date-slot select {
  height: 60px;
  min-height: 60px;
  padding: 0.35rem 0.75rem 0.35rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  background-color: var(--dark-300);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2368799e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 20px 20px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

[data-theme='light'] .hero-select,
[data-theme='light'] .date-preset-select,
[data-theme='light'] .date-year-select,
[data-theme='light'] .compare-date-slot select {
  background-color: var(--input);
}

.hero-select:focus,
.date-preset-select:focus,
.date-year-select:focus,
.compare-date-slot select:focus {
  outline: none;
  border-color: var(--blue);
}

.date-year-select[hidden],
.compare-date-slot select[hidden] {
  display: none;
}

/* --- Hero select layout ----------------------------------------------- */
.hero-rodzaj-select {
  min-width: 200px;
}

/* --- Compare date slot layout ----------------------------------------- */
.compare-date-slot {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: auto;
}

/* --- Year select (brand page) ----------------------------------------- */
.year-select {
  padding: 0.4rem 0.6rem;
  padding-left: 0.75rem;
  padding-right: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--input);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2368799e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 20px 20px;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.year-select:focus {
  outline: none;
}

/* --- Date range input (Litepicker) ------------------------------------ */
.date-range-input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  width: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  caret-color: var(--blue);
  padding: 0.2rem 0;
  padding-left: 2.5rem;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2368799e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3' ry='3'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2368799e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 20px 20px, 10px 10px, 12px 12px;
  background-position: left 0.35rem center, calc(100% - 2.35rem) center, calc(100% - 0.5rem) center;
}

.date-range-input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.date-range-input:focus {
  outline: none;
}

/* --- Small table toggle selects --------------------------------------- */
.top-models-toggle select,
.table-display-toggle select {
  min-width: 7rem;
  min-height: auto;
  padding: 0.4rem 0.75rem;
  padding-left: 0.75rem;
  padding-right: 2.5rem;
  border-radius: .5rem;
  border: 1px solid var(--border);
  background-color: var(--input);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2368799e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 20px 20px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
