/* Saviors of the Strays – Vaccination Tracker App UI */

:root {
	--sots-primary: #FF7A3D;
	--sots-maroon: #3D2020;
	--sots-terracotta: #A54B3C;
	--sots-cream: #FFF8F0;
	--sots-text: #2B2320;
	--sots-muted: #8A7A72;
	--sots-ok: #6B8F71;
	--sots-due: #E0A339;
	--sots-sidebar-w: 260px;
}

/* Fullscreen app page — hide site chrome */
body.sots-vax-fullscreen .site-header,
body.sots-vax-fullscreen header.sots-header,
body.sots-vax-fullscreen .elementor-location-header,
body.sots-vax-fullscreen .elementor-location-footer,
body.sots-vax-fullscreen footer,
body.sots-vax-fullscreen .site-footer,
body.sots-vax-fullscreen .ast-footer-overlay,
body.sots-vax-fullscreen #ast-scroll-top {
	display: none !important;
}

body.sots-vax-fullscreen .site-content,
body.sots-vax-fullscreen #content,
body.sots-vax-fullscreen .ast-container,
body.sots-vax-fullscreen .entry-content {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

body.sots-vax-fullscreen .entry-content > .elementor {
	padding: 0 !important;
	margin: 0 !important;
}

body.sots-vax-app-mode .site-content,
body.sots-vax-auth-mode .site-content {
	padding-top: 0 !important;
}

.sots-vax-app {
	font-family: 'Nunito', sans-serif;
	color: var(--sots-text);
	box-sizing: border-box;
}

.sots-vax-app *,
.sots-vax-app *::before,
.sots-vax-app *::after {
	box-sizing: inherit;
}

/* Full app shell (logged in) */
.sots-vax-app--logged-in {
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: 100vh;
	background: #f4f0eb;
}

.sots-vax-shell {
	display: grid;
	grid-template-columns: var(--sots-sidebar-w) 1fr;
	min-height: 100vh;
	position: relative;
}

/* Sidebar */
.sots-vax-sidebar {
	background: var(--sots-maroon);
	color: #fff;
	display: flex;
	flex-direction: column;
	padding: 24px 16px;
	position: sticky;
	top: 0;
	height: 100vh;
	z-index: 30;
}

.sots-vax-sidebar,
.sots-vax-sidebar h1,
.sots-vax-sidebar h2,
.sots-vax-sidebar strong,
.sots-vax-sidebar span,
.sots-vax-sidebar a {
	color: #fff;
}

.sots-vax-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px 24px;
	border-bottom: 1px solid rgba(255,255,255,.12);
	margin-bottom: 16px;
}

.sots-vax-sidebar__logo {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255,255,255,.12);
	display: grid;
	place-items: center;
	font-size: 22px;
}

.sots-vax-sidebar__brand strong {
	display: block;
	font-family: 'Baloo 2', sans-serif;
	font-size: 18px;
	line-height: 1.1;
}

.sots-vax-sidebar__brand span {
	font-size: 12px;
	opacity: .75;
}

.sots-vax-sidebar__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.sots-vax-sidebar__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	color: rgba(255,255,255,.85);
	text-decoration: none;
	font-weight: 600;
	transition: background .2s, color .2s;
}

.sots-vax-sidebar__link:hover {
	background: rgba(255,255,255,.1);
	color: #fff;
}

.sots-vax-sidebar__link.is-active {
	background: var(--sots-primary);
	color: #fff;
}

.sots-vax-sidebar__icon {
	width: 28px;
	text-align: center;
	font-size: 18px;
}

.sots-vax-sidebar__user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,.12);
	margin-top: auto;
}

.sots-vax-sidebar__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sots-primary);
	display: grid;
	place-items: center;
	font-weight: 700;
	flex-shrink: 0;
}

.sots-vax-sidebar__user-meta {
	flex: 1;
	min-width: 0;
}

.sots-vax-sidebar__user-meta strong,
.sots-vax-sidebar__user-meta span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
}

.sots-vax-sidebar__user-meta span {
	opacity: .7;
	font-size: 12px;
}

.sots-vax-sidebar__logout button {
	background: rgba(255,255,255,.12);
	border: none;
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 16px;
}

.sots-vax-sidebar-toggle {
	display: none;
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 40;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: var(--sots-primary);
	box-shadow: 0 8px 24px rgba(255,122,61,.4);
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.sots-vax-sidebar-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

/* Main content */
.sots-vax-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.sots-vax-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 28px 16px;
	background: #fff;
	border-bottom: 1px solid rgba(61,32,32,.08);
	position: sticky;
	top: 0;
	z-index: 20;
}

.sots-vax-topbar__eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--sots-muted);
	font-weight: 700;
}

