:root {
    --bg-body: #f3f4f6;
    --bg-surface: #ffffff;
    --bg-surface-soft: #f9fafb;

    --text-main: #111827;
    --text-muted: #6b7280;

    --accent: #2563eb;
    --accent-soft: #dbeafe;

    --border-subtle: #e5e7eb;

    --radius-s: 4px;
    --radius-m: 8px;
    --radius-l: 12px;

    --shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.08);

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-main);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-s);
    padding: 0.45rem 0.6rem;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-muted);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-error {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #b91c1c;
}

.form-info {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    text-decoration: none;
    background: #1d4ed8;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

.btn.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.btn.btn-secondary:hover {
    background: var(--bg-surface-soft);
}

.btn.danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: none;
}

.btn.danger:hover {
    background: #dc2626;
}

.text-muted {
    color: var(--text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: var(--accent-soft);
    color: #1d4ed8;
}

.loading,
.no-results {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.global-message {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #111827;
    color: #f9fafb;
    font-size: 0.85rem;
    box-shadow: var(--shadow-soft);
    z-index: 40;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
