/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS files
 * in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Global Layout Styles (not theme-specific) */
* {
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Container adjustments */
.container-fluid {
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container-fluid {
    padding: 0 1rem;
  }
}

/* Utility classes that work across themes */
.text-white { color: white !important; }
.text-light { color: var(--text-primary) !important; }

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* HTMX Loading Indicators */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: block;
}

.htmx-request.htmx-indicator {
  display: block;
}

/* Autocomplete styling */
.list-group-item-action {
  cursor: pointer;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: var(--secondary-bg);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.list-group-item-action:hover {
  background: var(--accent-color);
  color: var(--text-inverse);
  transform: translateX(5px);
}

.list-group-item-action:last-child {
  border-bottom: none;
}

/* Universal Pagination Button Styling */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  margin: 0;
  border: 1px solid var(--border-color, #dee2e6);
  background: var(--secondary-bg, #f8f9fa);
  color: var(--text-primary, #495057);
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination .page-link:hover {
  background: var(--accent-color, #007bff);
  color: var(--text-inverse, #ffffff);
  border-color: var(--accent-color, #007bff);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.pagination .page-item.active .page-link {
  background: var(--accent-color, #007bff);
  color: var(--text-inverse, #ffffff);
  border-color: var(--accent-color, #007bff);
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  background: var(--disabled-bg, #e9ecef);
  color: var(--text-muted, #6c757d);
  border-color: var(--border-color, #dee2e6);
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
  background: var(--disabled-bg, #e9ecef);
  color: var(--text-muted, #6c757d);
  border-color: var(--border-color, #dee2e6);
  transform: none;
  box-shadow: none;
}

/* Specific styling for navigation arrows */
.pagination .page-link[aria-label="Previous"],
.pagination .page-link[aria-label="Next"] {
  font-weight: 600;
  min-width: 3rem;
}

.pagination .page-link[aria-label="First"],
.pagination .page-link[aria-label="Last"] {
  font-weight: 600;
  min-width: 3rem;
}

/* Ellipsis styling */
.pagination .page-item .page-link:contains("…") {
  background: transparent;
  border: none;
  cursor: default;
  min-width: 2rem;
}

.pagination .page-item .page-link:contains("…"):hover {
  background: transparent;
  color: var(--text-muted, #6c757d);
  transform: none;
  box-shadow: none;
}

/* Search results container */
#album_results, #genre_results, #artist_results {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--secondary-bg);
  z-index: 1000;
  position: relative;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* Music-themed animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations to cards */
.card {
  animation: fadeInUp 0.6s ease-out;
}

/* Stats cards with gradient backgrounds */
.stats-card {
  border: none;
}

.stats-card .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Genre badges with custom colors */
.badge[style*="background-color"] {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced genre badge styling */
.genre-badge {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 60px;
  text-align: center;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  line-height: 1;
  border-radius: 0.375rem;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
}

/* Focus states for accessibility */
.btn:focus, .form-control:focus, .form-select:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Custom song table styling */
.song-table tr:hover {
  transform: scale(1.01);
}

/* Music note icon for the brand */
.navbar-brand::before {
  content: "♪ ";
  margin-right: 0.5rem;
  font-size: 1.2em;
}

/* Enhanced Navigation Styling */
.navbar {
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo and Brand Area */
.navbar-brand-container {
  display: flex;
  align-items: center;
  margin-right: 2rem;
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.archive-stats {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.completed-count {
  font-weight: 600;
  color: var(--accent-color);
}

.stats-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Logo Area */
.logo-area {
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
}

.logo-area img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Navigation Buttons */
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 0 0.25rem;
}

.nav-btn:hover {
  background: rgba(79, 70, 229, 0.1);
  border-color: var(--accent-color);
  color: var(--text-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-inverse) !important;
  border-color: var(--accent-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* User Profile Styling */
.user-profile-container {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.user-avatar-link {
  text-decoration: none;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-dropdown-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.user-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Dropdown Menu Styling */
.dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0.125rem;
}

.dropdown-item:hover {
  background: var(--accent-color);
  color: var(--text-inverse);
  transform: translateX(5px);
}

.dropdown-item.text-danger:hover {
  background: #dc2626;
}

.dropdown-divider {
  border-color: var(--border-color);
  margin: 0.5rem 0;
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .navbar-brand-container {
    margin-right: 1rem;
  }
  
  .brand-info {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  
  .archive-stats {
    display: none;
  }
  
  .navbar-nav.me-auto {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
  }
  
  .navbar-nav.me-auto::-webkit-scrollbar {
    height: 4px;
  }
  
  .navbar-nav.me-auto::-webkit-scrollbar-track {
    background: #1a1a2e;
  }
  
  .navbar-nav.me-auto::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 2px;
  }
  
  .nav-btn {
    min-width: 65px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin: 0 0.1rem;
    flex-shrink: 0;
  }
  
  .user-info {
    padding: 0.3rem 0.6rem;
  }
  
  .user-name {
    font-size: 0.8rem;
  }
  
  .avatar-placeholder {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .nav-btn {
    min-width: 60px;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
  
  .user-name {
    display: none;
  }
  
  .user-info {
    padding: 0.25rem 0.5rem;
  }
}

/* Enhanced focus states */
.nav-btn:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.user-dropdown-btn:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Active state for current page */
.nav-btn.active,
.nav-btn[href*="<%= request.path %>"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  border-color: #4f46e5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Gradient text for headings */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Music-themed decorative elements */
.music-wave {
  position: relative;
  overflow: hidden;
}

.music-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Enhanced card styling for music items */
.music-card {
  position: relative;
  overflow: hidden;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.music-card:hover::before {
  transform: scaleX(1);
}

/* Stats cards with music theme */
.stats-card::before {
  content: '♪';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 4rem;
  opacity: 0.1;
  transform: rotate(15deg);
}

/* Enhanced table styling */
.table-hover tbody tr:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

/* Custom button styles */
.btn-music {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-music::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-music:hover::before {
  left: 0;
}

/* Enhanced form styling */
.form-control:focus {
  transform: translateY(-1px);
}

/* Custom alert styling */
.alert {
  border: none;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.alert-success {
  border-left: 4px solid #10b981;
}

.alert-warning {
  border-left: 4px solid #f59e0b;
}

.alert-danger {
  border-left: 4px solid #ef4444;
}

.alert-info {
  border-left: 4px solid #3b82f6;
}

/* Enhanced pagination */
.pagination .page-link {
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  transform: translateY(-1px);
}

/* Loading animation for music */
.music-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #4f46e5;
  border-radius: 50%;
  border-top-color: transparent;
  animation: music-spin 1s linear infinite;
}

@keyframes music-spin {
  to { transform: rotate(360deg); }
}

/* Enhanced search results */
.search-highlight {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  font-weight: 600;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  /* Enhanced mobile table scrolling */
  @media (max-width: 767.98px) {
    .table-responsive {
      margin-bottom: 0.75rem;
      min-height: 0.01%; /* Workaround for IE9 bug */
    }
    
    .table-responsive table {
      min-width: 600px; /* Ensure minimum width for proper column spacing */
    }
    
    /* Ensure action buttons are always accessible */
    .table-responsive .btn-group,
    .table-responsive .btn {
      white-space: nowrap;
    }
    
    /* Improve touch targets on mobile */
    .table-responsive .btn-sm {
      min-width: 44px;
      min-height: 44px;
      padding: 0.5rem;
    }
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* Combined theme.css for archive and jukebox                        */
/* Put in both places:                                               */
/* archive2/archive/app/assets/stylesheets/theme.css                 */
/* and                                                               */
/* archive2/jukebox/app/assets/stylesheets/theme.css.bak             */
/*                                                                   */
/* I would use a soft link but it might break in git                 */
/* or differing operating systems                                    */
                                                                     
                                                                     
/* Fallback for when no theme is set                                 */
:root {
/* Use default theme colors as fallback                      archive */
  --primary-bg: #0f0f23;
  --secondary-bg: #1a1a2e;
  --accent-color: #4f46e5;
  --accent-hover: #6366f1;                       
  --accent-active: #3730a3;                      
  --text-primary: #f8fafc;                       
  --text-secondary: #cbd5e1;                     
  --text-muted: #64748b;                         
  --text-inverse: #ffffff;                       
  --border-color: #334155;                       
  --shadow-color: rgba(0, 0, 0, 0.1);            
  --overlay-color: rgba(0, 0, 0, 0.5);           
  --success-color: #10b981;                      
  --warning-color: #f59e0b;                      
  --danger-color: #ef4444;                       
  --button-bg: #374151;                          
  --button-hover: #4b5563;                       
  --button-active: #1f2937;                      
  --highlight-color: #3b82f6;                    
  --link-color: #60a5fa;                         
  --link-hover: #93c5fd;                         
  
/* New theme-exposed text vars                               archive */
  --heading-color: var(--text-primary);
  --card-header-text: var(--text-primary);
  
/* Spacing and Layout Variables                                      */
  --spacing-xs: 0.25rem;                                     /* BOTH */
  --spacing-sm: 0.5rem;                                      /* BOTH */
  --spacing-md: 1rem;                                        /* BOTH */
  --spacing-lg: 1.5rem;                                      /* BOTH */
  --spacing-xl: 2rem;                                        /* BOTH */
                                                             /* BOTH */
  --radius-sm: 0.25rem;                                      /* BOTH */
  --radius-md: 0.5rem;                                       /* BOTH */
  --radius-lg: 0.75rem;                                      /* BOTH */
  --radius-xl: 1rem;                                         /* BOTH */
                                                             /* BOTH */
  --shadow-sm: 0 1px 2px 0 var(--shadow-color);              /* BOTH */
  --shadow-md: 0 4px 6px -1px var(--shadow-color);           /* BOTH */
  --shadow-lg: 0 10px 15px -3px var(--shadow-color);         /* BOTH */
  
}

/* Default Theme CSS - Database-Driven Variables             archive */
[data-theme="default"] {
  /* 21 Core Color Variables (Database-Driven)               archive */
  --primary-bg: #0f0f23;
  --secondary-bg: #1a1a2e;
  --accent-color: #4f46e5;
  --accent-hover: #6366f1;
  --accent-active: #3730a3;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --overlay-color: rgba(0, 0, 0, 0.5);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --button-bg: #374151;
  --button-hover: #4b5563;
  --button-active: #1f2937;
  --highlight-color: #3b82f6;
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  /* New theme-exposed text vars */
  --heading-color: var(--text-primary);
  --card-header-text: var(--text-primary);
}
/*                                                           archive */

/* small screen helper */
@media screen and (max-width: 768px) {
	.hide-on-narrow {
		display: none;
	}
}



/* Theme-aware utility classes                                  BOTH */
.theme-text-primary { color: var(--text-primary) !important; }
.theme-text-secondary { color: var(--text-secondary) !important; }
.theme-text-muted { color: var(--text-muted) !important; }
.theme-text-inverse { color: var(--text-inverse) !important; }
/*                                                                   */

/* Map common utility classes to theme colors                   BOTH */
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger  { color: var(--danger-color) !important; }

/* Force theme colors on specific song elements              jukebox */
.song-title { color: var(--text-primary) !important; }
.song-artist { color: var(--text-secondary) !important; }
.song-album { color: var(--text-muted) !important; }
.song-duration { color: var(--text-secondary) !important; }

/* Override any table cell text colors that might be interfering     */
/*                                                           jukebox */
td.theme-text-primary, 
td .theme-text-primary,
span.theme-text-primary { 
  color: var(--text-primary) !important; 
}

/*                                                           jukebox */
td.theme-text-secondary, 
td .theme-text-secondary,
span.theme-text-secondary { 
  color: var(--text-secondary) !important; 
}

/*                                                           jukebox */
td.theme-text-muted, 
td .theme-text-muted,
span.theme-text-muted { 
  color: var(--text-muted) !important; 
}


/* Link utilities                 longer definition in jukebox  BOTH */
/*                                    but class definitions in  BOTH */
.btn-link { 
	color: var(--link-color);          /*   !important    in jukebox */
	/* text-decoration: none !important;                     jukebox */
}
.btn-link:hover, .btn-link:focus {
	 color: var(--link-hover);         /*   !important    in jukebox */
     /* text-decoration: none !important;                    jukebox */
 }

/* Song partial - simple readable colors                     jukebox */
 .song-title.btn-link,
 .btn.btn-link.song-title,
 button.btn.btn-link.song-title {
   color: #93c5fd !important;  /* Use the lighter blue as default */
   padding: 0 !important;
   border: none !important;
   background: none !important;
   text-align: left !important;
   text-decoration: none !important;
   box-shadow: none !important;
   outline: none !important;
 }

/*                                                           jukebox */
 .song-title.btn-link:hover,
 .btn.btn-link.song-title:hover,
 button.btn.btn-link.song-title:hover,
 .song-title.btn-link:focus,
 .btn.btn-link.song-title:focus,
 button.btn.btn-link.song-title:focus,
 .song-title.btn-link:active,
 .btn.btn-link.song-title:active,
 button.btn.btn-link.song-title:active {
   color: #60a5fa !important;  /* Darker blue on hover */
   text-decoration: none !important;
   background: none !important;
   border: none !important;
   box-shadow: none !important;
   outline: none !important;
 }
/*                                                           jukebox */

/*                                                           jukebox */
/* Song list link styling                                    jukebox */
 .song-artist a, .song-album a {
   color: #60a5fa !important;  /*                 Blue links jukebox */
 }

/*                                                           jukebox */
 .song-artist a:hover, .song-album a:hover {
   color: #93c5fd !important;  /*     Lighter blue on hover  jukebox */
 }

/*                                                           jukebox */
/* Song fallback text - simple dark colors                           */
 .song-title:not(.btn-link), 
 .song-artist:not(:has(a)), 
 .song-album:not(:has(a)),
 .song-genre:not(:has(.badge)),
 .song-duration {
/*                Dark gray - readable on light backgrounds  jukebox */
	    color: #1f2937 !important;  
 }

/*                                                           jukebox */
/* Force readable colors on song elements                    jukebox */
 tr[data-song-id] .song-title:not(.btn-link) {
   color: #1f2937 !important;  /* Dark text for non-links    jukebox */
 }

/*                                                           jukebox */
 tr[data-song-id] .song-artist:not(:has(a)),
 tr[data-song-id] .song-album:not(:has(a)),
 tr[data-song-id] .song-duration {
   color: #1f2937 !important;  /*    Dark text for readable content  */
 }
/*                                                           jukebox */


/* Navbar styling                                               BOTH */
.navbar {
  background: linear-gradient(135deg, 
    var(--primary-bg) 0%, 
    var(--secondary-bg) 100%);
  box-shadow: var(--shadow-md);
}


/* Navbar links                                                 BOTH */
.navbar .nav-link, .navbar .navbar-brand { 
	color: var(--text-primary) !important; 
}
.navbar .nav-link:hover, .navbar .nav-link:focus { 
	color: var(--link-hover) !important; 
}
/*                                                              BOTH */

/* Global heading color controlled by theme                     BOTH */
h1, h2, h3, h4, h5, h6 { 
	color: var(--heading-color); 
}
/*                                                              BOTH */

/*                                                              BOTH */
.theme-bg-primary { 
	background-color: var(--primary-bg) !important; 
}
.theme-bg-secondary { 
	background-color: var(--secondary-bg) !important; 
}

.theme-border { 
	border-color: var(--border-color) !important; 
}

.theme-shadow-sm { 
	box-shadow: var(--shadow-sm) !important; 
}
.theme-shadow-md { 
	box-shadow: var(--shadow-md) !important; 
}
.theme-shadow-lg { 
	box-shadow: var(--shadow-lg) !important; 
}
/*                                                              BOTH */

/* Form elements                                                BOTH */
.theme-form-label { color: var(--text-primary); font-weight: 500; }
.theme-form-help { color: var(--text-muted); font-size: 0.875rem; }
/*                                                              BOTH */
 
/* Card styling                                                 BOTH */
.theme-card-content { 
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
/*                                                              BOTH */

/* Button styling                                               BOTH */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-inverse);
}

.btn-primary:active {
  background-color: var(--accent-active);
  border-color: var(--accent-active);
  color: var(--text-inverse);
}
/*                                                              BOTH */


/* Card styling                                                 BOTH */
.theme-card-content { 
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.card {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  background-color: var(--primary-bg);
  border-bottom: 1px solid var(--border-color);
  color: var(--card-header-text);
}
/*                                                              BOTH */


/* Form controls                                                BOTH */
.form-control, .form-select {
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
  background-color: var(--primary-bg);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}
/*                                                              BOTH */

/* Alert styling                                                BOTH */
.alert {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--success-color);
  color: var(--success-color);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--highlight-color);
  color: var(--highlight-color);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--warning-color);
  color: var(--warning-color);
}
/*                                                              BOTH */

/* Badge styling                                                BOTH */
.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/*       removed extraneous class `.bg-success` from jukebox version */
.badge-success {
  background-color: var(--success-color);
  color: var(--text-inverse);
}

/*        removed extraneous class `.bg-danger` from jukebox version */
.badge-danger {
  background-color: var(--danger-color);
  color: var(--text-inverse);
}

/*       removed extraneous class `.bg-warning` from jukebox version */
.badge-warning {
  background-color: var(--warning-color);
  color: var(--text-inverse);
}

/*          removed extraneous class `.bg-info` from jukebox version */
.badge-info {
  background-color: var(--highlight-color);
  color: var(--text-inverse);
}
/*                                                              BOTH */

/* Dropdown styling                                             BOTH */
.dropdown-menu {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: var(--text-primary);
}

.dropdown-item:hover {
  background-color: var(--primary-bg);
  color: var(--text-primary);
}
/*                                                              BOTH */

/* Link styling                                                 BOTH */
a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover);
}

/* Body and general styling                                     BOTH */
body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
}

/* make table scroll if too wide for screen */
div.table-responsive {
	overflow-x: auto;
}

/* New Item: tr that's a direct child                                */
/* of class='song-list-table'                                        */
.song-list-table tr {
   /* display: flex;  New Item: trying Grid,                         */
/*    align-items: center;*/
    /* to vertical-center items within the grid                      */
    /* making tr the grid,                                           */
    /* and center elements within the tr.                            */
	
}

.song-list-table tr td {
	vertical-align: middle;
}

.song-list-row .song-checkbox {
	/*	background-color: blue;*/
}

.song-list-row .song-title {
	/*	background-color: green;*/
}

.song-list-row .song-artist {
	/*	background-color: red;*/
}

.song-list-row .song-album {
	/*	background-color: yellow;*/
}

.song-list-row .song-genre {
	/* this is the "missing genre" element */
	/*	background-color: blue;*/
}

.song-list-row .genre-badge {
	/*	background-color: blue;*/
}

.song-list-row .song-duration {
	/*	background-color: green;*/
}

.song-list-row .audio-player-container {
	/*	background-color: red;*/
	
}

/* Table styling                                                BOTH */
.table {
  background-color: var(--secondary-bg);
  color: var(--text-primary);
}

.table th {
  background-color: var(--primary-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.table td {
  border-color: var(--border-color);
  color: var(--text-primary);  /*         originally only in jukebox */
}
/*                                                              BOTH */

/*                                                           jukebox */
.table-hover tbody tr:hover {
  background-color: var(--primary-bg);
  color: var(--text-primary);
}
/*                                                           jukebox */

/* Live view table - simple readable colors                  jukebox */
#upcoming-songs-content .table td {
  color: #1f2937 !important;  /* Dark readable text */
}

/* Ensure all text is dark and readable                      jukebox */
#upcoming-songs-content .table strong,
#upcoming-songs-content .table span:not(.badge) {
  color: #1f2937 !important;  
}

/* Songs index table - fix button colors                     jukebox */
.song-list-table .song-title.btn-link,
.song-list-table .btn.btn-link.song-title,
.song-list-table button.btn.btn-link.song-title,
table.song-list-table .song-title.btn-link,
table.song-list-table .btn.btn-link.song-title,
table.song-list-table button.btn.btn-link.song-title {
  color: #93c5fd !important;  /* Light blue default */
}

.song-list-table .song-title.btn-link:hover,
.song-list-table .btn.btn-link.song-title:hover,
.song-list-table button.btn.btn-link.song-title:hover,
table.song-list-table .song-title.btn-link:hover,
table.song-list-table .btn.btn-link.song-title:hover,
table.song-list-table button.btn.btn-link.song-title:hover {
  color: #60a5fa !important;  /* Darker blue on hover */
}
/*                                                           jukebox */





/* Modal styling */
/*                                                              BOTH */
.modal-content {
  background-color: var(--secondary-bg);
  border-color: var(--border-color);
}

/*                                                              BOTH */
.modal-header {
  border-bottom-color: var(--border-color);
}

/*                                                           jukebox */
.modal-title {
  color: var(--text-primary);
}

/*                                                              BOTH */
.modal-footer {
  border-top-color: var(--border-color);
}



/* Live page specific theming                                 jukebox */
.current-song {
  text-align: center;
  margin-bottom: 2rem;
}

.current-song h3 {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.song-info {
  margin-bottom: 2rem;
}

.song-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.song-artist {
  font-size: 1.0rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.song-album {
  font-size: 1.0rem;
  color: var(--text-muted);
}

.progress-container {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.time-display span {
  font-family: monospace;
  color: var(--text-muted);
}
/*                                                           jukebox */

/* System player specific styling                            jukebox */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--secondary-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.status-label {
  font-weight: 600;
  color: var(--text-primary);
}

.status-value {
  color: var(--text-secondary);
}
/*                                                           jukebox */

/* Pagination theming                                        jukebox */
.pagination .page-link {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.pagination .page-link:hover {
  background: var(--primary-bg);
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-inverse);
}
/*                                                           jukebox */

/* Player controls theming                                   jukebox */
.player-controls .btn {
  margin: 0.25rem;
}
/*                                                           jukebox */

/* Generic text content theming                              jukebox */
p, div, span:not(.badge):not(.btn):not(.navbar-brand):not(.nav-link) {
  color: inherit;
}
/*                                                           jukebox */

/* Ensure all direct text content uses theme colors          jukebox */
.card-body, .card-text {
  color: var(--text-primary);
}
/*                                                           jukebox */

/* Now Playing card - lighter background                     jukebox */
.card .card-body .current-song {
  background-color: var(--primary-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* Song info content area - white background                 jukebox */
.current-song .song-info {
  background-color: #ffffff !important;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* Small text and descriptions                               jukebox */
small, .small {
  color: var(--text-muted) !important;
}

/* List items                                                jukebox */
li {
  color: var(--text-primary);
}

/* Strong and emphasis                                      jukebox */
strong, b {
  color: var(--text-primary);
}

em, i:not(.fas):not(.fa) {
  color: var(--text-secondary);
}
/*                                                           jukebox */

/* Nuclear option:                                           jukebox */
/* Force theme colors on song-related elements everywhere            */
tr[data-song-id] .song-title,
tr[data-song-id] .song-artist, 
tr[data-song-id] .song-album,
tr[data-song-id] .song-duration {
  color: var(--text-primary) !important;
}

tr[data-song-id] .song-artist {
  color: var(--text-secondary) !important;
}

tr[data-song-id] .song-album,
tr[data-song-id] .song-duration {
  color: var(--text-muted) !important;
}

/* Force theme colors on live view elements                  jukebox */
#upcoming-songs-content strong,
#upcoming-songs-content .theme-text-primary {
  color: var(--text-primary) !important;
}

#upcoming-songs-content .theme-text-secondary {
  color: var(--text-secondary) !important;
}

#upcoming-songs-content .theme-text-muted {
  color: var(--text-muted) !important;
}

/* Override Bootstrap text utilities completely             jukebox */
.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}
/*                                                           jukebox */



/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS files
 * in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Custom styles for the music archive */
.song-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.badge {
  font-size: 0.75em;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
} 
