/* ==========================================================================
   Aesthetic Clinic Management System - Enterprise Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 0px;
  --topbar-height: 64px;
  
  /* Colors */
  --primary: #0D6EFD;
  --primary-dark: #0B5ED7;
  --primary-light: #E8F0FE;
  --sidebar-bg: #0A2540;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-active: rgba(255,255,255,0.10);
  --sidebar-text: rgba(255,255,255,0.65);
  --sidebar-text-active: #FFFFFF;
  --sidebar-divider: rgba(255,255,255,0.06);
  --content-bg: #F0F4F8;
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --text-primary: #1A2332;
  --text-secondary: #6B7A99;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --success: #22A447;
  --warning: #FF9F1A;
  --danger: #E5484D;
  --info: #2F80ED;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-my: 'Noto Sans Myanmar', 'Pyidaungsu', 'Padauk', 'Myanmar3', 'Myanmar Text', sans-serif;
  --font-size-xs: 0.688rem;
  --font-size-sm: 0.813rem;
  --font-size-base: 0.875rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* --------------------------------------------------------------------------
   1. Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--content-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  overflow-x: hidden;
}

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

/* Myanmar Language Support
   ========================================================================== */
.lang-my body,
body.lang-my,
.lang-my .app-sidebar,
.lang-my .sidebar-brand-text,
.lang-my .sidebar-item,
.lang-my .main-content,
.lang-my .topbar,
.lang-my .card,
.lang-my .modal-content,
.lang-my .dropdown-menu,
.lang-my input,
.lang-my select,
.lang-my textarea,
.lang-my button,
.lang-my .btn,
.lang-my .badge,
.lang-my table,
.lang-my .alert {
  font-family: var(--font-family-my);
}

.lang-my .sidebar-brand-text {
  font-size: var(--font-size-base);
  line-height: 1.4;
}

.lang-my .sidebar-item {
  font-size: var(--font-size-sm);
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.lang-my .language-selector span {
  font-family: var(--font-family-my);
  font-weight: 600;
}

.lang-my .topbar-search input::placeholder {
  font-family: var(--font-family-my);
  opacity: 0.7;
}

.lang-my .btn {
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.lang-my .sidebar-heading {
  letter-spacing: 0;
  font-size: 0.65rem;
}

/* Adjust table cells for Myanmar text wrapping */
.lang-my td,
.lang-my th {
  word-break: break-word;
}

/* Ensure small screens still work with Myanmar text */
@media (max-width: 768px) {
  .lang-my .sidebar-item {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.75rem;
  }
  .lang-my .user-info .user-name {
    font-size: var(--font-size-xs);
  }
  .lang-my .user-info .user-role {
    font-size: 0.6rem;
  }
}

/* Print support for Myanmar */
@media print {
  .lang-my body {
    font-family: var(--font-family-my);
  }
}

/* --------------------------------------------------------------------------
   2. App Layout
   -------------------------------------------------------------------------- */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* --------------------------------------------------------------------------
   3. Sidebar
   -------------------------------------------------------------------------- */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, width 0.25s ease;
  overflow: hidden;
}

/* Sidebar collapsed */
.app-sidebar.collapsed {
  transform: translateX(-100%);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Sidebar brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  height: var(--topbar-height);
  flex-shrink: 0;
  border-bottom: 1px solid var(--sidebar-divider);
}

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

.sidebar-brand-text {
  font-size: 16px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.sidebar-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.35);
  padding: 16px 12px 6px;
  white-space: nowrap;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 1px;
}

.sidebar-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.sidebar-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
}

.sidebar-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-item .badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
}

/* Sidebar menu section */
.sidebar-section {
  margin-bottom: 4px;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--sidebar-divider);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Main Content Area
   -------------------------------------------------------------------------- */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
}

.main-wrapper.sidebar-collapsed {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   5. Top Navigation Bar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1025;
  height: var(--topbar-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}

/* Sidebar toggle button */
.sidebar-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.sidebar-toggle:hover {
  background: var(--content-bg);
  color: var(--text-primary);
}

/* Topbar search */
.topbar-search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.topbar-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--content-bg);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
}

.topbar-search input:focus {
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

.topbar-search input::placeholder {
  color: var(--text-muted);
}

.topbar-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

/* Topbar right actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.topbar-action-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.15s ease;
  position: relative;
  padding: 0;
}

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

/* Language selector */
.language-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.15s ease;
}

.language-selector:hover {
  background: var(--content-bg);
}

