/* Import modern font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css');

:root {
	/* Light Mode Variables */
	--bg-color: #f9fafb;
	--text-color: #111827;
	--primary-color: #3b82f6; /* Blue as default primary */
	--primary-hover: #2563eb;
	--card-bg: #ffffff;
	--input-bg: #f9fafb;
	--input-border: #d1d5db;
	--input-focus: #3b82f6;
	--border-color: #e5e7eb;
	--btn-bg: #e5e7eb;
	--btn-hover: #d1d5db;
	--btn-text: #374151;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] {
	/* Dark Mode Variables */
	--bg-color: #111827;
	--text-color: #f9fafb;
	--primary-color: #3b82f6;
	--primary-hover: #60a5fa;
	--card-bg: #1f2937;
	--input-bg: #374151;
	--input-border: #4b5563;
	--input-focus: #60a5fa;
	--border-color: #374151;
	--btn-bg: #374151;
	--btn-hover: #4b5563;
	--btn-text: #f3f4f6;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

html, body {
	position: relative;
	width: 100%;
	height: 100%;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	transition: background-color 0.3s ease, color 0.3s ease;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	text-decoration: underline;
	color: var(--primary-hover);
}

a:visited {
	color: var(--primary-color);
}

label {
	display: block;
}

input, button, select, textarea {
	font-family: inherit;
	font-size: 1rem;
	padding: 0.75em 1em;
	margin: 0 0 0.5em 0;
	box-sizing: border-box;
	border: 1px solid var(--input-border);
	border-radius: 8px; /* Modern rounded corners */
	background-color: var(--input-bg);
	color: var(--text-color);
	transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--input-focus);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

input:disabled {
	color: #9ca3af;
	background-color: var(--border-color);
}

button {
	background-color: var(--btn-bg);
	color: var(--btn-text);
	border: none;
	cursor: pointer;
	font-weight: 500;
	outline: none;
}

button:disabled {
	color: #9ca3af;
	cursor: not-allowed;
	opacity: 0.7;
}

button:not(:disabled):active {
	background-color: var(--btn-hover);
	transform: scale(0.98);
}

button:focus {
	border-color: var(--primary-color);
}
