/*
 * 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
 * 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 url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0b0f19;
  --panel-bg: rgba(20, 26, 45, 0.6);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-glow: rgba(99, 102, 241, 0.15);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-hover-border: rgba(99, 102, 241, 0.4);
  --danger-color: #ef4444;
  --success-color: #10b981;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Sidebar Layout */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: rgba(15, 23, 42, 0.9);
  border-right: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: width var(--transition-speed) ease, padding var(--transition-speed) ease;
}

/* Sidebar Collapsed State Rules */
.app-container.sidebar-collapsed .sidebar {
  width: 80px;
  padding: 2.5rem 0.5rem;
}

.app-container.sidebar-collapsed .logo-text,
.app-container.sidebar-collapsed .admin-badge-small,
.app-container.sidebar-collapsed .nav-text,
.app-container.sidebar-collapsed .active-user-container,
.app-container.sidebar-collapsed .theme-toggle-text {
  display: none !important;
}

.app-container.sidebar-collapsed .logo-container,
.app-container.sidebar-collapsed .theme-toggle-btn,
.app-container.sidebar-collapsed .nav-link,
.app-container.sidebar-collapsed .sidebar-toggle-btn {
  justify-content: center !important;
}

.app-container.sidebar-collapsed .sidebar-toggle-btn,
.app-container.sidebar-collapsed .theme-toggle-btn,
.app-container.sidebar-collapsed .nav-link {
  padding: 0.85rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  text-decoration: none;
  min-height: 44px;
}

.app-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.app-container.sidebar-collapsed .app-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.main-content {
  margin-left: 280px;
  flex: 1;
  padding: 3rem 5rem;
  max-width: 100%;
  width: calc(100% - 280px);
  transition: margin-left var(--transition-speed) ease, width var(--transition-speed) ease;
}

.app-container.sidebar-collapsed .main-content {
  margin-left: 80px;
  width: calc(100% - 80px);
}

