/* === Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-start: #667eea;
  --bg-end: #764ba2;
  --text-color: #fff;
  --card-bg: rgba(255, 255, 255, 0.15);
  --accent-color: #ff6b6b;
  --border-color: rgba(255, 255, 255, 0.3);
  --button-gradient-start: #ff6b6b;
  --button-gradient-end: #ff9a76;
  --font-family: "Poppins", sans-serif;
}

/* Light Theme */
[data-theme="light"] {
  --bg-start: #fdf2ec;
  --bg-end: #ffd8d8;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-color: #1f1f1f;
  --accent-color: #ff5a5a;
  --border-color: rgba(0, 0, 0, 0.1);
  --button-gradient-start: #ff867c;
  --button-gradient-end: #ff5a5a;
}

/* Neon Theme */
[data-theme="neon"] {
  --bg-start: #0a0e27;
  --bg-end: #1a1a2e;
  --text-color: #00ff88;
  --card-bg: rgba(0, 255, 136, 0.1);
  --accent-color: #ff006e;
  --border-color: rgba(0, 255, 136, 0.3);
  --button-gradient-start: #ff006e;
  --button-gradient-end: #00d9ff;
}

/* Retro Theme */
[data-theme="retro"] {
  --bg-start: #ff6b9d;
  --bg-end: #c94b4b;
  --text-color: #fff5e1;
  --card-bg: rgba(255, 245, 225, 0.2);
  --accent-color: #ffc93c;
  --border-color: rgba(255, 245, 225, 0.4);
  --button-gradient-start: #ffc93c;
  --button-gradient-end: #ff6b9d;
}

/* Pastel Theme */
[data-theme="pastel"] {
  --bg-start: #ffcce7;
  --bg-end: #d5f5e3;
  --text-color: #5d5d5d;
  --card-bg: rgba(255, 255, 255, 0.8);
  --accent-color: #ff8fa3;
  --border-color: rgba(93, 93, 93, 0.2);
  --button-gradient-start: #ffb3c6;
  --button-gradient-end: #ff8fa3;
}

/* Solarized Theme */
[data-theme="solarized"] {
  --bg-start: #002b36;
  --bg-end: #073642;
  --text-color: #839496;
  --card-bg: rgba(0, 43, 54, 0.8);
  --accent-color: #268bd2;
  --border-color: rgba(131, 148, 150, 0.3);
  --button-gradient-start: #268bd2;
  --button-gradient-end: #2aa198;
}

/* Ocean Theme */
[data-theme="ocean"] {
  --bg-start: #004e92;
  --bg-end: #000428;
  --text-color: #e0f7fa;
  --card-bg: rgba(224, 247, 250, 0.15);
  --accent-color: #00bcd4;
  --border-color: rgba(224, 247, 250, 0.3);
  --button-gradient-start: #00bcd4;
  --button-gradient-end: #00acc1;
}

/* Forest Theme */
[data-theme="forest"] {
  --bg-start: #134e4a;
  --bg-end: #064e3b;
  --text-color: #d1fae5;
  --card-bg: rgba(209, 250, 229, 0.15);
  --accent-color: #34d399;
  --border-color: rgba(209, 250, 229, 0.3);
  --button-gradient-start: #34d399;
  --button-gradient-end: #10b981;
}

/* Sunset Theme */
[data-theme="sunset"] {
  --bg-start: #ff7e5f;
  --bg-end: #feb47b;
  --text-color: #3d1f00;
  --card-bg: rgba(255, 255, 255, 0.3);
  --accent-color: #ff6b35;
  --border-color: rgba(61, 31, 0, 0.2);
  --button-gradient-start: #ff6b35;
  --button-gradient-end: #f7931e;
}

/* Midnight Theme */
[data-theme="midnight"] {
  --bg-start: #2c3e50;
  --bg-end: #000000;
  --text-color: #ecf0f1;
  --card-bg: rgba(236, 240, 241, 0.1);
  --accent-color: #e74c3c;
  --border-color: rgba(236, 240, 241, 0.3);
  --button-gradient-start: #e74c3c;
  --button-gradient-end: #c0392b;
}

body {
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  transition: background-color 2s ease;
  color: var(--text-color);
  overflow: hidden;
}

