@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300;400;500;600;700&display=swap');
/* ProductFlo UI Theme */
:root {
	/* Light theme (default) */
	--pf-bg: #f8fafc;
	--pf-surface: #ffffff;
	--pf-card: #ffffff;
	--pf-text: #0b0c0e;
	--pf-text-muted: #64748b;
	--pf-text-soft: #94a3b8;
	--pf-accent: #00d1b8;
	/* Darkened accent for accessible text on light backgrounds */
	--pf-accent-ink: #006f63;
	--pf-success: #22c55e;
	--pf-warning: #f59e0b;
	--pf-error: #ef4444;
	--pf-info: #38bdf8;
	--pf-border: #e5e7eb;
}

:root.theme-dark {
	/* Dark theme overrides */
	--pf-bg: #0b0c0e;
	--pf-surface: #121417;
	--pf-card: #161a1d;
	--pf-text: #e6e8ea;
	--pf-text-muted: #a2a8ad;
	--pf-text-soft: #7b8288;
	--pf-accent: #00d1b8;
	--pf-accent-ink: #006f63;
	--pf-success: #22c55e;
	--pf-warning: #f59e0b;
	--pf-error: #ef4444;
	--pf-info: #38bdf8;
	--pf-border: #1f2328;
}

html, body {
	color-scheme: dark light;
	font-family: "Jura", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Prefer our accent for focus outlines */
:focus-visible {
	outline: 2px solid var(--pf-accent);
	outline-offset: 2px;
}

/* Buttons */
.pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid var(--pf-border);
	background: var(--pf-surface);
	color: var(--pf-text);
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 80ms ease, color 150ms ease;
}
.pf-btn:hover { border-color: var(--pf-border); background: var(--pf-card); }
.pf-btn:active { transform: translateY(0.5px) scale(0.995); }
.pf-btn:disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.1); }
.pf-btn:focus-visible { box-shadow: 0 0 0 3px rgba(0,209,184,0.25); }

