/* ══════════════════════════════════════════════════
   Lyricsflow - Settings UI Styles
   ══════════════════════════════════════════════════ */

.LyricsflowSettingsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.LyricsflowSettingsOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

.LyricsflowSettingsContainer {
  background: rgba(24, 24, 26, 0.92);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  width: 90%;
  max-width: 840px;
  height: 600px;
  max-height: 85vh;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.LyricsflowSettingsContainer.active {
  transform: scale(1) translateY(0);
}

.LyricsflowSettingsHeader {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.LyricsflowSettingsHeader span {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.LyricsflowSettingsHeaderClose {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.LyricsflowSettingsHeaderClose:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: scale(1.05);
}

.LyricsflowSettingsMainBody {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

/* Sidebar Styling */
.LyricsflowSettingsSidebar {
  width: 210px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.015);
  scrollbar-width: none;
}

.LyricsflowSettingsSidebar::-webkit-scrollbar {
  display: none;
}

.lf-sidebar-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
}

.lf-sidebar-tab svg {
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.lf-sidebar-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.lf-sidebar-tab:hover svg {
  transform: scale(1.05);
}

.lf-sidebar-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

/* Content Area Styling */
.LyricsflowSettingsContent {
  flex: 1;
  padding: 24px 28px 120px 28px;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: none;
  position: relative;
}

.LyricsflowSettingsContent::-webkit-scrollbar {
  display: none;
}

.LyricsflowSettingsPanel {
  animation: slFadeIn 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  overflow: visible;
}

@keyframes slFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lf-settings-group {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 700;
  margin: 28px 0 10px 4px;
}

.lf-settings-group:first-of-type {
  margin-top: 4px;
}

.lf-settings-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: visible !important;
  position: relative;
}

.lf-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 20px;
  overflow: visible !important;
  position: relative;
}

.lf-settings-row:last-child {
  border-bottom: none;
}

.lf-settings-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.lf-settings-label {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 500;
}

.lf-settings-description {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
}

/* UI Components */
.lf-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}

.lf-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lf-toggle span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.lf-toggle span:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.lf-toggle input:checked + span {
  background-color: #ffffff;
}

.lf-toggle input:checked + span:before {
  background-color: #1c1c1e;
}

.lf-toggle input:checked + span:before {
  transform: translateX(21px);
}

.lf-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #fff;
  padding: 8px 30px 8px 12px;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px;
}

.lf-select:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.lf-select option {
  background: #1c1c1e;
  color: #fff;
}

.lf-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #fff;
  padding: 8px 12px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  width: 170px;
  max-width: 100%;
  transition: all 0.2s ease;
}

.lf-input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.lf-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.lf-slider-value {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  min-width: 32px;
  text-align: right;
  font-weight: 500;
  font-family: monospace;
}

.lf-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.lf-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.lf-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

.lf-range-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.lf-range-slider::-moz-range-thumb:active {
  transform: scale(1.25);
}

.lf-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.lf-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.lf-btn:active {
  transform: scale(0.97);
}

.lf-btn-accent {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.lf-btn-accent:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Inline Equalizer Styling */
.lf-eq-preset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lf-eq-preset-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.lf-eq-sliders-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 170px;
  gap: 6px;
  padding: 22px 18px 14px;
  background: rgba(0, 0, 0, 0.15);
}

.lf-eq-band-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  height: 100%;
}

.lf-eq-val-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  min-height: 12px;
  font-family: monospace;
}

.lf-eq-freq-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.lf-eq-slider {
  height: 100px;
  width: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  outline: none;
  margin: 6px 0;
  cursor: ns-resize;
}

.lf-eq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.lf-eq-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}
