/**
 * EasyCare Mini Clinic - Mobile App Styling & Layout
 */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --secondary: #0284c7;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --surface: #ffffff;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius: 14px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  padding-bottom: 74px; /* Space for mobile bottom bar */
  min-height: 100vh;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Bottom Navigation Bar for Mobile */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-2px);
}

/* Touch Friendly Buttons */
.btn-touch {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

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

/* Status Badges */
.badge-waiting {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-calling {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  animation: pulse-ring 1.5s infinite;
}

.badge-consultation {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

@keyframes pulse-ring {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Printable Slip & Prescription */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .no-print, .mobile-bottom-nav, .app-header, .pwa-install-banner {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
}
