/* HealthCare - Plain CSS (converted from React/Tailwind) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --background: #F9FAFB;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --primary: #2563EB;
  --primary-foreground: #ffffff;
  --primary-hover: #1D4ED8;
  --primary-light: #DBEAFE;
  --secondary: #F97316;
  --muted: #F9FAFB;
  --muted-foreground: #6B7280;
  --accent: #F3F4F6;
  --destructive: #EF4444;
  --success: #10B981;
  --info: #3B82F6;
  --warning: #F97316;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --input-bg: #ffffff;
  --ring: #2563EB;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --shadow: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  --font-size: 16px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --sidebar: #F3F4F6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-size);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.app-shell,
.auth-shell {
  min-height: 100vh;
}

.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  
}
.auth-shell .auth-box {
  width: 100%;
  max-width: 28rem;
}

/* Pages - hidden by default */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Header */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 1024px) {
  .mobile-header { display: none; }
}

.desktop-sidebar {
  display: none;
  width: 16rem;
  min-height: 100vh;
  border-right: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
}

@media (min-width: 1024px) {
  .desktop-sidebar { display: block; }
}

.desktop-sidebar .sidebar-inner {
  padding: 1.5rem;
}

.desktop-sidebar h1 {
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: 2rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: background 0.2s;
}

.sidebar-nav a:hover {
  background: var(--accent);
}

/* .sidebar-nav a.active {
  background: var(--primary);
  color: var(--primary-foreground);
} */

.sidebar-nav a svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.main-with-sidebar {
  display: flex;
   width: 100%;
    overflow-x: hidden;
}

.main-content {
  flex: 1;
  min-width: 0;
  position: relative;
  left: 100px;
}
.main-content-t {
  flex: 1;
  min-width: 0;
  position: relative;
  left: 36px;
}
.main-content-d {
  flex: 1;
  min-width: 0;
  position: relative;
  left: -100px;
  
}

/* Bottom nav - mobile */
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.bottom-nav a:hover {
  background: var(--accent);
}

.bottom-nav a.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.bottom-nav a svg {
  width: 1rem;
  height: 1rem;
}

/* Mobile sheet (drawer) */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sheet-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16rem;
  background: var(--card);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.2s;
  overflow-y: auto;
  padding: 1.5rem;
}

.sheet-overlay.open .sheet-panel {
  transform: translateX(0);
}

.sheet-panel .sidebar-nav {
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--accent);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
}

.btn-link:hover:not(:disabled) {
  text-decoration: underline;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
      left: 890px;
    position: relative;
}

button.btn.btn-outline.btn-sm-app {
    position: relative;
    left: 779px;
}
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-block {
    left: 980px;
    width: 18%;
    position: relative;
}
.btn-block-d {
    
    width: 100%;
    position: relative;
    left: 8px
    ;
}
.btn-block-pro {
    
    width: 100%;
    position: relative;
}
/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 1rem;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;

  border-radius: 12px;
  overflow: hidden;
  gap: 21px;
}
.input-wrap button {
  border-radius: 8px;
  margin: 4px;
  background-color: #2563EB;
  color: white;
      font-size: 11px;
    padding: 8px;
}
.input-wrap .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.input#login-password {
    padding-left: 40px;
}
input#login-email {
    padding-left: 40px;
}
input#signup-email {
    padding-left: 40px;
}
input#signup-phone {
    padding-left: 40px;
}
input#login-password {
   padding-left: 40px;
}
.input-wrap input {
  width: 88%;
  padding: 0.5rem 2.75rem;
  padding-left: 2.5rem;
  font-size: var(--text-sm);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--foreground);
  
}

.input-wrap input::placeholder {
  color: var(--muted-foreground);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-group input:not([type="checkbox"]) {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--foreground);
}
.form-group input:focus {
  outline: none;
  border-color: var(--ring);
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.badge-default {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.badge-destructive {
  background: var(--destructive);
  color: white;
}

.badge-success {
  color: var(--success);
  border-color: var(--success);
  background: transparent;
}

.badge-warning {
  background: var(--warning);
  color: white;
}

/* Alert */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 1rem;
}

.alert-critical {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
}

.alert-warning {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.08);
}

.alert svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.alert-critical svg { color: var(--destructive); }
.alert-warning svg { color: var(--warning); }

.alert-body {
  flex: 1;
}

.alert-body p {
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
}

.alert-body .text-muted {
  font-size: var(--text-xs);
  opacity: 0.8;
}

/* Tabs */
.tabs-list {
  
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--muted);
  padding: 0.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.tab-trigger {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.tab-trigger.active {
  background: #2563eb;
  color: white;
  box-shadow: var(--shadow-sm);
  width: 93px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Dashboard */
.dashboard-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    position: relative;
    left: 260px;
    width: 1250px;
}

.dashboard-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: 0.25rem;
  color: white;
}

.dashboard-header p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
}

.dashboard-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 5rem;
  margin-top: 0rem;
      position: relative;
    left: 140px;
}
.dashboard-content-pd {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 1rem;
  margin-top: 0rem;
      position: relative;
    left: 40px;
}

