/* ============================================
   PAINEL TVS - DESIGN MODERNO 2025
   Tema Claro - Visual Moderno e Profissional
   ============================================ */

/* --- Variáveis CSS Modernas - Tema Claro --- */
:root {
  color-scheme: light;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Cores Claras e Vibrantes */
  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-card-solid: #ffffff;
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.1);
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --success: #10b981;
  --success-light: #34d399;
  --danger: #ef4444;
  --danger-light: #f87171;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --info: #06b6d4;
  --border-soft: rgba(148, 163, 184, 0.3);
  --border-hover: rgba(79, 70, 229, 0.5);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  /* Tipografia melhorada */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Tamanhos de fonte hierárquicos */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  
  /* Espaçamentos de linha */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Gradientes Modernos */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  --gradient-body: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);

  /* Sombras Modernas - Tema Claro */
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 24px rgba(79, 70, 229, 0.2);

  /* Transições Suaves */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Bordas Arredondadas */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* --- Reset e Base --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gradient-body);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Efeito de fundo moderno com gradientes sutis - Tema Claro */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* --- Navbar Moderna - Tema Claro --- */
.navbar {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 0;
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 800;
  font-size: var(--font-size-xl);
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-base);
  line-height: var(--line-height-tight);
}

.navbar-brand:hover {
  filter: brightness(1.1);
}

.navbar-brand i {
  -webkit-text-fill-color: var(--primary-light);
  background: none;
}

/* --- Cards Modernos com Glassmorphism - Tema Claro --- */
.card-glass {
  background: var(--gradient-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Brilho superior elegante */
.card-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99, 102, 241, 0.4), 
    rgba(79, 70, 229, 0.6), 
    rgba(99, 102, 241, 0.4), 
    transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card-glass:hover::before {
  opacity: 1;
}

.card-glass:hover {
  border-color: var(--border-hover);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(79, 70, 229, 0.15),
    0 0 32px rgba(79, 70, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  background: var(--bg-card-hover);
}

/* --- Lista de TVs Moderna - Tema Claro --- */
.tv-list-item {
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

/* Indicador lateral animado moderno */
.tv-list-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-base);
  opacity: 0;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* Efeito de brilho ao hover */
.tv-list-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.tv-list-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-md), 0 0 20px rgba(79, 70, 229, 0.15);
}

.tv-list-item:hover::before {
  transform: scaleY(1);
  opacity: 1;
}

.tv-list-item:hover::after {
  opacity: 1;
}

.tv-list-item.active {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.1) 0%, 
    rgba(99, 102, 241, 0.08) 50%,
    rgba(79, 70, 229, 0.05) 100%);
  box-shadow: var(--shadow-md), 0 0 24px rgba(79, 70, 229, 0.2);
}

.tv-list-item.active::before {
  transform: scaleY(1);
  opacity: 1;
}

/* Garantir que os botões não sejam cortados */
.tv-list-item .d-flex {
  overflow: hidden;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.tv-list-item .btn-group {
  flex-shrink: 0;
  overflow: hidden;
  z-index: 10;
  position: relative;
  max-width: 100%;
}

/* Botões pequenos para controle de energia */
.tv-power-controls .btn-xs,
.btn-xs {
  padding: 0.2rem 0.35rem;
  font-size: 0.7rem;
  line-height: 1;
  border-radius: 0.2rem;
  min-width: 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
}

.tv-power-controls .btn-xs i {
  font-size: 0.75rem;
  line-height: 1;
  margin: 0;
}

.tv-power-controls .btn-xs.btn-disabled,
.tv-power-controls .btn-xs:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: auto; /* Permitir clique mesmo visualmente desabilitado */
}