/* === App Container === */
.app-container {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  max-width: 600px;
  width: 90%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* === Heading === */
h1 {
  color: var(--text-color);
  font-size: 2.5em;
  margin-top: 60px;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* === Toggle Styles === */
.toggle-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  position: relative;
  transition: background 0.3s ease;
  margin-right: 12px;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
  background: linear-gradient(45deg, #ff6b6b, #ff9a76);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(30px);
}

.toggle-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-label input[type="checkbox"]:checked ~ .toggle-text {
  color: #ffeb3b;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === Button Container === */
.button-container {
  margin: 40px 0;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* === Useless Button === */
#useless-button {
  padding: 20px 40px;
  font-size: 1.5rem;
  background: linear-gradient(45deg, var(--button-gradient-start), var(--button-gradient-end));
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
  animation: pulseGlow 2s infinite;
}

#useless-button:hover {
  transform: scale(1.1) translateY(-5px);
  background: linear-gradient(45deg, var(--button-gradient-end), var(--button-gradient-start));
}

/* Impossible mode button */
#useless-button.impossible-mode {
  animation: colorShift 0.2s ease infinite, pulseGlow 2s infinite;
}

#useless-button.impossible-mode:hover {
  transform: scale(0.85) translateY(-10px) rotate(3deg);
}

@keyframes colorShift {
  0% { filter: hue-rotate(0deg) brightness(1.1); }
  25% { filter: hue-rotate(90deg) brightness(1.2); }
  50% { filter: hue-rotate(180deg) brightness(1.1); }
  75% { filter: hue-rotate(270deg) brightness(1.2); }
  100% { filter: hue-rotate(360deg) brightness(1.1); }
}

#useless-button::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#useless-button:hover::after {
  transform: translateX(-50%) scale(2);
  opacity: 1;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 107, 107, 0.8); }
  100% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.4); }
}

/* === Counter / Quote / Timer === */
#counter,
.quote,
.timer {
  margin-top: 15px;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
}

@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes rainbowBg {
  0% {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  }
  25% {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  }
  50% {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  }
  75% {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  }
  100% {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  }
}

#counter {
  font-size: 1.2em;
  color: var(--text-color);
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.quote {
  font-size: 1.1em;
  color: var(--text-color);
  margin: 20px 0;
  font-style: italic;
  min-height: 50px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* === Timer === */
.timer {
  font-size: 1em;
  color: var(--text-color);
  margin-top: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  font-weight: 500;
}

/* === Achievement Popup === */
#achievement-popup {
  position: fixed;
  top: -500px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 20px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#achievement-popup.show {
  top: 80px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: popupBounce 0.6s ease-out;
}

@keyframes popupBounce {
  0% {
    top: -200px;
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
  }
  50% {
    top: 60px;
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
  100% {
    top: 80px;
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* === Control Buttons Container === */
.control-buttons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

/* === Theme Toggle Button === */
#theme-toggle {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  background: linear-gradient(45deg, #f0f0f0, #dcdcdc);
  color: #333;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

body[data-theme="dark"] #theme-toggle {
  background: linear-gradient(45deg, #333, #555);
  color: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] #theme-toggle {
  background: linear-gradient(45deg, #f5f5f5, #e0e0e0);
  color: #222;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

#theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* === Responsive === */
@media (max-width: 600px) {
  .app-container {
    padding: 25px;
  }

  #theme-toggle {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .achievement-icon {
    font-size: 2.5em;
    animation: rotate360 1s ease-in-out;
  }

  @keyframes rotate360 {
    from {
      transform: rotate(0deg) scale(0);
    }
    to {
      transform: rotate(360deg) scale(1);
    }
  }

  .achievement-text {
    color: #fff;
    font-weight: 600;
    font-size: 1.2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }

  /* === Screen Shake === */
  body.page-shake {
    animation: pageShake 0.5s;
  }

  @keyframes pageShake {
    0%,
    100% {
      transform: translate(0, 0);
    }
    25% {
      transform: translate(-5px, 5px);
    }
    50% {
      transform: translate(5px, -5px);
    }
    75% {
      transform: translate(-5px, -5px);
    }
  }

  /* === Responsive Design === */
  @media (max-width: 768px) {
    .app-container {
      padding: 30px 20px;
      margin: 20px;
    }

    h1 {
      font-size: 1.8em;
    }

    #useless-button {
      padding: 15px 40px;
      font-size: 1.2em;
    }

    #counter {
      font-size: 1em;
    }

    .quote {
      font-size: 0.95em;
    }
    h1 {
      font-size: 1.3rem;
    }
  }
}

/* === Are You Still Clicking Popup === */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-container.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  position: relative;
  border: 2px solid var(--border-color);
  animation: popupAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupAppear {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 1.8rem;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  position: relative;
  min-height: 50px;
}

.popup-buttons button {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: absolute;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#popup-yes {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  left: 25%;
  transform: translateX(-50%);
}

#popup-no {
  background: linear-gradient(45deg, #ff5252, #ff8a80);
  color: white;
  right: 25%;
  transform: translateX(50%);
}

.popup-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .popup-content {
    padding: 20px;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }

  .popup-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* === Confetti Animation === */
.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  top: -20px;
  z-index: 999;
  border-radius: 50%;
  animation: confettiFall 5s ease-out forwards;
}