/* User profile in topbar */
.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.user-profile:hover {
  background: var(--content-bg);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   6. Main Content
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  padding: 24px;
  max-width: 100%;
}

/* Page header */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}

.page-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Page header with actions row */
.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-header h5, .card-header .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Stats card */
.stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.stat-icon-wrap.blue { background: #E8F0FE; color: var(--primary); }
.stat-icon-wrap.green { background: #E6F7E6; color: var(--success); }
.stat-icon-wrap.orange { background: #FFF4E6; color: var(--warning); }
.stat-icon-wrap.purple { background: #F0E8FF; color: #7C3AED; }
.stat-icon-wrap.red { background: #FFE8E8; color: var(--danger); }
.stat-icon-wrap.teal { background: #E6F9F9; color: #0D9488; }

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

.stat-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat-change {
  font-size: 11px;
  margin-top: 2px;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* --------------------------------------------------------------------------
   8. Tables
   -------------------------------------------------------------------------- */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.table thead th {
  padding: 12px 16px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}

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

.table tbody tr:hover {
  background: #F8FAFC;
}

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

/* Table actions */
.table-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  height: 36px;
}

.btn i { font-size: 15px; }

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover { background: var(--content-bg); }

.btn-success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.btn-success:hover { background: #1A8A3A; color: white; }

.btn-warning {
  background: var(--warning);
  color: white;
  border-color: var(--warning);
}
.btn-warning:hover { background: #E08A0A; color: white; }

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover { background: #C93D42; color: white; }

.btn-info {
  background: var(--info);
  color: white;
  border-color: var(--info);
}
.btn-info:hover { background: #2563EB; color: white; }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary-light); }

.btn-outline-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}
.btn-outline-secondary:hover { background: var(--content-bg); color: var(--text-primary); }

.btn-outline-success {
  background: transparent;
  color: var(--success);
  border-color: var(--success);
}
.btn-outline-success:hover { background: #E6F7E6; }

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-outline-danger:hover { background: #FFE8E8; }

.btn-outline-warning {
  background: transparent;
  color: var(--warning);
  border-color: var(--warning);
}
.btn-outline-warning:hover { background: #FFF4E6; }

.btn-outline-info {
  background: transparent;
  color: var(--info);
  border-color: var(--info);
}
.btn-outline-info:hover { background: #E8F0FE; }

.btn-sm {
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  height: 28px;
}
.btn-sm i { font-size: 13px; }

.btn-lg {
  padding: 12px 24px;
  font-size: var(--font-size-base);
  height: 44px;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

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

.btn-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.form-control, .form-select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control.is-invalid, .form-select.is-invalid {
  border-color: var(--danger);
}

.invalid-feedback {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--danger);
  margin-top: 4px;
}

textarea.form-control {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

select.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236B7A99' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

.form-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* Form row */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

/* Input group */
.input-group {
  display: flex;
  align-items: center;
}

.input-group .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: var(--font-size-sm);
  background: var(--content-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Status Badges
   -------------------------------------------------------------------------- */
.badge, .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.4;
  text-transform: capitalize;
}

.badge.bg-primary, .status-badge-primary { background: #E8F0FE; color: var(--primary); }
.badge.bg-success, .status-badge-success { background: #E6F7E6; color: var(--success); }
.badge.bg-warning, .status-badge-warning { background: #FFF4E6; color: #B8860B; }
.badge.bg-danger, .status-badge-danger { background: #FFE8E8; color: var(--danger); }
.badge.bg-info, .status-badge-info { background: #E8F0FE; color: var(--info); }
.badge.bg-secondary, .status-badge-secondary { background: #F1F3F5; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   12. Flash Messages / Alerts
   -------------------------------------------------------------------------- */
.flash-messages {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.alert i { font-size: 16px; flex-shrink: 0; }

.alert-success { background: #E6F7E6; border-color: #C3E6C3; color: #1A6B2E; }
.alert-danger { background: #FFE8E8; border-color: #FFC8C8; color: #B91C1C; }
.alert-warning { background: #FFF4E6; border-color: #FFE0B2; color: #9A6B0A; }
.alert-info { background: #E8F0FE; border-color: #C8DAF8; color: #1A5BB9; }

.alert-dismissible {
  padding-right: 40px;
  position: relative;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  color: inherit;
  opacity: 0.6;
  line-height: 1;
}

.alert-dismissible .btn-close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   13. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
  justify-content: center;
}

.page-item { list-style: none; }

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: var(--font-size-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-link:hover { background: var(--content-bg); color: var(--text-primary); }

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   14. Modals
   -------------------------------------------------------------------------- */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

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

.modal-header .modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
  opacity: 0.6;
  line-height: 1;
}

.btn-close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   15. Dropdowns
   -------------------------------------------------------------------------- */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 6px;
  background: var(--card-bg);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all 0.1s ease;
}

.dropdown-item:hover { background: var(--content-bg); color: var(--text-primary); }

.dropdown-item i { font-size: 15px; color: var(--text-secondary); width: 18px; }

.dropdown-divider {
  border-top: 1px solid var(--border-color);
  margin: 4px 0;
}

/* --------------------------------------------------------------------------
   16. Nav Tabs
   -------------------------------------------------------------------------- */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.nav-tabs .nav-link {
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-tabs .nav-link:hover { color: var(--text-primary); }

.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --------------------------------------------------------------------------
   17. List Group
   -------------------------------------------------------------------------- */
.list-group {
  display: flex;
  flex-direction: column;
}

.list-group-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.1s ease;
}

.list-group-item:last-child { border-bottom: none; }

.list-group-item-action { cursor: pointer; }
.list-group-item-action:hover { background: var(--content-bg); }

.list-group-flush .list-group-item {
  padding-left: 0;
  padding-right: 0;
}

/* --------------------------------------------------------------------------
   18. Filters Bar
   -------------------------------------------------------------------------- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.filters-bar .form-control,
.filters-bar .form-select {
  width: auto;
  min-width: 160px;
}

/* --------------------------------------------------------------------------
   19. Empty State
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 320px;
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.bg-primary-light { background: #E8F0FE; }
.bg-success-light { background: #E6F7E6; }
.bg-warning-light { background: #FFF4E6; }
.bg-danger-light { background: #FFE8E8; }
.bg-info-light { background: #E8F0FE; }
.bg-white { background: var(--card-bg); }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.ms-auto { margin-left: auto; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 12px; }

.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 24px; }

.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.rounded-circle { border-radius: 50%; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-center { text-align: center; }
.text-end { text-align: right; }
.text-decoration-none { text-decoration: none; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }

.shadow-sm { box-shadow: var(--card-shadow); }
.shadow-none { box-shadow: none !important; }

/* Responsive grid gap */
.row { display: flex; flex-wrap: wrap; }
.row > * { box-sizing: border-box; }

.col { flex: 1 0 0; }
.col-auto { flex: 0 0 auto; }

.row-cols-1 > * { flex: 0 0 100%; }
.row-cols-2 > * { flex: 0 0 50%; }
.row-cols-3 > * { flex: 0 0 33.333%; }
.row-cols-4 > * { flex: 0 0 25%; }

.g-2 { margin: -4px; }
.g-2 > * { padding: 4px; }
.g-3 { margin: -6px; }
.g-3 > * { padding: 6px; }
.g-4 { margin: -8px; }
.g-4 > * { padding: 8px; }
.mb-4 > *, .mb-4 { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   21. Responsive - Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .app-sidebar:not(.collapsed) {
    transform: translateX(0);
  }
  
  .app-sidebar.collapsed {
    transform: translateX(-100%);
  }
  
  .main-wrapper {
    margin-left: 0;
  }
  
  .topbar {
    padding: 0 16px;
  }
  
  .main-content {
    padding: 16px;
  }
  
  .topbar-search {
    max-width: 280px;
  }
  
  .filters-bar .form-control,
  .filters-bar .form-select {
    min-width: 140px;
  }
  
  .form-row {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* --------------------------------------------------------------------------
   22. Responsive - Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-wrapper {
    margin-left: 0;
  }
  
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  
  .topbar-search {
    display: none;
  }
  
  .language-selector span {
    display: none;
  }
  
  .user-info {
    display: none;
  }
  
  .main-content {
    padding: 12px;
  }
  
  .page-header-row {
    flex-direction: column;
  }
  
  .page-title {
    font-size: 18px;
  }
  
  .page-actions {
    width: 100%;
  }
  
  .page-actions .btn {
    flex: 1;
    justify-content: center;
  }
  
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filters-bar .form-control,
  .filters-bar .form-select {
    width: 100%;
    min-width: unset;
  }
  
  .card-body {
    padding: 14px;
  }
  
  .stat-card {
    padding: 14px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .table thead { display: none; }
  
  .table tbody td {
    display: block;
    padding: 8px 12px;
    border-bottom: none;
    text-align: right;
  }
  
  .table tbody td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
  }
  
  .table tbody tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .table tbody tr:last-child { border-bottom: none; }
  
  .table-actions {
    justify-content: flex-end;
    margin-top: 4px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-dialog {
    margin: 8px;
  }
}

/* --------------------------------------------------------------------------
   23. Responsive - Small Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 430px) {
  .main-content {
    padding: 8px;
  }
  
  .page-actions .btn {
    font-size: var(--font-size-xs);
    padding: 6px 10px;
    height: 32px;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-content {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   24. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .app-sidebar,
  .topbar,
  .sidebar-overlay,
  .btn,
  .no-print {
    display: none !important;
  }
  
  .main-wrapper {
    margin-left: 0 !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ==========================================================================
   Landing Page Styles (.clinic-landing-page & .clinic-login-page)
   ========================================================================== */

/* --- Landing Page --- */
.clinic-landing-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A2540 0%, #1a3a5c 50%, #0D6EFD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.landing-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.deco-circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.deco-circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
}

.deco-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(13,110,253,0.08) 0%, transparent 70%);
}

.deco-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.landing-wrapper {
  width: 100%;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}

/* Hero Card */
.hero-card {
  display: flex;
  background: white;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  min-height: 580px;
}

.hero-left {
  flex: 1.1;
  background: linear-gradient(135deg, #0A2540 0%, #0D6EFD 100%);
  padding: 48px 40px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-left-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-title-sub {
  font-size: 32px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Feature Grid */
.hero-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-feature-card {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.2s ease;
}

.hero-feature-card:hover {
  background: rgba(255,255,255,0.1);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-text {
  flex: 1;
  min-width: 0;
}

.feature-card-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  margin-bottom: 2px;
}

.feature-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* Trust Line */
.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin-top: auto;
}

/* Hero Right */
.hero-right {
  flex: 0.9;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-right-inner {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.hero-right-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary, #1A2332);
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.hero-right-subtitle {
  font-size: 14px;
  color: var(--text-secondary, #6B7A99);
  margin: 0 0 28px;
}

.btn-login-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--primary, #0D6EFD);
  color: white;
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.btn-login-primary:hover {
  background: var(--primary-dark, #0B5ED7);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.btn-register-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: transparent;
  color: var(--primary, #0D6EFD);
  border: 2px solid var(--primary, #0D6EFD);
  border-radius: var(--radius-sm, 6px);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.btn-register-secondary:hover {
  background: var(--primary-light, #E8F0FE);
  color: var(--primary, #0D6EFD);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.or-line {
  flex: 1;
  height: 1px;
  background: var(--border-color, #E2E8F0);
}

.or-text {
  font-size: 12px;
  color: var(--text-muted, #94A3B8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-divider {
  height: 1px;
  background: var(--border-color, #E2E8F0);
  margin-bottom: 20px;
}

.why-choose-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1A2332);
  margin: 0 0 16px;
}

/* Benefit Columns */
.benefit-columns {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.benefit-col {
  flex: 1;
  text-align: center;
}

.benefit-col .benefit-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.benefit-icon-purple {
  background: #F0E8FF;
}

.benefit-icon-blue {
  background: #E8F0FE;
}

.benefit-icon-green {
  background: #E6F7E6;
}

.benefit-col .benefit-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #1A2332);
  margin-bottom: 2px;
}

.benefit-col .benefit-desc {
  font-size: 11px;
  color: var(--text-muted, #94A3B8);
  line-height: 1.4;
}

/* Support Bar */
.support-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary, #6B7A99);
}

.support-email {
  color: var(--primary, #0D6EFD);
  text-decoration: none;
  font-weight: 500;
}

.support-email:hover {
  text-decoration: underline;
}

/* Clinic Illustration */
.clinic-illustration {
  position: absolute;
  bottom: -10px;
  right: -10px;
  opacity: 0.5;
  pointer-events: none;
}

/* Bottom Feature Cards */
.bottom-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.bottom-feature-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.bottom-feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.bottom-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.bottom-card-icon-purple {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
}

.bottom-card-icon-blue {
  background: linear-gradient(135deg, #0D6EFD, #3B82F6);
}

.bottom-card-icon-green {
  background: linear-gradient(135deg, #059669, #10B981);
}

.bottom-card-icon-orange {
  background: linear-gradient(135deg, #EA580C, #F97316);
}

.bottom-card-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px;
}

.bottom-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Login Page (.clinic-login-page)
   ========================================================================== */
.clinic-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A2540 0%, #1a3a5c 50%, #0D6EFD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-bg-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.login-bg-circle-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
}

.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.login-bg-shape-2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
}

.login-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.login-wrapper {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: white;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
}

.login-header {
  background: linear-gradient(135deg, #0A2540 0%, #0D6EFD 100%);
  padding: 36px 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-deco-dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.header-deco-arc {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
}

.header-deco-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.08);
}

.login-header-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  backdrop-filter: blur(4px);
}

.login-header-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.login-header-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.login-form-section {
  padding: 28px 32px 32px;
}

/* Alerts */
.login-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  margin-bottom: 16px;
}

.login-alert-error {
  background: #FFE8E8;
  color: var(--danger, #E5484D);
  border: 1px solid #FFD0D0;
}

.login-alert-success {
  background: #E6F7E6;
  color: var(--success, #22A447);
  border: 1px solid #C8F0C8;
}

.alert-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  padding: 0 0 0 8px;
  line-height: 1;
}

.alert-close:hover {
  opacity: 1;
}

/* Form Labels */
.login-form-section .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1A2332);
  margin-bottom: 6px;
  display: block;
}

.login-form-section .form-label-second {
  margin-top: 16px;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.login-input {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 44px;
  border: 1.5px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-sm, 6px);
  font-size: 14px;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: var(--text-primary, #1A2332);
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.login-input:focus {
  border-color: var(--primary, #0D6EFD);
  background: white;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

.login-input::placeholder {
  color: var(--text-muted, #94A3B8);
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.toggle-password svg {
  width: 22px;
  height: 22px;
}

/* Remember & Forgot */
.remember-forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary, #6B7A99);
  user-select: none;
}

.checkbox-input {
  display: none;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color, #E2E8F0);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.checkbox-input:checked + .check-box {
  background: var(--primary, #0D6EFD);
  border-color: var(--primary, #0D6EFD);
}

.checkbox-input:checked + .check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.check-label-text {
  font-size: 13px;
  color: var(--text-secondary, #6B7A99);
}

.forgot-link {
  font-size: 13px;
  color: var(--primary, #0D6EFD);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Login Button */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--primary, #0D6EFD);
  color: white;
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family, 'Inter', sans-serif);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: var(--primary-dark, #0B5ED7);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

/* Register link */
.register-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary, #6B7A99);
  margin: 0 0 8px;
}

.register-link {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary, #0D6EFD);
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

/* Benefits Row */
.benefits-row {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-lg, 14px);
  padding: 16px 20px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.benefit-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-purple-bg {
  background: #F0E8FF;
}

.benefit-blue-bg {
  background: #E8F0FE;
}

.benefit-green-bg {
  background: #E6F7E6;
}

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

.benefit-content .benefit-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #1A2332);
  margin-bottom: 1px;
}

.benefit-content .benefit-desc {
  font-size: 11px;
  color: var(--text-muted, #94A3B8);
  line-height: 1.3;
}

.benefit-vr {
  width: 1px;
  height: 36px;
  background: var(--border-color, #E2E8F0);
  margin: 0 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive - Landing & Login
   ========================================================================== */
@media (max-width: 991px) {
  .hero-card {
    flex-direction: column;
    min-height: auto;
  }

  .hero-left {
    padding: 36px 28px;
  }

  .hero-right {
    padding: 36px 28px;
    justify-content: center;
  }

  .hero-right-inner {
    max-width: 100%;
  }

  .hero-title,
  .hero-title-sub {
    font-size: 26px;
  }

  .bottom-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-row {
    flex-direction: column;
    gap: 12px;
  }

  .benefit-vr {
    display: none;
  }
}

@media (max-width: 767px) {
  .clinic-landing-page,
  .clinic-login-page {
    padding: 16px;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-icon-wrap {
    width: 64px;
    height: 64px;
  }

  .hero-title,
  .hero-title-sub {
    font-size: 22px;
  }

  .login-header {
    padding: 28px 20px 24px;
  }

  .login-form-section {
    padding: 20px 20px 24px;
  }

  .login-header-title {
    font-size: 18px;
  }

  .benefit-columns {
    gap: 12px;
  }

  .bottom-cards-row {
    grid-template-columns: 1fr;
  }

  .clinic-illustration {
    display: none;
  }
}

@media (max-width: 430px) {
  .login-header-icon {
    width: 56px;
    height: 56px;
  }

  .login-btn {
    height: 44px;
    font-size: 14px;
  }

  .benefits-row {
    padding: 12px 14px;
  }

  .bottom-feature-card {
    padding: 20px 16px;
  }
}
