@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/**
 * PREMIUM GLASSMORPHISM CSS FOR TIDARR
 * Vibe: Modern Music Streaming (Apple Music / Tidal Premium)
 */

:root {
  /* Core Colors */
  --bg-dark: #07090e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Accent & Gradients */
  --accent-cyan: #00e5ff;
  --accent-blue: #2563eb;
  --brand-gradient: linear-gradient(135deg, #00e5ff 0%, #2563eb 100%);
  --glow-primary: rgba(0, 229, 255, 0.4);
  
  /* Glassmorphism */
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(31, 41, 55, 0.8);
  
  /* Metrics */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   1. GLOBAL & BACKGROUND
   ========================================= */
body, html {
  background: radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.08), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.05), transparent 25%),
              var(--bg-dark) !important;
  background-attachment: fixed !important;
  color: var(--text-main) !important;
  font-family: 'Outfit', sans-serif !important;
  letter-spacing: 0.3px;
}

.p-app, .layout-wrapper, .layout-main {
  background: transparent !important;
}

/* =========================================
   2. GLASSMORPHISM CARDS & PANELS
   ========================================= */
.p-card, .p-panel, .album-item, .list-item, .p-dialog {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
  transition: all var(--transition-smooth) !important;
}

.p-card:hover, .album-item:hover, .list-item:hover {
  background: var(--glass-hover) !important;
  border-color: rgba(0, 229, 255, 0.3) !important;
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.1) !important;
}

/* =========================================
   3. NAVIGATION (MENUBAR / SIDEBAR)
   ========================================= */
.p-menubar, .layout-sidebar, .sidebar {
  background: rgba(7, 9, 14, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  border-right: 1px solid var(--glass-border) !important;
}

.p-menuitem-link {
  border-radius: var(--radius-sm) !important;
  transition: all 0.3s ease !important;
}

.p-menuitem-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateX(4px) !important;
}

.p-menuitem-text, .p-menuitem-icon {
  color: var(--text-main) !important;
}

.p-menuitem-link:hover .p-menuitem-text, 
.p-menuitem-link:hover .p-menuitem-icon {
  color: var(--accent-cyan) !important;
  text-shadow: 0 0 8px var(--glow-primary) !important;
}

/* =========================================
   4. INPUTS & SEARCH
   ========================================= */
.p-inputtext, .p-password-input {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-pill) !important;
  color: var(--text-main) !important;
  padding: 0.75rem 1.25rem !important;
  font-family: 'Outfit', sans-serif !important;
  transition: all 0.3s ease !important;
}

.p-inputtext:focus, .p-inputtext:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15) !important;
  outline: none !important;
}

/* =========================================
   5. PREMIUM BUTTONS
   ========================================= */
.p-button, .btn {
  background: var(--brand-gradient) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-family: 'Outfit', sans-serif !important;
  padding: 0.6rem 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2) !important;
}

.p-button:hover, .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4) !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.1) !important;
}

.p-button:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3) !important;
}

/* Secondary Buttons */
.p-button-secondary, .p-button-text {
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
  border: 1px solid var(--glass-border) !important;
}

.p-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--text-muted) !important;
}

/* =========================================
   6. IMAGES, COVERS & ANIMATIONS
   ========================================= */
.p-image img, .cover-art, .poster img {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.album-item:hover .cover-art, .p-card:hover img {
  transform: scale(1.05) !important;
}

/* Load-in Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.album-item, .list-item, .p-card {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Add stagger delay for lists if possible (nth-child) */
.list-item:nth-child(1) { animation-delay: 0.05s; }
.list-item:nth-child(2) { animation-delay: 0.1s; }
.list-item:nth-child(3) { animation-delay: 0.15s; }
.list-item:nth-child(4) { animation-delay: 0.2s; }

/* =========================================
   7. PROGRESS BAR & BADGES
   ========================================= */
.p-progressbar {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-pill) !important;
  height: 6px !important;
  overflow: hidden !important;
}

.p-progressbar-value {
  background: var(--brand-gradient) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 0 10px var(--accent-cyan) !important;
}

.p-tag {
  background: rgba(0, 229, 255, 0.1) !important;
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  backdrop-filter: blur(4px) !important;
  padding: 0.2rem 0.8rem !important;
  letter-spacing: 0.5px;
}

/* =========================================
   8. TABLES / TRACKLIST
   ========================================= */
.p-datatable-thead > tr > th {
  background: transparent !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 1rem !important;
}

.p-datatable-tbody > tr {
  background: transparent !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid rgba(255,255,255,0.03) !important;
  transition: all 0.2s ease !important;
}

.p-datatable-tbody > tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  transform: scale(1.005);
}

/* =========================================
   9. SCROLLBAR GLOW
   ========================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
