/* Index Page Specific Styles */
* {
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1b1b1b;
    color: #ececec;
    line-height: 1.6;
  }
  
  .main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
  /* Header Styles */
  .app-header {
    background: #2a2a2a;
    border-bottom: 2px solid #444;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }
  
  .app-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffe066;
  }
  
  /* Handedness Switcher */
  .handedness-switcher {
    display: flex;
    gap: 0.5rem;
    background: #333;
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid #444;
  }
  
  .handedness-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #a3adbc;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .handedness-btn:hover {
    background: #496fbe;
    color: white;
  }
  
  .handedness-btn.active {
    background: #3477ef;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 119, 239, 0.3);
  }
  
  .btn-icon {
    font-size: 1.1rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }
  
  .handedness-btn[data-handedness="left"] .btn-icon {
    transform: scaleX(-1); /* Mirror the guitar icon for left-handed */
  }
  
  .btn-text {
    font-weight: 500;
  }
  
  /* Trainer Container */
  .trainer-container {
    flex: 1;
    position: relative;
    overflow: hidden;
  }
  
  #trainer-frame {
    border: none;
    width: 100%;
    height: 100%;
    background: #1b1b1b;
  }
  
  /* Loading Overlay */
  .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 27, 27, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #3477ef;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
  }
  
  .loading-text {
    color: #a3adbc;
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Footer */
  .app-footer {
    background: #2a2a2a;
    border-top: 1px solid #444;
    padding: 0.75rem 2rem;
    flex-shrink: 0;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #a3adbc;
  }
  
  .footer-content p {
    margin: 0;
  }
  
  .version-info {
    color: #ffe066;
    font-weight: 500;
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .app-header {
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
    }
  
    .app-header h1 {
      font-size: 1.5rem;
    }
  
    .handedness-switcher {
      width: 100%;
      justify-content: center;
    }
  
    .handedness-btn {
      flex: 1;
      justify-content: center;
      padding: 0.75rem 1rem;
    }
  
    .footer-content {
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    .app-header {
      padding: 0.75rem;
    }
  
    .app-footer {
      padding: 0.5rem 0.75rem;
    }
  
    .btn-text {
      display: none; /* Hide text on very small screens, keep icons */
    }
  
    .handedness-btn {
      padding: 0.75rem 0.5rem;
    }
  }
  
  /* Focus Styles for Accessibility */
  .handedness-btn:focus {
    outline: 2px solid #3477ef;
    outline-offset: 2px;
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .handedness-btn {
      border: 1px solid #666;
    }
    
    .handedness-btn.active {
      border: 2px solid #fff;
    }
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    .handedness-btn,
    .loading-spinner,
    .btn-icon {
      transition: none;
      animation: none;
    }
  }
  