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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f4f5;
    color: #111827;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.site-header,
.site-footer {
    background: #111827;
    color: #f9fafb;
}

.site-header .container,
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: #f9fafb;
    text-decoration: none;
}

nav a {
    color: #e5e7eb;
    margin-left: 1rem;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool-card,
.form-card {
    background: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tool-card h3 {
    margin-top: 0;
}

.full-width {
    width: 100%;
}

.button-row {
    margin-top: 0.5rem;
}

.button-row button,
button {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    font-weight: 500;
}

button:hover {
    background: #1d4ed8;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
}

.table th,
.table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background: #f9fafb;
    text-align: left;
}

.alert {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

label {
    display: block;
    margin-bottom: 0.75rem;
}

label input,
label textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    margin-top: 0.25rem;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}
