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

:root {
  --background: 60 5% 96%;
  --foreground: 0 0% 4%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 4%;
  --primary: 145 80% 25%;
  --primary-foreground: 0 0% 98%;
  --secondary: 45 93% 47%;
  --secondary-foreground: 0 0% 9%;
  --muted: 60 5% 92%;
  --muted-foreground: 30 6% 35%;
  --accent: 45 93% 47%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 30 6% 85%;
  --input: 30 6% 85%;
  --ring: 145 80% 25%;
  --radius: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ps-text-primary, #fff);
  background: var(--ps-bg-base, #0a0a0a);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  margin: 0;
  font: inherit;
}

button,
[role="button"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
}

par-seeker-app,
[data-page="auth"],
[data-page="google-callback"],
[data-page="stats"] {
  min-height: 100vh;
  display: block;
}

.native-auth-callback {
  width: min(30rem, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  color: var(--ps-text-primary);
  text-align: center;
}

.native-auth-callback h1 {
  margin: 1.25rem 0 0.375rem;
  font-size: 1.25rem;
}

.native-auth-callback p {
  margin-bottom: 1.25rem;
  color: var(--ps-text-secondary);
}

.native-auth-callback__spinner,
.native-auth-callback__mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.native-auth-callback__spinner {
  border: 4px solid color-mix(in srgb, var(--ps-primary) 25%, transparent);
  border-top-color: var(--ps-primary);
  animation: native-auth-callback-spin 700ms linear infinite;
}

.native-auth-callback__mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ps-error);
  font-size: 1.5rem;
  font-weight: 800;
}

@keyframes native-auth-callback-spin {
  to { transform: rotate(360deg); }
}

.ps-toast-region {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  right: 1rem;
  width: min(22rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.ps-toast {
  padding: 0.875rem 1rem;
  border: 1px solid var(--ps-border-light, #333);
  border-radius: 0.75rem;
  color: var(--ps-text-primary, #fff);
  background: var(--ps-bg-elevated, #1f1f1f);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ps-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ps-toast--success { border-color: var(--ps-success, #22c55e); }
.ps-toast--error { border-color: var(--ps-error, #ef4444); }
.ps-toast--info { border-color: var(--ps-info, #3b82f6); }

.native-not-found {
  width: min(36rem, calc(100% - 2rem));
  margin: 10vh auto;
  padding: 2rem;
  border: 1px solid var(--ps-border, #262626);
  border-radius: 1rem;
  background: var(--ps-bg-surface, #171717);
  text-align: center;
}
