/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Rubik', Arial, sans-serif;
  background: #F7F5F2;
  color: #1A1A1A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap {
  flex: 1;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-waitless {
  background: #4A7FA5;
  padding: 0.7rem 0;
}

.navbar-waitless .navbar-brand {
  color: #fff;
  font-weight: 500;
  font-size: 1.25rem;
  text-decoration: none;
}

.navbar-waitless .nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.navbar-waitless .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.navbar-username {
  color: #D6EAF7;
  font-size: 0.875rem;
}

.navbar-waitless .btn-logout {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  padding: 0.2rem 0.75rem;
}

.navbar-waitless .btn-logout:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 0.5px solid #E4DDD6 !important;
  border-radius: 12px;
  box-shadow: none !important;
}

/* ── Doctor list cards ────────────────────────────────────── */
.doctor-card .card-body {
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.doctor-icon-tile {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #EAF2F8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #4A7FA5;
}

.doctor-name {
  font-weight: 500;
  color: #1A1A1A;
  font-size: 0.95rem;
  line-height: 1.3;
}

.doctor-specialty {
  color: #7A7A7A;
  font-size: 0.78rem;
  margin-top: 2px;
}

.appt-date {
  font-size: 0.8rem;
  color: #1A1A1A;
  white-space: nowrap;
  text-align: start;
}

.badge-soon {
  display: inline-block;
  background: #E6F0E8;
  color: #2D6E3A;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-far {
  display: inline-block;
  background: #EAF2F8;
  color: #2A5F82;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.last-checked-label {
  font-size: 0.7rem;
  color: #A09585;
  margin-top: 5px;
  white-space: nowrap;
}

.btn-trash {
  background: none;
  border: none;
  color: #C8BFB7;
  padding: 6px 7px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.btn-trash:hover {
  color: #c0392b;
  background: #fdf0ef;
}

/* ── Section label ────────────────────────────────────────── */
.section-label {
  color: #A09585;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: #4A7FA5;
  border-color: #4A7FA5;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #3d6e91;
  border-color: #3d6e91;
}

.btn-outline-primary {
  color: #4A7FA5;
  border-color: #4A7FA5;
}

.btn-outline-primary:hover {
  background: #4A7FA5;
  border-color: #4A7FA5;
  color: #fff;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: #4A7FA5;
  box-shadow: 0 0 0 0.2rem rgba(74, 127, 165, 0.18);
}

/* keep URLs left-to-right inside RTL layout */
input[dir="ltr"] {
  unicode-bidi: plaintext;
}

/* ── Hero empty-state ─────────────────────────────────────── */
.hero-icon {
  font-size: 3rem;
  line-height: 1;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-bar {
  background: #F7F5F2;
  border-top: 1px solid #E4DDD6;
  padding: 0.9rem 0;
  text-align: center;
  color: #B0A89E;
  font-size: 0.8rem;
}