.dashboard-content-pbd {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 5rem;
  margin-top: 0rem;
      position: relative;
    left: 30px;
}
.dashboard-content-ab {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 5rem;
  margin-top: 0rem;
      position: relative;
    left: 50px;
}
.dashboard-content-ad {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 5rem;
  margin-top: 0rem;
      position: relative;
    left: 30px;
}
.dashboard-content-a {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 5rem;
  margin-top: 0rem;
      position: relative;
    left: 40px;
}
@media (min-width: 1024px) {
  .dashboard-content { padding-bottom: 2rem; }
}

.dashboard-content .section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

/* Vitals grid */
.vitals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .vitals-grid { grid-template-columns: repeat(2, 1fr); }
}

.vital-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--muted);
}

.vital-item.high {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.vital-item .vital-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vital-item .vital-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.vital-value {
  font-size: var(--text-xl);
  font-weight: 600;
}

.vital-unit {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .quick-actions { grid-template-columns: repeat(5, 1fr); }
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  text-decoration: none;
  color: var(--foreground);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.2s;
}

.quick-action-btn:hover {
  background: var(--accent);
}

.quick-action-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Care team */
.care-team-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.care-team-item .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.care-team-item .info {
  flex: 1;
  min-width: 0;
}

.care-team-item .info p {
  font-size: var(--text-sm);
  margin-bottom: 0.125rem;
}

.care-team-item .info .role {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.care-team-actions {
  display: flex;
  gap: 0.5rem;
}

/* Reminder item */
.reminder-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--muted);
  margin-bottom: 0.5rem;
}

.reminder-item.urgent {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.reminder-item .reminder-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reminder-item .reminder-icon svg {
  width: 1rem;
  height: 1rem;
}

/* Page header (for inner pages) */
.page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  margin: 0 -1rem 1rem -1rem;
}
.page-header-ab {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  margin: 0 -1rem 1rem -1rem;
      position: relative;
    left: 170px;
}
.page-header-pbd {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  margin: 0 -1rem 1rem -1rem;
      position: relative;
    left: 170px;
}

.page-header-ad {
left: 170px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    margin: 0 -1rem 1rem -1rem;
    position: relative;
    width: 83%;
}
.page-header-pd {
left: 170px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    margin: 0 -1rem 1rem -1rem;
    position: relative;
    width: 83%;
}
.page-header-a {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  margin: 0 -1rem 1rem -1rem;
  position: relative;
    left: 160px;
}

.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
      left: 20px;
    position: relative;
}

/* Spacing utilities */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

@media (min-width: 1024px) {
  .toast-container { bottom: 1rem; }
}

.toast {
  padding: 0.75rem 1.25rem;
  background: var(--foreground);
  color: var(--background);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Separator */
.separator {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* OTP inputs */
.otp-input {
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--input-bg);
}
.otp-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Select */
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--foreground);
  cursor: pointer;
}

/* Language option cards */
.language-option {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.language-option:hover {
  border-color: var(--primary);
}
.language-option.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Specialty grid (book appointment) */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .specialty-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .specialty-grid { grid-template-columns: repeat(4, 1fr); }
}
.specialty-card {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.specialty-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Date slots (book calendar) */
.date-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.date-slot {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-sm);
}
.date-slot:hover, .date-slot.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}
.date-slot.selected {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Time grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .time-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Consultation type cards */
.consult-type {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.consult-type:hover {
  border-color: var(--primary);
}
.consult-type.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Appointment card link */
.appointment-card {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}
.appointment-card:hover {
  box-shadow: var(--shadow-md);
}

/* Text */
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-center { text-align: center; }

/* Profile / list links */
.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.2s;
}

.menu-link:hover {
  background: var(--muted);
}

.menu-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.menu-link .chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}
.sidebar-nav a.active {
    background: #2563eb;
    color: white;
    border-radius: 8px;
}

.sidebar-nav a.active svg {
    stroke: white;
}

/* ── PROVIDERS LIST ───────────────────────────────────── */
.providers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  left: 170px;
}

/* ── CARD ─────────────────────────────────────────────── */
.provider-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius, 14px);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  margin: 10px;
}

.provider-card:hover {
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

/* ── AVATAR ───────────────────────────────────────────── */
.provider-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius, 14px);
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ── INFO BLOCK ───────────────────────────────────────── */
.provider-info {
  flex: 1;
  min-width: 0;
}

