/* Classic Textboard & Forums Aesthetic */
body {
    background-color: #ffffe6; /* Classic warm cream background */
    color: #800000;            /* Retro maroon text */
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    margin: 16px;
    line-height: 1.4;
}

a {
    color: #34345c;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* Header & Board Title */
.board-header {
    background-color: #e0e0ee;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.board-title {
    font-size: 24px;
    font-weight: bold;
    color: #af0a0f;
    margin: 0;
    letter-spacing: -1px;
}

.board-tagline {
    font-size: 11px;
    color: #444;
    font-style: italic;
    margin-top: 4px;
}

/* Navigation Bar */
.navbar {
    background-color: #f0e4d4;
    border: 1px solid #d9bfb7;
    padding: 6px 10px;
    margin-bottom: 15px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav-links a {
    margin-right: 12px;
}

/* Forms & Textareas */
fieldset {
    border: 1px solid #d9bfb7;
    background-color: #f0e0d6;
    margin-bottom: 15px;
    padding: 12px;
}

legend {
    font-weight: bold;
    background-color: #e04000;
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    border: 1px solid #d9bfb7;
}

.form-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-row label {
    font-weight: bold;
    width: 100px;
    display: inline-block;
    font-size: 11px;
}

input[type="text"],
input[type="password"],
select,
textarea {
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #aaa;
    background-color: #fff;
    padding: 3px;
    color: #000;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    background-color: #fffff0;
    border-color: #333;
}

button, input[type="submit"] {
    background-color: #e0e0ee;
    border: 1px outset #aaa;
    color: #000;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
}

button:active, input[type="submit"]:active {
    border-style: inset;
}

/* Alert Boxes */
.alert {
    padding: 6px 10px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid;
}

.alert-error {
    background-color: #fdd;
    color: #900;
    border-color: #faa;
}

.alert-success {
    background-color: #dfd;
    color: #060;
    border-color: #9f9;
}

/* Posts / Thread Containers */
.post-container {
    border-left: 4px solid #d9bfb7;
    background-color: #f0e4d4;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.post-header {
    font-size: 11px;
    color: #444;
    border-bottom: 1px dashed #d9bfb7;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.post-header .username {
    font-weight: bold;
    color: #111111;
}

.post-header .badge {
    background-color: #af0a0f;
    color: #fff;
    font-weight: bold;
    font-size: 9px;
    padding: 1px 3px;
    margin-right: 4px;
}

.post-header .flair {
    color: #006600;
    font-weight: bold;
}

.post-title {
    font-weight: bold;
    font-size: 14px;
    color: #0f0c5d;
    margin-bottom: 6px;
}

.post-body {
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 12px;
    color: #000;
    margin-bottom: 8px;
}

.post-footer {
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 15px;
}

/* Multi-Attachment List Layout styles */
.post-attachments-section {
    margin-top: 12px;
    border-top: 1px dashed #d9bfb7;
    padding-top: 8px;
    margin-bottom: 8px;
}

.attachments-title {
    font-size: 11px;
    font-weight: bold;
    color: #34345c;
    margin-bottom: 6px;
}

.attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attachment-item {
    display: flex;
    align-items: center;
    background-color: #f7f1e6;
    border: 1px solid #e1d5c7;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    transition: background-color 0.15s ease-in-out;
}

.attachment-item:hover {
    background-color: #fff;
}

.attachment-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.attachment-meta-info {
    font-family: monospace;
    color: #555;
    margin-left: 6px;
}

/* Client Side Queue View Layout styles */
.btn-retro {
    background-color: #dfd4c5;
    border: 2px solid #d9bfb7;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    color: #0f0c5d;
    transition: all 0.2s ease-in-out;
}

.btn-retro:hover {
    background-color: #f7f1e6;
    border-color: #0f0c5d;
}

/* Comments Block */
.comments-box {
    margin-top: 10px;
    background-color: #e8ded2;
    padding: 8px;
    border: 1px solid #d9bfb7;
}

.comment-row {
    background-color: #f4ece2;
    border: 1px solid #d9bfb7;
    padding: 6px;
    margin-bottom: 6px;
}

.comment-row:last-child {
    margin-bottom: 0;
}

.comment-header {
    font-size: 10px;
    color: #555;
    margin-bottom: 4px;
}

.comment-body {
    font-family: monospace;
    font-size: 11px;
    color: #111;
}

/* Classic Structured Tables (Admin) */
table.retro-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
    background-color: #fff;
    color: #000;
}

table.retro-table th {
    background-color: #44445c;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    padding: 5px;
    border: 1px solid #333;
    text-align: left;
}

table.retro-table td {
    padding: 5px;
    border: 1px solid #aaa;
    font-size: 11px;
}

table.retro-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

/* Columns & Search Controls */
.search-bar {
    background-color: #f0e4d4;
    border: 1px solid #d9bfb7;
    padding: 8px;
    margin-bottom: 15px;
}

.search-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}