html {
  transition: background-color 0.2s, color 0.2s;
}

html.dark {
  --bg: #0f0f1a;
  --card-bg: #1a1a2e;
  --text: #e8e8e8;
  --text-light: #8888a0;
  --border: #2a2a40;
}

html.dark .booking-item {
  background: #12121f;
}

html.dark .calendar-day:hover:not(.disabled):not(.empty) {
  background: rgba(255,255,255,0.05);
}

html.dark .stat-card {
  background: #12121f;
}

html.dark .lang-dropdown {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
}

.theme-settings {
  padding: 16px 0;
}

.theme-section {
  margin-bottom: 20px;
}

.theme-section-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.theme-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.theme-card {
  text-align: center;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 70px;
  background: var(--card-bg);
}

.theme-card:hover {
  border-color: var(--primary);
}

.theme-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.theme-card-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 6px;
}

.theme-card-label {
  font-size: 0.75rem;
  font-weight: 500;
}

.palette-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.palette-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.palette-option:hover {
  transform: scale(1.1);
}

.palette-option.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--card-bg);
}

.palette-gold { background: #d4a574; }
.palette-rose { background: #c27892; }
.palette-ocean { background: #5b9bd5; }
.palette-custom {
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}

.custom-color-input {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background: none;
}

.custom-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.custom-color-input::-webkit-color-swatch {
  border: 2px solid var(--border);
  border-radius: 50%;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .palette-selector {
    flex-wrap: wrap;
  }
}