.tv-power-controls .btn-xs.btn-disabled:hover {
  opacity: 0.5;
  transform: scale(1.02);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.tv-power-controls .btn-xs:hover:not(.btn-disabled):not(:disabled) {
  transform: scale(1.08);
  transition: transform 0.15s ease;
  z-index: 5;
}

.tv-power-controls.btn-group {
  gap: 0;
}

.tv-power-controls.btn-group .btn-xs {
  border-right-width: 0;
}

.tv-power-controls.btn-group .btn-xs:last-child {
  border-right-width: 1px;
}

/* --- Badges Modernos --- */
.badge-status {
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  font-weight: var(--font-weight-semibold);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.badge-status:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --- Editor de Playlist Moderno - Tema Claro --- */
.playlist-editor {
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.playlist-item {
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Gradiente animado ao hover */
.playlist-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.08) 0%, 
    rgba(99, 102, 241, 0.05) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.playlist-item:hover {
  border-color: var(--border-hover);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(79, 70, 229, 0.2),
    0 0 24px rgba(79, 70, 229, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 1);
}

.playlist-item:hover::after {
  opacity: 1;
}

.playlist-item .item-actions button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.playlist-item .item-actions button:hover {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-light);
}

/* --- Botões Modernos --- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semibold);
  padding: 0.625rem 1.25rem;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: 
    0 4px 20px rgba(79, 70, 229, 0.35),
    0 2px 8px rgba(79, 70, 229, 0.25),
    0 0 0 0 rgba(79, 70, 229, 0.4);
  transform: translateY(0);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.015em;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  box-shadow: 
    0 10px 32px rgba(79, 70, 229, 0.45),
    0 4px 12px rgba(79, 70, 229, 0.3),
    0 0 0 4px rgba(79, 70, 229, 0.15),
    0 0 24px rgba(79, 70, 229, 0.2);
  filter: brightness(1.08) saturate(1.1);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
  border: 2px solid rgba(79, 70, 229, 0.3);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-soft::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-soft:hover {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-dark);
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

.btn-soft:hover::before {
  width: 400px;
  height: 400px;
}

.btn-outline-primary {
  border: 2px solid rgba(79, 70, 229, 0.4);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-light);
  color: white;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-outline-danger {
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, #ef4444, #f87171);
  border-color: var(--danger-light);
  color: white;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(148, 163, 184, 0.4);
  color: var(--text-primary);
}

.btn-outline-light:hover {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-primary);
}

/* --- Formulários Modernos - Tema Claro --- */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
input[type="range"],
textarea,
select.form-select {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(226, 232, 240, 0.8) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all var(--transition-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: -0.01em;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 1;
}

.form-control:focus,
input:focus,
textarea:focus,
select.form-select:focus {
  border-color: var(--primary-light) !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15),
              0 0 20px rgba(79, 70, 229, 0.08) !important;
  background: rgba(255, 255, 255, 1) !important;
  outline: none;
}

.form-select,
select.form-select {
  background: rgba(255, 255, 255, 0.95) !important;
  cursor: pointer;
}

.form-select:focus {
  background: rgba(255, 255, 255, 1) !important;
}

.form-select option {
  background: rgba(255, 255, 255, 1);
  color: var(--text-primary);
}

.form-label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  line-height: var(--line-height-normal);
}

.form-text {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: 0.375rem;
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-normal);
}

/* Range input moderno - Tema Claro */
.form-range {
  height: 8px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-full);
}

.form-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  transition: all var(--transition-fast);
}

.form-range::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.5);
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  transition: all var(--transition-fast);
}

/* --- Miniaturas de Mídia Modernas --- */
.media-thumb {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-base);
  cursor: pointer;
}

.media-thumb:hover {
  box-shadow: var(--shadow-lg), 0 0 24px rgba(79, 70, 229, 0.2);
  border-color: var(--primary-light);
}

.media-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.9) 0%, 
    rgba(241, 245, 249, 0.8) 100%);
  border: 2px dashed rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

/* Media card styles consolidados abaixo */

/* --- Cabeçalhos de Seção Modernos --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 1.5rem;
}

.section-header h2,
.section-header h3,
.section-header h4,
.section-header h5 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: var(--line-height-tight);
  margin: 0;
}

.section-header h2 {
  font-size: var(--font-size-2xl);
}

.section-header h3 {
  font-size: var(--font-size-xl);
}

.section-header h4 {
  font-size: var(--font-size-lg);
}

.section-header h5 {
  font-size: var(--font-size-base);
}

.section-header .text-uppercase {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Display de Token Moderno - Tema Claro --- */
.token-display {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  min-width: 280px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.token-display code {
  font-size: var(--font-size-lg);
  letter-spacing: 0.12em;
  word-break: break-all;
  display: block;
  padding: 0.75rem 0;
  font-weight: var(--font-weight-semibold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--line-height-normal);
}

.token-display::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(79, 70, 229, 0.1), 
    transparent);
  transition: left 0.6s ease;
}

.token-display:hover::before {
  left: 100%;
}

.token-display:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 24px rgba(79, 70, 229, 0.2);
}

/* --- Broadcast Targets - Tema Claro --- */
#broadcast-targets {
  color: var(--text-primary);
}

#broadcast-targets .form-check {
  color: var(--text-primary);
}

#broadcast-targets .form-check-label {
  color: var(--text-primary) !important;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

#broadcast-targets .form-check-label:hover {
  color: var(--primary) !important;
}

