    :root {
      --primary: #7371fc;
      --dark: #121212;
      --card: #1e1e1e;
      --text: #f0f0f0;
      --accent: #5d5cfa;
      --danger: #ff5252;
    }

    
    body {
      background: var(--dark);
      color: var(--text);
      font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
      padding: 0;
      margin: 0;
      min-height: 100vh;
    }
    
    .app-container {
      max-width: 600px;
      margin: 0 auto;
      padding: 0;
    }
    
    .nav-tabs {
      background: #0a0a0a;
      border: none;
      padding: 0.5rem 0.5rem 0;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-tabs .nav-link {
      color: #888;
      border: none;
      border-radius: 12px 12px 0 0;
      padding: 0.6rem 0.8rem;
      margin-right: 2px;
      font-size: 0.9rem;
      transition: all 0.2s;
    }
    
    .nav-tabs .nav-link.active {
      background: var(--card);
      color: var(--primary);
      border: none;
    }
    
    .tab-content {
      padding: 1rem;
    }
    
    .panel {
      background: var(--card);
      border-radius: 16px;
      padding: 1.25rem;
      margin-bottom: 1rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .btn-custom {
      background: #333;
      color: white;
      border: none;
      padding: 12px 16px;
      margin: 4px;
      border-radius: 12px;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 500;
    }
    
    .btn-custom:hover, .btn-custom:active {
      background: #444;
      transform: translateY(-2px);
    }
    
    .btn-primary {
      background: var(--primary);
    }
    
    .btn-primary:hover {
      background: var(--accent);
    }
    
    .btn-stop {
      background: var(--danger);
      color: white;
      font-weight: bold;
      padding: 12px 24px;
      border-radius: 12px;
      border: none;
      margin: 0.5rem 0;
      box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3);
    }
    
    .album-art {
      width: 64px;
      height: 64px;
      border-radius: 12px;
      object-fit: cover;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }
    
    .now-playing {
      background: linear-gradient(45deg, #2d2d2d, #242424);
      border-radius: 12px;
      padding: 12px;
      margin-top: 1rem;
    }
    
    .music-controls {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
    
    .volume-slider {
      width: 100%;
      height: 6px;
      -webkit-appearance: none;
      background: #444;
      border-radius: 3px;
      margin: 1rem 0;
    }
    
    .volume-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      background: var(--primary);
      border-radius: 50%;
      cursor: pointer;
    }
    
    .toast-container {
      position: fixed;
      bottom: 1rem;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      z-index: 9999;
      pointer-events: none;
    }
    
    .toast {
      background: rgba(30, 30, 30, 0.95);
      backdrop-filter: blur(8px);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      padding: 12px 20px;
      margin: 8px;
      color: white;
      font-weight: 500;
      pointer-events: auto;
      border-left: 4px solid var(--primary);
    }
    
    .history-box {
      max-height: 300px;
      overflow-y: auto;
      background: rgba(20, 20, 20, 0.5);
      padding: 1rem;
      border-radius: 12px;
      font-size: 0.9rem;
    }
    
    .history-box p {
      margin-bottom: 0.8rem;
      padding-bottom: 0.8rem;
      border-bottom: 1px solid #333;
    }
    
    /* Color picker improvements */
    .color-controls {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .color-picker {
      width: 100%;
      height: 40px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }
    
    .temperature-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 1rem;
    }
    
    .temp-btn {
      flex: 1;
      min-width: 80px;
      text-align: center;
    }
    
    .cool {
      background: linear-gradient(to right, #4b6cb7, #182848);
    }
    
    .warm {
      background: linear-gradient(to right, #ff9966, #ff5e62);
    }
    
    .neutral {
      background: linear-gradient(to right, #f7f7f7, #d8d8d8);
      color: #222;
    }
    
    /* Global volume control */
    .global-volume {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(10, 10, 10, 0.9);
      backdrop-filter: blur(10px);
      padding: 12px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 90;
      transform: translateY(100%);
      transition: transform 0.3s;
    }
    
    .global-volume.visible {
      transform: translateY(0);
    }
    
    .weather-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    
    .weather-temp {
      font-size: 3rem;
      font-weight: 300;
    }
    
    .weather-icon {
      font-size: 3.5rem;
      margin: 1rem 0;
    }
    
    .forecast {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      text-align: center;
      margin-top: 1rem;
    }
    
    .forecast-day {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 8px;
    }
    
    /* Timer screen improvements */
    .timer-inputs {
      display: flex;
      gap: 8px;
      margin-bottom: 1rem;
    }
    
    .timer-input {
      flex: 1;
      text-align: center;
    }
    
    .timer-label {
      display: block;
      font-size: 0.8rem;
      margin-bottom: 4px;
      color: #999;
    }
    
    .timer-running {
      display: flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 8px;
      justify-content: space-between;
    }
    
    .timer-time {
      font-size: 1.2rem;
      font-weight: 600;
    }
    
    .emergency-button {
      position: fixed;
      bottom: 70px;
      right: 16px;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: var(--danger);
      border: none;
      color: white;
      font-size: 24px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .volume-button {
      position: fixed;
      bottom: 140px;
      right: 16px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--primary);
      border: none;
      color: white;
      font-size: 20px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .voice-wave {
      display: none;
      text-align: center;
      margin-top: 1rem;
    }
    
    .voice-wave.active {
      display: block;
    }
    
    .wave {
      display: inline-block;
      width: 4px;
      height: 20px;
      background: var(--primary);
      margin: 0 2px;
      border-radius: 2px;
      animation: wave 1s infinite ease-in-out;
    }
    
    .wave:nth-child(2) { animation-delay: 0.1s; }
    .wave:nth-child(3) { animation-delay: 0.2s; }
    .wave:nth-child(4) { animation-delay: 0.3s; }
    .wave:nth-child(5) { animation-delay: 0.4s; }
    
    @keyframes wave {
      0%, 100% { transform: scaleY(0.5); }
      50% { transform: scaleY(1.5); }
    }
	.tab-content {
  position: relative;
  padding: 1rem;

}

.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.tab-pane.fade.show.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}
	  .llm-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .llm-box textarea {
    width: 100%;
    padding: 0.5rem;
    resize: vertical;
    font-family: sans-serif;
  }
  
  /* In css/main.css */
.panel,
.tab-pane {
  overflow: visible !important;  /* allow children to spill out */
}

#artistSuggestions,
#ytPlaylistSuggestions {
  z-index: 1000;                  /* ensure this is higher than any other */
}
