
:root {
  --bg: #f4f7fb;
  --card: rgba(255,255,255,.92);
  --border: #e8edf5;
  --text: #172033;
  --muted: #6f7b91;
  --primary-soft: #edf4ff;
  --success-soft: #eefaf2;
  --warning-soft: #fff8e8;
  --danger-soft: #fff0f0;
}

body {
  background:
    radial-gradient(circle at top left, rgba(46, 109, 246, .09), transparent 26%),
    radial-gradient(circle at top right, rgba(80, 196, 130, .10), transparent 22%),
    var(--bg);
  color: var(--text);
}

.container-fluid { max-width: 1680px; }

.dashboard-hero {
  background: linear-gradient(135deg, #172033 0%, #223252 60%, #284c89 100%);
  color: #fff;
  border-radius: 24px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 22px 50px rgba(18, 28, 45, .18);
}

.dashboard-hero code {
  color: #d8e8ff;
  background: rgba(255,255,255,.10);
  padding: .15rem .45rem;
  border-radius: 8px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .9rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .9rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(27, 39, 68, .06);
  backdrop-filter: blur(6px);
}

.card-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stat-card .card-body {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-label {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
}

.stat-foot {
  color: var(--muted);
  font-size: .88rem;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.day-tab {
  border-radius: 999px !important;
  padding-inline: 1rem;
  font-weight: 600;
}

.day-tab.btn-dark {
  box-shadow: 0 10px 22px rgba(33, 43, 60, .18);
}

.table thead th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom-width: 1px;
  white-space: nowrap;
}

.table > :not(caption) > * > * {
  padding: 1rem .85rem;
  border-color: var(--border);
  vertical-align: top;
}

.table tbody tr {
  transition: transform .12s ease, background-color .12s ease;
}

.table tbody tr:hover {
  background: rgba(33, 87, 203, .025);
}

.slot-row-manual {
  background: linear-gradient(90deg, rgba(255, 232, 181, .45), rgba(255,255,255,0));
}

.slot-time {
  font-size: 1.08rem;
  font-weight: 700;
}

.slot-hhmm {
  color: var(--muted);
  font-size: .82rem;
}

.source-block strong {
  display: block;
  margin-bottom: .15rem;
}

.file-stack code {
  display: inline-block;
  margin-bottom: .25rem;
  background: #f5f7fb;
  color: #27416f;
  padding: .18rem .42rem;
  border-radius: 8px;
}

.status-stack {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.status-msg {
  border-radius: 10px;
  padding: .38rem .6rem;
  font-size: .82rem;
  line-height: 1.25;
}

.status-ok { background: var(--success-soft); color: #1c6a38; }
.status-warn { background: var(--warning-soft); color: #8a6411; }
.status-err { background: var(--danger-soft); color: #a13c3c; }

.success-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: #1c6a38;
  padding: .4rem .7rem;
  font-size: .82rem;
  font-weight: 600;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #284c89;
}

summary:hover { color: #1b3b73; }

.form-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(244,248,255,.92));
  border-radius: 16px;
}

.form-label {
  font-size: .83rem;
  font-weight: 600;
  color: #41506b;
}

.form-control, .form-select {
  border-radius: 12px;
  border-color: #d8e2f0;
  min-height: 44px;
}

.form-control:focus, .form-select:focus {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 .25rem rgba(72, 121, 255, .12);
}

.artist-list {
  max-height: 340px;
  overflow: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.artist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #f0f3f8;
}

.detected-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .85rem;
}

.detected-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .95rem 1rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.detected-time {
  font-size: 1rem;
  font-weight: 700;
}

.notice-banner {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.04);
}

.badge-soft {
  background: var(--primary-soft);
  color: #315caa;
  border: 1px solid #dce7ff;
}

@media (max-width: 991px) {
  .dashboard-hero { padding: 1.2rem 1.1rem; }
  .table > :not(caption) > * > * { padding: .8rem .7rem; }
}
