/**
 * WinBolo.net Forums Styles
 * Forum Tables, Posts, Topics, Pagination
 */

/* ============================================
   Forum Container
   ============================================ */
.forum-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ============================================
   Forum Breadcrumb
   ============================================ */
.forum-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

.forum-breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   Forum Header
   ============================================ */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.forum-header h1 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.forum-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.forum-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   Forum Buttons
   ============================================ */
.forum-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.1s;
}

.forum-button:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

.forum-button-secondary {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: background-color 0.2s;
}

.forum-button-secondary:hover {
    background: #e0e0e0;
    text-decoration: none;
}

/* ============================================
   Forum Category
   ============================================ */
.forum-category {
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-header {
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   Forum Table
   ============================================ */
.forum-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.forum-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--accent-orange);
    background: var(--bg-gray);
}

.forum-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.forum-table a {
    color: var(--primary-blue);
    text-decoration: none;
}

.forum-table a:hover {
    text-decoration: underline;
}

.forum-table tr:last-child td {
    border-bottom: none;
}

.forum-table tr:hover {
    background: var(--bg-gray);
}

.forum-name-col {
    width: 50%;
    text-align: left;
}

.forum-stats-col {
    width: 10%;
    text-align: right;
}

.forum-lastpost-col {
    width: 30%;
    text-align: left;
}

.forum-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.forum-link:hover {
    text-decoration: underline;
}

.last-post-info {
    font-size: 0.85rem;
}

.last-post-author a {
    color: var(--primary-blue);
    text-decoration: none;
}

.last-post-author a:hover {
    text-decoration: underline;
}

.last-post-time {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.no-posts {
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   Topics Table
   ============================================ */
.topics-table .topic-title-col {
    width: 50%;
    text-align: left;
}

.topics-table .topic-stats-col {
    width: 10%;
    text-align: right;
}

.topics-table .topic-author-col {
    width: 15%;
    text-align: left;
}

.topics-table .topic-lastpost-col {
    width: 25%;
    text-align: left;
}

.topic-row {
    transition: background-color 0.2s;
}

.topic-sticky {
    background: #fff8e6;
}

.topic-announce {
    background: #ffe6e6;
}

.topic-type-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--border-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.topic-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.topic-link:hover {
    text-decoration: underline;
}

.topic-locked-icon {
    margin-left: 0.5rem;
    opacity: 0.6;
}

.topic-locked-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   Posts Container
   ============================================ */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-container {
    display: flex;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-author {
    width: 150px;
    min-width: 150px;
    background: var(--bg-gray);
    padding: 1rem;
    border-right: 1px solid #eee;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-name a {
    color: var(--primary-blue);
    text-decoration: none;
}

.author-name a:hover {
    text-decoration: underline;
}

.author-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Moderator Badge
   ============================================ */
.moderator-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.moderator-badge:hover {
    background: linear-gradient(135deg, #218838, #1aa87a);
}

.post-content {
    flex: 1;
    padding: 1rem;
    min-width: 0;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-subject {
    font-weight: 600;
    color: var(--text-dark);
}

.post-body {
    line-height: 1.7;
    color: var(--text-dark);
}

.post-body blockquote {
    background: var(--bg-gray);
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-blue);
    margin: 0.5rem 0;
}

.post-body pre {
    background: var(--bg-gray);
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
}

.post-body code {
    background: var(--bg-gray);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.post-edit-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   Forum Pagination
   ============================================ */
.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    align-items: center;
}

.pagination-link,
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-link {
    background: var(--bg-white);
    color: var(--primary-blue);
    border: 1px solid #ddd;
    font-weight: 500;
}

.pagination-link:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    text-decoration: none;
}

.pagination-current {
    background: var(--accent-orange);
    color: var(--border-color);
    font-weight: 700;
    border: 1px solid var(--accent-orange);
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-muted);
}

.pagination-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--text-muted);
}

.pagination-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pagination-top {
    margin-bottom: 1rem;
}

.pagination-bottom {
    margin-top: 1rem;
}

/* ============================================
   Forum Footer Actions
   ============================================ */
.forum-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

/* ============================================
   Forum Form
   ============================================ */
.forum-form {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.forum-form .form-group {
    margin-bottom: 1.25rem;
}

.forum-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.forum-form input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.forum-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.forum-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.forum-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.forum-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.forum-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.forum-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-white);
    border-radius: 8px;
}

/* ============================================
   Topic Preview
   ============================================ */
