/* ReleaseIQ Glassmorphism Dark Mode Design System */
:root {
  --bg-primary: #0b0f19;
  --bg-surface: rgba(18, 24, 38, 0.75);
  --bg-surface-hover: rgba(28, 36, 56, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --glass-blur: blur(14px);
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.15);
}

/* Sidebar Styling */
.app-sidebar {
  width: 260px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
}

.main-content {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
  padding-bottom: 100px;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
}

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-left: 3px solid var(--accent-cyan);
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 16px 16px 6px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.brand-gradient {
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Metric Cards */
.metric-card {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-indigo) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #fff;
}

/* Form inputs dark styling */
.form-control, .form-select {
  background-color: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-md);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25) !important;
}

/* Audio Player Sticky Bar */
.sticky-audio-player {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  height: 80px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 1050;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: left 0.3s ease;
}

@media (max-width: 991.98px) {
  .sticky-audio-player {
    left: 0;
  }
}

/* Modal Dark Styling */
.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-main);
}

@keyframes spinAnim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  display: inline-block;
  animation: spinAnim 1.2s linear infinite;
}

/* Custom Bootstrap Opacity Utilities */
.bg-opacity-20 { --bs-bg-opacity: 0.2 !important; }
.bg-opacity-40 { --bs-bg-opacity: 0.4 !important; }
.bg-opacity-60 { --bs-bg-opacity: 0.6 !important; }