#broadcast-targets .form-check-input {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
  transition: all var(--transition-fast);
}

#broadcast-targets .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

#broadcast-targets .form-check-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

/* --- Alertas Modernos - Tema Claro --- */
.alert {
  border-radius: var(--radius-md);
  border: 2px solid;
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  font-weight: 500;
}

.alert-danger {
  background: rgba(254, 242, 242, 0.9);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.alert-success {
  background: rgba(236, 253, 245, 0.9);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.alert-dark {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(226, 232, 240, 0.8);
  color: var(--text-primary);
}

.alert-warning {
  background: rgba(255, 251, 235, 0.9);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--warning);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

/* --- Página de Login Moderna - Tema Claro --- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(79, 70, 229, 0.15);
  padding: 2.5rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card .brand-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border: 2px solid rgba(79, 70, 229, 0.3);
  color: var(--primary);
  font-size: 36px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}

.login-card .btn-primary {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* --- Playlist Vazia - Tema Claro --- */
#playlist-empty {
  border-radius: var(--radius-md);
  border: 2px dashed rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.8);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* --- Itens de Usuário - Tema Claro --- */
.user-item {
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
}

.user-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-md);
}

/* --- Tabelas - Tema Claro --- */
.table-playlist th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.8);
}

.table-playlist td {
  vertical-align: middle;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.5);
}

/* --- Scrollbar Personalizada Moderna - Tema Claro --- */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  border: 2px solid rgba(241, 245, 249, 0.8);
  transition: all var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
  border-color: rgba(241, 245, 249, 0.6);
}

/* --- Animações Modernas --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.card-glass,
.tv-list-item,
.playlist-item {
  animation: fadeIn 0.4s ease-out;
}

.media-card {
  animation: fadeIn 0.4s ease-out;
}

/* --- Toast Container --- */
.toast-container {
  z-index: 1080;
}

