body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef2f7;
    color: #1f2937;
}

.container {
    max-width: 520px;
    margin: 60px auto;
    padding: 20px;
}

.container.wide {
    max-width: 920px;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

h1, h2 {
    margin-top: 0;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

textarea {
    resize: vertical;
}

button,
.small-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 18px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

button:hover,
.small-btn:hover {
    background: #1d4ed8;
}

.small-btn.secondary {
    background: #64748b;
}

.small-btn.secondary:hover {
    background: #475569;
}

.small-btn.danger {
    background: #dc2626;
}

.small-btn.danger:hover {
    background: #b91c1c;
}

.links {
    margin-top: 16px;
}

.links a {
    color: #2563eb;
    text-decoration: none;
}

.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.message {
    border-top: 1px solid #e5e7eb;
    padding: 16px 0;
}

.message:first-of-type {
    border-top: none;
    padding-top: 0;
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.body {
    line-height: 1.6;
    white-space: normal;
    margin-bottom: 12px;
}

.message-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-info {
    font-weight: bold;
    color: #334155;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 260px;
}

.edited-note {
    color: #9333ea;
    font-size: 13px;
    margin-left: 8px;
}