/* ============================================================
   N SQUARE DENTISTRY — Practice Management Software
   Complete Design System & Stylesheet
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand */
  --primary:          #2563EB;
  --primary-dark:     #1E40AF;
  --primary-light:    #DBEAFE;
  --primary-hover:    #3B82F6;
  --primary-ring:     rgba(37, 99, 235, 0.25);

  /* Surfaces */
  --bg:               #F8FAFC;
  --surface:          #FFFFFF;
  --border:           #E2E8F0;
  --border-light:     #F1F5F9;

  /* Text */
  --text-primary:     #1E293B;
  --text-secondary:   #64748B;
  --text-tertiary:    #94A3B8;
  --text-inverse:     #FFFFFF;

  /* Semantic */
  --success:          #10B981;
  --success-light:    #D1FAE5;
  --success-dark:     #059669;
  --warning:          #F59E0B;
  --warning-light:    #FEF3C7;
  --warning-dark:     #D97706;
  --danger:           #EF4444;
  --danger-light:     #FEE2E2;
  --danger-dark:      #DC2626;
  --info:             #0EA5E9;
  --info-light:       #E0F2FE;

  /* WhatsApp */
  --whatsapp:         #25D366;
  --whatsapp-dark:    #128C7E;
  --whatsapp-light:   #DCF8C6;

  /* Shadows */
  --shadow-xs:        0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:        0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:        0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:        0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl:       0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-blue:      0 4px 14px rgba(37, 99, 235, 0.25);

  /* Radii */
  --radius-sm:        6px;
  --radius:           8px;
  --radius-md:        10px;
  --radius-lg:        12px;
  --radius-xl:        16px;
  --radius-2xl:       20px;
  --radius-full:      9999px;

  /* Sidebar */
  --sidebar-width:    260px;
  --sidebar-collapsed:70px;

  /* Header */
  --header-height:    64px;

  /* Transitions */
  --ease:             cubic-bezier(0.4, 0, 0.2, 1);
  --duration:         0.2s;
  --duration-md:      0.3s;
  --duration-lg:      0.4s;

  /* Z-index scale */
  --z-sidebar:        100;
  --z-header:         90;
  --z-dropdown:       200;
  --z-modal:          1000;
  --z-toast:          1100;
}

/* ── CSS Reset / Normalize ────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Global smooth transitions on color and background */
*,
*::before,
*::after {
  transition: color var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

/* ── Scrollbar Styling ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
  transition: background var(--duration) var(--ease);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--bg);
}


/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 400px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.login-card .form-group {
  margin-bottom: 24px;
  text-align: left;
}

.login-btn {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
}

.login-error {
  color: var(--danger);
  background: var(--danger-light);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}


/* ============================================================
   SIDEBAR
   ============================================================ */.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: var(--z-sidebar);
  display: flex;
  flex-direction: column;
  transition: width var(--duration-md) var(--ease);
  overflow: hidden;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  min-height: 72px;
  flex-shrink: 0;
}

.sidebar .logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar .logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--duration-md) var(--ease),
              width var(--duration-md) var(--ease);
}

.sidebar .logo .logo-text span {
  color: var(--primary);
}

/* Nav Menu */
.sidebar .nav-menu {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: 4px;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.sidebar .nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 20px;
}

.sidebar .nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar .nav-item.active {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-blue);
}

.sidebar .nav-item .nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.sidebar .nav-item .nav-label {
  overflow: hidden;
  transition: opacity var(--duration-md) var(--ease),
              width var(--duration-md) var(--ease);
}

.sidebar .nav-item .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar.collapsed .logo .logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar.collapsed .nav-item {
  padding: 12px;
  justify-content: center;
}

.sidebar.collapsed .nav-item .nav-label,
.sidebar.collapsed .nav-item .nav-badge {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar.collapsed .nav-item .nav-icon {
  font-size: 20px;
}

/* Sidebar Toggle */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  width: 100%;
  transition: all var(--duration) var(--ease);
}

