/* --- SISTEMA DE CORES E VARIÁVEIS --- */
:root {
  --bg-dark: #02040a;
  --bg-sidebar: rgba(8, 11, 30, 0.75);
  --bg-card: rgba(13, 19, 44, 0.35);
  --bg-card-hover: rgba(18, 26, 61, 0.55);
  --border-light: rgba(255, 255, 255, 0.06);
  
  --color-primary: #00f2fe;
  --color-secondary: #4facfe;
  --color-accent: #f35588;
  
  --color-car: #ffb300;
  --color-employee: #00f5a0;
  --color-bus: #9d4edd;
  
  --text-main: #ffffff;
  --text-muted: #8496b0;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- FUNDO DE AURORA DINÂMICO --- */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #02040a;
}

.bg-glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: float-glow 25s infinite alternate ease-in-out;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(0, 242, 254, 0) 70%);
  top: -10%;
  left: -10%;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--color-secondary) 0%, rgba(79, 172, 254, 0) 70%);
  bottom: -15%;
  right: -10%;
  animation-delay: -6s;
}

.bg-glow-3 {
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(243, 85, 136, 0) 70%);
  top: 35%;
  left: 40%;
  width: 500px;
  height: 500px;
  opacity: 0.1;
  animation-delay: -12s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 50px) scale(1.2);
  }
  100% {
    transform: translate(-50px, 100px) scale(0.85);
  }
}

