/* 02-components */
.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(20, 33, 50, 0.76), rgba(8, 15, 24, 0.78));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.panel {
  background:
    linear-gradient(180deg, rgba(23, 38, 58, 0.92) 0%, rgba(10, 18, 29, 0.96) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.panel-elevated {
  box-shadow: var(--shadow-md);
}

.home-list-panel {
  position: relative;
  overflow: hidden;
}

.home-list-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  opacity: 0.9;
}

.home-list-live::before {
  background: linear-gradient(90deg, rgba(87, 210, 140, 0.95), rgba(124, 224, 211, 0.5));
}

.home-list-upcoming::before {
  background: linear-gradient(90deg, rgba(111, 168, 255, 0.95), rgba(124, 224, 211, 0.5));
}

.home-list-past::before {
  background: linear-gradient(90deg, rgba(240, 196, 109, 0.85), rgba(160, 172, 189, 0.35));
}

.home-list-live {
  box-shadow:
    inset 0 0 0 1px rgba(87, 210, 140, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

.home-list-upcoming {
  box-shadow:
    inset 0 0 0 1px rgba(111, 168, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

.home-list-past {
  box-shadow:
    inset 0 0 0 1px rgba(240, 196, 109, 0.05),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

.table-header {
  background:
    linear-gradient(180deg, rgba(31, 48, 70, 0.96) 0%, rgba(17, 29, 45, 0.98) 100%);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.table-header h3 {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-list-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-list-caption {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.home-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  background: rgba(8, 13, 20, 0.68);
  border: 1px solid var(--border);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 20, 0.72);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text-soft);
}

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

.status-live {
  color: #89efba;
  border-color: rgba(87, 210, 140, 0.24);
  background: rgba(87, 210, 140, 0.08);
}

.status-live .status-dot {
  background: var(--success);
  box-shadow: 0 0 10px rgba(87, 210, 140, 0.45);
  animation: pulse 1.5s infinite;
}

.status-done {
  color: #f6d88d;
  border-color: rgba(240, 196, 109, 0.24);
  background: rgba(240, 196, 109, 0.08);
}

.status-done .status-dot {
  background: var(--warning);
}

.status-off {
  color: var(--text-muted);
}

.status-off .status-dot {
  background: #5b6877;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .38; transform: scale(0.92); }
}

.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.filter select,
.form-group select,
.form-group input,
.modal-body input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 12, 18, 0.9);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter select {
  width: auto;
  min-width: 120px;
  padding-right: 32px;
}

.filter select:focus,
.form-group input:focus,
.form-group select:focus,
.modal-body input:focus {
  outline: none;
  border-color: rgba(111, 168, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(111, 168, 255, 0.12);
  background: rgba(9, 14, 22, 0.96);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(27, 42, 61, 0.96) 0%, rgba(13, 23, 36, 0.96) 100%);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  user-select: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 168, 255, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(28, 42, 60, 0.98) 0%, rgba(17, 27, 39, 0.98) 100%);
}

.btn.active {
  border-color: rgba(111, 168, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(40, 61, 88, 0.98) 0%, rgba(24, 38, 56, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(111, 168, 255, 0.18), 0 12px 30px rgba(111, 168, 255, 0.16);
}

.btn-secondary {
  background:
    linear-gradient(180deg, rgba(21, 33, 47, 0.98) 0%, rgba(13, 20, 30, 0.98) 100%);
}

.btn-primary,
.btn-primary-inline {
  border: 1px solid rgba(111, 168, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(111, 168, 255, 0.95) 0%, rgba(89, 205, 190, 0.92) 100%);
  color: #07111a;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(98, 157, 235, 0.22);
}

.btn-primary {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover,
.btn-primary-inline:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary-inline {
  padding: 10px 14px;
  border-radius: 12px;
}

.btn-danger {
  background:
    linear-gradient(180deg, rgba(64, 28, 34, 0.96) 0%, rgba(48, 20, 25, 0.96) 100%);
  border-color: rgba(255, 115, 115, 0.18);
}

.btn-danger:hover {
  border-color: rgba(255, 115, 115, 0.32);
}

.btn-ghost {
  background: rgba(8, 13, 20, 0.88);
}

.btn-nav {
  padding-inline: 16px;
}

.btn-race-list {
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  padding: 14px 14px;
  min-height: 72px;
  width: 100%;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.btn-race-list::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-45%);
  transition: opacity 0.18s ease, transform 0.42s ease;
}

.btn-race-list:hover::after {
  opacity: 1;
  transform: translateX(45%);
}

.race-list-item {
  position: relative;
}

.race-list-item-name {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 82%;
}

.race-list-item-meta {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.race-tone-live {
  border-color: rgba(87, 210, 140, 0.2);
  background:
    linear-gradient(180deg, rgba(19, 41, 31, 0.72) 0%, rgba(12, 24, 20, 0.92) 100%);
}

.race-tone-upcoming {
  border-color: rgba(111, 168, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(20, 33, 49, 0.88) 0%, rgba(12, 20, 30, 0.96) 100%);
}

.race-tone-past {
  border-color: rgba(240, 196, 109, 0.16);
  background:
    linear-gradient(180deg, rgba(37, 33, 24, 0.72) 0%, rgba(18, 17, 14, 0.94) 100%);
}

.race-list-empty {
  padding: 14px;
  color: var(--text-muted);
  border: 1px dashed rgba(143, 169, 196, 0.18);
  border-radius: 14px;
  background: rgba(7, 12, 18, 0.28);
}
