/* ============================================================
   LVB MEDSPA - SHARED DESIGN SYSTEM
   ============================================================ */

:root {
  /* LVB Brand Colors — matched to lvbbodysculpt.com */
  --primary: #3D2B1F;
  --primary-light: #5C4A3A;
  --primary-dark: #2A1F18;
  --accent: #C9A96E;
  --accent-dark: #B8985D;
  --accent-light: #E8D5B0;
  --bg: #FDFAF6;
  --card: #ffffff;
  --cream: #F9F4EE;
  --sand: #E8DDD0;
  --taupe: #C4B5A3;
  --warm-brown: #8B7355;
  --text: #2A1F18;
  --text-mid: #5C4A3A;
  --text-light: #8B7A6B;
  --border: #E8DDD0;
  --success: #9BAF9A;
  --success-dark: #7A9A79;
  --warning: #C9A96E;
  --danger: #C07A6D;
  --info: #8B7355;
  --blush: #E8C5BE;
  --sidebar-width: 240px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

/* Buttons */
.btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #4a8e5f; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #a0403d; }
.btn-small { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-large { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-icon { padding: 0.3rem 0.5rem; font-size: 1rem; background: none; border: none; cursor: pointer; opacity: 0.6; }
.btn-icon:hover { opacity: 1; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--text-light); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(107,91,123,0.15);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.15rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; justify-content: flex-end; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; opacity: 0.5; }
.close-btn:hover { opacity: 1; }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-ordered { background: #e8f4fd; color: #2a7ab5; }
.status-needs-prep { background: #fff3cd; color: #856404; }
.status-ready { background: #d4edda; color: #155724; }
.status-picked-up { background: #d1ecf1; color: #0c5460; }
.status-never-picked { background: #f8d7da; color: #721c24; }
.status-stopped { background: #e2e3e5; color: #383d41; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-completed { background: #d1ecf1; color: #0c5460; }
.status-no-show { background: #fff3cd; color: #856404; }

/* Weight change indicators */
.weight-change { font-weight: 600; }
.weight-loss { color: var(--success); }
.weight-gain { color: var(--danger); }

/* Toast notifications */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease-out;
  max-width: 400px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Auth screen */
.auth-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--warm-brown) 100%);
}
.auth-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  text-align: center;
}
.auth-card h1 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 0.25rem; }
.auth-card .subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }
.auth-card .logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-light); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-error { color: var(--danger); font-size: 0.85rem; margin-top: 1rem; display: none; }

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
  justify-content: center;
}
.google-btn:hover { background: #f5f5f5; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.google-btn svg { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .modal { max-width: 100%; margin: 0; border-radius: 0; max-height: 100vh; }
  .modal-overlay { padding: 0; }
}
