/* Digital TV Display Board Styles */

.display-layout {
  min-height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 50% 15%, #082c1f 0%, #03140e 70%, #010805 100%);
  color: #f0fdf4;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Subtle background glowing orb */
.display-layout::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* Header */
.display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(4, 20, 14, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

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

.display-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.display-brand-text h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.display-brand-text p {
  font-size: 0.95rem;
  color: #a7f3d0;
  font-weight: 400;
}

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

/* Province Selector */
.province-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}

.province-label {
  font-size: 0.9rem;
  color: #a7f3d0;
  font-weight: 600;
}

.province-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.province-select option {
  background: #064e3b;
  color: #ffffff;
}

/* Language Status Pill */
.lang-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #34d399;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.lang-status-pill:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  transform: translateY(-1px);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sound-unlock-btn {
  background: #f59e0b;
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  animation: bounce-subtle 2s infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Sound notice floating bar */
.sound-notice-bar {
  position: fixed;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 999;
  transition: all 0.3s ease;
}

.sound-notice-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-20px);
}

.display-clock {
  text-align: right;
}

.clock-time {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 1px;
}

.clock-date {
  font-size: 0.95rem;
  color: #a7f3d0;
  margin-top: 4px;
}

/* Main Display Body */
.display-body {
  flex: 1;
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 24px;
  padding: 24px 36px;
  overflow: hidden;
}

/* Now Serving Section */
.now-serving-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.display-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.serving-counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  flex: 1;
}

.counter-display-card {
  background: rgba(8, 35, 25, 0.75);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.counter-display-card.is-calling {
  animation: call-pulse 1.8s infinite;
  border-color: #34d399;
  background: rgba(14, 53, 39, 0.9);
}

@keyframes call-pulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(52, 211, 153, 0.4), inset 0 0 15px rgba(52, 211, 153, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(52, 211, 153, 0.8), inset 0 0 25px rgba(52, 211, 153, 0.4);
    transform: scale(1.02);
  }
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.counter-badge-tag {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
  letter-spacing: 0.5px;
}

.calling-indicator-pill {
  display: none;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  animation: pulse-badge 1s infinite;
}

.counter-display-card.is-calling .calling-indicator-pill {
  display: flex;
}

.queue-number-hero {
  text-align: center;
  font-size: 5.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 4px;
  text-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
  margin: 12px 0;
}

.counter-display-card.empty .queue-number-hero {
  color: rgba(167, 243, 208, 0.25);
  font-size: 4rem;
}

.card-bottom-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding-top: 14px;
}

.category-name-display {
  font-size: 1.15rem;
  font-weight: 600;
  color: #a7f3d0;
}

.call-time-display {
  font-size: 0.9rem;
  color: #6ee7b7;
}

/* Next In Line Section (Sidebar) */
.next-queue-section {
  background: rgba(8, 35, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.waiting-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.waiting-category-group {
  background: rgba(4, 20, 14, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

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

.group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.group-count {
  font-size: 0.82rem;
  color: #f59e0b;
  font-weight: 600;
}

.queue-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.queue-chip {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
}

.queue-chip:first-child {
  background: rgba(16, 185, 129, 0.35);
  border-color: #10b981;
  color: #a7f3d0;
}

/* Bottom Marquee / Announcement */
.display-footer-marquee {
  background: rgba(6, 78, 59, 0.7);
  backdrop-filter: blur(8px);
  padding: 12px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 1.1rem;
  font-weight: 500;
  color: #d1fae5;
}

.marquee-badge {
  background: #10b981;
  color: #04140e;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  white-space: nowrap;
}

.marquee-text {
  white-space: nowrap;
  overflow: hidden;
  animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Calling Banner Pop-up */
.call-announce-banner {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  border: 2px solid #34d399;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.6);
  border-radius: var(--radius-xl);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.call-announce-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.banner-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
}

.banner-desc {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a7f3d0;
}

/* Language Switching Smooth Transition */
.lang-fade {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lang-fade.fading {
  opacity: 0.15;
  transform: translateY(-2px);
}

