/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2a2a2a;
    line-height: 1.5;
    background: #fff;
}

a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Form elements === */
input[type="text"],
input[type="number"],
textarea,
select {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
    color: #2a2a2a;
    width: 100%;
}
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

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

select {
    cursor: pointer;
}

label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.25rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
    color: #2a2a2a;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover {
    background: #f3f4f6;
    text-decoration: none;
}
.btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.btn-primary:hover {
    background: #1d4ed8;
}
.btn-danger {
    color: #dc2626;
    border-color: #fca5a5;
}
.btn-danger:hover {
    background: #fef2f2;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

/* === Utilities === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.text-muted {
    color: #9ca3af;
}
