* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #f5f7fb;
    color: #1f2a37;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.site-header {
    background: #121826;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.site-header a {
    color: #fff;
    text-decoration: none;
    margin-right: 1.2rem;
}

.site-header ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.site-header li {
    margin-right: 1rem;
}

.brand a {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-links .btn {
    margin-left: 0.5rem;
}

main h1 {
    margin-top: 0;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.card h2 {
    margin-top: 0;
}

.card.warning {
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table th {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

form input,
form select,
form button,
form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

button,
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.btn.secondary {
    background: #475569;
}

.btn.danger {
    background: #dc2626;
}

.btn.danger:hover {
    background: #b91c1c;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert.success {
    background: #ecfdf5;
    color: #047857;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
}

.form-error {
    color: #b91c1c;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e0e7ff;
    color: #3730a3;
}

.site-footer {
    text-align: center;
    padding: 1.5rem 0;
    background: #111827;
    color: #9ca3af;
}

.user-chip {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #f3f4f6;
}

.note {
    font-size: 0.9rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-header ul {
        flex-wrap: wrap;
    }
}
