* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: #0f0f0f;
  color: white;
  overflow: hidden;
}

/* Glass morphism base styles */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  background-clip: content-box;
}

::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.05);
}

/* Login Screen */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #0f0f0f;
}

.login-content {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  max-width: 400px;
  width: 90%;
}

.login-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-align: center;
  margin-top: 0;
}

.login-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.login-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #1ed760;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  background: #007a3a;
  color: white;
  text-decoration: none;
}

/* Main App Container */
.app-container {
  display: none;
  min-height: 100vh;
  background: #0f0f0f;
  position: relative;
}

/* Top Header */
.top-header {
  padding: 0.25rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 200;
  margin: 0;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.app-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

/* Profile Section */
.profile-section {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.profile-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.profile-image {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.profile-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  min-width: 250px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dropdown-profile-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-details {
  flex: 1;
  min-width: 0;
}

.dropdown-profile-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.dropdown-profile-email {
  display: block;
  font-size: 0.8rem;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

.dropdown-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  color: #e0e0e0;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ff6b6b;
}

/* Bottom Control Bar */
.control-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  height: 72px;
  z-index: 100;
}

/* Player Info Section */
.player-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 300px;
  overflow: hidden;
}

.album-art-container {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-art-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #555;
  border-radius: 4px;
}

.album-art[src]:not([src=""]) + .album-art-placeholder {
  display: none;
}

.track-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

.track-title {
  font-size: 0.875rem;
  margin: 0;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.track-title:hover {
  color: #ffffff;
  text-decoration: underline;
}

.track-title.expanded {
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  max-height: 40px;
  overflow-y: auto;
}

.track-artist {
  opacity: 0.7;
  font-size: 0.75rem;
  margin: 0;
  color: #b3b3b3;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.track-artist:hover {
  color: #ffffff;
  text-decoration: underline;
}

.track-progress-mini {
  display: none;
}

/* Center Controls Section */
.center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
  justify-self: center;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b3b3;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.control-btn:hover {
  color: #ffffff;
  transform: scale(1.05);
}

.control-btn svg {
  width: 16px;
  height: 16px;
}

.prev-btn svg,
.next-btn svg {
  width: 20px;
  height: 20px;
}

.shuffle-btn.active,
.repeat-btn.active {
  color: #1ed760;
}

.shuffle-btn.active::after,
.repeat-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #1ed760;
  border-radius: 50%;
}

.play-btn {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  margin: 0 0.25rem;
  transition: all 0.2s ease;
}

.play-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.06);
}

.play-btn svg {
  width: 16px;
  height: 16px;
}

.timeline-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.time-label {
  font-size: 0.6875rem;
  color: #b3b3b3;
  min-width: 32px;
  text-align: center;
  font-weight: 400;
}

