/* Color Scheme Panel Styles */
.color-scheme-toggle {
  position: fixed;
  top: 2rem;
  right: 8rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--bg-color-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.color-scheme-toggle i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.color-scheme-toggle:hover {
  transform: scale(1.1);
}

.color-scheme-toggle:hover i {
  color: var(--secondary-color);
}

.color-scheme-panel {
  position: fixed;
  top: 8rem;
  right: -30rem;
  width: 28rem;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 2rem;
  overflow: hidden;
}

.color-scheme-panel.active {
  right: 2rem;
}

.color-scheme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.color-scheme-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.color-scheme-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-color-light);
  cursor: pointer;
  transition: var(--transition);
}

.color-scheme-close:hover {
  color: var(--primary-color);
}

.color-scheme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Fix color scheme options for better visibility */
.color-option {
  position: relative;
  height: 8rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.color-option span {
  color: white;
  font-size: 1.4rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.color-option::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.color-option::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid white;
  opacity: 0;
  transition: var(--transition);
}

.color-option.active::after {
  opacity: 1;
  background-color: white;
}

.color-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Fix white color scheme option text color for better visibility */
.color-option[data-scheme="white"] span {
  color: #333;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.color-option[data-scheme="white"]::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.color-option[data-scheme="white"]::after {
  border-color: #333;
}

.color-option[data-scheme="white"].active::after {
  background-color: #333;
}

/* Responsive styles for color scheme panel */
@media screen and (max-width: 768px) {
  .color-scheme-toggle {
    top: 1.5rem;
    right: 7rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .color-scheme-panel {
    width: 24rem;
  }

  .color-scheme-panel.active {
    right: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .color-scheme-toggle {
    top: 1.5rem;
    right: 6rem;
    width: 3rem;
    height: 3rem;
  }

  .color-scheme-toggle i {
    font-size: 1.5rem;
  }

  .color-scheme-panel {
    width: calc(100% - 4rem);
    max-width: 28rem;
  }

  .color-scheme-options {
    grid-template-columns: 1fr;
  }
}
