/* ==========================================================================
   Style Switcher Component Styles
   ========================================================================== */

#style-switcher {
  position: fixed;
  top: 120px;
  left: -290px;
  width: 290px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 0 12px 12px 0;
  z-index: 99999;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: #1e293b;
}

#style-switcher.active {
  left: 0;
}

.switcher-toggle {
  position: absolute;
  top: 0;
  right: -42px;
  width: 42px;
  height: 42px;
  background: #1c6786;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 2px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.switcher-toggle:hover {
  background: #155a73;
}

.switcher-toggle i {
  font-size: 19px;
  animation: spin-slow 8s linear infinite;
}

#style-switcher.active .switcher-toggle i {
  animation-play-state: paused;
}

@keyframes spin-slow {
  100% {
    transform: rotate(360deg);
  }
}

.switcher-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: 0 12px 0 0;
}

.switcher-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin: 0;
}

.switcher-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.switcher-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.switcher-body {
  padding: 16px;
  max-height: 80vh;
  overflow-y: auto;
}

.switcher-master-toggle {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.section-label {
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 6px;
  color: #475569;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Color Skin Grid */
.skin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.skin-color {
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.skin-color:hover {
  transform: scale(1.08);
}

.skin-color.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #ffffff inset;
}

/* Patterns */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.pattern-box {
  height: 26px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  border-radius: 4px;
  background-size: cover;
  transition: border-color 0.15s ease;
}

.pattern-box:hover,
.pattern-box.active {
  border-color: #1c6786;
  box-shadow: 0 0 0 1px #1c6786;
}

/* Pickers */
.picker-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.picker-wrapper input[type="text"] {
  border: none;
  outline: none;
  font-size: 11px;
  width: 100%;
  color: #334155;
  font-family: monospace;
}

.picker-wrapper input[type="color"] {
  border: none;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
}

.switcher-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.switcher-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-reset {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-reset:hover {
  background: #e2e8f0;
  color: #0f172a;
}