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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

h1 { font-size: 1.5rem; color: #0f4c81; margin-bottom: 0.25rem; }
h2 { font-size: 1.15rem; color: #444; margin-bottom: 1rem; }
.subtitle { color: #777; font-size: 0.9rem; margin-bottom: 1rem; }

a { color: #0f4c81; text-decoration: none; }
a:hover { text-decoration: underline; }

.error {
    background: #ffeaea;
    color: #c0392b;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

input, textarea {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}
textarea { resize: vertical; }

button {
    background: #0f4c81;
    color: #fff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
}
button:hover { background: #0b3a63; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.user-bar { font-size: 0.9rem; color: #555; }

.comment-form { margin-bottom: 1rem; }

hr { border: none; border-top: 1px solid #e0e4ea; margin: 1.5rem 0; }

.comment {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}
.comment-meta strong { color: #0f4c81; }
.time { color: #999; }
.comment-body { font-size: 0.95rem; line-height: 1.5; }

.empty { color: #999; font-style: italic; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 1rem;
}
th, td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e0e4ea;
}
th { background: #f0f4f8; font-weight: 600; }
code { background: #f0f0f0; padding: 2px 5px; border-radius: 4px; font-size: 0.8rem; word-break: break-all; }
.ua { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note { font-size: 0.8rem; color: #999; margin-top: 0.5rem; }

/* ── Callout boxes for the demo ── */
.callout {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.callout-info { background: #e8f4fd; border-left: 4px solid #0f4c81; color: #0b3a63; }
.callout-warn { background: #fff8e6; border-left: 4px solid #e67e22; color: #7d5a0b; }
.btn-delete { background: none; border: none; color: #c0392b; font-size: 0.8rem; cursor: pointer; padding: 0; font-weight: 400; } .btn-delete:hover { text-decoration: underline; }