.topic-preview {
    background: var(--bg-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.topic-preview h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.topic-preview .topic-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.topic-preview .topic-info a {
    color: var(--primary-blue);
    text-decoration: none;
}

.topic-preview .topic-info a:hover {
    text-decoration: underline;
}

/* ============================================
   Post Reply Button
   ============================================ */
.post-reply-button {
    display: inline-block;
    background: #e9ecef;
    color: #6c757d;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: auto;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.post-reply-button:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    text-decoration: none;
}

/* ============================================
   Quote Notice
   ============================================ */
.quote-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #1565c0;
}

.quote-notice-icon {
    font-size: 1rem;
}

/* ============================================
   Forum Search Inline
   ============================================ */
.forum-search-link {
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.forum-search-link:hover {
    opacity: 1;
}

.forum-search-link a {
    text-decoration: none;
    font-size: 1rem;
}

.forum-search-inline {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-search-inline-input {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: var(--input-bg);
    color: var(--input-text);
    width: 180px;
    transition: border-color 0.2s, box-shadow 0.2s, width 0.2s;
}

.forum-search-inline-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.15);
    width: 220px;
}

.forum-search-inline-input::placeholder {
    color: var(--input-placeholder);
}

.forum-search-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    background: var(--bg-gray);
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.forum-search-inline-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.forum-search-inline-btn:active {
    transform: translateY(0);
}

.forum-search-inline-btn .search-icon {
    font-size: 0.9rem;
}

/* ============================================
   Dark Theme Overrides
   ============================================ */
[data-theme="dark"] .forum-link,
[data-theme="dark"] .forum-breadcrumb a,
[data-theme="dark"] .last-post-author a,
[data-theme="dark"] .topic-link,
[data-theme="dark"] .author-name a,
[data-theme="dark"] .forum-button-secondary,
[data-theme="dark"] .topic-preview .topic-info a {
    color: #4d9fff;
}

[data-theme="dark"] .forum-link:hover,
[data-theme="dark"] .forum-breadcrumb a:hover,
[data-theme="dark"] .last-post-author a:hover,
[data-theme="dark"] .topic-link:hover,
[data-theme="dark"] .author-name a:hover,
[data-theme="dark"] .topic-preview .topic-info a:hover {
    color: #7cb8ff;
}

[data-theme="dark"] .topic-sticky {
    background: #2a2510;
}

[data-theme="dark"] .topic-announce {
    background: #2a1015;
}

[data-theme="dark"] .forum-error {
    background: var(--alert-error-bg);
    border-color: var(--alert-error-border);
    color: var(--alert-error-text);
}

[data-theme="dark"] .quote-notice {
    background: #1a3a5c;
    border-color: #2a5a8c;
    color: #7ab4fc;
}

[data-theme="dark"] .post-reply-button {
    background: var(--hover-bg);
    color: var(--text-muted);
    border-color: var(--divider-color);
}

[data-theme="dark"] .forum-search-inline-input {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

[data-theme="dark"] .forum-search-inline-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(77, 159, 255, 0.2);
}

[data-theme="dark"] .forum-search-inline-btn {
    background: var(--hover-bg);
    color: var(--text-muted);
    border-color: var(--divider-color);
}

[data-theme="dark"] .forum-search-inline-btn:hover {
    background: var(--border-color);
}

/* ============================================
   Poll Styles
   ============================================ */
.poll-container {
    background: var(--bg-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.poll-question {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.poll-expired {
    color: #dc3545;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.poll-form {
    margin: 0;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.poll-option {
    margin: 0;
}

/* Voting form styles */
.poll-vote-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.poll-vote-option:hover {
    background: #e0e0e0;
}

.poll-vote-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.poll-vote-option span {
    flex: 1;
    color: var(--text-dark);
}

/* Results display styles */
.poll-result {
    padding: 0.5rem 0;
}

.poll-result .option-text {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.result-bar-container {
    background: var(--bg-gray);
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.result-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    height: 100%;
    transition: width 0.5s ease-out;
    border-radius: 4px;
    min-width: 2px;
}

.vote-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vote-count {
    font-weight: 500;
}

.vote-percentage {
    color: var(--text-muted);
}

/* Poll actions */
.poll-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.poll-login-prompt {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-muted);
}

.poll-login-prompt a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.poll-login-prompt a:hover {
    text-decoration: underline;
}

.poll-voted-message {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    color: #28a745;
    font-weight: 500;
}

/* Poll footer */
.poll-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.poll-total {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.poll-deadline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Poll Creation Form Styles
   ============================================ */
.poll-options-section {
    background: var(--bg-gray);
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.poll-options-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.poll-options-section .form-group {
    margin-bottom: 1rem;
}

.poll-options-section .form-group:last-child {
    margin-bottom: 0;
}

#poll_options_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

#poll_options_container input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#poll_options_container input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.1);
}

.poll-duration-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poll-duration-input input[type="number"] {
    width: 80px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.poll-duration-input input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: normal;
}

#poll_option_count {
    margin-left: 0.75rem;
}

/* ============================================
   Dark Theme Poll Overrides
   ============================================ */
[data-theme="dark"] .poll-container {
    background: var(--card-bg);
    border-color: var(--divider-color);
}

[data-theme="dark"] .poll-question {
    color: var(--text-primary);
    border-bottom-color: var(--divider-color);
}

[data-theme="dark"] .poll-vote-option {
    background: var(--hover-bg);
}

[data-theme="dark"] .poll-vote-option:hover {
    background: var(--border-color);
}

[data-theme="dark"] .poll-vote-option span {
    color: var(--text-primary);
}

[data-theme="dark"] .poll-result .option-text {
    color: var(--text-primary);
}

[data-theme="dark"] .result-bar-container {
    background: var(--hover-bg);
}

[data-theme="dark"] .vote-stats {
    color: var(--text-muted);
}

[data-theme="dark"] .poll-login-prompt a {
    color: #4d9fff;
}

[data-theme="dark"] .poll-voted-message {
    color: #4caf50;
}

[data-theme="dark"] .poll-footer {
    border-top-color: var(--divider-color);
}

[data-theme="dark"] .poll-total {
    color: var(--text-primary);
}

[data-theme="dark"] .poll-deadline {
    color: var(--text-muted);
}

[data-theme="dark"] .poll-options-section {
    background: var(--hover-bg);
    border-color: var(--divider-color);
}

[data-theme="dark"] .poll-options-section h3 {
    color: var(--text-primary);
}

[data-theme="dark"] #poll_options_container input[type="text"],
[data-theme="dark"] .poll-duration-input input[type="number"] {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

[data-theme="dark"] #poll_options_container input[type="text"]:focus,
[data-theme="dark"] .poll-duration-input input[type="number"]:focus {
    border-color: #4d9fff;
    box-shadow: 0 0 0 2px rgba(77, 159, 255, 0.2);
}

[data-theme="dark"] .poll-actions {
    border-top-color: var(--divider-color);
}

[data-theme="dark"] .poll-login-prompt,
[data-theme="dark"] .poll-voted-message {
    border-top-color: var(--divider-color);
}

/* ============================================
   Dark Theme Moderator Badge
   ============================================ */
[data-theme="dark"] .moderator-badge {
    background: linear-gradient(135deg, #2ea043, #3fb950);
}

/* ============================================
   Spam Status Styles
   ============================================ */

/* Post container spam states */
.post-spam-pending {
    border: 2px solid #f0ad4e;
    background: #fffdf5;
}

.post-spam-approved {
    border-left: 4px solid #28a745;
}

/* Spam badges */
.spam-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.spam-badge.spam-pending {
    background: #f0ad4e;
    color: #fff;
}

.spam-badge.spam-approved {
    background: #28a745;
    color: #fff;
}

/* Spam moderation actions */
.spam-moderation-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ddd;
}

.spam-action-form {
    display: inline;
}

.spam-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.spam-action-btn.approve {
    background: #28a745;
    color: white;
}

.spam-action-btn.approve:hover {
    background: #218838;
}

.spam-action-btn.reject {
    background: #dc3545;
    color: white;
}

.spam-action-btn.reject:hover {
    background: #c82333;
}

/* ============================================
   Dark Theme Spam Status Overrides
   ============================================ */
[data-theme="dark"] .post-spam-pending {
    background: #2a2510;
    border-color: #8a6d3b;
}

[data-theme="dark"] .post-spam-approved {
    border-left-color: #3fb950;
}

[data-theme="dark"] .spam-badge.spam-pending {
    background: #8a6d3b;
    color: #fff;
}

[data-theme="dark"] .spam-badge.spam-approved {
    background: #3fb950;
}

[data-theme="dark"] .spam-moderation-actions {
    border-top-color: var(--divider-color);
}

[data-theme="dark"] .spam-action-btn.approve {
    background: #2ea043;
}

[data-theme="dark"] .spam-action-btn.approve:hover {
    background: #3fb950;
}

[data-theme="dark"] .spam-action-btn.reject {
    background: #da3633;
}

[data-theme="dark"] .spam-action-btn.reject:hover {
    background: #f85149;
}

/* ============================================
   Captcha Styles
   ============================================ */
.captcha-group {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.captcha-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.captcha-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   Dark Theme Captcha Overrides
   ============================================ */
[data-theme="dark"] .captcha-group {
    background: var(--hover-bg);
    border-color: var(--divider-color);
}

[data-theme="dark"] .captcha-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .captcha-hint {
    color: var(--text-muted);
}