:root {
    color-scheme: light;
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #f5f6fa;
    color: #222;
}

body {
    margin: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1f2937;
    color: #fff;
    gap: 1rem;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
}

.top-nav nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.logout-form button {
    background-color: #f97316;
}

.current-user {
    font-size: 0.9rem;
    color: #f9fafb;
}

main {
    padding: 2rem;
}

.app-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.app-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.app-card h2 {
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

button, .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

form {
    display: grid;
    gap: 1rem;
    max-width: 480px;
}

label {
    display: grid;
    gap: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #fff;
    color: #222;
    font-size: 1rem;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.notice {
    padding: 0.75rem 1rem;
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 4px;
}

.error {
    padding: 0.75rem 1rem;
    background-color: #f8d7da;
    color: #842029;
    border-radius: 4px;
}

.muted {
    color: #6b7280;
}

table form {
    display: inline;
}

