/* CleanMate Design System
 * Colors are HSL. Mirror these into your Tailwind config / index.css.
 */
:root {
  --background: 140 20% 99%;
  --foreground: 160 30% 15%;
  --card: 0 0% 100%;
  --card-foreground: 160 30% 15%;
  --primary: 152 76% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 145 60% 95%;
  --muted: 140 20% 96%;
  --muted-foreground: 160 15% 45%;
  --accent: 152 60% 90%;
  --accent-foreground: 152 76% 30%;
  --destructive: 0 84% 60%;
  --warning: 38 92% 50%;
  --success: 152 76% 42%;
  --border: 145 30% 90%;
  --radius: 1rem;

  --gradient-primary: linear-gradient(135deg, hsl(152 76% 42%) 0%, hsl(160 70% 35%) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(145 60% 95%) 0%, hsl(0 0% 100%) 100%);

  --shadow-sm: 0 2px 8px -2px hsl(152 30% 30% / 0.08);
  --shadow-md: 0 8px 24px -8px hsl(152 30% 30% / 0.12);
  --shadow-lg: 0 16px 48px -12px hsl(152 30% 30% / 0.18);
  --shadow-glow: 0 0 40px hsl(152 76% 42% / 0.25);
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Plus Jakarta Sans', sans-serif; color: hsl(var(--foreground)); background: hsl(var(--muted)); -webkit-font-smoothing: antialiased; }

/* Phone frame */
.phone {
  width: 390px;
  min-height: 844px;
  margin: 24px auto;
  background: hsl(var(--background));
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-content { flex: 1; overflow-y: auto; padding-bottom: 96px; }

/* Topbar / Header */
.header {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 10;
}
.header h1 { font-size: 20px; font-weight: 700; }
.header p { font-size: 13px; color: hsl(var(--muted-foreground)); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: hsl(var(--foreground));
}
.icon-btn:hover { background: hsl(var(--muted)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 14px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform 0.1s, box-shadow 0.2s;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-hero {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
  padding: 16px 24px; font-size: 16px;
}
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-outline { background: transparent; border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-destructive { background: hsl(var(--destructive)); color: white; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn-xl { padding: 18px 28px; font-size: 17px; }

/* Cards */
.card {
  background: hsl(var(--card));
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.card-pad { padding: 16px; }

/* Inputs */
.input, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-size: 16px; font-family: inherit; color: hsl(var(--foreground));
  outline: none;
}
.input:focus, .textarea:focus { border-color: hsl(var(--primary)); }
.textarea { min-height: 120px; resize: none; }
.label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.label-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: hsl(var(--accent)); color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
}

/* Time slot grid */
.time-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.time-slot {
  padding: 10px 0; border-radius: 10px; text-align: center;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.time-slot.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

/* Bottom nav */
.bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: hsl(var(--card)); border-top: 1px solid hsl(var(--border));
  display: flex; justify-content: space-around; padding: 8px 16px 20px;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 12px; cursor: pointer;
  color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 500;
  background: transparent; border: none; font-family: inherit;
}
.nav-item.active { background: hsl(var(--accent)); color: hsl(var(--primary)); }

/* Badge */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.badge-default { background: hsl(var(--primary)); color: white; }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(152 76% 30%); }
.badge-outline { border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.badge-warning { background: hsl(38 92% 95%); color: hsl(var(--warning)); }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.p-4 { padding: 16px; } .p-5 { padding: 20px; } .p-6 { padding: 24px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-white { color: white; }
.text-warning { color: hsl(var(--warning)); }
.text-success { color: hsl(var(--success)); }
.bg-primary { background: hsl(var(--primary)); }
.bg-accent { background: hsl(var(--accent)); }
.bg-muted { background: hsl(var(--muted)); }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 20px; }
.rounded-full { border-radius: 999px; }
.shadow-card { box-shadow: var(--shadow-md); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.divider { border-top: 1px solid hsl(var(--border)); }
.gradient-hero { background: var(--gradient-hero); }
.gradient-primary { background: var(--gradient-primary); }

.feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: hsl(var(--accent)); color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
}

/* Index page */
.index-wrap { max-width: 1280px; margin: 0 auto; padding: 32px 16px; }
.index-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.index-sub { color: hsl(var(--muted-foreground)); margin-bottom: 32px; }
.screen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.screen-card {
  background: white; border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.screen-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.screen-card iframe {
  width: 100%; height: 380px; border: 1px solid hsl(var(--border));
  border-radius: 12px; pointer-events: none; background: hsl(var(--background));
}
.screen-card h3 { margin-top: 12px; font-size: 16px; }
.screen-card p { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