.toast {
  border-radius: var(--radius-md);
  border: 2px solid;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
  .tv-list-item {
    padding: 1rem;
  }
  
  .playlist-item {
    padding: 1rem;
  }
  
  .card-glass {
    border-radius: var(--radius-md);
    padding: 1.25rem !important;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .token-display {
    min-width: auto;
    width: 100%;
  }
  
  .login-card {
    padding: 2rem;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* --- Estados de Foco para Acessibilidade --- */
*:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* --- Suporte para Alto Contraste --- */
@media (prefers-contrast: high) {
  .card-glass {
    border-width: 2px;
    background: rgba(255, 255, 255, 1);
  }
  
  .btn {
    border-width: 2px;
  }
  
  .tv-list-item {
    border-width: 2px;
  }
}

/* --- Preferência de Movimento Reduzido --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Melhorias de Tipografia --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-snug);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: var(--line-height-snug);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: var(--line-height-normal);
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: var(--line-height-normal);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: var(--line-height-normal);
}

/* Labels e textos secundários melhorados */
.form-label,
label {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  display: block;
}

.form-label.text-secondary,
label.text-secondary {
  color: var(--text-secondary) !important;
  font-weight: var(--font-weight-medium);
}

.form-label.small,
label.small {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Textos secundários e muted */
.text-secondary {
  color: var(--text-secondary) !important;
  font-weight: var(--font-weight-normal);
}

.text-muted {
  color: var(--text-muted) !important;
  font-weight: var(--font-weight-normal);
}

.small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.text-uppercase.small {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
}

/* Parágrafos melhorados */
p {
  margin-bottom: 1rem;
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

p.small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0.75rem;
}

p.text-secondary {
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

/* Melhorias em cards */
.card-glass h2,
.card-glass h3,
.card-glass h4,
.card-glass h5,
.card-glass h6 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-glass .text-white {
  color: var(--text-primary) !important;
  font-weight: var(--font-weight-semibold);
}

/* TV list item textos */
.tv-list-item h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: var(--line-height-snug);
}

.tv-list-item .text-secondary {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

.text-white {
  color: var(--text-primary) !important;
}

/* Ajustes para classes Bootstrap no tema claro */
.bg-dark {
  background-color: rgba(248, 250, 252, 0.9) !important;
  color: var(--text-primary) !important;
}

.bg-primary-subtle {
  background-color: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.text-primary-emphasis {
  color: var(--primary) !important;
}

.bg-opacity-75 {
  background-color: rgba(248, 250, 252, 0.75) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* Ajustes adicionais para tema claro */
.border-primary {
  border-color: var(--primary) !important;
}

.border-opacity-25 {
  border-color: rgba(79, 70, 229, 0.25) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.badge.text-bg-dark {
  background-color: rgba(241, 245, 249, 0.9) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.border-secondary {
  border-color: rgba(226, 232, 240, 0.8) !important;
}

/* Ajustes para modais no tema claro */
.modal-content {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border: 2px solid rgba(226, 232, 240, 0.8) !important;
  color: var(--text-primary) !important;
}

.modal-header {
  border-bottom: 2px solid rgba(226, 232, 240, 0.8) !important;
}

.modal-footer {
  border-top: 2px solid rgba(226, 232, 240, 0.8) !important;
}

/* Ajustes para navbar brand */
.navbar-brand.text-white {
  color: var(--text-primary) !important;
}

/* Ajustes para hr */
hr {
  border-color: rgba(226, 232, 240, 0.8) !important;
  opacity: 1;
}

/* Links de TV - visíveis no tema claro */
.tv-link {
  color: var(--primary) !important;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  word-break: break-all;
  line-height: var(--line-height-normal);
}

.tv-link:hover {
  color: var(--primary-dark) !important;
  text-decoration: underline !important;
}

/* Override para link-light no tema claro */
.link-light {
  color: var(--primary) !important;
}

.link-light:hover {
  color: var(--primary-dark) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* --- Espaçamentos Melhorados --- */
.card-glass {
  padding: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

/* --- Upload List Moderno --- */
#upload-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

#upload-list.row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-top: calc(var(--bs-gutter-y) * -0.5);
}

#upload-list.row > * {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-top: calc(var(--bs-gutter-y) * 0.5);
  padding-bottom: calc(var(--bs-gutter-y) * 0.5);
}

.media-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.media-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(79, 70, 229, 0.15);
  background: rgba(255, 255, 255, 1);
}

.media-card img,
.media-card .media-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 0.75rem;
  display: block;
}

.media-card .media-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.9) 0%, 
    rgba(241, 245, 249, 0.8) 100%);
  border: 2px dashed rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.media-card .d-flex {
  margin-bottom: 0.75rem;
}

.media-card .fw-semibold {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card .badge {
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.media-card .btn {
  margin-top: 0.5rem;
}

.media-card .btn:first-of-type {
  margin-top: 0;
}

/* --- Form Controls Small --- */
.form-control-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* --- Melhorias de Contraste e Legibilidade --- */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: 0.01em;
}

.container {
  max-width: 1400px;
}

/* --- Ajustes de cores específicas do Bootstrap --- */
.bg-primary-subtle {
  background-color: var(--primary-soft) !important;
}

.text-primary-emphasis {
  color: var(--primary) !important;
}

.bg-dark {
  background-color: rgba(248, 250, 252, 0.9) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.border-opacity-25 {
  border-color: rgba(79, 70, 229, 0.25) !important;
}

/* --- Badge styles --- */
.badge {
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

/* --- Seção de Agendamento Melhorada --- */
.schedule-section {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

.schedule-section .card-glass {
  background: linear-gradient(135deg, 
    rgba(239, 246, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
  border: 2px solid rgba(79, 70, 229, 0.3);
  box-shadow: 
    0 4px 20px rgba(79, 70, 229, 0.15),
    0 2px 8px rgba(79, 70, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.schedule-section .card-glass:hover {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 
    0 8px 32px rgba(79, 70, 229, 0.2),
    0 4px 16px rgba(79, 70, 229, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* --- Indicador de Item Agendado --- */
.playlist-item[data-scheduled="true"] {
  border-left: 4px solid var(--info);
  background: linear-gradient(135deg, 
    rgba(239, 246, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
}

.playlist-item[data-scheduled="true"]::before {
  content: "📅";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.25rem;
  opacity: 0.6;
  z-index: 1;
}

/* --- Badge de Status Melhorado --- */
.badge {
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.badge:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* --- Dropdown de Templates Melhorado --- */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(79, 70, 229, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem;
  transition: all var(--transition-fast);
  font-weight: 500;
  color: var(--text-primary);
}

.dropdown-item:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.dropdown-item:active {
  background: var(--gradient-primary);
  color: white;
}

/* --- Botão de Backup Melhorado --- */
#backup-btn {
  border: 2px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-weight: 600;
  transition: all var(--transition-base);
}

#backup-btn:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-light);
  color: white;
  box-shadow: 
    0 6px 20px rgba(79, 70, 229, 0.3),
    0 0 16px rgba(79, 70, 229, 0.15);
}

/* --- Melhorias na Navbar --- */
.navbar {
  backdrop-filter: blur(24px) saturate(200%);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 2px solid rgba(226, 232, 240, 0.9);
  padding: 1.25rem 0;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- Melhorias nos Inputs --- */
.form-control:focus,
input:focus,
textarea:focus,
select.form-select:focus {
  border-color: var(--primary-light) !important;
  box-shadow: 
    0 0 0 4px rgba(79, 70, 229, 0.15),
    0 0 24px rgba(79, 70, 229, 0.1),
    0 4px 12px rgba(79, 70, 229, 0.08) !important;
  background: rgba(255, 255, 255, 1) !important;
  outline: none;
}

/* --- Melhorias nos Cards de Mídia --- */
.media-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.media-card:hover {
  border-color: var(--border-hover);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(79, 70, 229, 0.2),
    0 0 32px rgba(79, 70, 229, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 1);
}

/* --- Melhorias na Seção Header --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 1.75rem;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* --- Melhorias no Token Display --- */
.token-display {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border: 2px solid rgba(79, 70, 229, 0.3);
  box-shadow: 
    0 4px 20px rgba(79, 70, 229, 0.12),
    0 2px 8px rgba(79, 70, 229, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.token-display:hover {
  border-color: var(--primary-light);
  box-shadow: 
    0 8px 32px rgba(79, 70, 229, 0.2),
    0 4px 16px rgba(79, 70, 229, 0.15),
    0 0 32px rgba(79, 70, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* --- Melhorias nos Botões de Ação --- */
.btn-outline-info {
  border: 2px solid rgba(6, 182, 212, 0.4);
  color: var(--info);
  background: rgba(239, 246, 255, 0.5);
  font-weight: 600;
}

.btn-outline-info:hover {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  border-color: var(--accent-light);
  color: white;
  box-shadow: 
    0 6px 20px rgba(6, 182, 212, 0.3),
    0 0 16px rgba(6, 182, 212, 0.15);
}

/* --- Animações de Entrada Melhoradas --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-glass,
.tv-list-item,
.playlist-item,
.media-card {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Efeito de Loading Melhorado --- */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Melhorias no Form Range --- */
.form-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 12px rgba(79, 70, 229, 0.4),
    0 2px 6px rgba(79, 70, 229, 0.3),
    0 0 16px rgba(79, 70, 229, 0.2);
  transition: all var(--transition-fast);
}

.form-range::-webkit-slider-thumb:hover {
  box-shadow: 
    0 6px 20px rgba(79, 70, 229, 0.5),
    0 4px 12px rgba(79, 70, 229, 0.4),
    0 0 24px rgba(79, 70, 229, 0.3);
}

/* --- Melhorias no Login Card --- */
.login-card {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(79, 70, 229, 0.2),
    0 0 48px rgba(79, 70, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-card:hover {
  box-shadow: 
    0 24px 72px rgba(0, 0, 0, 0.18),
    0 12px 32px rgba(79, 70, 229, 0.25),
    0 0 56px rgba(79, 70, 229, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* --- Melhorias na Visualização de Dados Salvos --- */
.api-panel-loaded {
  position: relative;
}

.api-panel-status-badge {
  animation: fadeInUp 0.4s ease-out;
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* Indicador visual para campos preenchidos */
.form-control.border-success {
  border-color: rgba(16, 185, 129, 0.5) !important;
  background: linear-gradient(135deg, 
    rgba(236, 253, 245, 0.3) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
}

.form-control.border-success:focus {
  border-color: rgba(16, 185, 129, 0.8) !important;
  box-shadow: 
    0 0 0 4px rgba(16, 185, 129, 0.15),
    0 0 24px rgba(16, 185, 129, 0.1),
    0 4px 12px rgba(16, 185, 129, 0.08) !important;
}

/* Badge de status nos itens da playlist */
.playlist-item .badge.bg-success-subtle {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  animation: fadeIn 0.3s ease-out;
}

/* Melhorias visuais para seção de agendamento */
.schedule-section .alert-info {
  background: linear-gradient(135deg, 
    rgba(239, 246, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-sm);
}

/* Indicador de campo preenchido */
.form-label .badge {
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Melhorias nos inputs de agendamento */
input[type="datetime-local"].border-info {
  border-color: rgba(6, 182, 212, 0.5) !important;
  background: linear-gradient(135deg, 
    rgba(239, 246, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
}

input[type="datetime-local"].border-info:focus {
  border-color: rgba(6, 182, 212, 0.8) !important;
  box-shadow: 
    0 0 0 4px rgba(6, 182, 212, 0.15),
    0 0 24px rgba(6, 182, 212, 0.1),
    0 4px 12px rgba(6, 182, 212, 0.08) !important;
}

/* Animação para badges de status */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
