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

:root {
	--primary: #ea580c;
	--primary-dark: #c2410c;
	--secondary: #f97316;
	--success: #16a34a;
	--danger: #dc2626;
	--warning: #ca8a04;
	--info: #2563eb;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	--border-radius: 8px;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background-color: var(--gray-50);
	color: var(--gray-800);
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	line-height: 1.5;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: var(--primary-dark);
}

button,
input,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

img {
	max-width: 100%;
}

.btn-primary,
.btn-secondary,
.btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: var(--border-radius);
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition:
		background-color 0.2s,
		color 0.2s,
		box-shadow 0.2s;
}

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

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

.btn-secondary {
	background-color: var(--gray-200);
	color: var(--gray-800);
}

.btn-secondary:hover {
	background-color: var(--gray-300);
	color: var(--gray-800);
}

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

.btn-danger:hover {
	background-color: #b91c1c;
	color: white;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
	width: 100%;
	border: 1px solid var(--gray-200);
	border-radius: var(--border-radius);
	background-color: white;
	color: var(--gray-800);
	padding: 10px;
	font-size: 14px;
	font-family: inherit;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

label {
	display: block;
	margin-bottom: 6px;
	color: var(--gray-800);
	font-size: 14px;
	font-weight: 600;
}

.form-group {
	margin-bottom: 16px;
}

.navbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: white;
	border-bottom: 1px solid var(--gray-200);
	padding: 16px 0;
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	gap: 20px;
}

.nav-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: 10px;
	color: var(--primary);
	font-size: 24px;
	font-weight: 700;
	text-decoration: none;
}

.nav-logo:hover {
	color: var(--primary-dark);
}

.nav-logo-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.navbar-menu {
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav-link {
	position: relative;
	color: var(--gray-700);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary);
}

.footer {
	margin-top: 60px;
	padding: 40px 20px;
	background-color: white;
	border-top: 1px solid var(--gray-200);
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	max-width: 1400px;
	margin: 0 auto 40px;
}

.footer-section h3 {
	margin-bottom: 16px;
	color: var(--gray-800);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

.footer-section ul {
	list-style: none;
}

.footer-section li {
	margin-bottom: 10px;
}

.footer-section a {
	color: var(--gray-600);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s;
}

.footer-section a:hover {
	color: var(--primary);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding-top: 30px;
	border-top: 1px solid var(--gray-200);
	gap: 20px;
}

.footer-copyright {
	color: var(--gray-600);
	font-size: 13px;
}

.footer-copyright a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-copyright a:hover {
	color: var(--primary-dark);
}

.footer-links {
	display: flex;
	gap: 24px;
}

.footer-links a {
	color: var(--gray-600);
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--primary);
}

.toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.toast {
	min-width: 260px;
	max-width: 360px;
	padding: 12px 16px;
	border-radius: var(--border-radius);
	color: white;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(-8px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
	font-size: 14px;
	font-weight: 500;
}

.toast.show {
	opacity: 1;
	transform: translateY(0);
}

.toast.hide {
	opacity: 0;
	transform: translateY(-8px);
}

.toast-success {
	background: var(--success);
}

.toast-error {
	background: var(--danger);
}

.toast-info {
	background: var(--info);
}

.toast-warning {
	background: var(--warning);
}

.error-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 80px);
	padding: 80px 20px;
	text-align: center;
}

.error-page h1 {
	margin-bottom: 10px;
	color: var(--gray-300);
	font-size: clamp(80px, 18vw, 120px);
	line-height: 1;
}

.error-page p {
	margin-bottom: 30px;
	color: var(--gray-800);
	font-size: 24px;
}

.form-group input[type="date"] {
	width: 100%;
	border: 1px solid var(--gray-200);
	border-radius: var(--border-radius);
	background-color: white;
	color: var(--gray-800);
	padding: 10px;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	border-radius: 4px;
	margin-right: 2px;
	opacity: 0.6;
	filter: invert(0.8);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}

input[type="date"]:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

input[type="date"]::placeholder {
	color: var(--gray-400);
}

input[type="date"]::-webkit-outer-spin-button,
input[type="date"]::-webkit-inner-spin-button {
	display: none;
	-webkit-appearance: none;
	margin: 0;
}

input[type="date"]:disabled {
	background-color: var(--gray-100);
	color: var(--gray-400);
	cursor: not-allowed;
}

.bookmarklet-section {
	margin-top: 48px;
	padding: 24px;
	background-color: white;
	border: 1px solid var(--gray-200);
	border-radius: var(--border-radius);
	text-align: center;
}

.bookmarklet-section h2 {
	margin-bottom: 8px;
	color: var(--gray-900);
	font-size: 20px;
}

.bookmarklet-section p {
	margin-bottom: 16px;
	color: var(--gray-600);
	font-size: 14px;
}

.bookmarklet-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.bookmarklet-btn,
.bookmarklet-copy {
	padding: 12px 24px;
	border-radius: var(--border-radius);
	font-weight: 600;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}

.bookmarklet-btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: white;
	border: 2px solid var(--primary-dark);
	cursor: move;
	box-shadow: 0 4px 6px rgba(234, 88, 12, 0.2);
	user-select: none;
}

.bookmarklet-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(234, 88, 12, 0.3);
}

.bookmarklet-btn:active {
	transform: translateY(0);
}

.bookmarklet-copy {
	border: none;
}

.bookmarklet-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 20px;
}

.bookmarklet-modal[hidden] {
	display: none;
}

.bookmarklet-modal-content {
	background-color: white;
	border-radius: var(--border-radius);
	padding: 24px;
	max-width: 500px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.bookmarklet-modal h3 {
	margin-bottom: 16px;
	color: var(--gray-900);
	font-size: 18px;
}

.bookmarklet-steps {
	margin-bottom: 20px;
	margin-left: 20px;
	color: var(--gray-700);
	font-size: 14px;
}

.bookmarklet-steps li {
	margin-bottom: 8px;
}

.bookmarklet-code {
	width: 100%;
	height: 120px;
	padding: 12px;
	margin-bottom: 16px;
	border: 1px solid var(--gray-200);
	border-radius: var(--border-radius);
	font-family: "Courier New", monospace;
	font-size: 12px;
	resize: vertical;
	background-color: var(--gray-50);
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	color: var(--gray-500);
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover {
	color: var(--gray-700);
}

@media (max-width: 640px) {
	.bookmarklet-section {
		padding: 20px;
	}

	.bookmarklet-buttons {
		flex-direction: column;
	}

	.bookmarklet-btn,
	.bookmarklet-copy {
		width: 100%;
	}

	.bookmarklet-modal-content {
		max-height: 90vh;
	}
}

@media (max-width: 768px) {
	.nav-container {
		align-items: flex-start;
		flex-direction: column;
	}

	.navbar-menu {
		flex-wrap: wrap;
		gap: 14px;
	}

	.footer-container {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 24px;
	}

	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer-links {
		width: 100%;
		flex-direction: column;
		gap: 12px;
	}
}
