/* assets/css/theme-switcher-ui.css — หน้าตาของปุ่มเลือก theme + panel dropdown */

.theme-switcher { position: relative; display: inline-block; }

.theme-switcher-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: 8px; color: var(--text);
  cursor: pointer; font-size: .95rem;
  transition: .15s;
}
.theme-switcher-btn:hover { border-color: var(--primary); color: var(--primary); }

.theme-switcher-panel {
  position: absolute; top: 44px; right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
  width: 220px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.theme-switcher-section-label {
  font-size: .68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 4px 2px 6px;
}
.theme-switcher-section-label:not(:first-child) { margin-top: 12px; }

.theme-switcher-themes {
  display: flex; flex-direction: column; gap: 3px;
}
.theme-switcher-themes button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left;
  background: transparent; border: none; border-radius: 7px;
  padding: 7px 9px; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: .83rem;
  transition: .12s;
}
.theme-switcher-themes button:hover { background: var(--bg3); }
.theme-switcher-themes button.active { background: var(--bg3); font-weight: 700; }
.theme-switcher-themes .swatch {
  width: 16px; height: 16px; border-radius: 50%;
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.15);
}

.theme-switcher-modes {
  display: flex; gap: 6px;
}
.theme-switcher-modes button {
  flex: 1; padding: 7px 9px; border-radius: 7px;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: .8rem; font-weight: 600;
  transition: .12s;
}
.theme-switcher-modes button:hover { border-color: var(--primary); color: var(--primary); }
.theme-switcher-modes button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 480px) {
  .theme-switcher-panel { right: -40px; }
}
