/* ==========================================================================
   RADIO SWARA JUWANA FM 96.3 (SJFM) - PROFESSIONAL MOBILE RADIO APP
   Theme Engine: Hitam (Default), Pink, Putih, Biru Muda
   Aesthetic: Neo-Glassmorphism, Tactile Bouncy Controls, Pro Audio Elements
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME 1: HITAM (DEFAULT) - Deep Cosmic Midnight
   -------------------------------------------------------------------------- */
:root, [data-theme="dark"] {
  --bg-primary: #080D1A;
  --bg-secondary: #0F172A;
  --bg-card: rgba(19, 29, 56, 0.75);
  --bg-card-hover: rgba(28, 42, 80, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);

  --accent-primary: #FF8A00;     /* Warm Radio Amber */
  --accent-secondary: #00D2FF;   /* Cyber Blue */
  --accent-tertiary: #FF2E93;    /* Playful Pink */
  --accent-gradient: linear-gradient(135deg, #FF8A00 0%, #E52E71 100%);
  --accent-blue-gradient: linear-gradient(135deg, #00D2FF 0%, #3A7BD5 100%);
  --accent-green: #10B981;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --dock-bg: rgba(11, 19, 43, 0.96);
  --header-bg: rgba(15, 23, 42, 0.85);
  --input-bg: rgba(10, 15, 30, 0.6);
  --modal-bg: #0F172A;
  --highlight-card: linear-gradient(135deg, rgba(255, 138, 0, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
  --turntable-bg: radial-gradient(circle, #2a2a2a 0%, #151515 50%, #0d0d0d 100%);
  --turntable-border: #334155;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   THEME 2: PINK MANIS - Sweet Playful Rose & Blossom
   -------------------------------------------------------------------------- */
[data-theme="pink"] {
  --bg-primary: #FFF0F5;
  --bg-secondary: #FFE4EC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF1F6;
  --bg-glass: rgba(244, 63, 94, 0.08);
  --border-glass: rgba(244, 63, 94, 0.22);
  --border-active: #F43F5E;

  --accent-primary: #E11D48;
  --accent-secondary: #FB7185;
  --accent-tertiary: #BE185D;
  --accent-gradient: linear-gradient(135deg, #FF6584 0%, #E11D48 100%);
  --accent-blue-gradient: linear-gradient(135deg, #FB7185 0%, #E11D48 100%);
  --accent-green: #10B981;

  --text-main: #3B0716;       /* Strong rich dark berry for 100% legibility */
  --text-muted: #881337;      /* Deep rose */
  --text-dim: #9F1239;

  --dock-bg: rgba(255, 240, 245, 0.98);
  --header-bg: rgba(255, 228, 236, 0.95);
  --input-bg: #FFFFFF;
  --modal-bg: #FFFFFF;
  --highlight-card: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
  --turntable-bg: radial-gradient(circle, #501625 0%, #300C16 60%, #1C050C 100%);
  --turntable-border: #F43F5E;

  --shadow-sm: 0 4px 12px rgba(225, 29, 72, 0.12);
  --shadow-md: 0 8px 24px rgba(225, 29, 72, 0.18);
}

/* --------------------------------------------------------------------------
   THEME 3: PUTIH BERSIH - Minimalist Clean Pearl
   -------------------------------------------------------------------------- */
[data-theme="white"] {
  --bg-primary: #F1F5F9;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-glass: rgba(0, 0, 0, 0.04);
  --border-glass: rgba(0, 0, 0, 0.12);
  --border-active: #2563EB;

  --accent-primary: #FF8A00;
  --accent-secondary: #2563EB;
  --accent-tertiary: #E11D48;
  --accent-gradient: linear-gradient(135deg, #FF8A00 0%, #EA580C 100%);
  --accent-blue-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --accent-green: #16A34A;

  --text-main: #0F172A;       /* Slate black, crystal clear */
  --text-muted: #475569;      /* Slate mid-tone */
  --text-dim: #64748B;

  --dock-bg: rgba(255, 255, 255, 0.98);
  --header-bg: rgba(255, 255, 255, 0.95);
  --input-bg: #F8FAFC;
  --modal-bg: #FFFFFF;
  --highlight-card: linear-gradient(135deg, rgba(255, 138, 0, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  --turntable-bg: radial-gradient(circle, #334155 0%, #1E293B 60%, #0F172A 100%);
  --turntable-border: #94A3B8;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   THEME 4: BIRU MUDA (Banyak Putihnya tapi Agak Kebiruan) - Coastal Juwana Breeze
   -------------------------------------------------------------------------- */
[data-theme="softblue"] {
  --bg-primary: #F0F7FF;      /* Very soft icy sky blue */
  --bg-secondary: #F8FBFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F8FF;
  --bg-glass: rgba(2, 132, 199, 0.06);
  --border-glass: rgba(56, 189, 248, 0.35);
  --border-active: #0284C7;

  --accent-primary: #0284C7;  /* Sky Azure */
  --accent-secondary: #0EA5E9;
  --accent-tertiary: #38BDF8;
  --accent-gradient: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  --accent-blue-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  --accent-green: #10B981;

  --text-main: #0B2545;       /* Deep nautical navy for highest contrast */
  --text-muted: #1E4E79;      /* Marine mid */
  --text-dim: #547B9E;

  --dock-bg: rgba(240, 247, 255, 0.98);
  --header-bg: rgba(240, 247, 255, 0.95);
  --input-bg: #FFFFFF;
  --modal-bg: #FFFFFF;
  --highlight-card: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  --turntable-bg: radial-gradient(circle, #1E3A8A 0%, #0F172A 60%, #070D1E 100%);
  --turntable-border: #38BDF8;

  --shadow-sm: 0 4px 12px rgba(2, 132, 199, 0.12);
  --shadow-md: 0 8px 24px rgba(2, 132, 199, 0.18);
}

:root {
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Allow text selection in inputs and chat */
input, textarea, [contenteditable="true"], .selectable-text {
  user-select: text;
}

/* App Shell (Mobile First Viewport) */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

@media (min-width: 500px) {
  .app-container {
    height: 92vh;
    border-radius: 36px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
  }
}

/* App Header */
.app-header {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 50;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #EF4444;
  animation: pulse-red 1.4s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #EF4444; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

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

.btn-icon-head {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.btn-icon-head:active {
  transform: scale(0.9);
}

/* App Main Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  padding-bottom: 140px; /* Space for dock & mini-player */
}

/* Custom Scrollbar */
.app-content::-webkit-scrollbar {
  width: 4px;
}
.app-content::-webkit-scrollbar-track {
  background: transparent;
}
.app-content::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.25);
  border-radius: 4px;
}

/* View Section Switching */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out;
  padding: 16px;
}

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

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

/* ==========================================================================
   VIEW 1: RADIO PLAYER (HERO SCREEN)
   ========================================================================== */
.radio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 24px;
}

/* Vinyl / Cassette Turntable Visualizer */
.turntable-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 12px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disk {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--turntable-bg);
  border: 4px solid var(--turntable-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.vinyl-disk::before {
  content: '';
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 10px rgba(0,0,0,0.3), inset 0 0 0 8px rgba(255,255,255,0.06);
}

.vinyl-disk.spinning {
  animation: rotate-vinyl 14s linear infinite;
}

@keyframes rotate-vinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center-art {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 138, 0, 0.4);
  overflow: hidden;
  z-index: 2;
  position: relative;
}

.vinyl-center-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.turntable-needle {
  position: absolute;
  top: 5px;
  right: 15px;
  width: 45px;
  height: 80px;
  transform-origin: 35px 10px;
  transform: rotate(-25deg);
  transition: transform 0.6s var(--bounce);
  z-index: 10;
  pointer-events: none;
}

.turntable-needle.engaged {
  transform: rotate(12deg);
}

/* Audio Visualizer Waves */
.sound-waves-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin-bottom: 12px;
}

.wave-bar {
  width: 4px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 4px;
  transition: height 0.15s ease;
}

.is-playing .wave-bar {
  background: var(--accent-gradient);
  animation: sound-bounce 0.8s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-bar:nth-child(2) { animation-delay: 0.3s; }
.wave-bar:nth-child(3) { animation-delay: 0.5s; }
.wave-bar:nth-child(4) { animation-delay: 0.2s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.15s; }
.wave-bar:nth-child(7) { animation-delay: 0.35s; }
.wave-bar:nth-child(8) { animation-delay: 0.6s; }
.wave-bar:nth-child(9) { animation-delay: 0.25s; }

@keyframes sound-bounce {
  0% { height: 6px; }
  100% { height: 32px; }
}

/* Track & Station Meta */
.station-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 138, 0, 0.15);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 138, 0, 0.3);
}

.player-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.player-main-slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 12px;
}

.stream-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748B;
}

.status-dot.active {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.status-dot.buffering {
  background: var(--accent-primary);
  animation: pulse-red 0.8s infinite;
}

/* Main Tactile Controls */
.player-controls-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 20px 0 16px;
  width: 100%;
}

.btn-tactile-secondary {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--bounce), background 0.2s ease;
}

.btn-tactile-secondary:active {
  transform: scale(0.88);
  background: var(--bg-card-hover);
}

/* Big Play / Pause Button */
.btn-play-hero {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 138, 0, 0.45);
  transition: transform 0.2s var(--bounce), box-shadow 0.2s ease;
  position: relative;
}

.btn-play-hero::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 138, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-play-hero.playing::after {
  opacity: 1;
  animation: ripple-ring 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes ripple-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.btn-play-hero:active {
  transform: scale(0.92);
}

/* Volume Slider Bar */
.volume-card {
  width: 100%;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  box-shadow: var(--shadow-sm);
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 6px;
  background: #94A3B8;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.6);
  border: 2px solid white;
  transition: transform 0.1s var(--bounce);
}

.volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

/* Quick Action Pills Grid (5 Columns to fit Facebook!) */
.quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 18px;
}

.btn-quick-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.2s var(--bounce), border-color 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-quick-pill:active {
  transform: scale(0.92);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.btn-quick-pill .pill-icon {
  font-size: 1.25rem;
}

.btn-quick-pill .pill-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Broadcast Banner & Highlights */
.broadcast-card-highlight {
  width: 100%;
  background: var(--highlight-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.bcast-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.bcast-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.bcast-badge {
  background: var(--accent-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

/* ==========================================================================
   VIEW 2: ACARA & INFO PROFIL
   ========================================================================== */
.section-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.subtabs {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border-glass);
}

.subtab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.subtab-btn.active {
  background: var(--accent-primary);
  color: white;
  font-weight: 700;
}

.program-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.program-card.now-airing {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(255, 138, 0, 0.2);
}

.program-time-badge {
  min-width: 75px;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.program-card.now-airing .program-time-badge {
  background: var(--accent-primary);
  color: white;
}

.program-meta h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.program-meta p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCHEDULE ADMIN TOOLBAR & ACTION BUTTONS
   ========================================================================== */
.schedule-admin-toolbar {
  margin-bottom: 12px;
}

.schedule-guest-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  gap: 10px;
}

.btn-login-schedule-admin {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-login-schedule-admin:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.schedule-admin-box {
  background: rgba(255, 138, 0, 0.08);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-badge-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-main);
}

.btn-logout-schedule-admin {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #EF4444;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-schedule-admin:hover {
  background: rgba(239, 68, 68, 0.15);
}

.admin-action-row {
  display: flex;
  gap: 8px;
}

.btn-add-prog {
  flex: 1;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-add-prog:hover {
  opacity: 0.9;
}

.btn-reset-prog {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-prog:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.program-admin-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-edit-prog,
.btn-delete-prog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-edit-prog:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.btn-delete-prog:hover {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}

.profile-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  font-size: 0.92rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-glass);
  font-size: 0.8rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
}

.info-val {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   VIEW 3: REQUEST LAGU
   ========================================================================== */
.request-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-active);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.request-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.btn-submit-primary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--bounce);
}

.btn-submit-primary:active {
  transform: scale(0.96);
}

.btn-submit-wa {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.15);
  color: #16A34A;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.requests-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

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

.req-sender {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.req-location {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.req-song {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.req-message {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   VIEW 4: CHAT GROUP
   ========================================================================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  height: calc(100dvh - 220px);
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.chat-bubble.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chat-bubble-body {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.chat-bubble.own .chat-bubble-body {
  background: var(--accent-primary);
  color: white;
  border-color: transparent;
}

.chat-sender-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 3px;
}

.chat-bubble.own .chat-sender-name {
  color: rgba(255, 255, 255, 0.9);
}

.chat-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-align: right;
}

.chat-bubble.own .chat-time {
  color: rgba(255, 255, 255, 0.8);
}

.quick-emoji-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  margin-top: 4px;
}

.quick-emoji-bar::-webkit-scrollbar {
  display: none;
}

.btn-emoji-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--bounce);
}

.btn-emoji-chip:active {
  transform: scale(0.85);
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 14px;
  margin-top: 6px;
  box-shadow: var(--shadow-sm);
}

.chat-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.88rem;
}

.btn-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--bounce);
}

/* ==========================================================================
   VIEW 5: SOCIAL GROUP & CURHAT
   ========================================================================== */
.community-compose-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.compose-top {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.user-compose-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: white;
}

.compose-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.9rem;
  resize: none;
  min-height: 50px;
}

.photo-preview-wrap {
  position: relative;
  margin: 10px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 220px;
  display: none;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-preview {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.compose-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
}

.compose-tools {
  display: flex;
  gap: 8px;
}

.btn-tool-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-post-status {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  border: none;
  color: white;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--bounce);
}

.social-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.post-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.author-meta h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-meta span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.post-content {
  padding: 0 14px 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-main); /* Explicit contrast! */
}

.post-tag {
  color: var(--accent-primary);
  font-weight: 700;
}

.post-image-container {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: #000;
}

.post-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border-glass);
}

.post-action-left {
  display: flex;
  gap: 16px;
}

.btn-post-act {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s var(--bounce);
}

.btn-post-act.liked {
  color: var(--accent-primary);
}

/* ==========================================================================
   MINI PLAYER BAR & BOTTOM DOCK
   ========================================================================== */
.mini-player-bar {
  position: absolute;
  bottom: 74px;
  left: 12px;
  right: 12px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  z-index: 80;
  transition: transform 0.3s var(--bounce), opacity 0.3s ease;
}

.mini-player-bar.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.mini-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
}

