/* WAGTEC TV Monitor - Fullscreen optimized */
html, body {
  margin: 0;
  padding: 0;
}

#wtv-monitor {
  min-height: 100vh;
  background: #1a1a2e;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  padding: 24px;
  box-sizing: border-box;
}

/* ── Header ── */
.wtv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 12px;
}
.wtv-controls {
  display: flex;
  gap: 8px;
}
.wtv-title {
  font-size: 2em;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.wtv-clock {
  font-size: 1.3em;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* ── Grid ── */
.wtv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── Cards ── */
.wtv-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s;
  position: relative;
}
.wtv-card:hover { transform: scale(1.02); }

.wtv-card-status {
  height: 6px;
  width: 100%;
}

.wtv-card-body {
  padding: 20px 24px;
  background: #16213e;
}

.wtv-card-customer {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 4px;
}
.wtv-card-service {
  font-size: 1.05em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.wtv-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wtv-detail {
  display: flex;
  flex-direction: column;
}
.wtv-label {
  font-size: 0.75em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wtv-value {
  font-size: 1.05em;
  font-weight: 600;
}

/* ── Color States ── */
.wtv-green .wtv-card-status  { background: #28a745; }
.wtv-green .wtv-card-body    { border-left: 4px solid #28a745; }

.wtv-yellow .wtv-card-status { background: #ffc107; }
.wtv-yellow .wtv-card-body   { border-left: 4px solid #ffc107; background: #1e2a45; }

.wtv-red .wtv-card-status    { background: #dc3545; }
.wtv-red .wtv-card-body      { border-left: 4px solid #dc3545; background: #2a1520; }
.wtv-red .wtv-card-customer  { color: #ff8a8a; }

.wtv-waiting .wtv-card-status { background: #6c757d; }
.wtv-waiting .wtv-card-body   { border-left: 4px solid #6c757d; opacity: 0.7; }

/* ── Pulse animation for red cards ── */
.wtv-red {
  animation: wtv-pulse 2s ease-in-out infinite;
}
@keyframes wtv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
  50%      { box-shadow: 0 0 20px 4px rgba(220, 53, 69, 0.3); }
}

/* ── Empty state ── */
.wtv-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-size: 1.5em;
  color: rgba(255,255,255,0.3);
}

/* ── Responsive ── */
@media (min-width: 1920px) {
  .wtv-grid { grid-template-columns: repeat(4, 1fr); }
  .wtv-card-customer { font-size: 1.6em; }
  .wtv-title { font-size: 2.5em; }
}

@media (max-width: 768px) {
  #wtv-monitor { padding: 12px; }
  .wtv-grid { grid-template-columns: 1fr; }
  .wtv-header { flex-direction: column; gap: 8px; }
}