.timeline-container {
  position: relative;
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.timeline-slider {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.timeline-slider:hover {
  height: 4px;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-top: -4px;
}

.timeline-slider:hover::-webkit-slider-thumb {
  opacity: 1;
}

.timeline-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.timeline-slider:hover::-moz-range-thumb {
  opacity: 1;
}

.timeline-slider::-moz-range-track {
  background: linear-gradient(to right, #1ed760 var(--progress, 0%), rgba(255, 255, 255, 0.3) var(--progress, 0%));
  height: 4px;
  border-radius: 2px;
}

.timeline-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #1ed760 var(--progress, 0%), rgba(255, 255, 255, 0.3) var(--progress, 0%));
  height: 4px;
  border-radius: 2px;
}

.timeline-background,
.timeline-progress,
.timeline-thumb {
  display: none;
}

/* Volume & Additional Controls */
.volume-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b3b3;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-btn:hover {
  color: #ffffff;
}

.volume-btn svg {
  width: 16px;
  height: 16px;
}

.volume-slider-container {
  position: relative;
  width: 80px;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.volume-slider {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 2px;
  opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  position: relative;
}

.volume-slider:hover::-webkit-slider-thumb {
  opacity: 1;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  position: relative;
}

.volume-slider:hover::-moz-range-thumb {
  opacity: 1;
}

.volume-background {
  display: none;
}

.volume-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: #1ed760;
  border-radius: 2px;
  transform: translateY(-50%);
  width: 50%;
  transition: width 0.1s ease;
  pointer-events: none;
  z-index: 1;
}

.fullscreen-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b3b3;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fullscreen-btn:hover {
  color: #ffffff;
}

.fullscreen-btn svg {
  width: 16px;
  height: 16px;
}

/* Main Content */
.content {
  display: flex;
  height: calc(100vh - 142px); /* 70px top + 72px bottom */
  overflow: hidden;
  margin-top: 0;
}

/* Sidebar */
.chord-versions {
  width: 300px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
  overflow-y: auto;
  transition: all 0.3s ease;
  position: relative;
}

.chord-versions.collapsed {
  width: 60px;
}

.chord-versions.collapsed .chord-list {
  display: none;
}

.toggle-sidebar-btn {
  position: sticky;
  top: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.95);
  border: none;
  border-radius: 0 0 0 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  margin-left: auto;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-sidebar-btn:hover {
  background: rgba(40, 40, 40, 0.95);
  color: #ffffff;
}

.toggle-sidebar-btn i {
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

/* Icon shows the ACTION that will be performed, not the current state */
.toggle-sidebar-btn .fa-chevron-left {
  display: block;
}

.toggle-sidebar-btn .fa-chevron-right {
  display: none;
}

.chord-versions.collapsed .toggle-sidebar-btn .fa-chevron-left {
  display: none;
}

.chord-versions.collapsed .toggle-sidebar-btn .fa-chevron-right {
  display: block;
}

.chord-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.chord-version {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.chord-version:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.chord-version.active {
  background: #1ed760;
  border-color: #1ed760;
}

.no-versions {
  text-align: center;
  opacity: 0.7;
  padding: 2rem;
  font-style: italic;
}

/* Chord Display */
.chord-display {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Chord Summary Panel */


/* Auto-scroll Controls */
.auto-scroll-controls {
  position: fixed;
  top: 90px;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  flex-direction: row;
  width: fit-content;
}

.auto-scroll-btn {
  background: rgba(30, 30, 30, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auto-scroll-btn:hover {
  background: rgba(40, 40, 40, 0.9);
  color: #ffffff;
  transform: scale(1.05);
}

.auto-scroll-btn.active {
  background: rgba(0, 144, 69, 0.9);
  color: #ffffff;
  border-color: rgba(0, 144, 69, 0.5);
}

.auto-scroll-btn.active:hover {
  background: rgba(0, 144, 69, 1);
}

.auto-scroll-btn i {
  font-size: 1rem;
}

/* Sync Controls */
.sync-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.25rem 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateX(-10px);
  order: 1;
}

.auto-scroll-btn {
  order: 2;
}

/* Show sync controls when auto-scroll is active */
.auto-scroll-btn.active ~ .sync-controls {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Hide sync controls when auto-scroll is not active */
.auto-scroll-btn:not(.active) ~ .sync-controls {
  display: none;
}

.sync-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sync-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sync-btn.reset {
  color: #ff6b6b;
}

.sync-btn.reset:hover {
  background: rgba(255, 107, 107, 0.2);
}

.sync-btn i {
  font-size: 0.75rem;
}

.sync-offset {
  font-size: 0.75rem;
  font-weight: 500;
  color: #e0e0e0;
  min-width: 28px;
  text-align: center;
}

/* Show auto-scroll controls when chords are loaded */
.chord-display:not(:has(.welcome-message)) .auto-scroll-controls {
  opacity: 1;
  visibility: visible;
}

.chords-content {
  padding: 1rem 2rem 2rem 2rem;
  min-height: 400px;
  font-family: 'Roboto Mono', monospace;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: #e0e0e0;
  width: 100%;
}





/* Welcome Message */
.welcome-message {
  text-align: left;
  padding: 3rem 2rem;
  max-width: none;
  margin: 0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

.welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(0, 144, 69, 0.1);
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 144, 69, 0.2);
}

.welcome-icon i {
  color: #1ed760;
  opacity: 0.9;
  font-size: 2.5rem;
}

.welcome-message h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.welcome-message p {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  opacity: 0.7;
  margin: 0 0 3rem 0;
  color: #b3b3b3;
  line-height: 1.6;
  max-width: 500px;
  white-space: nowrap;
}

.welcome-status {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  width: 100%;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-radius: 0;
  background: none;
  border: none;
  transition: none;
}

.status-item i {
  font-size: 1rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-item.completed i {
  color: #1ed760;
}

.status-item.waiting i {
  color: #ffc107;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-item span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #b3b3b3;
  flex: 1;
}

.status-item span #welcomeProfileName {
  color: #1ed760;
  font-weight: 500;
}

/* No Chords Found Message */
.no-chords-simple {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.no-chords-simple svg {
  opacity: 0.6;
}

.no-chords-simple p {
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #10B981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay p {
  font-size: 0.9rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Notifications */
.notification {
  position: fixed;
  bottom: 100px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.show {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}

.notification.error {
  background: rgba(220, 53, 69, 0.8);
  border-color: rgba(220, 53, 69, 0.5);
}

.notification.success {
  background: rgba(40, 167, 69, 0.8);
  border-color: rgba(40, 167, 69, 0.5);
}

.close-btn {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
}

.close-btn:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-header {
    padding: 0.5rem;
    height: 60px;
  }

  .app-title h1 {
    font-size: 1.2rem;
  }

  .profile-name {
    display: none;
  }

  .control-bar {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    height: 64px;
  }

  .player-info {
    max-width: 180px;
    gap: 0.5rem;
  }

  .album-art-container {
    width: 36px;
    height: 36px;
    border-radius: 4px;
  }

  .track-title {
    font-size: 0.8rem;
  }

  .track-artist {
    font-size: 0.7rem;
  }

  .center-controls {
    gap: 0.4rem;
  }

  .playback-controls {
    gap: 0.4rem;
  }
  
  .control-btn {
    width: 28px;
    height: 28px;
  }

  .control-btn svg {
    width: 14px;
    height: 14px;
  }

  .prev-btn svg,
  .next-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .play-btn {
    width: 28px;
    height: 28px;
    margin: 0 0.2rem;
  }
  
  .play-btn svg {
    width: 14px;
    height: 14px;
  }

  .timeline-control {
    gap: 0.5rem;
  }
  
  .timeline-container {
    height: 14px;
  }

  .timeline-slider {
    height: 3px;
  }

  .timeline-slider::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3.5px;
  }

  .timeline-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
  }

  .time-label {
    font-size: 0.625rem;
    min-width: 28px;
  }

  .volume-section {
    gap: 0.4rem;
  }

  .volume-control {
    gap: 0.4rem;
  }

  .volume-btn,
  .fullscreen-btn {
    width: 28px;
    height: 28px;
  }

  .volume-btn svg,
  .fullscreen-btn svg {
    width: 14px;
    height: 14px;
  }

  .volume-slider-container {
    width: 60px;
    height: 14px;
  }

  .volume-slider {
    height: 3px;
  }

  .volume-slider::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    z-index: 2;
    position: relative;
  }

  .volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    z-index: 2;
    position: relative;
  }

  .volume-progress {
    height: 3px;
  }

  .content {
    flex-direction: column;
    height: calc(100vh - 124px); /* 60px top + 64px bottom */
  }

  .chord-summary {
    display: none;
  }

  .chord-versions {
    width: 100%;
    height: auto;
    max-height: 140px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
  }

  .chord-versions.collapsed {
    width: 100%;
    height: 60px;
  }

  .toggle-sidebar-btn {
    position: sticky;
    top: 0;
    width: 100%;
    height: 40px;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 30, 30, 0.95);
  }

  .toggle-sidebar-btn:hover {
    background: rgba(40, 40, 40, 0.95);
  }

  .toggle-sidebar-btn i {
    font-size: 0.8rem;
  }

  .chord-list {
    padding: 0.75rem;
    max-height: 100px;
    overflow-y: auto;
  }

  .welcome-message {
    padding: 2rem 1.5rem;
    align-items: flex-start;
  }

  .welcome-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .welcome-icon i {
    font-size: 2rem;
  }

  .welcome-message h2 {
    font-size: 1.75rem;
  }

  .welcome-message p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .welcome-status {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .status-item {
    padding: 0.25rem 0;
    gap: 0.75rem;
  }

  .status-item i {
    font-size: 1rem;
    width: 16px;
    height: 16px;
  }

  .status-item span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .top-header {
    padding: 0.5rem;
    height: 50px;
  }

  .app-logo {
    height: 40px;
    width: auto;
  }

  .app-title h1 {
    font-size: 1rem;
  }

  .control-bar {
    padding: 0.5rem;
    height: 60px;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0.5rem;
  }

  .player-info {
    max-width: 140px;
    gap: 0.4rem;
  }

  .album-art-container {
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }

  .track-title {
    font-size: 0.75rem;
  }

  .track-artist {
    font-size: 0.65rem;
  }

  .center-controls {
    gap: 0.3rem;
  }

  .playback-controls {
    gap: 0.3rem;
  }
  
  .control-btn {
    width: 26px;
    height: 26px;
  }

  .control-btn svg {
    width: 12px;
    height: 12px;
  }

  .prev-btn svg,
  .next-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .play-btn {
    width: 26px;
    height: 26px;
    margin: 0 0.1rem;
  }
  
  .play-btn svg {
    width: 12px;
    height: 12px;
  }

  .timeline-control {
    gap: 0.4rem;
  }

  .timeline-container {
    height: 12px;
  }

  .timeline-slider {
    height: 3px;
  }

  .timeline-slider::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3.5px;
  }

  .timeline-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
  }

  .time-label {
    font-size: 0.6rem;
    min-width: 26px;
  }

  .volume-section {
    gap: 0.3rem;
  }

  .volume-control {
    gap: 0.3rem;
  }

  .volume-btn,
  .fullscreen-btn {
    width: 26px;
    height: 26px;
  }

  .volume-btn svg,
  .fullscreen-btn svg {
    width: 12px;
    height: 12px;
  }

  .volume-slider-container {
    width: 50px;
    height: 12px;
  }

  .volume-slider {
    height: 3px;
  }

  .volume-slider::-webkit-slider-thumb {
    width: 8px;
    height: 8px;
    z-index: 2;
    position: relative;
  }

  .volume-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    z-index: 2;
    position: relative;
  }

  .volume-progress {
    height: 3px;
  }

  .content {
    height: calc(100vh - 110px); /* 50px top + 60px bottom */
  }

  .chord-summary {
    display: none;
  }

  .chord-versions {
    order: 1;
    width: 100%;
    height: auto;
    max-height: 120px;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .toggle-sidebar-btn {
    position: sticky;
    top: 0;
    width: 100%;
    height: 35px;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    background: rgba(30, 30, 30, 0.95);
  }

  .toggle-sidebar-btn:hover {
    background: rgba(40, 40, 40, 0.95);
  }

  .toggle-sidebar-btn i {
    font-size: 0.8rem;
  }

  .chord-list {
    padding: 0.5rem;
    max-height: 85px;
    overflow-y: auto;
  }

  .chord-display {
    order: 2;
    padding: 0;
    align-items: flex-start;
  }

  .auto-scroll-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
  }

  .auto-scroll-btn i {
    font-size: 0.75rem;
  }

  .auto-scroll-controls {
    position: fixed;
    top: 70px;
    right: 0.5rem;
    flex-direction: row;
    gap: 0.25rem;
    width: fit-content;
    z-index: 20;
  }

  .sync-controls {
    padding: 0.15rem 0.3rem;
    border-radius: 12px;
    transform: translateX(-5px);
  }

  .sync-btn {
    width: 20px;
    height: 20px;
  }

  .sync-btn i {
    font-size: 0.6rem;
  }

  .sync-offset {
    font-size: 0.6rem;
    min-width: 20px;
  }

  .chords-content {
    padding: 0.5rem 1rem 1rem 1rem;
    font-size: 0.85rem;
  }

  .login-content {
    padding: 2rem;
  }

  .login-title {
    font-size: 2rem;
  }

  .notification {
    bottom: 80px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .profile-dropdown {
    right: -10px;
    left: 10px;
    min-width: auto;
  }

  .welcome-message {
    padding: 1.5rem 1rem;
  }

  .welcome-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .welcome-icon i {
    font-size: 2rem;
  }

  .welcome-message h2 {
    font-size: 1.5rem;
  }

  .auto-scroll-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
  }

  .auto-scroll-btn i {
    font-size: 0.75rem;
  }

  .chords-content {
    padding: 0.5rem 1rem 1rem 1rem;
    font-size: 0.85rem;
  }

  .login-content {
    padding: 2rem;
  }

  .login-title {
    font-size: 2rem;
  }

  .notification {
    bottom: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .profile-dropdown {
    right: -10px;
    left: 10px;
    min-width: auto;
  }

  .welcome-message {
    padding: 1.5rem 1rem;
  }

  .welcome-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .welcome-icon i {
    font-size: 2rem;
  }

  .welcome-message h2 {
    font-size: 1.5rem;
  }

  .welcome-message p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .welcome-steps {
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
  }

  .step {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    min-width: auto;
  }

  .step i {
    font-size: 1.1rem;
  }

  .step span {
    font-size: 0.8rem;
    white-space: normal;
  }

  .no-chords-simple {
    padding: 1.5rem 1rem;
  }
}

/* Hide/Show states */
#login,
#loggedin {
  display: none;
}

#login.show {
  display: flex;
}

#loggedin.show {
  display: block;
}


