/* ============================================================
   SoundLabel — app.css  |  Dark Luxury Music Aesthetic
   Font: Syne (display) + DM Sans (body)
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080a0f;
  --bg-2:        #0f1218;
  --bg-3:        #161b24;
  --bg-card:     #111520;
  --border:      rgba(255,255,255,.07);
  --border-2:    rgba(255,255,255,.12);

  --text:        #e8eaf0;
  --text-2:      #8b91a8;
  --text-3:      #4d5369;

  --accent:      #c8ff00;   /* lime-electric */
  --accent-2:    #00d4ff;   /* cyan */
  --accent-3:    #ff4f6d;   /* red-pink */
  --accent-gold: #f5c842;

  --sidebar-w:   240px;
  --topbar-h:    60px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-sm:   8px;

  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.7);

  --transition:  .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  position: fixed; left: 0; top: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 200;
  transition: transform var(--transition);
}

.sidebar-logo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo a {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: -.3px;
}

.logo-icon { font-size: 22px; color: var(--accent); }
.logo-text  { color: var(--text); }

.sidebar-close { display: none; background: none; border: none; color: var(--text-2); padding: 4px; }

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 24px;
}

.nav-section { display: flex; flex-direction: column; gap: 2px; }

.nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-3);
  padding: 0 8px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px; font-weight: 400;
  transition: var(--transition);
}

.nav-item:hover  { background: var(--bg-3); color: var(--text); }
.nav-item.active { background: rgba(200,255,0,.08); color: var(--accent); }
.nav-item.active .feather { color: var(--accent); }
.nav-item .feather { width: 16px; height: 16px; flex-shrink: 0; }
.nav-logout:hover { color: var(--accent-3); }

.sidebar-plan {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}

.plan-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 20px;
  background: var(--bg-3); color: var(--text-2);
}
.plan-badge.plan-pro      { background: rgba(0,212,255,.12); color: var(--accent-2); }
.plan-badge.plan-unlimited{ background: rgba(200,255,0,.12);  color: var(--accent); }
.plan-badge.plan-starter  { background: rgba(245,200,66,.12); color: var(--accent-gold); }

.plan-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 199;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h);
  background: rgba(8,10,15,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; z-index: 100;
}

.menu-toggle { display: none; background: none; border: none; color: var(--text-2); padding: 4px; }

.topbar-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 17px; flex: 1;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-2); transition: var(--transition);
}
.icon-btn:hover { background: var(--bg-card); color: var(--text); border-color: var(--border-2); }
.icon-btn .feather { width: 16px; height: 16px; }

.badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--accent-3); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 50%;
  min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.topbar-avatar, .avatar-initials {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; display: flex; align-items: center; justify-content: center;
}
.avatar-initials {
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  font-size: 13px; font-weight: 700; color: #000;
}

/* ── Notifications ──────────────────────────────────────── */
.notif-wrap { position: relative; }
.notif-drop {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 300px; background: var(--bg-card);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(-8px);
  pointer-events: none; transition: var(--transition);
}
.notif-drop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.notif-clear { font-size: 11px; color: var(--accent); }
.notif-item {
  display: block; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.notif-item:hover { background: var(--bg-3); }
.notif-title { font-size: 13px; margin-bottom: 2px; }
.notif-time  { font-size: 11px; color: var(--text-3); }
.notif-empty { padding: 20px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ── Main Layout ────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 28px;
  width: 100%;
  min-height: calc(100vh - var(--topbar-h));
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
}

/* ── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-2); }
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.stat-card.green::before  { background: var(--accent); }
.stat-card.cyan::before   { background: var(--accent-2); }
.stat-card.red::before    { background: var(--accent-3); }
.stat-card.gold::before   { background: var(--accent-gold); }

.stat-icon { margin-bottom: 14px; color: var(--text-3); }
.stat-icon .feather { width: 20px; height: 20px; }
.stat-card.green .stat-icon { color: var(--accent); }
.stat-card.cyan  .stat-icon { color: var(--accent-2); }
.stat-card.red   .stat-icon { color: var(--accent-3); }
.stat-card.gold  .stat-icon { color: var(--accent-gold); }

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-3); letter-spacing: .3px; }

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border); }
thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3);
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
tbody tr:hover { background: var(--bg-3); }
tbody td { padding: 13px 14px; font-size: 14px; }
tbody tr:last-child { border-bottom: none; }

/* ── Status badges ──────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.status-draft       { background: rgba(139,145,168,.12); color: var(--text-2); }
.status-review      { background: rgba(245,200,66,.12);  color: var(--accent-gold); }
.status-approved    { background: rgba(0,212,255,.12);   color: var(--accent-2); }
.status-distributed { background: rgba(200,255,0,.12);  color: var(--accent); }
.status-rejected    { background: rgba(255,79,109,.12);  color: var(--accent-3); }
.status-takedown    { background: rgba(255,79,109,.08);  color: #ff7a92; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.btn .feather { width: 15px; height: 15px; }

.btn-primary {
  background: var(--accent); color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: #d4ff1a; box-shadow: 0 0 20px rgba(200,255,0,.3); }

.btn-secondary {
  background: var(--bg-3); color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--border-2); }

.btn-danger  { background: rgba(255,79,109,.15); color: var(--accent-3); border-color: rgba(255,79,109,.3); }
.btn-danger:hover  { background: rgba(255,79,109,.25); }

.btn-outline { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.btn-outline:hover { background: var(--bg-3); color: var(--text); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }

label, .label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 7px;
}

input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=url],
select, textarea {
  width: 100%; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: 14px;
  padding: 10px 14px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,255,0,.08);
}
textarea { min-height: 100px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b91a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-hint { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--accent-3); margin-top: 5px; }

.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.input-group input { padding-left: 36px; }

/* File upload drop zone */
.dropzone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent); background: rgba(200,255,0,.04);
}
.dropzone-icon { font-size: 32px; margin-bottom: 10px; }
.dropzone-text { font-size: 14px; color: var(--text-2); }
.dropzone-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* Cover preview */
.cover-preview {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  object-fit: cover; display: none;
  border: 1px solid var(--border);
}

