/* Seasonals Client Settings Popup & Modal Overlay */
.seasonal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px) saturate(1.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.8);
  z-index: 9999;
  animation: seasonalFadeIn 0.25s ease-out forwards;
}

.seasonal-settings-popup {
  position: fixed;
  z-index: 10000;
  background: rgba(22, 22, 22, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.6em 1.8em;
  border-radius: 1.2em;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: 440px;
  height: 520px;
  max-width: calc(100vw - 2.5rem);
  max-height: calc(100vh - 38px);
  color: #fff;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* Client Tabs Styling */
.seasonal-client-tabs {
  display: flex;
  gap: 0.4em;
  margin-bottom: 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6em;
}

.seasonal-client-tab {
  background: transparent;
  border: none;
  color: #888888;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6em 1em;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}

.seasonal-client-tab span {
  display: inline-block;
  text-align: center;
  line-height: 1.25;
}

.seasonal-client-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.seasonal-client-tab.active {
  color: #ffffff;
  background-color: #00a4dc;
}

@media (max-width: 500px) {
  .seasonal-settings-popup {
    height: 580px !important;
  }

  .seasonal-client-tabs {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4em !important;
  }

  .seasonal-client-tab {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
  }
}

.seasonal-client-tab-content {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  width: 100%;
}

/* Modal styling (centered, when opened from sidebar) */
.seasonal-settings-popup.seasonal-modal {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  animation: seasonalPopInCenter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Dropdown styling (when opened from navbar header) */
.seasonal-settings-popup.seasonal-dropdown {
  animation: seasonalPopInDropdown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header style with logo */
.seasonal-settings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8em;
  padding-right: 32px;
}

.seasonal-settings-logo {
  height: 24px;
  pointer-events: none;
}

.seasonal-settings-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

/* Body Container */
.seasonal-settings-body {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0.8em;
  padding-right: 4px;
}

/* Toggle switch design */
.seasonal-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.4em 0;
}

.seasonal-toggle-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.seasonal-toggle-label {
  font-weight: 500;
  font-size: 0.92rem;
  color: #f0f0f0;
}

.seasonal-toggle-desc {
  color: #9c9c9c;
  font-size: 0.8rem;
  margin-top: 0.15em;
  line-height: 1.35;
}

/* The Switch Outer Element */
.seasonal-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.seasonal-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.seasonal-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.seasonal-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #e5e5e5;
  transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.seasonal-switch input:checked+.seasonal-slider {
  background-color: #00a4dc;
}

.seasonal-switch input:checked+.seasonal-slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

/* Select Container and Elements */
.seasonal-select-container {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0.3em 0;
}

.seasonal-select-info {
  display: flex;
  flex-direction: column;
}

.seasonal-select-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.seasonal-select-desc {
  color: #9c9c9c;
  font-size: 0.8rem;
  line-height: 1.3;
}

select.seasonal-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 0.6em 0.8em !important;
  border-radius: 6px !important;
  outline: none !important;
  transition: all 0.2s ease;
  font-size: 0.88rem;
  width: 100%;
  -webkit-appearance: menulist;
  appearance: menulist;
  margin-top: 0.2em;
}

select.seasonal-select:focus {
  border-color: #00a4dc !important;
  box-shadow: 0 0 0 3px rgba(0, 164, 220, 0.2);
  background-color: rgba(255, 255, 255, 0.08) !important;
}

select.seasonal-select option {
  background-color: #202020 !important;
  color: #ffffff !important;
}

/* Button layout */
.seasonal-settings-buttons {
  margin-top: 1.4em;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
}

.seasonal-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.6em 1.2em;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  outline: none;
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
  text-align: center;
}

.seasonal-btn-cancel {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.seasonal-btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.seasonal-btn-submit {
  background: linear-gradient(135deg, #00a4dc, #0084b0);
  box-shadow: 0 4px 12px rgba(0, 164, 220, 0.25);
}

.seasonal-btn-submit:hover {
  filter: brightness(1.15);
}

/* Footer layout */
.seasonal-settings-footer {
  margin-top: 1.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8em;
  font-size: 0.78rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom Scrollbar for Settings Popup & Body */
.seasonal-settings-popup::-webkit-scrollbar,
.seasonal-settings-body::-webkit-scrollbar {
  width: 6px;
}

.seasonal-settings-popup::-webkit-scrollbar-track,
.seasonal-settings-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.seasonal-settings-popup::-webkit-scrollbar-thumb,
.seasonal-settings-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.seasonal-settings-popup::-webkit-scrollbar-thumb:hover,
.seasonal-settings-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Close button for client settings popup */
.seasonal-settings-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  outline: none;
}

.seasonal-settings-close-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.seasonal-settings-close-button:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* GitHub link styling in settings popup */
.seasonal-settings-popup a.seasonal-github-link {
  color: #00a4dc !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, color 0.2s;
}

.seasonal-settings-popup a.seasonal-github-link:hover {
  opacity: 0.8;
  color: #0084b0 !important;
}

/* Keyframe Animations */
@keyframes seasonalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes seasonalPopInCenter {
  from {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes seasonalPopInDropdown {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}