:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e8ecf4;
  --text: #0f172a;
  --muted: #64748b;
  --primary-soft: #eef4ff;
  --success-soft: #ecfdf3;
  --warning-soft: #fff8e6;
  --danger-soft: #fef2f2;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #4f46e5);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.18);
}

.nav-link.tab-link {
  color: #475569;
  font-weight: 500;
  border-radius: 10px;
  padding: .6rem .9rem;
  transition: all .2s ease;
  white-space: nowrap;
}

.nav-link.tab-link:hover,
.nav-link.tab-link.active {
  color: #111827;
  background: var(--primary-soft);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 0;
}

.soft-card,
.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .04);
}

.metric-card {
  min-height: 138px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.bg-soft-primary { background: var(--primary-soft); }
.bg-soft-success { background: var(--success-soft); }
.bg-soft-warning { background: var(--warning-soft); }
.bg-soft-danger { background: var(--danger-soft); }

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.metric-label,
.table-hint,
.form-text,
.small-muted {
  color: var(--muted);
}

.table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: .04em;
  border-bottom-width: 1px;
  background: #fbfcfe;
}

.table td,
.table th {
  vertical-align: middle;
}

.badge-soft {
  background: #f8fafc;
  color: #334155;
  border: 1px solid var(--border);
}

.status-badge {
  border-radius: 999px;
  padding: .45rem .7rem;
  font-weight: 600;
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.status-confirmed { background: #ecfdf3; color: #166534; }
.status-pending   { background: #fff7ed; color: #9a3412; }
.status-cancelled { background: #fef2f2; color: #b91c1c; }
.status-paid      { background: #eef4ff; color: #1d4ed8; }

.content-wrap {
  padding: 1.5rem 0 2rem;
}

.toolbar {
  gap: .75rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 1rem;
}

.calendar-day {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  min-height: 240px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .03);
}

.slot-item {
  border: 1px solid var(--border);
  border-left: 4px solid #4f46e5;
  border-radius: 12px;
  padding: .65rem .75rem;
  margin-bottom: .75rem;
  background: #fafbff;
}

.service-thumb,
.shop-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.page-header {
  margin-bottom: 1.25rem;
}

.chart-box {
  height: 320px;
  position: relative;
}

.chart-box-sm {
  height: 260px;
  position: relative;
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

.btn-service-dropdown,
.btn-service-dropdown:hover,
.btn-service-dropdown:focus,
.btn-service-dropdown:active,
.btn-service-dropdown.show {
  background-color: transparent;
  color: #000;
  border: 1px solid #ced4da;
  box-shadow: none;
}

@media (max-width: 1199.98px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .navbar-nav-scroll {
    max-width: 100%;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}
