/* -----------------------------------------------------------------------------------------
    author          : Kutay Coskuner
    ai-contributors : Claude Opus 5.5 (claude-opus-5-5)
    last update     : 2026-11-02
    disclaimer      : Provided as is, without warranty of any kind; use at your own risk.
--------------------------------------------------------------------------------------------
    Global styles of the admin interface: light and dark colour tokens (same names and
    values as imge/cauldron's main.css, so components can be shared), page base and form
    controls. The scheme is chosen by the color-scheme attribute on <html> (app.html,
    $lib/theme.svelte.ts).
----------------------------------------------------------------------------------------- */

:root {
	--main-font: monospace;
	--border-radius: 2px;
	--gutter: 1rem;
}

[color-scheme='light'] {
	color-scheme: light;
	--col: #243746ff;
	--col-1: #128ec4ff;
	--col-2: #0e2233ff;
	--col-error: #c0392b;
	--col-transparent-2: #0e161b33;
	--col-border: #ddddddff;
	--bg: #f6f6f6ff;
	--bg-1: #f2f2f2;
	--bg-2: #e8eced;
}

[color-scheme='dark'] {
	color-scheme: dark;
	--col: #ebf4f1ee;
	--col-1: #06b4ba;
	--col-2: #fdf9f3;
	--col-error: #e5675a;
	--col-transparent-2: #5c605f33;
	--col-border: #626262;
	--bg: #121212;
	--bg-1: #161616;
	--bg-2: #202020;
}

body {
	margin: 0;
	font-family: var(--main-font);
	background-color: var(--bg);
	color: var(--col);
	transition: background-color 0.3s;
}

a {
	color: var(--col-2);
}

a:hover {
	color: var(--col-1);
}

input,
select,
textarea,
button {
	font: inherit;
	color: var(--col);
}

input,
select,
textarea {
	box-sizing: border-box;
	padding: 0.4rem 0.55rem;
	border: 1px solid var(--col-border);
	border-radius: var(--border-radius);
	background: var(--bg-1);
}

input:focus,
select:focus,
textarea:focus {
	outline: 1px solid var(--col-1);
}

button {
	cursor: pointer;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--col-border);
	border-radius: var(--border-radius);
	background: var(--bg-2);
}

button:hover {
	border-color: var(--col-1);
}

::-webkit-scrollbar {
	width: 0.4em;
	height: 0.4em;
}

::-webkit-scrollbar-track {
	background: var(--bg);
}

::-webkit-scrollbar-thumb {
	background-color: var(--col-transparent-2);
	border-radius: 2px;
}
