/* ==========================================================================
   Floating Theme Color Picker Widget
   ========================================================================== */

.theme-picker-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Manrope", sans-serif;
}

.theme-picker-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1a202c;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.theme-picker-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #f7fafc;
}

.theme-picker-toggle .picker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-900, #123a5c);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}

.theme-picker-panel {
  position: absolute;
  left: 0;
  bottom: 52px;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
  color: #2d3748;
}

.theme-picker-panel.is-open {
  display: flex;
  animation: pickerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pickerFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.theme-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-picker-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a202c;
}

.theme-picker-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #718096;
  cursor: pointer;
  padding: 4px;
}
.theme-picker-close:hover { color: #1a202c; }

.theme-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-picker-color-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 44px;
  height: 40px;
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
}
.theme-picker-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.theme-picker-color-input::-webkit-color-swatch {
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
}

.theme-picker-hex-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  font-size: 14px;
  font-family: monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.theme-swatch:hover {
  transform: scale(1.15);
}

.theme-palette-preview {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.theme-palette-preview span {
  flex: 1;
  height: 100%;
}

.theme-picker-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.theme-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  background: #edf2f7;
  color: #2d3748;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}
.theme-btn:hover { background: #e2e8f0; }

.theme-btn-primary {
  background: #2b6cb0;
  color: #fff;
  border-color: #2b6cb0;
}
.theme-btn-primary:hover { background: #2c5282; }

.theme-picker-hint {
  font-size: 11.5px;
  color: #718096;
  line-height: 1.45;
}
