body {
    font-family: sans-serif;
    max-width: 800px;
    margin: auto;
    padding: 1em;
    background-color: #f9f9f9;
    color: #222;
}

header h2 {
    margin-bottom: 0.5em;
}

a {
    color: #0066cc;
    text-decoration: none;
    margin-right: 1em;
}

a:hover {
    text-decoration: underline;
}

.error {
    color: #c0392b;
    font-weight: bold;
}

.success {
    color: #27ae60;
    font-weight: bold;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 1em;
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 1em;
}

button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}

button:hover {
    background-color: #34495e;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.post,
.comment {
    border: 1px solid #ccc;
    background: white;
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1em;
    display: flex;
    gap: 1em;
}

.post-body,
.comment-body {
    flex-grow: 1;
}

.avatar {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.avatar-md {
    width: 50px;
    height: 50px;
}

.avatar-lg {
    width: 100px;
    height: 100px;
}

.avatar-placeholder {
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    object-fit: cover;
}

.avatar-placeholder-sm {
    width: 40px;
    height: 40px;
}

.avatar-placeholder-md {
    width: 50px;
    height: 50px;
}

.avatar-placeholder-lg {
    width: 100px;
    height: 100px;
}

.time {
    font-size: 0.85em;
    color: #777;
}

.deleted-comment {
    font-style: italic;
    color: #888;
}

.meta {
    margin-top: 0.3em;
}