.sots-vax-topbar__title {
	margin: 0;
	font-family: 'Baloo 2', sans-serif;
	color: var(--sots-maroon);
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.15;
}

.sots-vax-main__content {
	padding: 24px 28px 40px;
	flex: 1;
}

/* Auth layout (guest) */
.sots-vax-app--guest {
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: 100vh;
}

.sots-vax-auth-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
}

.sots-vax-auth-layout__brand {
	background: linear-gradient(145deg, var(--sots-maroon) 0%, #5a3030 100%);
	color: #fff;
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sots-vax-auth-layout__logo {
	font-size: 56px;
	margin-bottom: 16px;
}

.sots-vax-auth-layout__brand h1,
.sots-vax-auth-layout__brand h2,
.sots-vax-auth-layout__brand h3,
.sots-vax-auth-layout__brand p,
.sots-vax-auth-layout__brand span {
	color: #fff !important;
}

.sots-vax-auth-layout__brand h2 {
	font-family: 'Baloo 2', sans-serif;
	font-size: 36px;
	margin: 0 0 12px;
	text-transform: none;
}

.sots-vax-auth-layout__brand p {
	opacity: .85;
	font-size: 18px;
	max-width: 360px;
	line-height: 1.5;
}

.sots-vax-auth-layout__panel {
	background: #fff;
	padding: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sots-vax-auth-layout__panel .sots-vax-auth,
.sots-vax-auth-layout__panel .sots-vax-guest {
	width: 100%;
	max-width: 400px;
}

/* Typography & buttons */
.sots-vax-title {
	font-family: 'Baloo 2', sans-serif;
	color: var(--sots-maroon);
	margin: 0 0 8px;
	font-size: 28px;
}

.sots-vax-lead { color: var(--sots-muted); margin: 0 0 24px; line-height: 1.5; }
.sots-vax-muted { color: var(--sots-muted); font-size: 14px; }

.sots-vax-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all .2s ease;
	font-size: 15px;
}
.sots-vax-btn--block { width: 100%; }
.sots-vax-btn--primary { background: var(--sots-primary); color: #fff !important; }
.sots-vax-btn--primary:hover { background: var(--sots-terracotta); color: #fff !important; }
.sots-vax-btn--secondary { background: transparent; color: var(--sots-maroon); border: 2px solid var(--sots-maroon); }
.sots-vax-btn--secondary:hover { background: var(--sots-maroon); color: #fff; }
.sots-vax-btn--danger { background: var(--sots-terracotta); color: #fff; }
.sots-vax-btn--ghost { background: transparent; color: var(--sots-muted); border: 1px solid #ddd; }
.sots-vax-btn--small { padding: 8px 16px; font-size: 14px; }

.sots-vax-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.sots-vax-actions--stack { flex-direction: column; }

/* Cards & stats */
.sots-vax-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 2px 12px rgba(61,32,32,.06);
	border: 1px solid rgba(61,32,32,.06);
}
.sots-vax-card h3 { font-family: 'Baloo 2', sans-serif; color: var(--sots-maroon); margin: 0 0 16px; }
.sots-vax-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sots-vax-card-head h3 { margin: 0; }

.sots-vax-stat-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}
.sots-vax-stat-row--inline { grid-template-columns: repeat(2, 1fr); margin: 12px 0; }

.sots-vax-stat {
	background: #fff;
	border-radius: 14px;
	padding: 16px 18px;
	border: 1px solid rgba(61,32,32,.06);
	box-shadow: 0 2px 8px rgba(61,32,32,.04);
}
.sots-vax-stat strong { display: block; font-family: 'Baloo 2', sans-serif; font-size: 28px; color: var(--sots-maroon); line-height: 1; }
.sots-vax-stat span { font-size: 13px; color: var(--sots-muted); }
.sots-vax-stat--warn strong { color: var(--sots-due); }
.sots-vax-stat--danger strong { color: var(--sots-terracotta); }
.sots-vax-stat--ok strong { color: var(--sots-ok); }

/* Tabs */
.sots-vax-tabs__nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding: 6px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(61,32,32,.08);
}

.sots-vax-tabs__btn {
	border: none;
	background: transparent;
	padding: 10px 18px;
	border-radius: 10px;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: var(--sots-muted);
	cursor: pointer;
	transition: all .2s;
}

.sots-vax-tabs__btn:hover { color: var(--sots-maroon); background: var(--sots-cream); }
.sots-vax-tabs__btn.is-active { background: var(--sots-primary); color: #fff; }

.sots-vax-tabs__panel { display: none; }
.sots-vax-tabs__panel.is-active { display: block; }

/* Forms */
.sots-vax-form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.sots-vax-form input,
.sots-vax-form select,
.sots-vax-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e5dfd9;
	border-radius: 10px;
	font: inherit;
	background: #fff;
	transition: border-color .2s;
}
.sots-vax-form input:focus,
.sots-vax-form select:focus,
.sots-vax-form textarea:focus {
	outline: none;
	border-color: var(--sots-primary);
	box-shadow: 0 0 0 3px rgba(255,122,61,.15);
}
.sots-vax-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}
.sots-vax-auth-switch { text-align: center; margin-top: 20px; }

/* Pet grid */
.sots-vax-pet-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}
.sots-vax-pet-grid--large { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.sots-vax-pet-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(61,32,32,.06);
	box-shadow: 0 2px 10px rgba(61,32,32,.05);
	transition: transform .2s, box-shadow .2s;
}
.sots-vax-pet-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(61,32,32,.1);
}
.sots-vax-pet-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--sots-cream);
}
.sots-vax-pet-card__body,
.sots-vax-pet-card strong,
.sots-vax-pet-card span {
	display: block;
	padding: 0 14px;
}
.sots-vax-pet-card strong {
	padding-top: 12px;
	color: var(--sots-maroon);
	font-family: 'Baloo 2', sans-serif;
}
.sots-vax-pet-card span {
	padding-bottom: 14px;
	font-size: 13px;
	color: var(--sots-muted);
}

