/* Legacy bridge: make old internal pages follow DS tokens.
   Loaded AFTER legacy CSS so DS wins.
   Keep under 300 lines. */

/* Layout container compatibility */
.container {
  max-width: var(--ds-container);
  margin: 0 auto;
  padding: 0 var(--ds-gutter);
}

/* Global text/background reset to DS tokens */
body {
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font);
}

/* Legacy navbar/footer compatibility (if any pages still use them) */
.navbar,
footer {
  background: rgba(248, 249, 255, 0.78);
  color: var(--ds-text);
  border-color: rgba(2, 6, 23, 0.10);
}

.nav-links a {
  color: var(--ds-text);
}

/* Buttons (legacy .btn*) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--ds-border);
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ds-text);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(2, 6, 23, 0.18);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.98));
  border-color: rgba(2, 6, 23, 0.92);
  color: rgba(255, 255, 255, 0.96);
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 1));
  border-color: rgba(2, 6, 23, 1);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(2, 6, 23, 0.12);
  color: var(--ds-text);
}

.btn-success {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.28);
  color: rgba(2, 6, 23, 0.92);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.28);
  color: rgba(2, 6, 23, 0.92);
}

/* Inputs (legacy forms) */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  border-radius: 12px;
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ds-text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* Legacy card-ish blocks (common patterns) */
.dashboard-card,
.schedule-day,
.booking-item,
.login-container,
.schedule-form,
.schedule-create {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.06);
}

