/* 
 * Settings and Progress UI Fixes
 * Version: 1.0.0
 * Last updated: 2025-08-22 13:12:39
 * Author: sharif24with40
 */

/* Fix avatar colors not showing properly */
.avatar-preview-large, .avatar-circle {
  transition: background-color 0.3s ease;
}

/* Fix settings navigation active state */
.settings-nav-item.active {
  background-color: rgba(67, 97, 238, 0.1);
  font-weight: bold;
}

/* Improve font size slider appearance */
.font-size-slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.font-size-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.font-size-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
}

/* Fix color selection UI */
.color-option, .color-swatch {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-option:hover, .color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Fix chart bars in progress tab */
.day-bar {
  position: relative;
  overflow: hidden;
}

.day-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(67, 97, 238, 0.5) 100%);
}

/* Fix enhancement tab previews */
.enhancement-preview {
  height: 280px;
  overflow-y: auto;
}

.enhancement-preview ul {
  padding-left: 20px;
}

/* Fix storage stats visualization */
.storage-bar {
  overflow: hidden;
}

.storage-fill {
  transition: width 0.5s ease;
}

/* Improve enhancement mode radio buttons */
.radio-option {
  padding: 6px 0;
}

.radio-option input[type="radio"] {
  margin-right: 8px;
}

/* Add animations to achievement cards */
.achievement-card {
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.achievement-card.unlocked:hover {
  box-shadow: 0 8px 16px rgba(67, 97, 238, 0.15);
}

/* Fix quote container styling */
.quote-box {
  padding-left: 40px;
}

/* Fix tabs responsiveness */
@media (max-width: 600px) {
  .settings-navigation {
    gap: 5px;
  }
  
  .settings-nav-item {
    padding: 0.6rem 1rem;
  }
  
  .enhancement-tab {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .progress-tab {
    padding: 0.8rem;
  }
}