/**
 * Soft Daydream + Anak Skena LIGHT Hybrid
 * Cream scrapbook base + street sticker attitude
 * 
 * Key principles:
 * - Coral primary #E8897A (warm, not hot pink)
 * - Cream canvas #FBF7F0 with paper depth
 * - Butter/blush soft surfaces
 * - Skena accents: oxblood/mustard/denim (scene punches only)
 * - Material Icons ONLY, PNG stickers for dekor
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /* Soft Daydream + Anak Skena LIGHT Hybrid */
  --primary: #E8897A;        /* coral (warm chat me-bubble, not hot pink) */
  --primary-light: #F3C4BC;  /* blush (soft borders) */
  --primary-soft: #F5E6B8;   /* butter (chips, QI fills) */
  --purple: #3D5A80;         /* denim (cool skena accent) */
  --yellow: #D4A017;         /* mustard (skena highlight) */
  
  /* Ngonten Box (--nb-*) tokens - Soft Daydream + Skena LIGHT */
  --nb-cream:       #FBF7F0;   /* app canvas */
  --nb-paper:       #F6F0E6;   /* gradient depth */
  --nb-surface:     #FFFFFF;   /* cards */
  --nb-butter:      #F5E6B8;   /* soft chips / QI fill */
  --nb-blush:       #F3C4BC;   /* soft borders (chat mate) */
  --nb-coral:       #E8897A;   /* Me-bubble / warm chat (CRITICAL FIX) */
  --nb-coral-deep:  #D96B5C;   /* chat emphasis */
  --nb-ink:         #3D342C;   /* body text (warm brown-ink) */
  --nb-muted:       #8A7E72;   /* meta text */
  --nb-oxblood:     #6B1E1E;   /* scene accent headline */
  --nb-mustard:     #D4A017;   /* scene highlight / secondary CTA */
  --nb-denim:       #3D5A80;   /* cool graffiti / secondary accent */
  
  /* Neutrals - Soft Daydream palette */
  --white: #FFFFFF;          /* surface (cards) */
  --cream: #FBF7F0;          /* app canvas */
  --gray-50: #F6F0E6;        /* paper (gradient depth) */
  --gray-100: #F5E6B8;       /* butter */
  --gray-200: #F3C4BC;       /* blush */
  --gray-300: #8A7E72;       /* muted */
  --gray-400: #8A7E72;       /* muted */
  --gray-500: #8A7E72;       /* muted */
  --gray-600: #3D342C;       /* ink (body text) */
  --gray-700: #3D342C;       /* ink */
  --gray-800: #3D342C;       /* ink */
  --gray-900: #3D342C;       /* ink */
  
  /* Semantic */
  --success: #10B981;
  --warning: #D4A017;        /* mustard (skena) */
  --error: #6B1E1E;          /* oxblood (skena) */
  --info: #3D5A80;           /* denim (skena) */
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius - Soft Daydream scrapbook */
  --radius-sm: 0.25rem;
  --radius-md: 1.125rem;     /* 18px */
  --radius-lg: 1.375rem;     /* 22px */
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-pill: 9999px;
  
  /* Shadows - Soft diffuse */
  --shadow-sm: 0 4px 12px rgba(61, 52, 44, 0.06);
  --shadow-base: 0 6px 20px rgba(61, 52, 44, 0.08);
  --shadow-md: 0 6px 20px rgba(61, 52, 44, 0.08);
  --shadow-lg: 0 10px 28px rgba(61, 52, 44, 0.08);
  --shadow-soft: 0 4px 20px rgba(232, 137, 122, 0.12);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Typography */
/* Typography - MOODBOARD G (condensed bold headlines + warm ink body) */
h1, h2, h3, h4, h5, h6 {
  /* Bold condensed Soft Daydream headlines (NOT legacy LuvMode) */
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--space-md);
  color: #300E5E;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--nb-ink); /* Warm ink body text */
  line-height: 1.6;
}

a {
  color: var(--nb-coral); /* Coral links (Soft Daydream accent) */
  text-decoration: none;
  transition: opacity 0.2s;
  font-weight: 600;
}

a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Layout Containers (Eci desktop spec ACC Bos) */
.lv-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.lv-container-lg {
  max-width: 1120px;
}

.lv-container-booking {
  max-width: 960px;
  padding: 0 var(--space-md);
}

/* Buttons - SCRAPBOOK STYLE (Soft Daydream + Skena) */
/* Buttons - SCRAPBOOK PAPER STYLE (moodboard G) */
.lv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600; /* Bolder for scrapbook feel */
  line-height: 1.5;
  text-align: center;
  border: none;
  /* Irregular radius for paper-button feel (NOT legacy pill) */
  border-radius: 22px 18px 20px 19px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  /* Paper button shadow (soft, layered) */
  box-shadow: 
    0 2px 4px rgba(61, 52, 44, 0.08),
    0 4px 12px rgba(61, 52, 44, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  /* Subtle paper texture */
  position: relative;
}