/* ── Alerts / Flash ─────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 20px;
  transition: opacity .4s, transform .4s;
}
.alert.fade-out { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.alert-success { background: rgba(200,255,0,.08);  border: 1px solid rgba(200,255,0,.2);  color: var(--accent); }
.alert-error   { background: rgba(255,79,109,.08); border: 1px solid rgba(255,79,109,.2); color: var(--accent-3); }
.alert-info    { background: rgba(0,212,255,.08);  border: 1px solid rgba(0,212,255,.2);  color: var(--accent-2); }
.alert-warning { background: rgba(245,200,66,.08); border: 1px solid rgba(245,200,66,.2); color: var(--accent-gold); }

/* ── Release cover thumbnails ───────────────────────────── */
.release-cover {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; background: var(--bg-3);
  flex-shrink: 0;
}
.release-info { display: flex; align-items: center; gap: 12px; }
.release-title { font-weight: 500; font-size: 14px; }
.release-artist { font-size: 12px; color: var(--text-2); }

/* ── Progress bar ───────────────────────────────────────── */
.progress-bar {
  height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  transition: width .4s ease;
}

/* ── Stepper (release wizard) ───────────────────────────── */
.stepper {
  display: flex; gap: 0; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.step {
  flex: 1; padding: 14px 8px; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .4px;
  color: var(--text-3); position: relative; cursor: default;
  transition: color var(--transition);
}
.step::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: transparent; transition: background var(--transition);
}
.step.active  { color: var(--accent); }
.step.active::after { background: var(--accent); }
.step.done    { color: var(--accent-2); }
.step.done::after   { background: var(--accent-2); }

/* ── Auth pages ─────────────────────────────────────────── */
body { min-height: 100vh; }
.auth-wrap {
  min-height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(200,255,0,.08) 0%, transparent 60%), var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center; margin-bottom: 28px;
  font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800;
}
.auth-logo .logo-icon { color: var(--accent); }
.auth-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
.auth-link  { color: var(--accent); font-size: 14px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-2); }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: 6px;
  justify-content: center; margin-top: 24px;
}
.page-btn {
  width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); transition: var(--transition);
}
.page-btn:hover  { border-color: var(--border-2); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

/* ── Modals ─────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: transform var(--transition);
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.modal-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-2); font-size: 20px; }

/* ── Plan cards ─────────────────────────────────────────── */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px;
}
.plan-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; transition: border-color var(--transition);
}
.plan-card.featured { border-color: var(--accent); }
.plan-card.featured::before {
  content: 'En Popüler'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 12px; border-radius: 20px;
}
.plan-price {
  font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800;
  margin: 8px 0 2px;
}
.plan-period { font-size: 12px; color: var(--text-3); margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.plan-features li { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── Waveform placeholder ───────────────────────────────── */
.waveform { height: 40px; display: flex; align-items: center; gap: 2px; }
.waveform-bar {
  flex: 1; background: var(--bg-3); border-radius: 2px;
  min-height: 4px; max-height: 100%;
  transition: background var(--transition);
}

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--text-3);
}
.empty-state .feather { width: 40px; height: 40px; margin: 0 auto 16px; }
.empty-state h3 { font-family: 'Syne',sans-serif; font-size: 17px; color: var(--text-2); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; }

/* ── Utility ────────────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-2); }
.text-accent { color: var(--accent); }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-none { display: none !important; }
.w-full { width: 100%; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-close { display: flex; align-items: center; justify-content: center; }
  .sidebar-overlay.active { display: block; }

  .topbar { left: 0; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .main-content { margin-left: 0; padding: 16px; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .plans-grid { grid-template-columns: 1fr; }
  .auth-card  { padding: 28px 20px; }
  thead th:nth-child(n+4) { display: none; }
  tbody td:nth-child(n+4) { display: none; }
}
