:root{
  --bg: #0b0f14;
  --panel: #101826;
  --text: #e7eefc;
  --muted: #98a6c6;
  --border: rgba(255,255,255,.08);
}

html[data-theme="light"]{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #0e1420;
  --muted: #5d6b85;
  --border: rgba(0,0,0,.08);
}

.app-body{
  background: var(--bg);
  color: var(--text);
}

.app-nav{
  background: color-mix(in srgb, var(--bg) 65%, #000 35%);
  border-color: var(--border) !important;
}

.app-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

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

.table, .list-group-item{
  color: var(--text);
}

.app-list-item{
  background: transparent;
  border-color: var(--border);
}
.app-list-item:hover{
  background: color-mix(in srgb, var(--panel) 70%, #000 30%);
}

.form-control, .form-select{
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.form-control:focus, .form-select:focus{
  box-shadow: none !important;
  outline: none !important;
  border-color: color-mix(in srgb, var(--muted) 40%, var(--border) 60%) !important;
}
/* ===== Timing table (Run of show) ===== */
.timing-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid rgba(30, 155, 200, 0.7);
  border-radius: 8px;
  overflow: hidden;
}

.timing-table thead th {
  background: rgba(20, 120, 160, 0.9);
  color: #fff !important;
  border-bottom: 2px solid rgba(30, 155, 200, 0.7) !important;
  font-weight: 700;
}

.timing-table td, .timing-table th {
  border-color: rgba(30, 155, 200, 0.45) !important;
}

.timing-row td {
  background: transparent;
  vertical-align: middle;
  padding-top: 10px;
  padding-bottom: 10px;
}

.timing-time input {
  max-width: 110px;
}

.timing-title .timing-label select {
  min-width: 180px;
}

.timing-duration {
  font-weight: 700;
}

.timing-play {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid rgba(40, 200, 80, 0.9);
  display: inline-block;
}

.timing-play.muted {
  border-left-color: rgba(160, 170, 190, 0.5);
}

/* Couleurs de libellé par type */
.timing-setup .timing-title { color: #2ad2ff; font-weight: 800; }
.timing-repetition .timing-title { color: #a78bfa; font-weight: 800; }
.timing-show .timing-title { color: #ff4d4d; font-weight: 900; }
.timing-pause .timing-title { color: #3b82f6; font-weight: 800; }
.timing-diner .timing-title { color: #f59e0b; font-weight: 800; }
.timing-deplacement .timing-title { color: #22c55e; font-weight: 800; }
.timing-autre .timing-title { color: var(--text); font-weight: 700; }
