:root {
  /* Colors */
  --primary: #5E35B1;
  --primary-light: #7E57C2;
  --primary-dark: #4527A0;
  --secondary: #D4AF37; /* Soft Gold */
  --secondary-light: #FFDF00;
  --bg-app: #F8F9FA;
  --bg-card: #FFFFFF;
  --text-main: #212121;
  --text-muted: #757575;
  --border: #E0E0E0;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --info: #2196F3;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-gold { color: var(--secondary); }
.font-bold { font-weight: 700; }

/* Layout Containers */
.mobile-container {
  width: 100%;
  max-width: 480px; /* Standard mobile breakpoint */
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
}

.content-padding {
  padding: var(--space-md);
}

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

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

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border: none;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(0,0,0,0.02);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-booked { background: #E3F2FD; color: #1976D2; }
.badge-completed { background: #E8F5E9; color: #388E3C; }
.badge-cancelled { background: #FFEBEE; color: #D32F2F; }

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  gap: 4px;
}

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

/* Header */
.app-header {
  padding: var(--space-md);
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

/* Dashboard Specific */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-card {
  padding: var(--space-md);
  border-radius: var(--radius);
  color: white;
}

.stat-card.primary { background: var(--primary); }
.stat-card.gold { background: var(--secondary); }

.quick-actions {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}
.quick-actions::-webkit-scrollbar { display: none; }

.action-btn {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--primary);
}

/* List Items */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

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

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
  flex-shrink: 0;
}

/* Charts Placeholder */
.chart-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(0deg, #f0f0f0 2px, transparent 2px);
  background-size: 100% 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 var(--space-md);
}

.chart-bar {
  width: 20px;
  background: var(--primary-light);
  border-radius: 4px 4px 0 0;
}

/* Calendar Placeholder */
.calendar-mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-day {
  padding: 8px 0;
  border-radius: 8px;
  font-size: 0.8rem;
}

.cal-day.active {
  background: var(--primary);
  color: white;
}

/* Invoice Styles */
.invoice-container {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.invoice-header {
  text-align: center;
  border-bottom: 2px dashed var(--border);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
