:root {
  --admin-bg: #1c1d22; /* Fundo Chumbo / Charcoal Background */
  --admin-card: #282a33; /* Cartões mais claros / Elevated Cards */
  --admin-border: #383b47; /* Bordas mais visíveis */
  --admin-text: #f8fafc;
  --admin-text-muted: rgba(255, 255, 255, 0.75);
  --primary-green: #166534;
  --primary-gold: #a17a52; /* Marrom Claro/Dourado */
  --accent-blue: #3b82f6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.admin-body {
  font-family: 'Inter', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  overflow-x: hidden;
}

.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* SIDEBAR */
.admin-sidebar {
  width: 240px;
  transition: width 0.3s ease;
  background-color: var(--admin-card);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  height: 50px; /* Mais compacto */
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--admin-border);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.logo-highlight {
  color: var(--primary-gold);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.nav-list {
  list-style: none;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-text-muted);
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 6px;
  padding-left: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 2px;
}

.nav-item svg {
  width: 16px;
  height: 16px;
}

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

.nav-item.active {
  background: linear-gradient(90deg, var(--primary-green), var(--primary-gold));
  color: #fff;
  font-weight: 400;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--admin-border);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

/* MAIN AREA */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-header {
  height: 50px; /* Mais compacto */
  background-color: var(--admin-card);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.admin-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-search {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--admin-text-muted);
}

.admin-search input {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: #fff;
  padding: 8px 16px 8px 36px;
  border-radius: 20px;
  font-size: 0.9rem;
  width: 250px;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--primary-gold);
}

.btn-notify {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  position: relative;
}

.btn-notify svg {
  width: 20px;
  height: 20px;
}

.notify-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.admin-profile .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
}