.mini-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.mini-text h5 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.mini-text p {
  font-size: 0.7rem;
  color: var(--accent-primary);
}

.btn-mini-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.bottom-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--dock-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  z-index: 900;
  pointer-events: auto;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px 0;
  transition: transform 0.2s var(--bounce), color 0.2s ease;
  position: relative;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dock-item * {
  pointer-events: none;
}

.dock-icon-wrap {
  font-size: 1.35rem;
  position: relative;
  transition: transform 0.2s var(--bounce);
}

.dock-item.active .dock-icon-wrap {
  transform: translateY(-2px) scale(1.15);
}

.dock-label {
  font-size: 0.68rem;
  font-weight: 700;
}

.dock-item.active {
  color: var(--accent-primary);
}

.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-primary);
}

.dock-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--accent-tertiary);
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   MODALS: THEME SELECTOR, PROFILE/ADMIN, SLEEP TIMER, TOAST
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
  pointer-events: auto;
}

.modal-bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--modal-bg);
  color: var(--text-main);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid var(--border-glass);
  padding: 20px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.3s var(--bounce);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}

.modal-overlay.active .modal-bottom-sheet {
  transform: translateY(0);
}

.modal-drag-pill {
  width: 40px;
  height: 4px;
  background: var(--border-glass);
  border-radius: 4px;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-align: center;
  color: var(--text-main);
}

.modal-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Theme Picker Swatches */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.btn-theme-swatch {
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-main);
  transition: transform 0.15s var(--bounce), border-color 0.2s ease;
}

.btn-theme-swatch.active {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.swatch-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.swatch-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.timer-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.btn-timer-preset {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-modal-close {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  font-weight: 700;
  cursor: pointer;
}

/* Toast Message */
.toast-msg {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--modal-bg);
  border: 1px solid var(--accent-primary);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--bounce);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