.confetti:nth-child(odd) {
  width: 6px;
  height: 12px;
  border-radius: 2px;
  animation: confettiWiggle 5s ease-out forwards;
}

.confetti:nth-child(3n) {
  width: 4px;
  height: 4px;
  animation: confettiSpin 4s linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes confettiWiggle {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(30px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes confettiSpin {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* === Sound Settings Button === */
#sound-toggle {
  padding: 10px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(45deg, #f0f0f0, #dcdcdc);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-theme="dark"] #sound-toggle {
  background: linear-gradient(45deg, #333, #555);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] #sound-toggle {
  background: linear-gradient(45deg, #f5f5f5, #e0e0e0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

#sound-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* === Sound Controls === */
.sound-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.sound-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-color);
}

.sound-controls input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.sound-controls input[type="range"] {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.sound-controls select {
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
}

.sound-controls button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ff9a76);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.sound-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  #sound-toggle {
    padding: 8px;
    font-size: 1rem;
    width: 36px;
    height: 36px;
  }
}
.explosion {
    position: absolute;
    width: 20px;    
    height: 20px;
}

.particle-burst {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    animation: burst 0.8s ease-out forwards; 
}

@keyframes burst {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(0px, 0px) scale(0.1); 
        opacity: 0;
    }
}

/* === Theme Selector Styles === */
#theme-selector {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#theme-selector.show {
  opacity: 1;
  visibility: visible;
}

.theme-selector-content {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 25px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
  0% {
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.theme-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.theme-selector-header h2 {
  color: var(--text-color);
  font-size: 2rem;
  margin: 0;
}

#close-theme-selector {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

#close-theme-selector:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.theme-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.theme-tab {
  padding: 10px 25px;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.theme-tab:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.05);
}

.theme-tab.active {
  opacity: 1;
  background: var(--accent-color);
  color: white;
}

.theme-tab-content {
  display: none;
}

.theme-tab-content.active {
  display: block;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.theme-card {
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.8;
  z-index: 0;
}

.theme-card > * {
  position: relative;
  z-index: 1;
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.theme-card.active {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.theme-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.theme-preview {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.theme-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Custom Theme Creator */
.custom-theme-creator {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  margin-top: 20px;
  border: 2px solid var(--border-color);
}

.custom-theme-creator h3 {
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 20px;
}

.color-picker-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-picker-item label {
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.color-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.color-input-wrapper input[type="color"] {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.color-input-wrapper input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
  font-family: monospace;
}

.color-picker-item select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-picker-item select:hover {
  border-color: var(--accent-color);
}

.color-picker-item select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.custom-theme-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.custom-theme-actions button {
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 150px;
}

#save-custom-theme {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

#save-custom-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

#preview-custom-theme {
  background: linear-gradient(45deg, #2196f3, #03a9f4);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

#preview-custom-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

#reset-custom-theme {
  background: linear-gradient(45deg, #ff5252, #ff8a80);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.4);
}

#reset-custom-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.6);
}

/* Theme selector scrollbar */
.theme-selector-content::-webkit-scrollbar {
  width: 10px;
}

.theme-selector-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.theme-selector-content::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.theme-selector-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .theme-selector-content {
    padding: 25px;
  }
  
  .theme-selector-header h2 {
    font-size: 1.5rem;
  }
  
  .themes-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .theme-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .color-picker-group {
    grid-template-columns: 1fr;
  }
  
  .custom-theme-actions {
    flex-direction: column;
  }
  
  .custom-theme-actions button {
    width: 100%;
  }
}