.admin-profile .admin-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* CONTENT VIEWS */
.admin-content-wrapper {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.admin-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-view.active {
  display: block;
}

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

/* DASHBOARD STATS */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.users { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.stat-icon.listings { background: rgba(22, 101, 52, 0.2); color: #4ade80; }
.stat-icon.revenue { background: rgba(212, 175, 55, 0.15); color: var(--primary-gold); }
.stat-icon.views { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.stat-info h3 {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-info .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.stat-info .stat-trend {
  font-size: 0.8rem;
  font-weight: 600;
}
.stat-trend.positive { color: var(--success); }
.stat-trend.negative { color: var(--danger); }

/* CHARTS SECTION */
.dashboard-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.chart-container {
  background-color: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
}

.chart-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.activity-list {
  list-style: none;
}

.activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.activity-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.activity-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
}
.activity-icon.success { background: var(--success); box-shadow: 0 0 8px var(--success); }
.activity-icon.primary { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.activity-icon.warning { background: var(--warning); box-shadow: 0 0 8px var(--warning); }

.activity-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--admin-text);
}

.activity-text strong {
  color: #fff;
}

.activity-time {
  display: block;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

/* GENERIC VIEWS & TABLES */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.view-header h3 {
  font-size: 1.5rem;
}

.view-subtitle {
  color: var(--admin-text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: #14532d;
}

.btn-secondary {
  background: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.property-list {
  margin-bottom: 24px;
}

.property-editor {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.editor-header {
  align-items: center;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
  margin-top: 24px;
}

.editor-form-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 24px;
}

.editor-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-field-full {
  grid-column: 1 / -1;
}

.editor-field label {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
}

.editor-field textarea {
  min-height: 140px;
}

.editor-preview-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 24px;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.preview-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.preview-badges {
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-badge {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.type-badge {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
}

.preview-price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.preview-agent {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 16px;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 22px;
}

.card-table {
  background-color: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
  background-color: rgba(255,255,255,0.02);
  color: var(--admin-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  font-size: 0.95rem;
}

.admin-table tr:hover td {
  background-color: rgba(255,255,255,0.02);
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-admin { background: rgba(212, 175, 55, 0.2); color: var(--primary-gold); }
.badge-user { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-active::before { background: var(--success); }
.status-inactive::before { background: var(--danger); }

.btn-action {
  background: transparent;
  color: var(--accent-blue);
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-action + .btn-action {
  margin-left: 10px;
}

.btn-action.edit {
  color: #93c5fd;
}

.btn-action.delete {
  color: #f87171;
}

.btn-action:hover {
  text-decoration: underline;
}

.placeholder-text {
  color: var(--admin-text-muted);
  font-style: italic;
}

/* Sidebar Collapse Styles */
.admin-sidebar.collapsed {
  width: 70px;
}

.admin-sidebar.collapsed .logo-area img {
  display: none;
}

.admin-sidebar.collapsed .nav-text {
  display: none;
}

.admin-sidebar.collapsed .btn-toggle-sidebar {
  margin: 0 auto !important;
}

.admin-sidebar.collapsed .nav-section-title {
  color: transparent;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 8px;
  padding: 0;
}

.admin-sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 10px 0;
}

.admin-sidebar.collapsed .btn-logout {
  justify-content: center;
}

.btn-logout svg {
  flex-shrink: 0;
}

/* ==========================================================================
   WEBRADIO DASHBOARD STYLES
   ========================================================================== */

/* Live Status Badge */
.radio-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 10px 4px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Neon Button Upgrade */
.btn-neon {
  background: linear-gradient(135deg, #16a34a, #059669);
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.3);
  border: 1px solid rgba(22, 163, 74, 0.5);
  transition: all 0.3s ease;
}

.btn-neon:hover {
  background: linear-gradient(135deg, #15803d, #047857);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
  transform: translateY(-1px);
}

/* Monitor Panel */
.radio-monitor-panel {
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.monitor-left {
  width: 320px;
  flex-shrink: 0;
}

.monitor-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Prevents overflow */
}

.monitor-right {
  width: auto;
  flex-shrink: 0;
}

.music-info-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

/* Audio Visualizer */
.visualizer-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  width: 30px;
}

.visualizer-container .bar {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  animation: bounce 1.2s ease infinite alternate;
}

.visualizer-container .bar:nth-child(odd) {
  background-color: #39ff14;
  box-shadow: 0 0 5px #39ff14;
}

.visualizer-container .bar:nth-child(even) {
  background-color: #ff6c00;
  box-shadow: 0 0 5px #ff6c00;
}

.visualizer-container .bar:nth-child(2) { animation-delay: 0.15s; animation-duration: 0.9s; }
.visualizer-container .bar:nth-child(3) { animation-delay: 0.3s; animation-duration: 1.4s; }
.visualizer-container .bar:nth-child(4) { animation-delay: 0.45s; animation-duration: 0.8s; }
.visualizer-container .bar:nth-child(5) { animation-delay: 0.6s; animation-duration: 1.1s; }

@keyframes bounce {
  from { height: 4px; }
  to { height: 28px; }
}

.current-track-details {
  display: flex;
  flex-direction: column;
}

.track-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00ffcc;
  text-shadow: 0 0 5px rgba(0,255,204,0.3);
  margin-bottom: 2px;
}

.track-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.track-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffcc, #39ff14);
  box-shadow: 0 0 8px #00ffcc;
  border-radius: 3px;
  transition: width 1s linear;
}

/* Mini Player Controls */
.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 30px;
}

.player-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-btn:hover {
  background: #00ffcc;
  color: #000;
  box-shadow: 0 0 10px #00ffcc;
  border-color: #00ffcc;
}

.player-btn.playing {
  background: #ff0055;
  color: #fff;
  box-shadow: 0 0 10px #ff0055;
  border-color: #ff0055;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
}

.volume-control input[type="range"] {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: all 0.1s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
  background: #00ffcc;
  box-shadow: 0 0 8px #00ffcc;
}

/* Grid Layout & Flex Toggle Support */
.webradio-layout-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  height: auto;
}

/* Left Panel (Library) */
.library-panel {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  width: 400px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scheduler-panel {
  flex: 1;
  min-width: 0; /* Ensures columns resize correctly without overflowing */
}

/* Collapsed Library Panel Styles */
.webradio-layout-grid.library-collapsed .library-panel {
  width: 0;
  margin-right: -20px; /* Offset the gap */
  opacity: 0;
  pointer-events: none;
  border-color: transparent;
}

.webradio-layout-grid.library-collapsed .scheduler-panel {
  grid-column: 1 / -1;
}

/* Play Shift Testing Button */
.btn-play-shift, .btn-prev-shift, .btn-next-shift {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}

.btn-play-shift:hover, .btn-prev-shift:hover, .btn-next-shift:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.btn-play-shift.playing {
  animation: pulse-neon 1.5s infinite alternate;
}

@keyframes pulse-neon {
  0% { box-shadow: 0 0 5px rgba(57, 255, 20, 0.2); }
  100% { box-shadow: 0 0 15px rgba(57, 255, 20, 0.8); }
}

.scheduled-item.testing-active {
  border-color: #39ff14 !important;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.1);
}

.library-panel .panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--admin-border);
}

.library-panel h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.library-panel .search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.8rem;
}

.library-panel .search-box input:focus {
  outline: none;
  border-color: #00ffcc;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

/* Accordion */
.library-accordion {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.accordion-item {
  border-bottom: 1px solid var(--admin-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-trigger span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
}

.accordion-trigger .chevron {
  color: #555;
  transition: transform 0.2s ease;
}

.accordion-item.expanded .accordion-trigger {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.accordion-item.expanded .accordion-trigger span {
  color: #fff;
}

.accordion-item.expanded .chevron {
  transform: rotate(180deg);
  color: #fff;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.15);
}

.accordion-item.expanded .accordion-content {
  max-height: 400px;
  overflow-y: auto;
}

/* Audio Item (Draggable Cards) */
.audio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 6px 2px; /* reduced horizontal margin to align to the left and save space */
  background: rgba(255, 255, 255, 0.03); /* Sleeker dark card */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  transition: all 0.2s ease;
}

.audio-item:active {
  cursor: grabbing;
}

.audio-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

/* Cyberpunk Colored Left Border Tags */
.audio-item[data-type="music"] { border-left: 3px solid #00ffff; }
.audio-item[data-type="commercial"] { border-left: 3px solid #ffd700; }
.audio-item[data-type="effect"] { border-left: 3px solid #ff00ff; }
.audio-item[data-type="jingle"] { border-left: 3px solid #ff8c00; }
.audio-item[data-type="branding"] { border-left: 3px solid #8e2de2; }
.audio-item[data-type="plugin"] { border-left: 3px solid #39ff14; }
.audio-item[data-type="news"] { border-left: 3px solid #ff4444; }

/* Role Overrides */
.audio-item[data-role="call"] { border-left: 3px solid #ff8c00 !important; }
.audio-item[data-role="music"] { border-left: 3px solid #00ffff !important; }

.item-drag-handle {
  color: #444;
  font-size: 0.9rem;
  letter-spacing: -1px;
}

.audio-item:hover .item-drag-handle {
  color: #888;
}

.item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #eee;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}

.item-sub {
  font-size: 0.7rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.item-quick-add {
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.audio-item:hover .item-quick-add {
  opacity: 1;
  pointer-events: auto;
}

.btn-quick-add {
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quick-add:hover {
  background: #00ffcc;
  color: #000;
  border-color: #00ffcc;
}

/* Scheduler Right Panel */
.scheduler-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.scheduler-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.btn-schedule {
  background: transparent;
  border: 1px solid rgba(0, 150, 255, 0.3);
  color: #00aaff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-schedule:hover {
  background: rgba(0, 150, 255, 0.1);
  border-color: #00aaff;
}

.btn-clear-all {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-all:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* Shifts Grid & Tabs */
.shift-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.shift-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: #8a8a93;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.8rem;
  font-weight: 600;
}

.shift-tab-btn svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shift-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.shift-tab-btn:hover svg {
  transform: scale(1.1);
}

/* Tab Colors when Active */
.shift-tab-btn[data-shift="manha"].active {
  background: rgba(255, 165, 0, 0.06);
  border-color: #ffa500;
  color: #ffa500;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.15);
}

.shift-tab-btn[data-shift="tarde"].active {
  background: rgba(255, 140, 0, 0.06);
  border-color: #ff8c00;
  color: #ff8c00;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.15);
}

.shift-tab-btn[data-shift="noite"].active {
  background: rgba(0, 255, 255, 0.06);
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

.shift-tab-btn[data-shift="madrugada"].active {
  background: rgba(189, 0, 255, 0.06);
  border-color: #bd00ff;
  color: #bd00ff;
  box-shadow: 0 0 15px rgba(189, 0, 255, 0.15);
}

.shift-tab-time {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.65;
}

.scheduler-workspace {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 520px; /* Fixed height for consistency */
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}

.hours-selector-container {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--admin-border);
}

.hours-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hour-btn {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hour-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Hour Buttons active states based on Turn */
.hours-bar[data-shift="manha"] .hour-btn.active {
  background: rgba(255, 165, 0, 0.15);
  border-color: #ffa500;
  color: #ffa500;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}

.hours-bar[data-shift="tarde"] .hour-btn.active {
  background: rgba(255, 140, 0, 0.15);
  border-color: #ff8c00;
  color: #ff8c00;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

.hours-bar[data-shift="noite"] .hour-btn.active {
  background: rgba(0, 255, 255, 0.15);
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.hours-bar[data-shift="madrugada"] .hour-btn.active {
  background: rgba(189, 0, 255, 0.15);
  border-color: #bd00ff;
  color: #bd00ff;
  box-shadow: 0 0 10px rgba(189, 0, 255, 0.2);
}

.dropzones-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}

.dropzones-container .shift-dropzone {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 16px 12px 16px 80px;
}

.scheduler-workspace-footer {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.btn-play-hour, .btn-play-shift-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 6px 12px;
  color: #d4d4d8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-play-hour:hover, .btn-play-shift-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Role based overrides for scheduled items */
.scheduled-item[data-role="call"] {
  background: linear-gradient(135deg, #7c3a00 0%, #a04e00 100%) !important; /* Premium dark orange gradient */
  border: 1px solid rgba(255, 140, 0, 0.35) !important;
  border-left: 4px solid #ff8c00 !important;
}

.scheduled-item[data-role="call"] .node-time {
  color: #ff8c00 !important;
  border-color: rgba(255, 140, 0, 0.3) !important;
}

.scheduled-item[data-role="call"] .node-dot {
  background: #ff8c00 !important;
  box-shadow: 0 0 8px #ff8c00 !important;
}

.scheduled-item[data-role="music"],
.scheduled-item[data-role="song"] {
  background: linear-gradient(135deg, #005c73 0%, #0083b0 100%) !important; /* Premium blue gradient */
  border: 1px solid rgba(0, 255, 255, 0.35) !important;
  border-left: 4px solid #00ffff !important;
}

.scheduled-item[data-role="music"] .node-time,
.scheduled-item[data-role="song"] .node-time {
  color: #00ffcc !important;
  border-color: rgba(0, 255, 204, 0.3) !important;
}

.scheduled-item[data-role="music"] .node-dot,
.scheduled-item[data-role="song"] .node-dot {
  background: #00ffcc !important;
  box-shadow: 0 0 8px #00ffcc !important;
}

.shift-column {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 0; /* allows flexbox to shrink properly */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shift-column-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shift-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.shift-time {
  font-size: 0.7rem;
  color: #666;
  font-family: monospace;
}

/* Dropzone with Vertical Timeline */
.shift-dropzone {
  flex: 1;
  padding: 16px 12px 16px 80px; /* Expands left padding to fit vertical timeline */
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.1);
}

/* Vertical Timeline Track Line */
.shift-dropzone::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 69px; /* Centered with the timeline nodes */
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 255, 204, 0.3) 0%, rgba(142, 45, 226, 0.3) 50%, rgba(255, 0, 85, 0.1) 100%);
  z-index: 1;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

/* When dropzone contains scheduled items, make timeline track fully glowing */
.shift-dropzone:has(.scheduled-item)::before {
  opacity: 1;
}

/* Dragover glow effects */
.shift-dropzone.dragover {
  background: rgba(0, 255, 204, 0.03);
  border: 2px dashed #00ffcc;
  box-shadow: inset 0 0 15px rgba(0, 255, 204, 0.15);
}

.dropzone-placeholder {
  position: absolute;
  top: 50%;
  left: 55%; /* Shifted slightly to center relative to remaining space */
  transform: translate(-50%, -50%);
  width: 75%;
  text-align: center;
  color: #555;
  font-size: 0.75rem;
  line-height: 1.4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.2s ease;
}

/* Hide placeholder using modern :has selector when dropzone has items */
.shift-dropzone:has(.scheduled-item) .dropzone-placeholder {
  display: none !important;
}

/* Timeline Node & Capsule Styles */
.item-timeline-node {
  position: absolute;
  left: -80px;
  width: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.node-time {
  position: absolute;
  right: 22px; /* Leaves space for the dot */
  top: 50%;
  transform: translateY(-50%);
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #00ffcc;
  background: #090909;
  border: 1px solid rgba(0, 255, 204, 0.25);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.05);
}

.node-dot {
  position: absolute;
  right: 6px; /* Positioned exactly on the vertical track line */
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffcc;
  border: 2px solid #111;
  box-shadow: 0 0 6px #00ffcc;
  transition: all 0.25s ease;
}

/* Scheduled Item style in Dropzones */
.scheduled-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
  animation: slideIn 0.2s ease;
  cursor: pointer;
}

.scheduled-item:hover {
  filter: brightness(1.15) contrast(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.scheduled-item:hover .node-dot {
  transform: translateY(-50%) scale(1.35);
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.scheduled-item[data-type="music"] {
  background: linear-gradient(135deg, #005c73 0%, #0083b0 100%) !important;
  border: 1px solid rgba(0, 255, 255, 0.4) !important;
  border-left: 4px solid #00ffff !important;
}
.scheduled-item[data-type="commercial"] {
  background: linear-gradient(135deg, #8a6f00 0%, #b39200 100%) !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  border-left: 4px solid #ffd700 !important;
}
.scheduled-item[data-type="effect"] {
  background: linear-gradient(135deg, #9d009d 0%, #d800d8 100%) !important;
  border: 1px solid rgba(255, 0, 255, 0.4) !important;
  border-left: 4px solid #ff00ff !important;
}
.scheduled-item[data-type="jingle"] {
  background: linear-gradient(135deg, #b35900 0%, #e67300 100%) !important;
  border: 1px solid rgba(255, 140, 0, 0.4) !important;
  border-left: 4px solid #ff8c00 !important;
}
.scheduled-item[data-type="branding"] {
  background: linear-gradient(135deg, #4a00e0 0%, #7209b7 100%) !important;
  border: 1px solid rgba(142, 45, 226, 0.4) !important;
  border-left: 4px solid #8e2de2 !important;
}
.scheduled-item[data-type="plugin"] {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
  border: 1px solid rgba(57, 255, 20, 0.4) !important;
  border-left: 4px solid #39ff14 !important;
}
.scheduled-item[data-type="news"] {
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%) !important;
  border: 1px solid rgba(255, 68, 68, 0.4) !important;
  border-left: 4px solid #ff4444 !important;
}

.scheduled-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: 4px;
}

.scheduled-item-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  white-space: normal; /* Allow wrapping so the title is complete */
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
}

.scheduled-item-type {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.9) !important;
}

.scheduled-item-duration {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: monospace;
}

.scheduled-item .btn-remove-item {
  color: rgba(255, 255, 255, 0.7) !important;
}
.scheduled-item .btn-remove-item:hover {
  color: #fff !important;
}

.scheduled-item .btn-lock-item {
  color: rgba(255, 255, 255, 0.7) !important;
}
.scheduled-item .btn-lock-item:hover {
  color: #fff !important;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: #555;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Footer of Shift Column */
.shift-column-footer {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--admin-border);
  font-size: 0.75rem;
  color: #888;
  display: flex;
  justify-content: flex-end;
}

.shift-column-footer span {
  font-weight: 500;
}

.shift-column-footer id {
  font-family: monospace;
  color: #fff;
}

/* Draggable sorting ghost item */
.audio-item.dragging, .scheduled-item.dragging {
  opacity: 0.4;
  border-style: dashed;
}

/* Toast notifications for Admin Actions */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #00ffcc;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.admin-toast.error {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.admin-toast-icon {
  font-weight: bold;
}
.admin-toast.success .admin-toast-icon { color: #00ffcc; }
.admin-toast.error .admin-toast-icon { color: #ef4444; }

/* Toggle Library Button */
.btn-toggle-library {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-toggle-library svg {
  transition: transform 0.3s ease;
}

.btn-toggle-library:hover {
  background: rgba(0, 255, 204, 0.08);
  border-color: rgba(0, 255, 204, 0.4);
  color: #00ffcc;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

.btn-toggle-library.active {
  background: rgba(0, 255, 204, 0.15);
  border-color: #00ffcc;
  color: #00ffcc;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.btn-toggle-library.active svg {
  transform: rotate(180deg); /* Flips the icon visual when collapsed */
}

/* Music Library Folder Structure */
.music-folder {
  margin: 6px 12px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.folder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.folder-header:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.folder-icon {
  color: #ff8c00; /* Gold folder color */
  filter: drop-shadow(0 0 3px rgba(255, 140, 0, 0.2));
  transition: transform 0.2s ease;
}

.folder-header:hover .folder-icon {
  transform: scale(1.05);
}

.folder-chevron {
  color: #555;
  transition: transform 0.2s ease;
}

/* Expanded Folder State */
.music-folder.expanded {
  margin-bottom: 12px;
}

.music-folder.expanded .folder-chevron {
  transform: rotate(180deg);
  color: #fff;
}

.music-folder.expanded .folder-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

/* Folder Content Area */
.folder-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.music-folder.expanded .folder-content {
  max-height: 400px;
  overflow-y: auto;
}

.folder-items {
  padding: 6px 0;
}

/* Inside folder, audio items should look indented and slightly clean */
.folder-items .audio-item {
  margin: 6px 10px;
}

/* Folder Open/Closed Icon Toggles */
.music-folder .folder-icon-open { display: none !important; }
.music-folder .folder-icon-closed { display: inline-block !important; }
.music-folder.expanded .folder-icon-open { display: inline-block !important; }
.music-folder.expanded .folder-icon-closed { display: none !important; }

/* Folder count badge styling */
.folder-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: normal;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.music-folder.expanded .folder-count {
  color: rgba(0, 255, 204, 0.7);
}

/* Inner Folder Upload Zone */
.folder-upload-zone {
  margin: 10px 12px 14px 12px;
  padding: 10px;
  background: rgba(0, 255, 204, 0.01);
  border: 1px dashed rgba(0, 255, 204, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.folder-upload-zone:hover {
  background: rgba(0, 255, 204, 0.05);
  border: 1px solid rgba(0, 255, 204, 0.4);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

.folder-upload-zone.dragover {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid #00ffcc;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
}

.upload-zone-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 255, 204, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.folder-upload-zone:hover .upload-zone-inner,
.folder-upload-zone.dragover .upload-zone-inner {
  color: #00ffcc;
  transform: translateY(-0.5px);
}

.upload-zone-icon {
  transition: transform 0.2s ease;
}

.folder-upload-zone:hover .upload-zone-icon {
  transform: translateY(-1px);
}

/* Subfolder structure styling */
.subfolders-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 12px 10px 12px;
}

.subfolder-item {
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.subfolder-item:last-child {
  border-bottom: none;
}

.subfolder-header {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  padding: 8px 12px !important;
  transition: all 0.2s ease;
}

.subfolder-header:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.subfolder-content {
  display: none;
  background: rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.subfolder-item.expanded .subfolder-content {
  display: block !important;
}

.subfolder-item.expanded .subfolder-chevron {
  transform: rotate(180deg);
  color: #fff;
}

.subfolder-item.expanded .subfolder-count {
  color: rgba(0, 255, 204, 0.7) !important;
}

/* Subfolder Upload Zone */
.subfolder-upload-zone {
  margin: 8px 10px 10px 10px;
  padding: 8px;
  background: rgba(0, 255, 204, 0.01);
  border: 1px dashed rgba(0, 255, 204, 0.15);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.subfolder-upload-zone:hover {
  background: rgba(0, 255, 204, 0.04);
  border-color: rgba(0, 255, 204, 0.35);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.08);
}

.subfolder-upload-zone.dragover {
  background: rgba(0, 255, 204, 0.06);
  border-color: #00ffcc;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.15);
}

.subfolder-upload-zone:hover .upload-zone-inner,
.subfolder-upload-zone.dragover .upload-zone-inner {
  color: #00ffcc;
}

/* Item Action buttons appearing on hover */
.item-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.audio-item:hover .item-actions {
  display: flex;
}

.btn-edit-item, .btn-delete-item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-edit-item:hover {
  color: #00ffff;
  background: rgba(0, 255, 255, 0.1);
}

.btn-delete-item:hover {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

/* Inline Editing Form inside Audio Item */
.audio-item.editing-active {
  cursor: default;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

.inline-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.edit-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.edit-field label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.edit-field input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  padding: 5px 8px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
}

.edit-field input:focus {
  outline: none;
  border-color: #00ffcc;
  box-shadow: 0 0 5px rgba(0, 255, 204, 0.2);
}

.edit-form-buttons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.edit-form-buttons button {
  flex: 1;
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit-save {
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: #00ffcc;
}

.btn-edit-save:hover {
  background: rgba(0, 255, 204, 0.2);
  border-color: #00ffcc;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

.btn-edit-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.btn-edit-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Audio Item actions icons */
.item-library-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.audio-item:hover .item-library-actions {
  opacity: 1;
}

.btn-lib-edit, .btn-lib-delete {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-lib-edit:hover {
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.1);
}

.btn-lib-delete:hover {
  color: #ff0055;
  background: rgba(255, 0, 85, 0.1);
}

/* Pinned Scheduled Item styling */
.scheduled-item.pinned {
  border-color: rgba(57, 255, 20, 0.25) !important;
  box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.05);
  position: relative;
}

.scheduled-item.pinned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14;
}

.scheduled-item.pinned .lock-closed {
  color: #39ff14 !important;
  filter: drop-shadow(0 0 3px rgba(57, 255, 20, 0.5));
}

.scheduled-item.pinned .btn-remove-item {
  display: none !important;
}

.btn-lock-item {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-right: 6px;
}

.btn-lock-item:hover {
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.1);
}

/* Lock icon states in scheduled items */
.scheduled-item .lock-closed { display: none !important; }
.scheduled-item .lock-open { display: inline-block !important; }

.scheduled-item.pinned .lock-closed { display: inline-block !important; }
.scheduled-item.pinned .lock-open { display: none !important; }

/* -------------------------------------------
   MODAL - SCHEDULE PRESETS
------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-container {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

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

.modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h4 {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 12px;
}

.save-schedule-form {
  display: flex;

}

.btn-secondary {
  background: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.item-title-cell {
  cursor: pointer;
  transition: background 0.2s ease;
}

.item-title-cell:hover {
  background: rgba(255, 255, 255, 0.04);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.modal-field {
  margin-bottom: 16px;
}

.modal-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #ccc;
}

.modal-field input,
.modal-field select {
  width: 100%;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--primary-green);
}

  gap: 10px;
}

.save-schedule-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9rem;
}

.save-schedule-form input:focus {
  outline: none;
  border-color: #00ffcc;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s;
}

.schedule-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.schedule-list-item .schedule-name {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.schedule-list-item .schedule-actions {
  display: flex;
  gap: 8px;
}

.schedule-list-item .schedule-actions button {
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-load-schedule {
  color: #00ffcc;
  border: 1px solid rgba(0, 255, 204, 0.3) !important;
}

.btn-load-schedule:hover {
  background: rgba(0, 255, 204, 0.1) !important;
}

.btn-delete-schedule {
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-delete-schedule:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .webradio-layout-grid {
    flex-direction: column;
  }
  .library-panel {
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .webradio-layout-grid.library-collapsed .library-panel {
    display: none;
  }
  .shifts-grid {
    grid-template-columns: 1fr;
  }
  .shift-column {
    min-height: 300px;
  }
}

/* Desktop view layout constraints for internal column scrolling */
@media (min-width: 1025px) {
  body:has(#view-webradio.active) .admin-content-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - 50px);
    box-sizing: border-box;
  }

  #view-webradio.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
  }

  .webradio-layout-grid {
    flex: 1;
    min-height: 0;
  }

  .scheduler-panel {
    height: 100%;
    min-height: 0;
  }

  .shifts-grid {
    flex: 1;
    min-height: 0;
  }
}

/* Dynamic Programming Timeline Monitor */
.timeline-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  color: #888;
}

.timeline-label {
  font-weight: 600;
  text-transform: uppercase;
  color: #39ff14;
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.25);
}

.timeline-stats {
  font-family: monospace;
}

.global-timeline-track {
  display: flex;
  height: 54px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.08), inset 0 2px 10px rgba(0, 0, 0, 0.7);
  animation: timeline-glow 4s ease-in-out infinite alternate;
}

@keyframes timeline-glow {
  0% {
    border-color: rgba(57, 255, 20, 0.25);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.06), inset 0 2px 10px rgba(0, 0, 0, 0.7);
  }
  100% {
    border-color: rgba(255, 110, 0, 0.65);
    box-shadow: 0 0 16px rgba(255, 110, 0, 0.35), inset 0 2px 10px rgba(0, 0, 0, 0.7);
  }
}

.timeline-section {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border-right: 1px dashed rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* Ruler ticks for hours inside shifts */
.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 16.666% 100%; /* 6 hours */
  pointer-events: none;
  z-index: 1;
}

.timeline-section[data-shift="manha"] {
  width: 25%;
}

.timeline-section[data-shift="tarde"] {
  width: 25%;
}

.timeline-section[data-shift="noite"] {
  width: 25%;
}

.timeline-section[data-shift="madrugada"] {
  width: 25%;
}

.timeline-section:last-child {
  border-right: none;
}

.timeline-section-label {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  text-transform: uppercase;
  z-index: 1;
}

/* Timeline Blocks for Scheduled Items */
.timeline-block {
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  box-sizing: border-box;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.timeline-block:hover {
  filter: brightness(1.25);
  opacity: 0.95;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Category colors */
.timeline-block[data-type="music"] {
  background: linear-gradient(180deg, #00b4db, #0083b0);
}
.timeline-block[data-type="commercial"] {
  background: linear-gradient(180deg, #ffd700, #ffa500);
}
.timeline-block[data-type="effect"] {
  background: linear-gradient(180deg, #ff9966, #ff5e62);
}
.timeline-block[data-type="jingle"] {
  background: linear-gradient(180deg, #e52d27, #b31217);
}
.timeline-block[data-type="branding"] {
  background: linear-gradient(180deg, #8e2de2, #4a00e0);
}
.timeline-block[data-type="plugin"] {
  background: linear-gradient(180deg, #11998e, #38ef7d);
}
.timeline-block[data-type="news"] {
  background: linear-gradient(180deg, #ff4e50, #f9d423);
}

/* Role based overrides for timeline blocks */
.timeline-block[data-role="call"] {
  background: linear-gradient(180deg, #ffa500, #ff8c00) !important;
}
.timeline-block[data-role="music"],
.timeline-block[data-role="song"] {
  background: linear-gradient(180deg, #00b4db, #0083b0) !important;
}

/* Active selector styles on Timeline Blocks (Neon Pulsating highlight) */
.timeline-block.active {
  box-shadow: inset 0 0 0 2px #fff, 0 0 15px rgba(255, 255, 255, 0.6);
  z-index: 5;
  animation: active-block-pulse 1.5s infinite alternate;
}

.timeline-block[data-role="call"].active {
  box-shadow: inset 0 0 0 2px #ff8c00, 0 0 20px rgba(255, 140, 0, 0.7);
  animation: active-block-pulse-orange 1.5s infinite alternate;
}

.timeline-block[data-role="music"].active,
.timeline-block[data-role="song"].active {
  box-shadow: inset 0 0 0 2px #00ffff, 0 0 20px rgba(0, 255, 255, 0.7);
  animation: active-block-pulse-cyan 1.5s infinite alternate;
}

@keyframes active-block-pulse {
  0% { box-shadow: inset 0 0 0 2px #fff, 0 0 8px rgba(255,255,255,0.4); }
  100% { box-shadow: inset 0 0 0 2px #fff, 0 0 20px rgba(255,255,255,0.8); }
}
@keyframes active-block-pulse-orange {
  0% { box-shadow: inset 0 0 0 2px #ff8c00, 0 0 8px rgba(255, 140, 0, 0.4); }
  100% { box-shadow: inset 0 0 0 2px #ff8c00, 0 0 22px rgba(255, 140, 0, 0.9); }
}
@keyframes active-block-pulse-cyan {
  0% { box-shadow: inset 0 0 0 2px #00ffff, 0 0 8px rgba(0, 255, 255, 0.4); }
  100% { box-shadow: inset 0 0 0 2px #00ffff, 0 0 22px rgba(0, 255, 255, 0.9); }
}

/* Tooltip for timeline blocks */
.timeline-tooltip {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.timeline-block:hover .timeline-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 40px;
}

.timeline-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(10, 10, 10, 0.95);
}

.timeline-block-placeholder {
  height: 100%;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.25s ease;
}

.timeline-block-placeholder:hover {
  background: rgba(255, 255, 255, 0.04);
}

.timeline-block-placeholder.active {
  background: rgba(255, 110, 0, 0.08) !important;
  border: 2px dashed rgba(255, 110, 0, 0.6) !important;
  box-shadow: 0 0 12px rgba(255, 110, 0, 0.25);
  animation: active-placeholder-pulse 1.5s infinite alternate;
}

@keyframes active-placeholder-pulse {
  0% {
    border-color: rgba(255, 110, 0, 0.45);
    box-shadow: 0 0 6px rgba(255, 110, 0, 0.15);
  }
  100% {
    border-color: rgba(57, 255, 20, 0.8);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.4);
  }
}

/* Adjust timeline details for mobile if columns stack */
@media (max-width: 1024px) {
  .radio-monitor-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .monitor-left, .monitor-middle, .monitor-right {
    width: 100% !important;
  }
}

/* Song folder structure styling */
.song-folders-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 10px 8px 24px; /* Indented from subfolder */
}

.song-folder-item {
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.song-folder-item:last-child {
  border-bottom: none;
}

.song-folder-header {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  padding: 6px 10px !important;
  transition: all 0.2s ease;
}

.song-folder-header:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.song-folder-content {
  display: none;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.song-folder-item.expanded .song-folder-content {
  display: block !important;
}

.song-folder-item.expanded .song-folder-chevron {
  transform: rotate(180deg);
  color: #fff;
}

.song-folder-item.expanded .song-folder-count {
  color: #00ffff !important;
}

.song-folder-items {
  padding-left: 12px; /* Indent tracks inside song folder */
}

/* Song Folder Dual Upload Buttons */
.song-folder-upload-zones {
  display: flex;
  gap: 8px;
  margin: 6px 10px 8px 10px;
}

.song-upload-zone-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.song-upload-zone-btn .upload-zone-inner {
  font-size: 0.65rem;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.song-upload-zone-btn.music-type {
  background: rgba(0, 255, 255, 0.01);
  border: 1px dashed rgba(0, 255, 255, 0.12);
}

.song-upload-zone-btn.music-type:hover {
  background: rgba(0, 255, 255, 0.03);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.05);
}

.song-upload-zone-btn.music-type.dragover {
  background: rgba(0, 255, 255, 0.05);
  border-color: #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
}

.song-upload-zone-btn.music-type:hover .upload-zone-inner,
.song-upload-zone-btn.music-type.dragover .upload-zone-inner {
  color: #00ffff;
}

.song-upload-zone-btn.call-type {
  background: rgba(255, 140, 0, 0.01);
  border: 1px dashed rgba(255, 140, 0, 0.12);
}

.song-upload-zone-btn.call-type:hover {
  background: rgba(255, 140, 0, 0.03);
  border-color: rgba(255, 140, 0, 0.3);
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.05);
}

.song-upload-zone-btn.call-type.dragover {
  background: rgba(255, 140, 0, 0.05);
  border-color: #ff8c00;
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.1);
}

.song-upload-zone-btn.call-type:hover .upload-zone-inner,
.song-upload-zone-btn.call-type.dragover .upload-zone-inner {
  color: #ff8c00;
}

/* Specific styling for song folder items to prevent text truncation vertical stack */
.song-folder-items {
  padding-left: 12px; /* Indent tracks inside song folder */
}

.song-folder-items .audio-item {
  padding: 8px 10px;
}

.song-folder-item-title {
  white-space: normal !important;
  word-wrap: break-word !important;
  line-height: 1.3 !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important; /* normal weight, not bold */
  color: #eee !important;
}

/* Program Info Badge Styling */
.program-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.72rem;
  color: #a1a1aa;
  position: relative;
  transition: all 0.2s ease;
  height: 24px;
}

.program-info-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.program-name {
  color: #fff;
  font-weight: 600;
}

.program-divider {
  color: #71717a;
  margin: 0 4px;
}

.program-date {
  color: #a1a1aa;
  font-weight: 400;
}

.btn-edit-program {
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-edit-program:hover {
  color: #00ffcc;
  background: rgba(255, 255, 255, 0.05);
}

.program-edit-form {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.admin-input-small {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--admin-border);
  color: #fff;
  padding: 1px 6px;
  font-size: 0.7rem;
  border-radius: 4px;
  outline: none;
  width: 140px;
  height: 18px;
}

.admin-input-small:focus {
  border-color: #00ffcc;
  box-shadow: 0 0 5px rgba(0, 255, 204, 0.25);
}

.btn-save-program, .btn-cancel-program {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border);
  color: #fff;
  cursor: pointer;
  padding: 0 6px;
  font-size: 0.7rem;
  border-radius: 4px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-save-program:hover {
  background: rgba(0, 255, 204, 0.15);
  border-color: #00ffcc;
  color: #00ffcc;
}

.btn-cancel-program:hover {
  background: rgba(255, 0, 85, 0.15);
  border-color: #ff0055;
  color: #ff0055;
}

/* Tocando Agora Monitor Overrides */
.live-indicator-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.live-badge-neon {
  background: #ff0055;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px #ff0055;
  animation: live-blink 1.2s infinite alternate;
}

@keyframes live-blink {
  0% { opacity: 0.4; box-shadow: 0 0 2px #ff0055; }
  100% { opacity: 1; box-shadow: 0 0 10px #ff0055; }
}

.program-title-display {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #39ff14;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
  letter-spacing: 0.5px;
}

.next-track-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  opacity: 0.85;
}

.next-label {
  color: #71717a;
  font-weight: 700;
  font-size: 0.6rem;
}

.next-track-title {
  color: #a1a1aa;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.monitor-play-controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-monitor-play {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  color: #d4d4d8;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-monitor-play:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-monitor-play.playing {
  background: rgba(57, 255, 20, 0.1) !important;
  border-color: #39ff14 !important;
  color: #39ff14 !important;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.25);
  animation: play-neon-pulse 1.5s infinite alternate;
}

@keyframes play-neon-pulse {
  0% { box-shadow: 0 0 4px rgba(57, 255, 20, 0.15); }
  100% { box-shadow: 0 0 12px rgba(57, 255, 20, 0.4); }
}

.progress-bar-fill.playing {
  background: linear-gradient(90deg, #ff6c00, #39ff14);
  box-shadow: 0 0 10px #ff6c00, 0 0 20px #39ff14;
}

.btn-monitor-nav {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  color: #d4d4d8;
  padding: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-monitor-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

/* Two Column Scheduler Workspace Layout */
.scheduler-workspace-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.scheduler-workspace-body .dropzones-container {
  flex: 7; /* 70% width */
  border-right: 1px solid var(--admin-border);
}

.scheduler-workspace-body .occupancy-container {
  flex: 3; /* 30% width */
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* Occupancy widget styling */
.occupancy-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
  width: 100%;
}

.occupancy-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.8px;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.occupancy-circle-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.occupancy-svg {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.15));
}

.occupancy-circle-fill {
  transition: stroke-dashoffset 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.occupancy-text-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.occupancy-percent {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
  line-height: 1.1;
}

.occupancy-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.occupancy-details {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.occupancy-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.detail-label {
  font-size: 0.52rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.digital-divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

/* Neon Text Helper classes */
.neon-orange-text {
  color: #ff6c00 !important;
  text-shadow: 0 0 6px rgba(255, 108, 0, 0.4);
}

.neon-red-text {
  color: #ff0055 !important;
  text-shadow: 0 0 6px rgba(255, 0, 85, 0.4);
}

/* Library and Program Tabs and Folder styles */
.library-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  flex-shrink: 0;
}

.library-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #a1a1aa;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.library-tab-btn.active {
  color: #39ff14;
  border-bottom-color: #39ff14;
  background: rgba(57, 255, 20, 0.03);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.library-tab-content {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.library-tab-content.active {
  display: flex;
  flex-direction: column;
}

.programs-folders-container {
  padding: 12px;
}

.programs-folder-item {
  display: flex;
  flex-direction: column;
}

.programs-folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.programs-folder-header:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.programs-folder-arrow {
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease;
}

.programs-folder-arrow.active {
  transform: rotate(90deg);
}

.folder-icon {
  flex-shrink: 0;
}

.programs-folder-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e4e4e7;
  letter-spacing: 0.3px;
}

.programs-folder-content {
  padding: 8px 4px 16px 4px;
  transition: all 0.3s ease;
}

.days-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-grid-square {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid #39ff14;
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.day-grid-square:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.day-grid-square.active {
  background: rgba(57, 255, 20, 0.06) !important;
  border-color: #39ff14 !important;
  color: #39ff14 !important;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3), inset 0 0 5px rgba(57, 255, 20, 0.2) !important;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.4);
}

/* Program Day Square Hover Actions */
.day-grid-square {
  position: relative;
}

.day-grid-square:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.day-grid-square .day-actions {
  display: none;
}

.day-grid-square:hover .day-actions {
  display: flex;
}

.btn-day-action {
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.btn-day-action svg {
  pointer-events: none;
  width: 8px;
  height: 8px;
}

.btn-day-action:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.btn-day-action.delete:hover {
  color: var(--danger) !important;
  border-color: var(--danger) !important;
  background: rgba(239, 83, 80, 0.1) !important;
}

/* Program folder / subfolder header premium styling */
.programs-folder {
  margin-bottom: 8px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.25s ease;
}

.programs-folder:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.programs-folder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.programs-folder-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.programs-folder-arrow {
  color: var(--admin-text-muted);
  transition: transform 0.2s;
}

.programs-folder-arrow.active {
  transform: rotate(90deg);
}

.programs-folder-actions button {
  transition: transform 0.2s, color 0.2s;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
}

.programs-folder-actions button:hover {
  transform: scale(1.1);
  color: #fff !important;
}

.programs-folder-actions button.btn-delete-programs-folder:hover {
  color: var(--danger) !important;
}

.programs-subfolder-actions button {
  transition: transform 0.2s, color 0.2s;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
}

.programs-subfolder-actions button:hover {
  transform: scale(1.1);
  color: #fff !important;
}

.programs-subfolder-actions button.btn-delete-programs-subfolder:hover {
  color: var(--danger) !important;
}

/* Radio Monitor Collapse */
.radio-monitor-panel {
    transition: margin 0.3s ease, opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
    max-height: 500px;
    overflow: hidden;
}
.radio-monitor-panel.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 15px;
    opacity: 0;
    border-color: transparent;
}

/* Sub-Song Folder (4th Level) */
.sub-song-folder-item {
    margin-bottom: 2px;
}
.sub-song-folder-item:last-child {
    margin-bottom: 0;
}
.sub-song-folder-header {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}
.sub-song-folder-header:hover {
    background: rgba(255, 255, 255, 0.03);
}
.sub-song-folder-content {
    display: none;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
    margin-left: 8px;
}
.sub-song-folder-item.expanded > .sub-song-folder-content {
    display: block;
}
.sub-song-folder-item.expanded > .sub-song-folder-header .sub-song-folder-chevron {
    transform: rotate(180deg);
}
.sub-song-folder-chevron {
    color: #555;
    transition: transform 0.2s ease;
}
.ssf-upload-zone-btn.dragover {
    background: rgba(0, 255, 255, 0.1) !important;
    border-color: #00ffff !important;
}
.ssf-upload-zone-btn.call-type.dragover {
    background: rgba(255, 140, 0, 0.1) !important;
    border-color: #ff8c00 !important;
}

/* Compact action buttons */
.btn-action-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: #fff;
  min-width: 90px;
}

.btn-monitor {
  background: #4b5563; /* Gray */
}
.btn-monitor:hover {
  background: #6b7280;
}

.btn-schedule {
  background: #0284c7 !important; /* Blue */
  border: none !important;
  color: #fff !important;
}
.btn-schedule:hover {
  background: #0369a1 !important;
}

.btn-publish {
  background: #10b981 !important; /* Green */
  border: none !important;
}
.btn-publish:hover {
  background: #059669 !important;
}

.btn-clear-all {
  background: #ef4444 !important; /* Red */
  border: none !important;
  color: #fff !important;
}
.btn-clear-all:hover {
  background: #dc2626 !important;
}

.scheduler-header > div:first-child {
  flex-wrap: nowrap !important;
  overflow: hidden;
}
.program-info-badge {
  margin-left: 12px;
}
