/* ==========================================================================
   SuperAdmin ColorPicker Component
   ========================================================================== */

.sa-color-picker-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

.sa-color-picker-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sa-text);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.25;
  user-select: none;
}

.sa-color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.sa-color-swatch-wrap {
  position: relative;
  width: 44px;
  height: 42px;
  min-width: 44px;
  border-radius: 0.625rem;
  border: 1px solid var(--sa-border);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--sa-input-bg);
}

.sa-color-swatch-wrap:hover {
  border-color: var(--sa-border-hover);
}

.sa-color-swatch-wrap:focus-within {
  border-color: var(--sa-primary);
  box-shadow: 0 0 0 3px var(--sa-primary-ring);
}

.sa-color-native-input {
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  margin: 0;
}

.sa-color-text-input {
  flex: 1;
  min-width: 0;
  width: 0;
  height: 42px;
  min-height: 42px;
  padding: 0 0.875rem;
  background: var(--sa-input-bg);
  border: 1px solid var(--sa-border);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--sa-text);
  text-transform: uppercase;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sa-color-text-input:hover {
  border-color: var(--sa-border-hover);
}

.sa-color-text-input:focus {
  background: var(--sa-input-bg);
  border-color: var(--sa-primary);
  box-shadow: 0 0 0 3px var(--sa-primary-ring);
}

.sa-color-picker-hint {
  font-size: 0.75rem;
  color: var(--sa-text-secondary);
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .sa-color-swatch-wrap {
    height: 44px;
    min-height: 44px;
    width: 48px;
    min-width: 48px;
  }

  .sa-color-text-input {
    height: 44px;
    min-height: 44px;
    font-size: 0.9375rem;
  }
}