/* --- RESET & GERAIS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: transparent;
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* --- MOBILE HEADER --- */
.mobile-header {
  height: 64px;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.logo-icon i {
  color: var(--bg-dark);
  font-size: 16px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, #ffffff, #a5b5cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Indicador Online */
.online-status-indicator {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-employee);
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-employee);
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.btn-icon {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

/* Desktop tabs (Escondidas no mobile por padrão) */
.desktop-tabs {
  display: none;
}

/* --- APP CONTENT / SCROLL AREA --- */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 110px 16px; /* Padding extra para não cobrir o player flutuante */
}

.tab-content {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.tab-content.active {
  display: flex;
}

.section {
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.section-title i {
  color: var(--color-primary);
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  margin-top: -8px;
}

.badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* --- CARD DE REPRODUÇÃO ATUAL --- */
.now-playing-container {
  width: 100%;
}

.now-playing-card {
  background: rgba(13, 19, 44, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 242, 254, 0.03);
  transition: var(--transition-smooth);
}

.album-cover-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.album-cover {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d1b4c, #0d385c);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.album-cover i {
  font-size: 44px;
  color: rgba(255, 255, 255, 0.1);
}

/* Capas dinâmicas */
.album-cover.pop { background-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?w=400&q=80'); background-size: cover; background-position: center; }
.album-cover.sertanejo { background-image: url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=400&q=80'); background-size: cover; background-position: center; }
.album-cover.lounge { background-image: url('https://images.unsplash.com/photo-1501386761578-eac5c94b800a?w=400&q=80'); background-size: cover; background-position: center; }

.album-cover.pop i, .album-cover.sertanejo i, .album-cover.lounge i {
  color: rgba(255, 255, 255, 0.25);
}

.disc-spinning {
  width: 30px;
  height: 30px;
  background: #000;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 3s linear infinite;
}

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

.status-badge {
  align-self: center;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.track-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.track-artist {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.player-controls-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.progress-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  cursor: pointer;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.action-buttons {
  display: flex;
  justify-content: center;
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-control {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.btn-play-pause {
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* --- SEÇÃO STATUS TERMINAL --- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-item .val {
  font-size: 13px;
  font-weight: 600;
}

.meta-item .val.success {
  color: var(--color-employee);
}

/* --- GRID DE PLAYLISTS --- */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.playlist-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.playlist-card.active {
  border-color: var(--color-primary);
  background-color: var(--bg-card-hover);
}

.cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.cover.pop { background-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?w=400&q=80'); background-size: cover; background-position: center; color: #fff; }
.cover.sertanejo { background-image: url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=400&q=80'); background-size: cover; background-position: center; color: #fff; }
.cover.lounge { background-image: url('https://images.unsplash.com/photo-1501386761578-eac5c94b800a?w=400&q=80'); background-size: cover; background-position: center; color: #fff; }

.playlist-card .name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-card .desc {
  font-size: 9px;
  color: var(--text-muted);
}

/* --- GRID DE DISPAROS DE ALERTA --- */
.alerts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.alert-btn {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.alert-btn:active {
  transform: scale(0.98);
  background-color: var(--bg-card-hover);
}

.alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Cores específicas de Alerta */
.alert-btn.car .alert-icon {
  background-color: rgba(255, 179, 0, 0.1);
  color: var(--color-car);
  border: 1px solid rgba(255, 179, 0, 0.2);
}
.alert-btn.employee .alert-icon {
  background-color: rgba(0, 245, 160, 0.1);
  color: var(--color-employee);
  border: 1px solid rgba(0, 245, 160, 0.2);
}
.alert-btn.bus .alert-icon {
  background-color: rgba(157, 78, 221, 0.1);
  color: var(--color-bus);
  border: 1px solid rgba(157, 78, 221, 0.2);
}

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

.alert-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.alert-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- FILA DE REPRODUÇÃO --- */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid transparent;
}

.queue-item.playing {
  border-color: rgba(0, 242, 254, 0.15);
  background-color: rgba(0, 242, 254, 0.04);
}

.queue-item .idx {
  font-size: 11px;
  color: var(--text-muted);
}

.queue-item .details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.queue-item .title {
  font-size: 13px;
  font-weight: 500;
}

.queue-item .artist {
  font-size: 11px;
  color: var(--text-muted);
}

.queue-item .duration {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.queue-item.playing .duration {
  color: var(--color-primary);
}

.empty-state {
  text-align: center;
  padding: 30px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- STICKY BOTTOM PLAYER --- */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(8, 11, 30, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 80;
}

.progress-container {
  width: 100%;
}

.progress-bar-bg {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.player-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.current-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 60%;
}

.mini-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
}

.mini-cover.pop { background-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?w=400&q=80'); background-size: cover; background-position: center; }
.mini-cover.sertanejo { background-image: url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=400&q=80'); background-size: cover; background-position: center; }
.mini-cover.lounge { background-image: url('https://images.unsplash.com/photo-1501386761578-eac5c94b800a?w=400&q=80'); background-size: cover; background-position: center; }

.current-track-info .title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-track-info .artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls-area {
  display: flex;
  align-items: center;
}

/* --- MODAL DE CONFIGURAÇÕES (Inspirada no Layout de Blocos do Print!) --- */
.config-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.config-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.config-modal {
  width: 90%;
  max-width: 600px;
  background-color: rgba(11, 14, 34, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.config-tile {
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.config-tile:active {
  transform: scale(0.97);
}

.config-tile i {
  font-size: 14px;
}

/* Cores dos Blocos idênticos ao print do cliente! */
.tile-red { background-color: #e53935; }
.tile-blue { background-color: #1e88e5; }
.tile-orange { background-color: #fb8c00; }
.tile-pink { background-color: #d81b60; }
.tile-black { background-color: #000000; border: 1px solid rgba(255,255,255,0.05); }
.tile-teal { background-color: #00897b; }
.tile-teal-dark { background-color: #00695c; }
.tile-brown { background-color: #6d4c41; }
.tile-blue-grey { background-color: #546e7a; }
.tile-green { background-color: #43a047; }
.tile-pink-dark { background-color: #c2185b; }
.tile-black-light { background-color: #212121; }
.tile-blue-light { background-color: #03a9f4; }
.tile-green-dark { background-color: #2e7d32; }

/* --- SIDEBAR RETRÁTIL (MOBILE) --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 290px;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.client-badge {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.client-badge .avatar {
  width: 36px;
  height: 36px;
  background-color: rgba(0, 242, 254, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-badge .name {
  font-size: 13px;
  font-weight: 600;
}

.client-badge .license {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-employee);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-item.active, .nav-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  border-left: 3px solid var(--color-primary);
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.08) 0%, transparent 100%);
}

.nav-item i {
  font-size: 16px;
  width: 18px;
}

/* --- OVERLAY DE ALERTA --- */
.alert-overlay-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 7, 17, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.alert-overlay-panel.show {
  opacity: 1;
  pointer-events: auto;
}

.alert-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
}

.alert-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  animation: pulse-alert 1.5s infinite alternate;
}

.alert-card-icon.car { background-color: rgba(255, 179, 0, 0.1); color: var(--color-car); }
.alert-card-icon.employee { background-color: rgba(0, 245, 160, 0.1); color: var(--color-employee); }
.alert-card-icon.bus { background-color: rgba(157, 78, 221, 0.1); color: var(--color-bus); }

@keyframes pulse-alert {
  0% { transform: scale(0.9); box-shadow: 0 0 20px transparent; }
  100% { transform: scale(1.05); box-shadow: 0 0 40px currentColor; }
}

.alert-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.alert-card-msg {
  font-size: 13px;
  color: var(--text-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* --- 📱 OTIMIZAÇÕES ADICIONAIS PARA SMARTPHONES SUPER COMPACTOS --- */
@media (max-width: 576px) {
  .app-content {
    padding: 16px 16px 100px 16px !important;
  }
  .now-playing-card {
    padding: 16px !important;
  }
  .track-details .title {
    font-size: 16px !important;
  }
  .track-details .artist {
    font-size: 12px !important;
  }
  .meta-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .meta-item {
    padding: 8px !important;
  }
  .alerts-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .playlist-card {
    padding: 8px !important;
  }
  .playlist-card .name {
    font-size: 11px !important;
  }
  .playlist-card .desc {
    font-size: 9px !important;
  }
  .config-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .config-tile {
    padding: 10px !important;
    font-size: 11px !important;
  }
}

/* --- 🖥️ RESPONSIVIDADE PARA DESKTOP --- */
@media (min-width: 992px) {
  body {
    flex-direction: column;
  }

  .mobile-header {
    height: 70px;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-light);
  }

  /* Exibir abas no desktop */
  .desktop-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
  }

  .tab-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.03);
  }

  .tab-btn.active {
    color: #fff;
    background-color: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
  }

  .btn-icon {
    display: none; /* Esconde menu hambúrguer no desktop */
  }

  .sidebar {
    display: none; /* Esconde sidebar no desktop, navega por abas do header */
  }

  .sidebar-overlay {
    display: none;
  }

  /* Ajustes de Grade e Conteúdo */
  .app-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px 120px 40px;
  }

  .now-playing-card {
    flex-direction: row;
    padding: 30px;
    gap: 30px;
    text-align: left;
  }

  .album-cover-wrapper {
    width: 150px;
    height: 150px;
  }

  .status-badge {
    align-self: flex-start;
  }

  .meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Grade adaptativa automática de playlists */

  .playlist-card {
    padding: 16px;
  }

  .alerts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .player-bar {
    border-top: 1px solid var(--border-light);
  }

  .player-bar-content {
    padding: 16px 40px;
  }
}

/* --- REDESIGN PREMIUM DO PLAYER CARD --- */
.playback-buttons .btn-control:hover { color: var(--color-primary) !important; transform: scale(1.1); }
.playback-buttons .btn-play-pause:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 12px 30px rgba(255,255,255,0.3); }
.card-volume-area input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
@media (max-width: 600px) {
  .playback-buttons { gap: 16px !important; }
  .playback-buttons .btn-play-pause { width: 58px !important; height: 58px !important; }
  .playback-buttons .btn-control { font-size: 22px !important; }
  .btn-control#btn-shuffle, .btn-control#btn-stop { font-size: 18px !important; }
}