.sots-vax-pet-hero {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px;
	align-items: start;
}
.sots-vax-pet-photo {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 16px;
	background: var(--sots-cream);
}

/* Tables & lists */
.sots-vax-table-wrap { overflow-x: auto; }
.sots-vax-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.sots-vax-table th,
.sots-vax-table td { padding: 12px 10px; border-bottom: 1px solid #f0ebe6; text-align: left; }
.sots-vax-table th { color: var(--sots-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.sots-vax-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}
.sots-vax-badge--overdue { background: var(--sots-terracotta); color: #fff; }
.sots-vax-badge--due_soon { background: var(--sots-due); color: #fff; }
.sots-vax-badge--ok { background: var(--sots-ok); color: #fff; }
.sots-vax-badge--missing { background: #eee; color: var(--sots-muted); }

.sots-vax-slot-list { display: grid; gap: 12px; }
.sots-vax-slot-card {
	background: #fff;
	border-radius: 14px;
	padding: 18px 20px;
	border: 1px solid rgba(61,32,32,.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.sots-vax-slot-card__meta { display: grid; gap: 4px; }

.sots-vax-booking-context {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sots-vax-notice {
	padding: 12px 16px;
	border-radius: 10px;
	margin: 16px 28px 0;
}
.sots-vax-notice--success { background: #e8f5e9; color: #2e7d32; }
.sots-vax-notice--error { background: #fdecea; color: #c62828; }

.sots-vax-alert-list,
.sots-vax-history { list-style: none; padding: 0; margin: 0; }
.sots-vax-alert-list li,
.sots-vax-history li {
	padding: 14px 0;
	border-bottom: 1px solid #f0ebe6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.sots-vax-history li { flex-direction: column; align-items: flex-start; }

.sots-vax-appointment {
	padding: 16px 0;
	border-bottom: 1px solid #f0ebe6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.sots-vax-empty-state {
	text-align: center;
	padding: 32px 16px;
	color: var(--sots-muted);
}

.sots-vax-link { background: none; border: none; color: var(--sots-primary); cursor: pointer; font-weight: 600; padding: 0; text-decoration: underline; }

/* Mobile */
@media (max-width: 900px) {
	.sots-vax-shell { grid-template-columns: 1fr; }
	.sots-vax-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		height: 100vh;
		width: min(85vw, var(--sots-sidebar-w));
		transform: translateX(-105%);
		transition: transform .25s ease;
		box-shadow: 8px 0 32px rgba(0,0,0,.2);
	}
	.sots-vax-sidebar.is-open { transform: translateX(0); }
	.sots-vax-sidebar-toggle { display: flex; }
	.sots-vax-topbar { padding: 20px 20px 14px; }
	.sots-vax-main__content { padding: 20px; }
	.sots-vax-stat-row { grid-template-columns: repeat(2, 1fr); }
	.sots-vax-auth-layout { grid-template-columns: 1fr; }
	.sots-vax-auth-layout__brand { padding: 32px 24px; min-height: auto; }
	.sots-vax-auth-layout__panel { padding: 32px 24px; }
	.sots-vax-form-grid { grid-template-columns: 1fr; }
	.sots-vax-pet-hero { grid-template-columns: 1fr; }
	.sots-vax-pet-photo { width: 100%; height: 200px; }
}

@media (max-width: 480px) {
	.sots-vax-tabs__nav { overflow-x: auto; flex-wrap: nowrap; }
	.sots-vax-tabs__btn { white-space: nowrap; }
	.sots-vax-topbar__cta { display: none; }
}