.lv-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.lv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* PRIMARY = MUSTARD (skena accent CTA, paper button) */
.lv-btn-primary {
  background: var(--nb-mustard, #D4A017);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 3px 8px rgba(212, 160, 23, 0.2),
    0 6px 16px rgba(212, 160, 23, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lv-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 10px rgba(212, 160, 23, 0.25),
    0 8px 20px rgba(212, 160, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: #C08F14;
}

/* SECONDARY = CORAL (warm Soft Daydream, paper button) */
.lv-btn-secondary {
  background: var(--nb-coral, #E8897A);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 2px 6px rgba(232, 137, 122, 0.15),
    0 4px 12px rgba(232, 137, 122, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lv-btn-secondary:hover:not(:disabled) {
  background: var(--nb-coral-deep, #D96B5C);
  transform: translateY(-1px);
  box-shadow: 
    0 3px 8px rgba(232, 137, 122, 0.2),
    0 6px 16px rgba(232, 137, 122, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* OUTLINE = BUTTER/CORAL border (paper scrap edge) */
.lv-btn-outline {
  background: var(--nb-cream);
  color: var(--nb-ink, #3D342C);
  border: 2px solid var(--nb-butter, #F5E6B8);
  box-shadow: 
    0 2px 6px rgba(61, 52, 44, 0.04),
    0 4px 10px rgba(61, 52, 44, 0.03),
    inset 0 1px 0 rgba(251, 247, 240, 0.8);
}

.lv-btn-outline:hover:not(:disabled) {
  background: var(--nb-butter, #F5E6B8);
  border-color: var(--nb-mustard, #D4A017);
  transform: translateY(-1px);
}

.lv-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 20px 16px 18px 17px;
}

.lv-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 24px 20px 22px 21px;
}

/* Cards - SCRAPBOOK PAPER STYLE */
.lv-card {
  /* MOODBOARD G: paper scrap surface with subtle texture */
  background: 
    /* subtle paper grain */
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E"),
    var(--white);
  /* Irregular radius for torn paper feel */
  border-radius: 24px 18px 20px 22px;
  padding: var(--space-lg);
  /* Soft diffuse paper shadow (not heavy elevation) */
  box-shadow: 
    0 2px 8px rgba(61, 52, 44, 0.04),
    0 10px 28px rgba(61, 52, 44, 0.08),
    inset 0 1px 0 rgba(251, 247, 240, 0.5);
  transition: all 0.2s;
}

.lv-card-soft {
  background: 
    /* subtle paper grain */
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--nb-surface, #FFFCFA) 0%, var(--nb-cream, #FBF7F0) 100%);
  box-shadow: 
    0 2px 6px rgba(61, 52, 44, 0.04),
    0 8px 20px rgba(61, 52, 44, 0.06),
    inset 0 1px 0 rgba(251, 247, 240, 0.6);
}

.lv-card:hover {
  box-shadow: 0 12px 32px rgba(61, 52, 44, 0.1);
}

/* Inputs - SCRAPBOOK STYLE (warm paper feel) */
.lv-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 2px solid var(--nb-butter, #F5E6B8);
  border-radius: 18px; /* scrapbook, not pill */
  transition: all 0.2s;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(61, 52, 44, 0.04);
}

.lv-input:focus {
  outline: none;
  border-color: var(--nb-mustard, #D4A017);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.12);
}

.lv-input::placeholder {
  color: var(--nb-muted, #8A7E72);
}

.lv-input-error {
  border-color: var(--error);
}

/* Form Groups */
.lv-form-group {
  margin-bottom: var(--space-lg);
}

.lv-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.lv-error-text {
  display: block;
  font-size: 0.875rem;
  color: var(--error);
  margin-top: var(--space-xs);
}

/* Status Pills */
.lv-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: none;
  letter-spacing: 0;
}

.lv-pill-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.lv-pill-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.lv-pill-error {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.lv-pill-info {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.lv-pill-primary {
  background: var(--primary-light);
  color: var(--primary);
}

/* Bottom Nav (Mobile) - Eci desktop + anti-clip */
.lv-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  overflow: hidden;
}

.lv-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.lv-nav-item:hover {
  color: var(--primary);
  opacity: 1;
}

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

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

.lv-nav-icon {
  font-size: 1.5rem;
  color: inherit;
}

/* Top Bar (Eci anti-clip) */
.lv-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-md);
  padding-top: max(var(--space-md), env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
  overflow: hidden;
  width: 100%;
}

.lv-topbar-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.lv-topbar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Spacing (with bottom nav) - Eci anti-clip */
.lv-content {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  min-height: calc(100vh - 80px);
  overflow-x: hidden;
  width: 100%;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
/* Utility Classes - MOODBOARD G */
.text-primary { color: var(--nb-coral); } /* Coral (NOT legacy pink primary) */
.text-oxblood { color: var(--nb-oxblood); }
.text-denim { color: var(--nb-denim); }
.text-mustard { color: var(--nb-mustard); }
.text-ink { color: var(--nb-ink); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 600; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Loading State */
.lv-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: lv-spin 0.8s linear infinite;
}

@keyframes lv-spin {
  to { transform: rotate(360deg); }
}

/* Responsive (Eci desktop spec ACC Bos) */
@media (min-width: 768px) {
  .lv-container {
    max-width: 1120px;
    padding: 0 24px;
  }
  
  .lv-container-booking {
    padding: 0 24px;
  }
  
  .lv-bottom-nav {
    /* Keep bottom nav on tablet - full bleed per Eci */
  }
  
  .lv-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    min-height: 100vh;
  }
}

@media (min-width: 1024px) {
  .lv-container {
    padding: 0 32px;
  }
  
  .lv-container-booking {
    padding: 0 32px;
  }
  
  .lv-bottom-nav {
    /* Keep bottom nav on desktop per Eci - full bleed */
  }
}

@media (min-width: 1280px) {
  .lv-container {
    padding: 0 40px;
  }
  
  .lv-container-booking {
    padding: 0 40px;
  }
}

/* Dashboard Grid Responsive (Eci desktop spec) */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Booking List Responsive (Eci desktop spec) */
.booking-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .booking-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
