* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background: #fafafa;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

header h1 a {
    text-decoration: none;
    color: #333;
}

nav a {
    color: #0066cc;
    text-decoration: none;
    margin-left: 10px;
}

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

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

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

button {
    cursor: pointer;
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}

button:hover {
    background: #0052b4;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.flash-info {
    background: #e3f2fd;
    color: #1565c0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.stats-grid {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

th {
    background: #f5f5f5;
    font-weight: bold;
}

tr:hover {
    background: #fafafa;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

small {
    color: #666;
}

main {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