.sidebar-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-toggle .toggle-icon {
  font-size: 18px;
  transition: transform var(--duration-md) var(--ease);
}

.sidebar.collapsed .sidebar-toggle .toggle-icon {
  transform: rotate(180deg);
}

/* Sidebar Divider */
.sidebar .nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}

.sidebar .nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 8px 20px 4px;
  white-space: nowrap;
}

.sidebar.collapsed .nav-section-title {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}


/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--duration-md) var(--ease);
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed);
}


/* ============================================================
   HEADER
   ============================================================ */
.main-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: var(--header-height);
  gap: 16px;
}

.main-header .header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-header .header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.main-header .header-title span {
  color: var(--primary);
}

/* Global Search */
.search-global {
  position: relative;
  width: 340px;
}

.search-global .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 16px;
  pointer-events: none;
}

.search-global input {
  width: 100%;
  padding: 9px 14px 9px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

.search-global input::placeholder {
  color: var(--text-tertiary);
}

.search-global input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
  background: var(--surface);
}

/* Header Right */
.main-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-header .header-date {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.main-header .header-date .date-highlight {
  color: var(--primary);
  font-weight: 600;
}

.header-notification {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.header-notification:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-notification .notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--surface);
  animation: pulse 2s infinite;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--duration) var(--ease);
}

.header-avatar:hover {
  border-color: var(--primary);
}


/* ============================================================
   PAGES / SECTIONS
   ============================================================ */
.page-wrapper {
  padding: 28px;
}

section.page {
  display: none;
  padding: 28px;
}