/* ── HEADER ROW ───────────────────────────────────────── */
.provider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.provider-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── BADGE ────────────────────────────────────────────── */
.provider-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.provider-badge.available {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.provider-badge.busy {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── META LINE ────────────────────────────────────────── */
.provider-meta {
  font-size: 0.83rem;
  color: var(--color-muted, #6b7280);
  margin: 0 0 8px;
}

/* ── FEE ──────────────────────────────────────────────── */
.provider-fee {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  margin: 0 0 10px;
}

.provider-fee span {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-muted, #6b7280);
}

/* ── BUTTON ───────────────────────────────────────────── */
.provider-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--color-primary, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
  left: 990px;
}

.provider-btn:hover {
  background: var(--color-primary-dark, #1d4ed8);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 480px) {
  .provider-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .provider-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── TIMESLOT CARD ────────────────────────────────────── */
.timeslot-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.timeslot-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  margin-bottom: 16px;
}

/* ── GRID: 3 columns × 5 rows ─────────────────────────── */
.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ── BUTTON ───────────────────────────────────────────── */
.timeslot-btn {
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border, #e5e7eb);
  background: transparent;
  color: var(--color-text, #374151);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  text-align: center;
}

.timeslot-btn:hover {
  border-color: var(--color-primary, #2563eb);
  color: var(--color-primary, #2563eb);
  background: rgba(37, 99, 235, 0.05);
}

.timeslot-btn.active {
  background: var(--color-primary, #2563eb);
  border-color: var(--color-primary, #2563eb);
  color: #fff;
}

.timeslot-btn.disabled,
.timeslot-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── SECTION 1: REASON CARD ───────────────────────────── */
.reason-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.reason-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.reason-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #374151;
  background: #f9fafb;
  resize: vertical;
  outline: none;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.reason-textarea::placeholder { color: #9ca3af; }

.reason-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  background: #fff;
}

/* ── SECTION 2: BOOKING SUMMARY ───────────────────────── */
.summary-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 24px;
}

.summary-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.summary-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.summary-fee { color: #2563eb; }

/* ── CONFIRM BUTTON ───────────────────────────────────── */
.summary-confirm-btn {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
}

.summary-confirm-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}


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

.btn-block-w {
    /* left: 980px; */
    /* width: 18%; */
    position: relative;
}



/* =============================================================
   MOBILE RESPONSIVE OVERRIDES  — max-width: 1023px and below
   Paste this block at the very END of your existing style.css.
   All desktop styles are completely untouched.
   ============================================================= */

/* ── Prevent horizontal scroll on mobile ────────────────── */
@media (max-width: 1023px) {
  body { overflow-x: hidden; }

  /* ── Main layout ── */
  .main-with-sidebar  { flex-direction: column; overflow-x: hidden; }

  .main-content,
  .main-content-t,
  .main-content-d {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 5rem;   /* clear fixed bottom nav */
  }

  /* ── Dashboard header ── */
  .dashboard-header {
    left: 0 !important;
    width: 100% !important;
    padding: 1.25rem 1rem;
  }
  .dashboard-header h1 { font-size: var(--text-xl); }

  /* ── All dashboard content variants ── */
  .dashboard-content,
  .dashboard-content-pd,
  .dashboard-content-pbd,
  .dashboard-content-ab,
  .dashboard-content-ad,
  .dashboard-content-a {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 1rem 5rem;
  }

  /* ── All page-header variants ── */
  .page-header,
  .page-header-ab,
  .page-header-pbd,
  .page-header-ad,
  .page-header-pd,
  .page-header-a {
    left: 0 !important;
    width: 100% !important;
    margin: 0 0 1rem 0;
    padding: 1rem;
  }
  .page-header h1 {
    left: 0 !important;
    font-size: var(--text-xl);
  }

  /* ── Buttons: kill hardcoded left offsets ── */
  .btn-sm {
    left: 0 !important;
    position: relative;
  }
  button.btn.btn-outline.btn-sm-app {
    left: 0 !important;
    position: relative;
  }
  .btn-block {
    left: 0 !important;
    width: 100% !important;
  }
  .btn-block-d {
    left: 0 !important;
    width: 100% !important;
  }

  /* ── Providers list ── */
  .providers-list {
    left: 0 !important;
    width: 100% !important;
  }
  .provider-btn {
    left: 0 !important;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .provider-card { margin: 0 0 4px 0; }

  /* ── Grids ── */
  .quick-actions  { grid-template-columns: repeat(3, 1fr); }
  .date-grid      { grid-template-columns: repeat(3, 1fr); }
  .summary-grid   { grid-template-columns: 1fr; gap: 12px; }

  /* ── Tab trigger ── */
  .tab-trigger.active { width: auto; }

  /* ── Inputs ── */
  .input-wrap input { width: 100%; }
}

/* ── Small phones (≤ 640px) ──────────────────────────────── */
@media (max-width: 640px) {
  .quick-actions  { grid-template-columns: repeat(2, 1fr); }
  .date-grid      { grid-template-columns: repeat(2, 1fr); }
  .timeslot-grid  { grid-template-columns: repeat(2, 1fr); }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .vitals-grid    { grid-template-columns: 1fr; }

  .care-team-item { flex-wrap: wrap; }
  .care-team-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }

  .dashboard-header h1 { font-size: var(--text-lg); }
  .section-title        { font-size: var(--text-base); }
  .vital-value          { font-size: var(--text-lg); }

  .provider-card   { flex-direction: column; }
  .provider-avatar { width: 48px; height: 48px; font-size: 1.4rem; }
}