/* ============================================================
   Latoza website theme — landing palette
   Keep: watermark background + existing navbar
   Variants: classic / soft_mist / wave_frame / clinic_calm / reception_glow
   ============================================================ */

html.latoza-theme {
  --primary: #5e9b9e;
  --accent: #47888c;
  --gold: #c4a574;
  --primary-dark: #2d5f63;
  --primary-light: #cfe8ea;
  --primary-mid: #7fb8bc;
  --mint: #d7eeef;
  --nav-bg: linear-gradient(135deg, #2d5f63, #5e9b9e);
  --shadow: 0 10px 28px rgba(45, 95, 99, .12);
  --shadow-md: 0 16px 40px rgba(45, 95, 99, .16);
  --brand-rgb: 94, 155, 158;
  --radius: 22px;
  --radius-sm: 14px;
  --wave-opacity: .9;
  --card-alpha: .92;
  --glow: 0 0 0 transparent;
}

html.latoza-theme[data-theme="dark"] {
  --primary: #7fb8bc;
  --accent: #a2d2d6;
  --primary-dark: #cfe8ea;
  --nav-bg: linear-gradient(135deg, #152e32, #2d5f63);
  --shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

/* Variant tweaks (same palette / bg / navbar) */
html.latoza-theme[data-latoza-style="soft_mist"] {
  --wave-opacity: .55;
  --card-alpha: .88;
  --radius: 26px;
}
html.latoza-theme[data-latoza-style="wave_frame"] {
  --wave-opacity: 1;
}
html.latoza-theme[data-latoza-style="clinic_calm"] {
  --wave-opacity: .42;
  --card-alpha: .96;
  --radius: 18px;
}
html.latoza-theme[data-latoza-style="reception_glow"] {
  --glow: 0 0 48px rgba(94, 155, 158, .28);
  --wave-opacity: .78;
}

html.latoza-theme .navbar { background: #1d3d44; }
html.latoza-theme .navbar-logo,
html.latoza-theme .welcome-logo {
  height: auto;
  width: auto;
  max-height: 42px;
  max-width: min(46vw, 300px);
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  transform: translateY(-5px);
}
html.latoza-theme .welcome-logo {
  max-height: 46px;
  transform: translateY(-3px);
}
html.latoza-theme .nav-link {
  font-family: 'Montserrat', Inter, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  border-radius: 999px;
  padding: 7px 14px;
}
html.latoza-theme .nav-link.active,
html.latoza-theme .nav-link:hover {
  background: #5e9b9e;
  color: #fff;
}
html.latoza-theme .logout-btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
html.latoza-theme .user-badge,
html.latoza-theme .branch-badge { border-radius: 999px; }

html.latoza-theme .page-title,
html.latoza-theme .card-title,
html.latoza-theme h1,
html.latoza-theme h2 {
  font-family: 'Playfair Display', Agelia, Georgia, serif;
  font-weight: 600;
  color: #2d5f63;
  letter-spacing: .01em;
}
html.latoza-theme[data-theme="dark"] .page-title,
html.latoza-theme[data-theme="dark"] .card-title,
html.latoza-theme[data-theme="dark"] h1,
html.latoza-theme[data-theme="dark"] h2 { color: #d7ecee; }

html.latoza-theme body,
html.latoza-theme .btn,
html.latoza-theme label,
html.latoza-theme input,
html.latoza-theme select,
html.latoza-theme textarea {
  font-family: 'Montserrat', Inter, -apple-system, sans-serif;
}

html.latoza-theme .btn {
  border-radius: 999px;
  letter-spacing: .04em;
  font-weight: 600;
  padding: 9px 18px;
  box-shadow: 0 6px 16px rgba(94, 155, 158, .18);
}
html.latoza-theme .btn-primary { background: #5e9b9e; color: #fff; border: none; }
html.latoza-theme .btn-primary:hover { background: #47888c; }
html.latoza-theme .btn-secondary {
  background: rgba(207, 232, 234, .55);
  color: #2d5f63;
  border: 1px solid rgba(94, 155, 158, .35);
  box-shadow: none;
}
html.latoza-theme .btn-sm { padding: 6px 12px; font-size: 12px; }

html.latoza-theme .stat-card,
html.latoza-theme .nav-card,
html.latoza-theme .card,
html.latoza-theme .alert {
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(94, 155, 158, .16);
  box-shadow: var(--shadow), var(--glow);
}
html.latoza-theme .card { background: rgba(255, 255, 255, var(--card-alpha)); }
html.latoza-theme[data-theme="dark"] .card { background: rgba(22, 27, 34, .92); }

html.latoza-theme .kiosk-wrap { position: relative; z-index: 1; }
html.latoza-theme .stat-card::before {
  height: 4px;
  background: linear-gradient(90deg, #2d5f63, #5e9b9e, #cfe8ea);
}
html.latoza-theme .stat-card .icon,
html.latoza-theme .nav-card .nav-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #5e9b9e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(94, 155, 158, .3);
}
html.latoza-theme .nav-card .nav-icon { width: 64px; height: 64px; font-size: 28px; }
html.latoza-theme .nav-card:hover { border-color: rgba(94, 155, 158, .45); }
html.latoza-theme .stat-card .value { color: #5e9b9e; }
html.latoza-theme th { background: #2d5f63 !important; }

html.latoza-theme,
html.latoza-theme body { overflow-x: hidden; }
html.latoza-theme body { position: relative; }
html.latoza-theme .container { position: relative; z-index: 1; }

.latoza-wave-decor {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  opacity: var(--wave-opacity);
}
.latoza-wave-left {
  position: absolute; left: -8%; top: 40px;
  width: min(46vw, 520px); height: min(96vh, 980px);
  filter: drop-shadow(0 12px 28px rgba(45, 95, 99, .12));
}
.latoza-wave-right {
  position: absolute; right: -10%; bottom: -40px;
  width: min(44vw, 500px); height: min(78vh, 760px);
  filter: drop-shadow(0 10px 24px rgba(94, 155, 158, .12));
}
.latoza-leaf-accent {
  position: absolute; left: 0; top: 18%;
  width: min(14vw, 140px); height: auto;
}

html.latoza-theme[data-latoza-style="wave_frame"] .latoza-wave-left {
  left: -2%; width: min(52vw, 580px);
}
html.latoza-theme[data-latoza-style="wave_frame"] .latoza-wave-right {
  right: -2%; width: min(50vw, 560px);
}
html.latoza-theme[data-latoza-style="soft_mist"] .latoza-leaf-accent { opacity: .45; }
html.latoza-theme[data-latoza-style="clinic_calm"] .latoza-leaf-accent { display: none; }
html.latoza-theme[data-latoza-style="reception_glow"] .latoza-wave-left,
html.latoza-theme[data-latoza-style="reception_glow"] .latoza-wave-right {
  filter: drop-shadow(0 0 36px rgba(94, 155, 158, .35));
}

html.latoza-theme[data-theme="dark"] .latoza-wave-decor { opacity: .32; }

html.latoza-theme .theme-sample-wave-footer {
  width: 100vw; margin-left: calc(50% - 50vw);
  margin-top: 36px; margin-bottom: -40px;
  position: relative; z-index: 1;
}
html.latoza-theme .theme-sample-waves { display: block; width: 100%; height: 150px; }
html.latoza-theme .theme-sample-features {
  margin-top: -1px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 10px 24px 28px; background: #2d5f63; color: #fff;
}
html.latoza-theme .theme-sample-features .feat { text-align: center; padding: 8px 6px; }
html.latoza-theme .theme-sample-features .feat-icon {
  width: 44px; height: 44px; margin: 0 auto 8px;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
html.latoza-theme .theme-sample-features .feat-label {
  font-family: 'Montserrat', Inter, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* Theme Settings preview styles are inlined in latoza_theme_settings_preview()
   so they cannot be overridden by older cached CSS. */