section.page.active {
  display: block;
  animation: fadeIn var(--duration-md) var(--ease);
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h2 {
  margin-bottom: 0;
}


/* ============================================================
   DASHBOARD
   ============================================================ */

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.04;
  transform: translate(30%, -30%);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card .stat-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-card .stat-icon.blue ~ .stat-info::after,
.stat-card:nth-child(1)::after {
  background: var(--primary);
}

.stat-card .stat-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.stat-card:nth-child(2)::after {
  background: var(--success);
}

.stat-card .stat-icon.yellow {
  background: var(--warning-light);
  color: var(--warning);
}

.stat-card:nth-child(3)::after {
  background: var(--warning);
}

.stat-card .stat-icon.red {
  background: var(--danger-light);
  color: var(--danger);
}

.stat-card:nth-child(4)::after {
  background: var(--danger);
}

.stat-card .stat-icon.purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.stat-card .stat-info {
  flex: 1;
  min-width: 0;
}

.stat-card .stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stat-card .stat-change.up {
  color: var(--success-dark);
  background: var(--success-light);
}

.stat-card .stat-change.down {
  color: var(--danger-dark);
  background: var(--danger-light);
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-grid .full-width {
  grid-column: 1 / -1;
}

/* Today's Appointments Card */
.today-appointments {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.today-appointments .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.today-appointments .card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.today-appointments .card-header .card-action {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

.today-appointments .card-header .card-action:hover {
  color: var(--primary-dark);
}

.today-appointments .card-body {
  padding: 8px 0;
}

.appointment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  transition: background var(--duration) var(--ease);
}

.appointment-item:hover {
  background: var(--bg);
}

.appointment-item .appt-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  min-width: 70px;
  white-space: nowrap;
}

.appointment-item .appt-patient {
  flex: 1;
  min-width: 0;
}

.appointment-item .appt-patient .patient-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-item .appt-patient .patient-phone {
  font-size: 12px;
  color: var(--text-tertiary);
}

.appointment-item .appt-treatment {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.appointment-item .appt-treatment.cleaning {
  background: var(--info-light);
  color: var(--info);
}

.appointment-item .appt-treatment.filling {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.appointment-item .appt-treatment.extraction {
  background: var(--danger-light);
  color: var(--danger);
}

.appointment-item .appt-treatment.checkup {
  background: var(--success-light);
  color: var(--success-dark);
}

.appointment-item .appt-treatment.rct {
  background: #EDE9FE;
  color: #7C3AED;
}

.appointment-item .appt-treatment.crown {
  background: #FFF7ED;
  color: #EA580C;
}

.appointment-item .appt-whatsapp {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--whatsapp);
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.appointment-item .appt-whatsapp:hover {
  background: var(--whatsapp);
  color: var(--text-inverse);
}


/* ============================================================
   PATIENT MANAGEMENT
   ============================================================ */

/* Toolbar */
.patient-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.patient-toolbar .toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.patient-toolbar .toolbar-search {
  position: relative;
  max-width: 360px;
  flex: 1;
}

.patient-toolbar .toolbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 15px;
  pointer-events: none;
}

.patient-toolbar .toolbar-search input {
  width: 100%;
  padding: 9px 14px 9px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  transition: all var(--duration) var(--ease);
}

.patient-toolbar .toolbar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

/* Patient Table */
.table-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.patient-table {
  width: 100%;
  border-collapse: collapse;
}

.patient-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.patient-table th {
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.patient-table th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.patient-table th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.patient-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.patient-table tbody tr {
  transition: background var(--duration) var(--ease);
}

.patient-table tbody tr:nth-child(even) {
  background: var(--bg);
}

.patient-table tbody tr:hover {
  background: var(--primary-light);
}

.patient-table tbody tr:last-child td {
  border-bottom: none;
}

.patient-table .patient-name-cell {
  font-weight: 600;
  color: var(--text-primary);
}

.patient-table .patient-id {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.patient-table .action-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Balance Colors */
.balance-positive {
  color: var(--success) !important;
  font-weight: 600;
}

.balance-negative {
  color: var(--danger) !important;
  font-weight: 600;
}

.balance-zero {
  color: var(--text-tertiary) !important;
}

/* Pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.table-pagination .pagination-info {
  font-weight: 500;
}

.table-pagination .pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.table-pagination .page-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.table-pagination .page-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.table-pagination .page-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
}

.table-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: none;
  align-items: flex-start; /* Align top so it can scroll down */
  justify-content: center;
  padding: 20px;
  overflow-y: auto; /* The overlay handles scrolling */
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn var(--duration) var(--ease);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 100%;
  margin: auto; /* Centers when small, pushes to top when large */
  display: block;
  animation: modalIn var(--duration-md) var(--ease);
}

.modal.modal-lg {
  max-width: 800px;
}

.modal.modal-sm {
  max-width: 440px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header .modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-header .modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.modal-header .modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}


/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  transition: all var(--duration) var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background: var(--bg);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group .form-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.form-group .form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Form Row — side by side fields */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
  min-width: 0;
}

/* Checkbox and Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary */
.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-blue);
}

/* Success */
.btn-success {
  background: var(--success);
  color: var(--text-inverse);
  border-color: var(--success);
}

.btn-success:hover {
  background: var(--success-dark);
  border-color: var(--success-dark);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: var(--text-inverse);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-dark);
  border-color: var(--danger-dark);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* Warning */
.btn-warning {
  background: var(--warning);
  color: var(--text-inverse);
  border-color: var(--warning);
}

.btn-warning:hover {
  background: var(--warning-dark);
  border-color: var(--warning-dark);
}

/* Info */
.btn-info {
  background: #3B82F6;
  color: var(--text-inverse);
  border-color: #3B82F6;
}

.btn-info:hover {
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-blue);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* WhatsApp */
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--text-inverse);
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Sizes */
.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Icon Button */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.btn-icon.btn-lg {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

/* Button Group */
.btn-group {
  display: inline-flex;
  gap: 0;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}


/* ============================================================
   CALENDAR — APPOINTMENTS
   ============================================================ */

/* Calendar Header */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-header .calendar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.calendar-header .calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-header .calendar-nav .nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--surface);
  font-size: 16px;
  transition: all var(--duration) var(--ease);
}

