/* ═══════════════════════════════════════════
   EQUIPE VEGA SOM — Admin Panel Pages
   ═══════════════════════════════════════════ */

/* ── Dashboard ── */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.dash-stat {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.dash-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255,215,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-2xl);
  color: var(--gold);
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--white);
  line-height: 1;
}
.dash-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.dash-stat-change {
  font-size: var(--text-xs);
  margin-top: 2px;
}
.dash-stat-change.up { color: var(--green); }
.dash-stat-change.down { color: var(--red); }

/* ── Charts ── */
.chart-container {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-4);
}
.chart-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--gold);
}
.chart-body {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Music Library ── */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}
.music-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}
.music-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.music-card-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.music-card-play {
  width: 48px; height: 48px;
  background: rgba(255,215,0,0.9);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl);
  color: var(--black);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-base);
}
.music-card:hover .music-card-play { opacity: 1; transform: scale(1); }
.music-card-info { padding: var(--space-3); }
.music-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-card-artist {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.music-card-meta {
  display: flex; justify-content: space-between;
  margin-top: var(--space-2);
}
.music-card-format {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.music-card-bpm {
  font-size: var(--text-xs);
  color: var(--gold);
  font-family: var(--font-display);
}

/* ── Upload Area ── */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: rgba(255,215,0,0.02);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(255,215,0,0.05);
}
.upload-zone-icon { font-size: 3rem; color: var(--gold); margin-bottom: var(--space-4); }
.upload-zone-text { color: var(--text-secondary); font-size: var(--text-lg); }
.upload-zone-hint { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-2); }

.upload-progress-list {
  margin-top: var(--space-4);
}
.upload-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}
.upload-item-info { flex: 1; }
.upload-item-name { font-size: var(--text-sm); color: var(--white); }
.upload-item-size { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Moderation Panel ── */
.report-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  display: flex;
  gap: var(--space-4);
}
.report-card-severity {
  width: 4px;
  border-radius: var(--radius-full);
}
.report-card-severity.low { background: var(--blue); }
.report-card-severity.medium { background: var(--orange); }
.report-card-severity.high { background: var(--red); }
.report-card-body { flex: 1; }
.report-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.report-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}
.report-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}
.report-card-actions {
  display: flex; gap: var(--space-2);
}

/* ── Client Management ── */
.client-row {
  display: flex; align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}
.client-row:hover { background: var(--bg-hover); }
.client-row-avatar { flex-shrink: 0; }
.client-row-info { flex: 1; }
.client-row-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}
.client-row-name.master { color: var(--gold); }
.client-row-name.dj { color: var(--gold-light); }
.client-row-name.gratuito { color: var(--purple); }
.client-row-email { font-size: var(--text-xs); color: var(--text-muted); }
.client-row-plan {
  font-size: var(--text-xs);
}
.client-row-actions { display: flex; gap: var(--space-2); }

/* ── Storage Overview ── */
.storage-bar {
  height: 24px;
  background: var(--gray-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
}
.storage-bar-music { background: var(--gold); height: 100%; }
.storage-bar-video { background: var(--blue); height: 100%; }
.storage-bar-trash { background: var(--red); height: 100%; }
.storage-bar-versions { background: var(--purple); height: 100%; }

.storage-legend {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-3);
}
.storage-legend-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.storage-legend-dot {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
}

/* ── Settings ── */
.settings-section {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.settings-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: var(--text-sm); color: var(--white); }
.settings-desc { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Toggle Switch ── */
.toggle {
  position: relative;
  width: 48px; height: 26px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.toggle.active { background: var(--gold); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
}
.toggle.active::after { transform: translateX(22px); }