/* WOF Portal front-end styles
   Palette: charcoal/steel workshop tones + amber(due soon)/red(overdue)/green(ok)
   Rego plates are styled as literal number-plate badges - the one signature touch. */

#wofp-root {
	--wofp-ink: #1F2428;
	--wofp-steel: #2E3A46;
	--wofp-paper: #EDEFF1;
	--wofp-line: #D7DBDE;
	--wofp-amber: #F2A93B;
	--wofp-red: #D64545;
	--wofp-green: #3F9142;
	--wofp-teal: #1E7F82;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--wofp-ink);
	max-width: 1100px;
	margin: 0 auto;
}

#wofp-root * { box-sizing: border-box; }

.wofp-disclaimer {
	background: var(--wofp-paper);
	border-left: 3px solid var(--wofp-steel);
	padding: 14px 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #4B5560;
	margin-bottom: 28px;
	border-radius: 2px;
}

.wofp-disclaimer strong { color: var(--wofp-ink); }

.wofp-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.wofp-toolbar h2 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}

.wofp-btn {
	background: var(--wofp-steel);
	color: #fff;
	border: none;
	padding: 9px 16px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
.wofp-btn:hover { background: var(--wofp-ink); color: #fff; }
.wofp-btn.wofp-btn-outline { background: transparent; color: var(--wofp-steel); border: 1px solid var(--wofp-line); }

.wofp-vehicle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.wofp-card {
	border: 1px solid var(--wofp-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

/* The signature element: a literal number-plate badge as the card header */
.wofp-plate {
	background: #F5D949;
	border: 2px solid var(--wofp-ink);
	border-radius: 4px;
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 2px;
	text-align: center;
	padding: 6px 10px;
	margin: 16px 16px 12px 16px;
	color: var(--wofp-ink);
}
.wofp-plate.wofp-plate-ev { background: #cfe8d8; }

.wofp-card-body { padding: 0 16px 16px 16px; }

.wofp-vehicle-meta { font-size: 13px; color: #5A646E; margin-bottom: 12px; }

.wofp-status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.wofp-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 8px;
	border-radius: 3px;
}
.wofp-badge-ok { background: #E4F3E5; color: var(--wofp-green); }
.wofp-badge-due { background: #FDF0DC; color: #A56A11; }
.wofp-badge-overdue { background: #FBE3E3; color: var(--wofp-red); }
.wofp-badge-unknown { background: var(--wofp-paper); color: #6B7580; }

.wofp-section-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6B7580;
	margin: 14px 0 6px 0;
	font-weight: 700;
}

.wofp-history-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.wofp-history-list li { padding: 6px 0; border-bottom: 1px dashed var(--wofp-line); display: flex; justify-content: space-between; }
.wofp-history-list li:last-child { border-bottom: none; }

.wofp-link-detail { font-size: 12px; color: var(--wofp-teal); font-weight: 600; cursor: pointer; }

.wofp-panel {
	border: 1px solid var(--wofp-line);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
	background: #fff;
}

.wofp-panel h3 { margin-top: 0; font-family: 'Space Grotesk', sans-serif; }

.wofp-field { margin-bottom: 12px; }
.wofp-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #4B5560; }
.wofp-field input[type=text], .wofp-field input[type=email] {
	width: 100%; max-width: 360px; padding: 8px 10px; border: 1px solid var(--wofp-line); border-radius: 4px; font-size: 14px;
}
.wofp-field input:disabled { background: var(--wofp-paper); color: #8A929A; }

.wofp-locked-notice {
	background: #FDF0DC; border-left: 3px solid var(--wofp-amber); padding: 10px 14px; font-size: 13px; border-radius: 2px; margin-bottom: 14px;
}

.wofp-alert-list { font-size: 13px; }
.wofp-alert-list .wofp-alert-item { padding: 8px 0; border-bottom: 1px solid var(--wofp-line); display: flex; justify-content: space-between; gap: 12px; }

/* Admin: contact-lock toggle switch */
.wofp-switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.wofp-switch input { opacity: 0; width: 0; height: 0; }
.wofp-slider { position: absolute; cursor: pointer; inset: 0; background-color: #D64545; transition: .2s; border-radius: 22px; }
.wofp-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; }
.wofp-switch input:checked + .wofp-slider { background-color: #3F9142; }
.wofp-switch input:checked + .wofp-slider:before { transform: translateX(20px); }

.wofp-login-notice { padding: 20px; text-align: center; }

/* -------------------- Login / Signup (whitelabel-able) -------------------- */

.wofp-auth-wrap {
	--wofp-primary: #2E3A46;
	display: flex;
	justify-content: center;
	padding: 40px 16px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1F2428;
}

.wofp-auth-card {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border: 1px solid #D7DBDE;
	border-radius: 10px;
	padding: 32px 28px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(31,36,40,0.04);
}

.wofp-auth-logo { max-width: 160px; max-height: 60px; margin: 0 auto 16px auto; display: block; }
.wofp-auth-brand-text {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
	color: var(--wofp-primary);
}

.wofp-auth-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; margin: 0 0 6px 0; text-align: left; }
.wofp-auth-subtitle { font-size: 13px; color: #5A646E; text-align: left; margin: 0 0 18px 0; }

.wofp-auth-error {
	background: #FBE3E3;
	color: #B23434;
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 4px;
	margin-bottom: 16px;
	text-align: left;
}

.wofp-auth-form { text-align: left; }
.wofp-auth-form .wofp-field { margin-bottom: 14px; }
.wofp-auth-form input[type=text], .wofp-auth-form input[type=email], .wofp-auth-form input[type=password] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #D7DBDE;
	border-radius: 5px;
	font-size: 14px;
}
.wofp-auth-form input:focus { outline: 2px solid var(--wofp-primary); outline-offset: 1px; border-color: var(--wofp-primary); }

.wofp-btn-block { width: 100%; text-align: center; background: var(--wofp-primary); }
.wofp-auth-wrap .wofp-btn { background: var(--wofp-primary); }
.wofp-auth-wrap .wofp-btn:hover { filter: brightness(0.9); }

.wofp-auth-divider { border: none; border-top: 1px solid #D7DBDE; margin: 20px 0; }
.wofp-auth-switch { font-size: 13px; text-align: center; margin: 12px 0 0 0; }
.wofp-auth-switch a { color: var(--wofp-primary); font-weight: 600; text-decoration: none; }
.wofp-auth-switch a:hover { text-decoration: underline; }

@media (max-width: 480px) {
	.wofp-vehicle-grid { grid-template-columns: 1fr; }
	.wofp-auth-card { padding: 24px 20px; }
}