.pf-btn--primary {
	background: var(--pf-accent);
	color: #0b0c0e;
	border-color: transparent;
}
.pf-btn--primary:hover { background: #00b39f; }
.pf-btn--primary:active { background: #009d8d; }

/* Secondary / neutral */
.pf-btn--secondary { background: var(--pf-card); color: var(--pf-text); border-color: var(--pf-border); }
.pf-btn--secondary:hover { background: var(--pf-surface); border-color: var(--pf-border); color: var(--pf-text); }

/* Outline */
.pf-btn--outline { background: transparent; color: var(--pf-text); border-color: var(--pf-border); }
.pf-btn--outline:hover { background: rgba(0, 209, 184, 0.12); border-color: var(--pf-accent); color: var(--pf-text); }

/* Ghost */
.pf-btn--ghost { background: transparent; color: var(--pf-accent); border-color: transparent; }
.pf-btn--ghost:hover { background: rgba(0, 209, 184, 0.12); color: var(--pf-accent); }

/* Danger */
.pf-btn--danger { background: var(--pf-error); color: #fff; border-color: transparent; }
.pf-btn--danger:hover { background: #dc2626; }
.pf-btn--danger:active { background: #b91c1c; }

/* Sizes */
.pf-btn--sm { height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12px; }
.pf-btn--lg { height: 48px; padding: 0 16px; border-radius: 14px; font-size: 16px; }
.pf-btn--block { width: 100%; }

/* Icon buttons */
.pf-btn--icon { width: 40px; height: 40px; padding: 0; }
.pf-btn__icon { width: 18px; height: 18px; display: inline-block; }

/* Loading state */
.pf-btn.is-loading { position: relative; pointer-events: none; opacity: 0.85; }
.pf-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.6);
	border-top-color: rgba(255,255,255,1);
	border-radius: 999px;
	right: 10px; top: 50%; transform: translateY(-50%);
	animation: pf-spin 700ms linear infinite;
}

@keyframes pf-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Pills */
.pf-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	padding: 8px 8px;
	border-radius: 999px;
	border: 1px solid #1f2328;
	background: var(--pf-card);
	color: var(--pf-text-muted);
	overflow: hidden;
	max-width: 100px;
	text-overflow: ellipsis;
	white-space: normal;
	word-wrap: break-word;
	line-height: 1.2;
	min-height: 32px;
}

/* Status dot colors we may toggle via JS */
.pf-status { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.pf-status--ok { background: #22c55e; }
.pf-status--warn { background: #f59e0b; }
.pf-status--err { background: #ef4444; }
.pf-status--off { background: #9ca3af; }

/* Utilities we can apply progressively alongside Tailwind during migration */
.pf-card { background: var(--pf-card); border: 1px solid var(--pf-border); border-radius: 12px; color: var(--pf-text); }
.pf-card--dark { background: var(--pf-card); border-color: var(--pf-border); color: var(--pf-text); }

/* Tabs */
.pf-tabs { display: flex; gap: 8px; border-bottom: 1px solid #e5e7eb; }
.pf-tab { padding: 8px 12px; font-size: 14px; border-bottom: 2px solid transparent; cursor: pointer; color: #6b7280; }
.pf-tab--active { color: #111827; border-color: var(--pf-accent); }

/* Toasts */
.pf-toast-root { position: fixed; bottom: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.pf-toast { background: var(--pf-surface); color: var(--pf-text); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--pf-border); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }



/* Modal */
.pf-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 60; }
.pf-modal { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 12px; width: 100%; max-width: 420px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.pf-modal__actions { display: flex; justify-content: flex-end; gap: 8px; }
/* Links */
.pf-link { color: var(--pf-accent); text-decoration: none; }
.pf-link:hover { text-decoration: underline; }

/* Buttons hover/focus refinements */
.pf-btn:hover { background: var(--pf-card); }
.pf-btn--primary { background: var(--pf-accent); color: #0b0c0e; border-color: transparent; }
.pf-btn--primary:hover { background: #00bda6; filter: none; }

/* Inputs and selects */
.pf-input,
.pf-select {
	height: 40px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #111827;
	transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.pf-input:hover,
.pf-select:hover { border-color: #cbd5e1; }

.pf-input:focus,
.pf-select:focus {
	border-color: var(--pf-accent);
	box-shadow: 0 0 0 3px rgba(0, 209, 184, 0.25);
	outline: none;
}

.pf-input::placeholder { color: #9ca3af; }

/* Documentation helpers */
.doc-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.doc-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.doc-h2 { font-size: 20px; font-weight: 600; margin: 16px 0 12px; }
.doc-h3 { font-size: 16px; font-weight: 600; margin: 14px 0 10px; }
.doc-p { font-size: 14px; line-height: 1.6; color: #374151; }
.doc-li { font-size: 14px; line-height: 1.6; color: #374151; }
.doc-k { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 2px 6px; }
.doc-table { width: 100%; border-collapse: collapse; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.doc-table th, .doc-table td { text-align: left; font-size: 13px; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.doc-table thead th { background: #f8fafc; color: #111827; font-weight: 600; }
.doc-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.doc-badge--get { background: rgba(56,189,248,0.15); color: #0284c7; }
.doc-badge--post { background: rgba(34,197,94,0.15); color: #166534; }
.doc-badge--delete { background: rgba(239,68,68,0.15); color: #991b1b; }
.doc-muted { color: #6b7280; }
.doc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.doc-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.doc-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.doc-logo__img { height: 32px; width: auto; }
.doc-logo__text { font-size: 20px; font-weight: 700; color: #0b0c0e; }
.doc-stack { display: flex; flex-direction: column; gap: 24px; }

/* Auth pages */
.pf-auth { min-height: 100vh; background: var(--pf-bg); color: var(--pf-text); }
.pf-app { min-height: 100vh; background: var(--pf-bg); color: var(--pf-text); }
.pf-auth__container { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.pf-auth__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.pf-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--pf-text); }
.pf-brand__logo { height: 24px; width: 24px; }
.pf-brand__text { font-size: 20px; font-weight: 700; }
.pf-accent { color: var(--pf-accent); }
.pf-auth__card { 
	background: var(--pf-card); 
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 16px; 
	padding: 24px;
	/* border: 1px solid var(--pf-border); 
	box-shadow: 0 12px 40px rgba(0,0,0,0.12);  */
	min-height: 400px;
	min-width: 420px;
}
.pf-auth__card--center { max-width: 420px; margin: 0 auto; }
.pf-auth__muted { color: var(--pf-text-muted); font-size: 14px; }
.pf-auth__link { color: var(--pf-accent); text-decoration: none; }
.pf-auth__link:hover { text-decoration: underline; }
.pf-auth__clerk { display: flex; justify-content: center; align-items: center; width: 100%; }