.calendar-header .calendar-nav .nav-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.calendar-header .btn-today {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.calendar-header .btn-today:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.calendar-view-toggle {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}

.calendar-view-toggle .view-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.calendar-view-toggle .view-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.calendar-view-toggle .view-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Calendar Grid — Month View */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 12px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.calendar-day {
  min-height: 110px;
  border: 1px solid var(--border-light);
  padding: 8px;
  cursor: pointer;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.calendar-day:hover {
  background: var(--primary-light);
}

.calendar-day.today {
  background: rgba(219, 234, 254, 0.5);
  border-left: 3px solid var(--primary);
}

.calendar-day.today .day-number {
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.other-month {
  opacity: 0.4;
  background: var(--bg);
}

.calendar-day.other-month:hover {
  opacity: 0.6;
}

.calendar-day .day-number {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.calendar-day .appointments-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar-day .appointment-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day .appointment-dot.blue {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.calendar-day .appointment-dot.green {
  background: var(--success-light);
  color: var(--success-dark);
}

.calendar-day .appointment-dot.orange {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.calendar-day .appointment-dot.red {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.calendar-day .more-appointments {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 2px;
  padding-left: 6px;
}

/* Day View */
.day-view {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.day-view .day-view-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.time-slot {
  display: flex;
  min-height: 60px;
  border-bottom: 1px dashed var(--border-light);
  transition: background var(--duration) var(--ease);
}

.time-slot:last-child {
  border-bottom: none;
}

.time-slot:hover {
  background: var(--bg);
}

.time-slot .time-label {
  width: 80px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  border-right: 1px solid var(--border-light);
  flex-shrink: 0;
  text-align: right;
}

.time-slot .slot-content {
  flex: 1;
  padding: 6px 12px;
  position: relative;
}

.time-slot .appointment-block {
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.time-slot .appointment-block:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.time-slot .appointment-block .block-patient {
  font-weight: 600;
  font-size: 13px;
}

.time-slot .appointment-block .block-treatment {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.time-slot .appointment-block.success {
  background: var(--success);
}

.time-slot .appointment-block.success:hover {
  background: var(--success-dark);
}

.time-slot .appointment-block.warning {
  background: var(--warning);
}

.time-slot .appointment-block.warning:hover {
  background: var(--warning-dark);
}


/* ============================================================
   PAYMENT
   ============================================================ */

/* Payment Summary Cards */
.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.payment-summary .summary-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
}

.payment-summary .summary-card .summary-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.payment-summary .summary-card:nth-child(1) .summary-icon {
  background: var(--success-light);
  color: var(--success);
}

.payment-summary .summary-card:nth-child(2) .summary-icon {
  background: var(--warning-light);
  color: var(--warning);
}

.payment-summary .summary-card:nth-child(3) .summary-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.payment-summary .summary-card .summary-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.payment-summary .summary-card .summary-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* Payment Table */
.payment-table {
  width: 100%;
  border-collapse: collapse;
}

.payment-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.payment-table th {
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
}

.payment-table th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.payment-table th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.payment-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.payment-table tbody tr {
  transition: background var(--duration) var(--ease);
}

.payment-table tbody tr:nth-child(even) {
  background: var(--bg);
}

.payment-table tbody tr:hover {
  background: var(--primary-light);
}

.payment-table tbody tr:last-child td {
  border-bottom: none;
}

/* Amount style */
.amount {
  font-weight: 600;
  font-family: 'Outfit', 'Inter', monospace;
  letter-spacing: -0.01em;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.paid {
  background: var(--success-light);
  color: var(--success-dark);
}

.status-badge.pending {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.status-badge.partial {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.status-badge.overdue {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.status-badge.cancelled {
  background: var(--bg);
  color: var(--text-tertiary);
}


/* ============================================================
   WHATSAPP REMINDERS
   ============================================================ */

.reminder-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Template Cards Grid */
.template-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.template-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.template-card:hover {
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.template-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.template-card .template-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--whatsapp-light);
  color: var(--whatsapp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.template-card .template-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.template-card .template-preview {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-card .template-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--text-inverse);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.template-card.selected .template-check {
  display: flex;
}

/* Message Preview */
.message-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.message-preview .preview-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.message-preview .preview-text {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.message-preview .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--duration) var(--ease);
}

.message-preview .copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* WhatsApp Send Button */
.whatsapp-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--whatsapp);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 auto;
  min-width: 240px;
  transition: all var(--duration) var(--ease);
}

.whatsapp-send-btn:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.whatsapp-send-btn:active {
  transform: scale(0.97);
}

.whatsapp-send-btn .wa-icon {
  font-size: 22px;
}

/* Patient Select Area */
.patient-select-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.patient-select-area .select-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.patient-select-area .select-search {
  position: relative;
  margin-bottom: 12px;
}

.patient-select-area .select-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.patient-select-area .select-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.patient-select-area .select-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.patient-select-area .selected-patient {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border: 1px solid var(--primary);
}

.patient-select-area .selected-patient .patient-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.patient-select-area .selected-patient .patient-details {
  flex: 1;
}

.patient-select-area .selected-patient .patient-details .name {
  font-weight: 600;
  font-size: 14px;
}

.patient-select-area .selected-patient .patient-details .phone {
  font-size: 12px;
  color: var(--text-secondary);
}

.patient-select-area .selected-patient .remove-btn {
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 18px;
}

.patient-select-area .selected-patient .remove-btn:hover {
  color: var(--danger);
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Text Colors */
.text-primary   { color: var(--primary) !important; }
.text-success   { color: var(--success) !important; }
.text-danger    { color: var(--danger) !important; }
.text-warning   { color: var(--warning) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-tertiary) !important; }

/* Flex */
.flex           { display: flex; }
.flex-col       { display: flex; flex-direction: column; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-start     { display: flex; align-items: center; justify-content: flex-start; }
.flex-end       { display: flex; align-items: center; justify-content: flex-end; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.flex-1         { flex: 1; }

/* Gaps */
.gap-4   { gap: 4px; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-20  { gap: 20px; }
.gap-24  { gap: 24px; }
.gap-32  { gap: 32px; }

/* Margin Top */
.mt-4    { margin-top: 4px; }
.mt-8    { margin-top: 8px; }
.mt-12   { margin-top: 12px; }
.mt-16   { margin-top: 16px; }
.mt-20   { margin-top: 20px; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }

/* Margin Bottom */
.mb-4    { margin-bottom: 4px; }
.mb-8    { margin-bottom: 8px; }
.mb-12   { margin-bottom: 12px; }
.mb-16   { margin-bottom: 16px; }
.mb-20   { margin-bottom: 20px; }
.mb-24   { margin-bottom: 24px; }
.mb-32   { margin-bottom: 32px; }

/* Padding */
.p-4     { padding: 4px; }
.p-8     { padding: 8px; }
.p-12    { padding: 12px; }
.p-16    { padding: 16px; }
.p-20    { padding: 20px; }
.p-24    { padding: 24px; }
.p-32    { padding: 32px; }

/* Display */
.hidden     { display: none !important; }
.block      { display: block; }
.inline     { display: inline; }
.inline-flex { display: inline-flex; }

/* Text */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.text-lg      { font-size: 16px; }

/* Misc */
.w-full       { width: 100%; }
.rounded      { border-radius: var(--radius); }
.rounded-lg   { border-radius: var(--radius-lg); }
.shadow       { box-shadow: var(--shadow-sm); }
.shadow-md    { box-shadow: var(--shadow-md); }
.overflow-hidden { overflow: hidden; }
.relative     { position: relative; }
.absolute     { position: absolute; }
.cursor-pointer { cursor: pointer; }


/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-success {
  background: var(--success-light);
  color: var(--success-dark);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger-dark);
}

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

.badge-info {
  background: var(--info-light);
  color: var(--info);
}

.badge-neutral {
  background: var(--bg);
  color: var(--text-secondary);
}

/* Treatment-specific badges */
.badge-cleaning {
  background: var(--info-light);
  color: var(--info);
}

.badge-filling {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.badge-extraction {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-checkup {
  background: var(--success-light);
  color: var(--success-dark);
}

.badge-rct {
  background: #EDE9FE;
  color: #7C3AED;
}

.badge-crown {
  background: #FFF7ED;
  color: #EA580C;
}

.badge-braces {
  background: #FCE7F3;
  color: #DB2777;
}

.badge-implant {
  background: #ECFDF5;
  color: #047857;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.empty-state .empty-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state .empty-description {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: 20px;
}


/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  min-width: 300px;
  max-width: 420px;
  pointer-events: auto;
  animation: toastSlideIn var(--duration-md) var(--ease);
  overflow: hidden;
  position: relative;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.toast .toast-content {
  flex: 1;
  min-width: 0;
}

.toast .toast-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.toast .toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.toast .toast-close {
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.toast .toast-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* Toast Variants */
.toast.success::before { background: var(--success); }
.toast.success .toast-icon {
  background: var(--success-light);
  color: var(--success);
}

.toast.error::before { background: var(--danger); }
.toast.error .toast-icon {
  background: var(--danger-light);
  color: var(--danger);
}

.toast.info::before { background: var(--primary); }
.toast.info .toast-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.toast.warning::before { background: var(--warning); }
.toast.warning .toast-icon {
  background: var(--warning-light);
  color: var(--warning);
}

/* Toast exit animation */
.toast.removing {
  animation: toastSlideOut var(--duration-md) var(--ease) forwards;
}


/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 6px;
  z-index: var(--z-dropdown);
  animation: fadeIn var(--duration) var(--ease);
}

.dropdown-menu.hidden {
  display: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}


/* ============================================================
   CARDS (Generic)
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.card-header h3,
.card-header .card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}


/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration) var(--ease);
  z-index: 50;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--border-light) 25%,
    var(--bg) 50%,
    var(--border-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner.sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.loading-spinner.lg {
  width: 44px;
  height: 44px;
  border-width: 4px;
}


/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}


/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide Up */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Right — sidebar items */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse — notification dot */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

/* Modal entrance */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast slide in */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Toast slide out */
@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

/* Shimmer — skeleton loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Spin */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page transition */
.page-enter {
  animation: slideUp var(--duration-md) var(--ease);
}


/* ============================================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {

  /* Sidebar collapses to icon-only */
  .sidebar {
    width: var(--sidebar-collapsed);
  }

  .sidebar .logo .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }

  .sidebar .nav-item {
    padding: 12px;
    justify-content: center;
  }

  .sidebar .nav-item .nav-label,
  .sidebar .nav-item .nav-badge {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
  }

  .sidebar .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
  }

  .main-content {
    margin-left: var(--sidebar-collapsed);
  }

  /* Dashboard */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  /* Payment summary */
  .payment-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Calendar day size */
  .calendar-day {
    min-height: 80px;
  }

  /* Header search */
  .search-global {
    width: 240px;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Sidebar becomes bottom nav */
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 64px;
    display: block; /* Changed from flex-direction: row to prevent flex items from over-expanding */
    border-right: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    z-index: var(--z-sidebar);
  }

  .sidebar .logo {
    display: none;
  }

  .sidebar-nav {
    width: 100%;
    height: 100%;
  }

  .sidebar .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }
  .sidebar .nav-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar WebKit */
  }

  .sidebar .nav-item {
    flex-direction: column;
    gap: 3px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    margin-bottom: 0;
    min-width: 56px;
    flex-shrink: 0; /* Important to prevent squishing so they can scroll */
  }

  .sidebar .nav-item .nav-icon {
    font-size: 20px;
  }

  .sidebar .nav-item .nav-label {
    opacity: 1 !important;
    width: auto !important;
    display: block !important;
    font-size: 10px;
    text-align: center;
  }

  .sidebar .nav-item .nav-badge {
    display: none;
  }

  .sidebar .nav-item.active {
    box-shadow: none;
  }

  .sidebar .nav-divider,
  .sidebar .nav-section-title,
  .sidebar-toggle {
    display: none;
  }

  /* Main content */
  .main-content {
    margin-left: 0 !important;
    padding-bottom: 80px;
  }

  .page-wrapper {
    padding: 16px;
  }

  /* Header */
  .main-header {
    padding: 0 16px;
    height: 56px;
  }

  .main-header .header-title {
    font-size: 16px;
  }

  .search-global {
    width: 100%;
    max-width: 200px;
  }

  .main-header .header-date {
    display: none;
  }

  /* Dashboard */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .stat-number {
    font-size: 22px;
  }

  .stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Payment summary */
  .payment-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Calendar simplification */
  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }

  .calendar-day .day-number {
    font-size: 12px;
  }

  .calendar-day .appointment-dot {
    font-size: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    padding: 0;
    min-width: 8px;
  }

  .calendar-day-header {
    font-size: 10px;
    padding: 6px 2px;
  }

  /* Tables become scrollable */
  .table-container {
    border-radius: var(--radius);
  }

  .patient-table th,
  .patient-table td,
  .payment-table th,
  .payment-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Patient toolbar */
  .patient-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .patient-toolbar .toolbar-left {
    flex-direction: column;
    align-items: stretch;
  }

  .patient-toolbar .toolbar-search {
    max-width: 100%;
  }

  /* Modals */
  .modal {
    width: 95%;
    border-radius: var(--radius-lg);
    margin: 20px auto; /* Provide margin from screen edges when scrolling */
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 16px 20px;
  }

  .modal-footer {
    padding: 12px 20px;
  }

  /* Form rows stack */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Template cards */
  .template-cards {
    grid-template-columns: 1fr;
  }

  /* Toast */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 80px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

  /* Tabs scroll */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    padding: 10px 16px;
    font-size: 13px;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (< 480px)
   ============================================================ */
@media (max-width: 480px) {

  /* Single column everything */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 14px;
    gap: 12px;
  }

  .stat-card .stat-number {
    font-size: 20px;
  }

  /* Page title */
  .page-title {
    font-size: 20px;
  }

  /* Calendar — list-like view */
  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .calendar-day {
    min-height: 44px;
    padding: 3px;
  }

  .calendar-day .appointments-list {
    display: none;
  }

  .calendar-day .more-appointments {
    display: none;
  }

  /* Appointment item */
  .appointment-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }

  .appointment-item .appt-treatment {
    order: 3;
    font-size: 11px;
  }

  /* Buttons */
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Calendar header */
  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Header */
  .main-header {
    gap: 8px;
  }

  .search-global {
    max-width: 160px;
  }

  .header-notification {
    width: 34px;
    height: 34px;
  }

  .header-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* WhatsApp send button */
  .whatsapp-send-btn {
    min-width: auto;
    width: 100%;
    font-size: 14px;
    padding: 12px 24px;
  }

  /* Day view time slots */
  .time-slot .time-label {
    width: 60px;
    font-size: 11px;
    padding: 8px 10px;
  }

  .time-slot .appointment-block {
    padding: 6px 10px;
    font-size: 12px;
  }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .sidebar,
  .main-header,
  .sidebar-toggle,
  .toast-container,
  .modal-overlay,
  .btn,
  .patient-toolbar {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .stat-card,
  .card,
  .table-container {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }

  .patient-table th {
    background: #eee !important;
    color: black !important;
  }

  .payment-table th {
    background: #eee !important;
    color: black !important;
  }
}

/* Patient Profile Image Upload Styles */
.profile-avatar:hover #patient-image-overlay {
  display: block !important;
}

.table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}

.table-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  font-size: 14px;
  vertical-align: middle;
  margin-right: 8px;
}

/* OPD Log Table */
.opd-log-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.opd-log-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}
.opd-log-table th {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
  border: 1px solid rgba(37, 99, 235, 0.1);
}
.opd-log-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border: 1px solid rgba(37, 99, 235, 0.1);
}
.opd-log-table tbody tr {
  transition: background var(--duration) var(--ease);
}
.opd-log-table tbody tr:nth-child(even) {
  background: rgba(37, 99, 235, 0.02);
}
.opd-log-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.08);
}
