:root {
	--primary: #1a73e8;
	--primary-dark: #1557b0;
	--success: #0f9d58;
	--warning: #f4b400;
	--danger: #db4437;
	--text: #202124;
	--text-secondary: #5f6368;
	--bg: #ffffff;
	--bg-secondary: #f8f9fa;
	--border: #dadce0;
	--shadow: rgba(0, 0, 0, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: var(--bg-secondary);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
}

.screen {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.hidden {
	display: none !important;
}

/* Authentication screen */
.auth-container {
	max-width: 400px;
	margin: auto;
	padding: 2rem;
	text-align: center;
}

.auth-container h1 {
	font-size: 3rem;
	margin-bottom: 0.5rem;
}

.tagline {
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.auth-message {
	background: var(--bg);
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 8px var(--shadow);
}

.auth-message p {
	margin-bottom: 1rem;
}

.auth-message p:last-child {
	margin-bottom: 0;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* Header */
header {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 1px 3px var(--shadow);
}

header h1 {
	font-size: 1.5rem;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

/* Main content */
main {
	flex: 1;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 2rem;
}

section {
	margin-bottom: 2rem;
}

h2 {
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

/* Add vehicle form */
.add-vehicle {
	background: var(--bg);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px var(--shadow);
}

#add-vehicle-form {
	display: flex;
	gap: 1rem;
}

input[type="text"] {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 1rem;
	text-transform: uppercase;
}

input[type="text"]:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-text {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 500;
}

.btn-primary {
	background: var(--primary);
	color: white;
}

.btn-primary:hover {
	background: var(--primary-dark);
}

.btn-secondary {
	background: var(--bg-secondary);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: var(--border);
}

.btn-danger {
	background: var(--danger);
	color: white;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

.btn-danger:hover {
	background: #c5392b;
}

.btn-text {
	background: transparent;
	color: var(--primary);
	padding: 0.5rem 1rem;
}

.btn-text:hover {
	background: rgba(26, 115, 232, 0.1);
}

/* Vehicle cards */
.vehicles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.vehicle-card {
	background: var(--bg);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px var(--shadow);
	position: relative;
	transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px var(--shadow);
}

.vehicle-card.loading {
	opacity: 0.6;
}

.vehicle-reg {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1rem;
	letter-spacing: 0.1em;
}

.vehicle-details {
	margin-bottom: 1rem;
}

.detail-row {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--bg-secondary);
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-label {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.detail-value {
	font-weight: 500;
}

.status-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
}

.status-taxed {
	background: #e8f5e9;
	color: var(--success);
}

.status-sorn {
	background: #fff3e0;
	color: var(--warning);
}

.status-untaxed {
	background: #ffebee;
	color: var(--danger);
}

.vehicle-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bg-secondary);
}

/* States */
.empty-state, .loading-state {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--text-secondary);
}

/* Toast notifications */
.toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--danger);
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 12px var(--shadow);
	z-index: 1000;
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(100%);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* Footer */
footer {
	background: var(--bg);
	border-top: 1px solid var(--border);
	padding: 1rem 2rem;
	text-align: center;
	color: var(--text-secondary);
	font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
	header, main, footer {
		padding: 1rem;
	}

	.vehicles-grid {
		grid-template-columns: 1fr;
	}

	#add-vehicle-form {
		flex-direction: column;
	}

	.user-info {
		flex-direction: column;
		align-items: flex-end;
		gap: 0.5rem;
	}
}