.main-content.main-content-full {
  max-width: none;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.btn-danger:hover {
  background-color: var(--danger-color);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Cards & Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.stat-icon-bg {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-speed) ease;
  flex-shrink: 0;
}

:root.light-theme .stat-icon-bg {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.stat-card:hover .stat-icon-bg {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* Dashboard Section Layout */
.dashboard-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.section-box {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.section-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Glassmorphic Form Card */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.glass-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background-color: rgba(15, 23, 42, 0.8);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

/* View Toggle Control */
.view-toggle-group {
  display: inline-flex;
  background-color: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.view-toggle-btn.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.view-toggle-btn:hover:not(.active) {
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.media-card-cover-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Glassy Search Header */
.search-container {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.search-container:focus-within {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 25px var(--accent-glow);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon-placeholder {
  position: absolute;
  left: 0.85rem;
  opacity: 0.5;
  pointer-events: none;
  font-size: 0.95rem;
}

.search-input {
  padding-left: 2.35rem !important;
}

/* Item List / Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Catalog Grid View Modes */
.catalog-grid.grid-simple {
  grid-template-columns: repeat(auto-fill, minmax(var(--simple-card-size, 180px), 1fr));
  gap: 2rem 1.5rem;
}

.catalog-grid.grid-simple .media-card {
  box-shadow: none;
  background: transparent;
  border: none;
  overflow: visible;
}

.catalog-grid.grid-simple .media-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.catalog-grid.grid-simple .media-card-cover-container {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius);
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.catalog-grid.grid-simple .media-card:hover .media-card-cover-container {
  border-color: var(--card-hover-border);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.catalog-grid.grid-simple .media-card-content {
  padding: 0.75rem 0.25rem 0 0.25rem;
}

.catalog-grid.grid-simple .media-card-header {
  margin-bottom: 0;
}

.catalog-grid.grid-simple .media-badge,
.catalog-grid.grid-simple .media-meta,
.catalog-grid.grid-simple .media-actions {
  display: none !important;
}

.catalog-grid.grid-simple .media-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.catalog-grid.grid-simple .media-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.media-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 25px var(--accent-glow);
}

.media-card-cover-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
  position: relative;
}

.media-card-cover-wrapper {
  position: relative;
  width: 100%;
}

.media-card-edit-overlay {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 1.85rem;
  height: 1.85rem;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.edit-icon-svg {
  width: 0.9rem;
  height: 0.9rem;
}

.media-card-cover-wrapper:hover .media-card-edit-overlay {
  opacity: 1;
  visibility: visible;
}

.media-card-edit-overlay:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}



.media-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.media-card:hover .media-card-cover {
  transform: scale(1.06) rotate(1deg);
}

.media-catalog-number {
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card-cover-placeholder {
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.media-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.media-card-header {
  margin-bottom: 1rem;
}

.media-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  margin-bottom: 0.75rem;
}

.media-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.media-artist {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.media-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.media-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Spec Sheet for Show View */
.media-detail-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: -1rem;
}

.media-detail-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.4);
  opacity: 0.45;
  z-index: 1;
  transform: scale(1.1);
  pointer-events: none;
}

:root.light-theme .media-detail-backdrop {
  filter: blur(40px) brightness(1.2);
  opacity: 0.15;
}

.media-detail-content-wrapper {
  position: relative;
  z-index: 2;
}

.media-detail-header {
  margin-bottom: 2rem;
}

.detail-badge {
  margin-bottom: 0.5rem;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.75px;
}

.detail-subtitle {
  font-size: 1.15rem;
  margin-top: 0.25rem;
}

.media-detail-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.spec-card-premium {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.spec-card-cover-side {
  flex-shrink: 0;
  width: 280px;
}

.detail-cover-wrapper {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--panel-border);
  aspect-ratio: 1 / 1;
}

.detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-speed) ease;
}

.detail-cover-wrapper:hover .detail-cover {
  transform: scale(1.03);
}

.detail-cover-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius);
  border: 1px solid var(--panel-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.detail-cover-placeholder .placeholder-icon {
  font-size: 5rem;
  opacity: 0.35;
}

.spec-card-info-side {
  flex: 1;
  min-width: 300px;
}

.spec-card-info-side .spec-header {
  margin-top: 0;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.spec-card-info-side .spec-header h2 {
  font-size: 1.4rem;
  color: #a5b4fc;
  font-weight: 600;
  letter-spacing: -0.25px;
}

.spec-card-info-side .spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
}

.highlight-value {
  color: #c7d2fe;
}

.code-value {
  font-family: monospace;
}

.spec-card-info-side .spec-notes {
  border-top: 1px solid var(--panel-border);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

.spec-card-info-side .spec-notes h3 {
  font-size: 1.1rem;
  color: #a5b4fc;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.collector-notes-content {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent-primary);
}

.notes-quote-mark {
  position: absolute;
  left: 0.25rem;
  top: -0.75rem;
  font-size: 2.5rem;
  color: var(--accent-primary);
  opacity: 0.2;
  font-family: serif;
}

.collector-notes-content p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.spec-header {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.spec-notes {
  border-top: 1px solid var(--panel-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Table styling for simple lists */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.custom-table th, .custom-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.custom-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Notifications / Alerts */
.flash-message {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flash-notice {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.flash-alert {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.error-messages {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fca5a5;
}

.error-messages h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.error-messages ul {
  list-style-position: inside;
  font-size: 0.9rem;
}

/* Dashboard List */
.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.dashboard-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.dashboard-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-item:hover::before {
  opacity: 1;
}

.dashboard-item-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.dashboard-item-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--panel-border);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-speed) ease;
}

.dashboard-item:hover .dashboard-item-cover {
  transform: scale(1.08) rotate(-2deg);
}

.dashboard-item-cover-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dashboard-item-cover-placeholder span {
  font-size: 1.15rem;
  opacity: 0.5;
}

.dashboard-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-item-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.dashboard-item-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.format-count-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.format-progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.format-progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

:root.light-theme .format-progress-bar-bg {
  background-color: rgba(0, 0, 0, 0.06);
}

:root.light-theme .dashboard-item:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Active User Selector */
.active-user-container {
  margin-top: auto;
  padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  border-top: 1px solid var(--panel-border);
}

.active-user-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.active-user-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.active-user-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.active-user-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0.7;
}

.active-user-select {
  width: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all var(--transition-speed) ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.active-user-select:hover {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(99, 102, 241, 0.3);
}

.active-user-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

:root.light-theme .active-user-select {
  background-color: rgba(255, 255, 255, 0.8);
  color: #0f172a;
}
:root.light-theme .active-user-select:hover {
  background-color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-container {
  padding-top: 0.5rem;
  border-top: none;
}

.theme-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: left;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

:root.light-theme .theme-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Light Theme Variables & Overrides */
:root.light-theme {
  --bg-color: #f8fafc;
  --panel-bg: rgba(255, 255, 255, 0.8);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-bg: rgba(241, 245, 249, 0.9);
  --card-hover-border: rgba(99, 102, 241, 0.5);
  --accent-glow: rgba(99, 102, 241, 0.08);
}

:root.light-theme body {
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
}

:root.light-theme .sidebar {
  background-color: rgba(248, 250, 252, 0.95);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

:root.light-theme .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

:root.light-theme .nav-link.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
}

:root.light-theme .dashboard-item {
  background-color: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

:root.light-theme .dashboard-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

:root.light-theme .custom-table tr:hover td {
  background-color: rgba(0, 0, 0, 0.015);
}

:root.light-theme .form-control {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

:root.light-theme .form-control:focus {
  background-color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

:root.light-theme .btn-secondary {
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

:root.light-theme .btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Submission Progress Modal styles */
.submit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.submit-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.submit-modal-content {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
}

.submit-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
}

.submit-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.submit-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.submit-steps-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
}

.submit-steps-list li.step-active {
  color: var(--text-main);
  font-weight: 600;
  transform: translateX(4px);
}

.submit-steps-list li.step-complete {
  color: var(--success-color);
  font-weight: 500;
}

.submit-steps-list li.step-skipped {
  color: var(--text-muted);
  opacity: 0.5;
  text-decoration: line-through;
}

.submit-modal-header .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: submit-spin 1s infinite linear;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-weight: bold;
}

.step-icon.spinning {
  animation: submit-spin 1.5s infinite linear;
}

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

.btn.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

/* Autofill highlight animation */
@keyframes highlight-flash {
  0% {
    background-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  }
  100% {
    background-color: rgba(15, 23, 42, 0.6);
    box-shadow: none;
  }
}

.highlight-autofill {
  animation: highlight-flash 1.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Action Button (FAB) */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.fab-btn.active {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.fab-menu {
  position: absolute;
  bottom: 75px;
  right: 0px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-menu.active {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.fab-menu-item {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
  width: auto;
}

.fab-menu-item:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateX(-4px) scale(1.03);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--panel-border);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--panel-bg);
  z-index: 10;
  backdrop-filter: blur(12px);
}

.modal-header h2 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

/* Hybrid Search Results */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-result-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.search-result-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.search-result-cover {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--panel-border);
  background-color: #0f172a;
  flex-shrink: 0;
}

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

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.search-result-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.15rem;
}

.source-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.source-badge.local {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.source-badge.online {
  background-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.source-badge.mb {
  background-color: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Glassy Form Controls */
.form-control[type="file"] {
  padding: 0.6rem 0.85rem;
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px dashed var(--panel-border);
  cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
  background: var(--accent-gradient);
  border: none;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  margin-right: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.form-control[type="file"]:hover::file-selector-button {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Quick Barcode Box */
.quick-barcode-box {
  margin-bottom: 2.5rem;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.03);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.quick-barcode-box:focus-within {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.quick-barcode-title {
  font-size: 1.1rem;
  margin-top: 0;
  color: #a5b4fc;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cover Image Preview */
.cover-preview-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.cover-preview-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.cover-preview-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal Footer */
.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background-color: var(--panel-bg);
  position: sticky;
  bottom: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

/* Custom Checkbox for Multi-Select Search */
.custom-checkbox-wrapper {
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
}

.custom-checkbox-wrapper:hover .custom-checkbox-input ~ .custom-checkbox-checkmark {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
}

.custom-checkbox-input:checked ~ .custom-checkbox-checkmark {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.custom-checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox-input:checked ~ .custom-checkbox-checkmark:after {
  display: block;
}

.custom-checkbox-wrapper .custom-checkbox-checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

:root.light-theme .custom-checkbox-checkmark {
  background-color: rgba(0, 0, 0, 0.03);
}

:root.light-theme .modal-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Button Glow class */
.btn-glow {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  animation: glow-pulse 2s infinite ease-in-out;
}

@keyframes glow-pulse {
  0% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
  100% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.3); }
}

/* Size Slider Control */
.size-slider-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

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

.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
  transition: transform 0.2s ease;
}

.size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

:root.light-theme .size-slider {
  background: rgba(0, 0, 0, 0.08);
}

/* Bottom Tabbed Card for Media Details */
.detail-tabs-card {
  margin-top: 2rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: border-color var(--transition-speed) ease;
}

.tabs-header {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.5rem;
  background: rgba(15, 23, 42, 0.2);
  border-bottom: 1px solid var(--panel-border);
}

:root.light-theme .tabs-header {
  background: rgba(0, 0, 0, 0.02);
}

.tab-link {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 1.25rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.tab-link:hover {
  color: var(--text-color);
}

.tab-link.active {
  color: var(--primary-color, #6366f1);
}

.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.tab-panel {
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

/* Track List / Table */
.track-table-container {
  overflow-x: auto;
}

.track-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-bottom: 2rem;
}

.track-table th {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--panel-border);
  font-weight: 700;
}

.track-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  color: var(--text-color);
  vertical-align: middle;
}

:root.light-theme .track-table td {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

.track-row {
  transition: background-color 0.2s ease;
}

.track-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

:root.light-theme .track-row:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

.track-col-number {
  width: 50px;
  font-family: monospace;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.track-col-duration {
  width: 100px;
  font-family: monospace;
  color: var(--text-muted);
  text-align: right;
}

.track-col-actions {
  width: 120px;
  text-align: right;
}

.track-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.track-action-btn:hover {
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
}

:root.light-theme .track-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.track-action-btn.btn-delete:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Inline Add / Edit Form */
.track-inline-form-wrapper {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--panel-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

:root.light-theme .track-inline-form-wrapper {
  background-color: rgba(0, 0, 0, 0.01);
}

.track-inline-form-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.track-form-grid {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.track-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.track-field-number {
  width: 80px;
}

.track-field-title {
  flex: 1;
  min-width: 200px;
}

.track-field-duration {
  width: 140px;
}

.track-form-grid label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Inline Edit Swapped Form */
.track-edit-row-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.track-edit-row-field {
  display: block;
}

.track-edit-row-field.field-number {
  width: 60px;
}

.track-edit-row-field.field-title {
  flex: 1;
}

.track-edit-row-field.field-duration {
  width: 110px;
}

.track-edit-row-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  width: 130px;
}

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

/* Context Menu Dropdown on Tracks */
.track-context-menu {
  position: relative;
  display: inline-block;
}

.context-menu-trigger {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.context-menu-trigger:hover {
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
}

:root.light-theme .context-menu-trigger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.context-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  width: 140px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.35rem 0;
}

.context-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.context-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
}

:root.light-theme .context-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.context-menu-item.btn-delete {
  color: #f87171;
}

.context-menu-item.btn-delete:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.context-menu-dropdown form {
  margin: 0;
  padding: 0;
  width: 100%;
}


/* Lyrics Textarea & Modal Details */
.lyrics-textarea {
  width: 100%;
  height: 250px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  color: var(--text-color);
  resize: vertical;
  transition: border-color var(--transition-speed) ease;
}

.lyrics-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

:root.light-theme .lyrics-textarea {
  background-color: rgba(0, 0, 0, 0.015);
}


/* Artists Grid & Circular Cards for Common User */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2.5rem 2rem;
  padding: 1rem 0;
}

.artist-card {
  text-align: center;
  transition: transform var(--transition-speed) ease;
}

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

.artist-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.artist-photo-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--panel-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  position: relative;
}

.artist-card:hover .artist-photo-container {
  border-color: var(--card-hover-border);
  box-shadow: 0 12px 28px var(--accent-glow);
}

.artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.artist-card:hover .artist-photo {
  transform: scale(1.08);
}

.artist-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-photo-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.artist-card:hover .placeholder-icon {
  opacity: 0.5;
  transform: scale(1.1);
}

.artist-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  transition: color var(--transition-speed) ease;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-card:hover .artist-name {
  color: #a5b4fc;
}

/* Artist Detail */
.artist-biography {
  position: relative;
}

.read-more-content {
  overflow: hidden;
  position: relative;
  transition: max-height var(--transition-speed) ease;
}

.read-more-content.is-collapsible::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 26, 45, 0), rgba(20, 26, 45, 0.95));
}

:root.light-theme .read-more-content.is-collapsible::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
}

.read-more-content.is-expanded {
  max-height: none !important;
}

.read-more-content.is-collapsible.is-expanded::after {
  display: none;
}

.biography-content {
  max-height: 8.5rem;
}

.discography-content {
  max-height: 31rem;
}

.read-more-toggle {
  margin-top: 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #a5b4fc;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.read-more-toggle:hover {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.artist-tabs-card {
  margin-top: 0;
  min-height: 550px;
}

.artist-tabs-card .tab-panel {
  padding: 2.5rem 3.5rem;
}

.artist-fun-facts p, .artist-fun-facts li {
  white-space: pre-wrap;
  tab-size: 4;
  -moz-tab-size: 4;
}

.artist-tabs-card .biography-content {
  max-height: 22rem;
}

.discography-group + .discography-group {
  margin-top: 2.25rem;
}

.discography-group-header {
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

.discography-group-header h3 {
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
}

.discography-group-header span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.artist-discography-grid,
.artist-collection-grid {
  --simple-card-size: 160px;
}

.album-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.album-fact {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.album-fact span {
  color: var(--text-muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.album-fact strong {
  color: var(--text-main);
  font-size: 1.15rem;
}

.participants-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.participant-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.participant-row strong {
  color: var(--text-main);
}

.participant-row span {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: right;
}

.album-editions-grid {
  --simple-card-size: 160px;
}

/* Mobile Responsiveness (Drawer menu) */
@media (max-width: 768px) {
  /* Display hamburger button */
  .mobile-nav-toggle-btn {
    display: flex !important;
    transition: transform 0.15s ease, background-color 0.15s ease;
  }
  
  .mobile-nav-toggle-btn:active {
    transform: scale(0.9);
    background-color: var(--panel-border) !important;
  }

  /* Force sidebar to be hidden off-screen on mobile */
  .sidebar {
    width: 280px !important;
    left: -280px !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    transition: left var(--transition-speed) ease;
    padding: 2.5rem 1.5rem !important; /* Keep original padding inside drawer */
  }

  /* Main content takes full screen */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 4.5rem 1rem 1.5rem 1rem !important; /* Slightly more compact horizontal padding for mobile */
  }

  /* Sidebar expanded mobile state (Drawer open) */
  .app-container.sidebar-mobile-open .sidebar {
    left: 0 !important;
  }

  .app-container.sidebar-mobile-open .sidebar-backdrop {
    display: block !important;
  }

  /* Ensure text elements are visible in drawer even if sidebar_collapsed is true in DB */
  .app-container.sidebar-collapsed .logo-text,
  .app-container.sidebar-collapsed .nav-text,
  .app-container.sidebar-collapsed .active-user-container,
  .app-container.sidebar-collapsed .theme-toggle-text {
    display: block !important;
  }
  .app-container.sidebar-collapsed .logo-container,
  .app-container.sidebar-collapsed .theme-toggle-btn,
  .app-container.sidebar-collapsed .nav-link {
    justify-content: flex-start !important;
  }
  .app-container.sidebar-collapsed .sidebar-toggle-btn,
  .app-container.sidebar-collapsed .theme-toggle-btn,
  .app-container.sidebar-collapsed .nav-link {
    padding: 0.85rem 1rem !important;
  }

  /* Hide the toggle button for desktop collapse since we are in drawer mode */
  .sidebar-toggle-container {
    display: none !important;
  }

  /* Responsive Dashboard Grid and Items */
  .dashboard-sections {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Simple Media Catalog Grid View (Multi-column on mobile) */
  .catalog-grid.grid-simple {
    grid-template-columns: repeat(auto-fill, minmax(min(110px, var(--simple-card-size, 180px)), 1fr)) !important;
    gap: 1.25rem 0.75rem !important;
  }

  .catalog-grid.grid-simple .media-card-content {
    padding: 0.5rem 0.15rem 0 0.15rem !important;
  }

  .catalog-grid.grid-simple .media-title {
    font-size: 0.85rem !important;
  }

  .catalog-grid.grid-simple .media-artist {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 576px) {
  /* Dashboard Stats Grid: 3-column vertical stacked cards */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .stat-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.75rem 0.5rem !important;
    gap: 0.5rem !important;
  }

  .stat-icon-bg {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  .stat-info {
    align-items: center !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
  }

  .stat-value {
    font-size: 1.25rem !important;
  }

  /* Dashboard list items (Compact horizontal) */
  .dashboard-item {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.75rem !important;
  }

  .dashboard-item-meta {
    border-top: none !important;
    padding-top: 0 !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .dashboard-item-meta .media-badge {
    display: none !important; /* Hide badge to save horizontal space */
  }

  .dashboard-item-title {
    font-size: 0.9rem !important;
  }

  .dashboard-item-subtitle {
    font-size: 0.8rem !important;
  }

  .dashboard-item-meta .btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  /* Media Catalog Header Actions stacking */
  .page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .page-header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    width: 100% !important;
    justify-content: space-between !important;
  }

  .page-header-actions > * {
    flex: 1 1 auto !important;
  }

  .size-slider-container {
    width: 100% !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--border-radius);
    border: 1px solid var(--panel-border);
  }

  .size-slider {
    flex: 1 !important;
    margin-left: 1rem !important;
  }

  .view-toggle-group {
    width: 100% !important;
    display: flex !important;
  }

  .view-toggle-btn {
    flex: 1 !important;
    justify-content: center !important;
  }

  .page-header-actions .btn-primary {
    display: none !important;
  }

  /* Detailed Media Catalog Grid View (Horizontal list row layout) */
  .catalog-grid:not(.grid-simple) {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .catalog-grid:not(.grid-simple) .media-card {
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.5rem !important;
    gap: 0.75rem !important;
  }

  .catalog-grid:not(.grid-simple) .media-card-cover-wrapper {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0;
  }

  .catalog-grid:not(.grid-simple) .media-card-cover-container {
    height: 100% !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: 4px !important;
    border-bottom: none !important;
  }

  .catalog-grid:not(.grid-simple) .media-card-content {
    padding: 0 !important;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem;
  }

  .catalog-grid:not(.grid-simple) .media-card-header {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
  }

  .catalog-grid:not(.grid-simple) .media-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.15rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-grid:not(.grid-simple) .media-artist {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-grid:not(.grid-simple) .media-badge {
    padding: 0.1rem 0.35rem !important;
    font-size: 0.65rem !important;
  }

  .catalog-grid:not(.grid-simple) .media-card-content > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .catalog-grid:not(.grid-simple) .media-meta {
    display: none !important; /* Hide year and catalog number in compact row layout */
  }

  .catalog-grid:not(.grid-simple) .media-actions {
    display: flex !important;
    gap: 0.25rem !important;
  }

  .catalog-grid:not(.grid-simple) .media-actions .btn {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.75rem !important;
  }

  .catalog-grid:not(.grid-simple) .media-actions form {
    display: none !important; /* Hide delete button in compact row layout to prevent accidental clicks */
  }
}

@media (max-width: 480px) {
  /* Search form adjustments */
  .search-form {
    flex-wrap: wrap !important;
  }

  .search-input-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .search-form .btn {
    flex: 1 !important;
  }
}

/* ==========================================
   Dedicated Mobile Variant Styles (393 x 852)
   ========================================== */

/* Mobile Dashboard Layout */
.mobile-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.welcome-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 0.15rem;
}

.btn-circular-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: transform 0.15s ease;
}

.btn-circular-add:active {
  transform: scale(0.9);
}

.mobile-stats-row {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-stat-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.pill-emoji {
  font-size: 1.25rem;
}

.pill-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pill-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.1;
}

.pill-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-section {
  margin-top: 1.75rem;
}

.mobile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.mobile-section-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.mobile-see-all {
  font-size: 0.8rem;
  color: var(--accent-color, #818cf8);
  text-decoration: none;
  font-weight: 600;
}

.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mobile-list-item:active {
  transform: scale(0.98);
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-item-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-item-img-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8), rgba(30, 41, 59, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  font-size: 1rem;
  opacity: 0.6;
}

.mobile-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-chevron {
  color: var(--text-muted);
  opacity: 0.5;
  display: flex;
  align-items: center;
}

/* Horizontal Scroll Area for Mobile Artists */
.mobile-horizontal-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 0.75rem 0.1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.mobile-horizontal-scroll::-webkit-scrollbar {
  display: none; /* Hide scrollbar for native app look */
}

.mobile-scroll-card {
  flex: 0 0 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
}

.mobile-scroll-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.mobile-scroll-card:active .mobile-scroll-img {
  transform: scale(0.9);
}

.mobile-scroll-img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8), rgba(30, 41, 59, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  font-size: 1.25rem;
  opacity: 0.6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.mobile-scroll-name {
  font-size: 0.72rem;
  color: var(--text-main);
  margin-top: 0.4rem;
  font-weight: 500;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Formats distribution */
.mobile-formats-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 1rem;
  border-radius: 12px;
}

.mobile-format-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-format-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
}

.mobile-format-name {
  color: var(--text-main);
}

.mobile-format-pct {
  color: var(--text-muted);
}

.mobile-progress-bg {
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.mobile-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.mobile-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================
   Mobile Catalog Specific Views (393 x 852)
   ========================================== */
.mobile-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.mobile-page-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.mobile-view-toggle-group {
  display: flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.15rem;
  height: 36px;
}

.mobile-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.mobile-toggle-btn.active {
  background-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

/* Mobile Search Bar */
.mobile-search-bar {
  margin-bottom: 1.5rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.4rem 0.5rem;
}

.mobile-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.mobile-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.mobile-search-icon {
  position: absolute;
  left: 0.6rem;
  opacity: 0.4;
  font-size: 0.8rem;
}

.mobile-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.4rem 0.4rem 0.4rem 1.6rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

.mobile-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.btn-mobile-search {
  border: none;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-mobile-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
}

/* Catalog Grid Mobile Layout wrapper */
.catalog-grid-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Detailed List Layout (Default) */
.catalog-grid-mobile:not(.grid-simple) .mobile-media-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-card-cover-wrapper {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-card-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8), rgba(30, 41, 59, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0.6;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-badge {
  font-size: 0.65rem;
  color: #a5b4fc;
  background-color: rgba(99, 102, 241, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  align-self: flex-start;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-artist {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-grid-mobile:not(.grid-simple) .mobile-media-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.catalog-grid-mobile:not(.grid-simple) .btn-mobile-action {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--panel-border);
  color: var(--text-main);
  border: 1px solid transparent;
}

.catalog-grid-mobile:not(.grid-simple) .btn-mobile-action:active {
  background: rgba(255, 255, 255, 0.05);
}

.catalog-grid-mobile:not(.grid-simple) .btn-mobile-action.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
}


/* Simple Grid Layout (when .grid-simple is active) */
.catalog-grid-mobile.grid-simple {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  justify-content: center !important;
  gap: 1.25rem 0.75rem !important;
}

.mobile-media-card-cover-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.catalog-grid-mobile.grid-simple .mobile-media-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
}

.catalog-grid-mobile.grid-simple .mobile-media-card-cover-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.4rem;
}

.catalog-grid-mobile.grid-simple .mobile-media-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-grid-mobile.grid-simple .mobile-media-card-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8), rgba(30, 41, 59, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.6;
}

.catalog-grid-mobile.grid-simple .mobile-media-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.catalog-grid-mobile.grid-simple .mobile-media-badge,
.catalog-grid-mobile.grid-simple .mobile-media-actions {
  display: none !important; /* Hide badge and actions in grid mode */
}

.catalog-grid-mobile.grid-simple .mobile-media-title {
  font-size: 0.76rem !important;
  font-weight: 600;
  color: var(--text-main);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.catalog-grid-mobile.grid-simple .mobile-media-artist {
  font-size: 0.68rem !important;
  color: var(--text-muted);
  margin: 0.1rem 0 0 0 !important;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-hidden-slider {
  display: none !important;
}

/* Admin Layout Customizations */
.admin-mode {
  --accent-primary: #8b5cf6; /* Violet */
  --accent-secondary: #ec4899; /* Pink */
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --accent-glow: rgba(139, 92, 246, 0.15);
  --card-hover-border: rgba(139, 92, 246, 0.4);
}

.admin-logo-icon {
  background: var(--accent-gradient) !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.admin-badge-small {
  font-size: 0.6em;
  opacity: 0.9;
  vertical-align: middle;
  border: 1px solid var(--accent-secondary);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  background: rgba(236, 72, 153, 0.1);
  color: #fbcfe8;
  margin-left: 0.4rem;
  letter-spacing: 0.5px;
}

.admin-badge {
  background-color: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  color: #ddd6fe !important;
}

/* Stats and widgets styling for admin dashboard */
.admin-stat-card-glow {
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 70%);
}

.admin-highlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  overflow: hidden;
  height: 100%;
}

.admin-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
}

.admin-highlight-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.admin-highlight-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--panel-border);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.admin-user-info-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-name-small {
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.admin-user-email-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.admin-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-activity-item:last-child {
  border-bottom: none;
}

.admin-activity-media {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-activity-cover {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-activity-cover-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.admin-activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
