/* ==========================================================================
   Feedback System Styles
   Loaded in <head> to prevent FOUC
   ========================================================================== */

/* CSS Variables */
:root {
    --feedback-card: #232323;
    --feedback-border: #333;
    --feedback-text: #e0e0e0;
    --feedback-text-muted: #888;
    --feedback-primary: #064780;
    --feedback-danger: #dc3545;
    --feedback-success: #28a745;
    --feedback-warning: #ffc107;
}

body.lightmode {
    --feedback-card: #fff;
    --feedback-border: #e0e0e0;
    --feedback-text: #232323;
    --feedback-text-muted: #666;
}

/* ==========================================================================
   Card Component
   ========================================================================== */
.imrp-card {
    background: var(--feedback-card);
    border-radius: 3px;
    padding: 1.2em 1.5em;
    margin-bottom: 1em;
}

body.lightmode .imrp-card {
    border: 1px solid var(--feedback-border);
}

/* ==========================================================================
   Badge Components
   ========================================================================== */
.imrp-badge {
    padding: 0.15em 0.5em;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

/* Type badges */
.imrp-badge-suggestion { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.imrp-badge-bug { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

/* Status badges */
.imrp-badge-new { background: rgba(0, 123, 255, 0.2); color: #007bff; }
.imrp-badge-in_progress { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.imrp-badge-resolved { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.imrp-badge-closed { background: rgba(108, 117, 125, 0.2); color: #6c757d; }
.imrp-badge-wont_fix { background: rgba(108, 117, 125, 0.2); color: #6c757d; }
.imrp-badge-confirmed { background: rgba(23, 162, 184, 0.2); color: #17a2b8; }
.imrp-badge-not_a_bug { background: rgba(108, 117, 125, 0.2); color: #6c757d; }

/* Priority badges */
.imrp-badge-critical { background: rgba(220, 53, 69, 0.3); color: #dc3545; }
.imrp-badge-high { background: rgba(255, 193, 7, 0.3); color: #ffc107; }
.imrp-badge-normal { background: rgba(108, 117, 125, 0.2); color: #888; }
.imrp-badge-low { background: rgba(108, 117, 125, 0.2); color: #888; }

/* Role badges */
.imrp-badge-developer { background: rgba(111, 66, 193, 0.2); color: #7c4dff; }
.imrp-badge-admin { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
.imrp-badge-helper { background: rgba(0, 123, 255, 0.2); color: #007bff; }

/* ==========================================================================
   Vote Button Component
   ========================================================================== */
/* Vote Display (non-interactive, for list views) */
.imrp-feedback-vote-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5em;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
}

body.lightmode .imrp-feedback-vote-display {
    background: #f8f8f8;
}

/* Vote Button (interactive, for issue view) */
.imrp-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5em;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.imrp-vote-btn:hover {
    border-color: var(--feedback-primary);
    background: rgba(6, 71, 128, 0.1);
}

.imrp-vote-btn.voted {
    background: rgba(6, 71, 128, 0.2);
    border-color: var(--feedback-primary);
}

.imrp-vote-count {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
}

.imrp-vote-label {
    font-size: 0.7em;
    color: #666;
    text-transform: uppercase;
}

body.lightmode .imrp-vote-btn {
    background: #f8f8f8;
}

body.lightmode .imrp-vote-count {
    color: #232323;
}

/* ==========================================================================
   Button Components
   ========================================================================== */
.imrp-btn {
    padding: 0.6em 1.2em;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.imrp-btn-primary {
    background: var(--feedback-primary);
    color: #fff;
}

.imrp-btn-primary:hover {
    background: #0a5ea8;
    color: #fff;
}

.imrp-btn-secondary {
    background: #333;
    color: var(--feedback-text);
}

.imrp-btn-secondary:hover {
    background: #444;
    color: #fff;
}

body.lightmode .imrp-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

body.lightmode .imrp-btn-secondary:hover {
    background: #d0d0d0;
}

/* ==========================================================================
   Filter Components
   ========================================================================== */
.imrp-filters-container {
    background: var(--feedback-card);
    border-radius: 3px;
    padding: 1.2em 1.5em;
    margin-bottom: 1.2em;
}

body.lightmode .imrp-filters-container {
    border: 1px solid var(--feedback-border);
}

.imrp-filters-header {
    margin-bottom: 1em;
}

.imrp-filters-title {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--feedback-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.imrp-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    margin-bottom: 1em;
}

.imrp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.imrp-filter-label {
    font-size: 0.85em;
    color: var(--feedback-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.imrp-filter-select,
.imrp-filter-input {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    color: var(--feedback-text);
    font-size: 0.95em;
    transition: all 0.15s;
}

.imrp-filter-select:focus,
.imrp-filter-input:focus {
    outline: none;
    border-color: var(--feedback-primary);
    box-shadow: 0 0 0 2px rgba(6, 71, 128, 0.1);
}

body.lightmode .imrp-filter-select,
body.lightmode .imrp-filter-input {
    background: #f8f8f8;
}

/* ==========================================================================
   Pagination Components
   ========================================================================== */
.imrp-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background: var(--feedback-card);
    border-radius: 3px;
    gap: 1em;
}

body.lightmode .imrp-pagination-wrapper {
    border: 1px solid var(--feedback-border);
}

.imrp-pagination-pages {
    display: flex;
    gap: 0.3em;
}

.imrp-page-link {
    padding: 0.4em 0.8em;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    color: var(--feedback-text);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.imrp-page-link:hover {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.imrp-page-link.active {
    background: var(--feedback-primary);
    border-color: var(--feedback-primary);
    color: #fff;
}

.imrp-page-ellipsis {
    padding: 0.4em 0.5em;
    color: #666;
}

.imrp-pagesize-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
    color: var(--feedback-text-muted);
}

.imrp-pagesize-select {
    padding: 0.4em 0.6em;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    color: var(--feedback-text);
    font-size: 0.9em;
}

body.lightmode .imrp-page-link {
    background: #f8f8f8;
}

body.lightmode .imrp-page-link:hover {
    background: #f0f0f0;
}

body.lightmode .imrp-pagesize-select {
    background: #f8f8f8;
}

/* ==========================================================================
   No Results / Empty State
   ========================================================================== */
.imrp-no-results {
    padding: 3em 2em;
    text-align: center;
    background: var(--feedback-card);
    border-radius: 3px;
}

body.lightmode .imrp-no-results {
    border: 1px solid var(--feedback-border);
}

.imrp-no-results-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.imrp-no-results-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5em;
}

.imrp-no-results-message {
    color: var(--feedback-text-muted);
    font-size: 0.95em;
}

body.lightmode .imrp-no-results-title {
    color: #232323;
}

/* ==========================================================================
   Issue List Item - Simplified Design
   ========================================================================== */
.imrp-feedback-issue-item {
    cursor: pointer;
    display: flex;
    gap: 1em;
    padding: 1em 1.2em;
    border-bottom: 1px solid var(--feedback-border);
    transition: background 0.15s;
}

.imrp-feedback-issue-item:hover {
    background: #2a2a2a;
}

body.lightmode .imrp-feedback-issue-item:hover {
    background: #f8f8f8;
}

.imrp-feedback-issue-item:last-child {
    border-bottom: none;
}

.imrp-feedback-issue-content {
    flex: 1;
    min-width: 0;
}

.imrp-feedback-issue-header {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 6px;
}

.imrp-feedback-type-indicator {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.imrp-feedback-type-bug {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
}

.imrp-feedback-type-suggestion {
    color: #28a745;
    background: rgba(40, 167, 69, 0.15);
}

.imrp-feedback-status-badge {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
    text-align: center;
    width: 90px;
}

.imrp-feedback-status-new { background: rgba(0, 123, 255, 0.15); color: #5ba3d9; }
.imrp-feedback-status-confirmed { background: rgba(0, 200, 83, 0.15); color: #4caf50; }
.imrp-feedback-status-in_progress { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.imrp-feedback-status-needs_testing { background: rgba(156, 39, 176, 0.15); color: #ba68c8; }
.imrp-feedback-status-resolved { background: rgba(76, 175, 80, 0.15); color: #66bb6a; }
.imrp-feedback-status-needs_info { background: rgba(255, 87, 34, 0.15); color: #ff7043; }
.imrp-feedback-status-closed { background: rgba(136, 136, 136, 0.15); color: #888; }
.imrp-feedback-status-wont_fix { background: rgba(136, 136, 136, 0.15); color: #888; }
.imrp-feedback-status-not_a_bug { background: rgba(136, 136, 136, 0.15); color: #888; }

.imrp-feedback-issue-title {
    font-size: 1em;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imrp-feedback-issue-title:hover {
    color: #fff;
}

body.lightmode .imrp-feedback-issue-title {
    color: #232323;
}

body.lightmode .imrp-feedback-issue-title:hover {
    color: #064780;
}

.imrp-feedback-issue-meta {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    font-size: 0.8em;
    color: #666;
}

.imrp-feedback-separator {
    color: #444;
}

body.lightmode .imrp-feedback-separator {
    color: #ccc;
}

/* Status - subtle inline text */
.imrp-feedback-status {
    font-weight: 500;
    text-transform: capitalize;
}

.imrp-feedback-status-new { color: #007bff; }
.imrp-feedback-status-in_progress { color: #ffc107; }
.imrp-feedback-status-resolved { color: #28a745; }
.imrp-feedback-status-closed { color: #6c757d; }
.imrp-feedback-status-wont_fix { color: #6c757d; }

/* Priority - only shown if not normal, subtle text */
.imrp-feedback-priority {
    font-weight: 500;
    text-transform: capitalize;
}

.imrp-feedback-priority-critical { color: #dc3545; }
.imrp-feedback-priority-high { color: #fd7e14; }
.imrp-feedback-priority-low { color: #6c757d; }

/* Visibility indicator - subtle */
.imrp-feedback-visibility {
    font-weight: 500;
    color: #7c4dff;
}

.imrp-feedback-issue-category {
    color: #888;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 700px) {
    .imrp-card {
        padding: 1em;
    }

    .imrp-filters-container {
        padding: 1em;
    }

    .imrp-filters-grid {
        grid-template-columns: 1fr;
    }

    .imrp-pagination-wrapper {
        flex-direction: column;
        gap: 1em;
    }

    .imrp-pagination-pages {
        justify-content: center;
        flex-wrap: wrap;
    }

    .imrp-pagesize-group {
        justify-content: center;
    }

    .imrp-vote-btn {
        flex-direction: row;
        gap: 0.3em;
        min-width: auto;
        padding: 0.4em 0.8em;
    }

    .imrp-vote-controls {
        flex-direction: row;
        gap: 8px;
    }
}

/* ==========================================================================
   Vote Controls (Up/Down Arrows)
   ========================================================================== */
.imrp-vote-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 50px;
}

.imrp-vote-arrow {
    background: none;
    border: 1px solid transparent;
    color: #666;
    cursor: pointer;
    font-size: 1em;
    padding: 4px 10px;
    border-radius: 3px;
    transition: all 0.15s;
    line-height: 1;
}

.imrp-vote-arrow:hover {
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
}

.imrp-vote-up.active {
    color: #28a745;
}

.imrp-vote-down.active {
    color: #dc3545;
}

body.lightmode .imrp-vote-arrow:hover {
    background: rgba(0, 0, 0, 0.05);
}

.imrp-vote-score {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

body.lightmode .imrp-vote-score {
    color: #232323;
}

.imrp-vote-negative {
    color: #dc3545 !important;
}

.imrp-vote-hint {
    font-size: 0.7em;
    color: #888;
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
}

body.lightmode .imrp-vote-hint {
    color: #666;
}

/* ==========================================================================
   Comment Vote Badges
   ========================================================================== */
.imrp-comment-vote-badge {
    font-size: 0.65em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.imrp-comment-vote-up {
    color: #28a745;
    background: rgba(40, 167, 69, 0.15);
}

.imrp-comment-vote-down {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
}

/* ==========================================================================
   Comment Warning Banner
   ========================================================================== */
.imrp-comment-warning {
    padding: 10px 14px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.05);
    border-radius: 3px;
    color: #ffc107;
    font-size: 0.85em;
    margin-bottom: 10px;
}

body.lightmode .imrp-comment-warning {
    background: rgba(255, 193, 7, 0.08);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.4);
}

/* ==========================================================================
   Vote Indicator on Comment Form
   ========================================================================== */
.imrp-vote-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.imrp-vote-indicator-up {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.imrp-vote-indicator-down {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.imrp-vote-indicator a {
    color: inherit;
    opacity: 0.7;
    font-size: 0.9em;
}

.imrp-vote-indicator a:hover {
    opacity: 1;
}

/* ==========================================================================
   Comment Delete / Deleted States
   ========================================================================== */
.imrp-comment-delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 4px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s;
}

.imrp-comment:hover .imrp-comment-delete-btn {
    opacity: 0.6;
}

.imrp-comment-delete-btn:hover {
    opacity: 1 !important;
}

.imrp-comment-delete-permanent-btn {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.3;
}

.imrp-comment-delete-permanent-btn:hover {
    background: #b02a37;
    border-color: #b02a37;
}

.imrp-comment-deleted {
    opacity: 0.2;
}

.imrp-comment-deleted-banner {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-bottom: 6px;
}

.imrp-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Shared markdown output styles (imrp-md-*)
   Emitted by classes/WikiMarkdown.php — applied wherever markdown is rendered
   (wiki articles, wiki editor preview, feedback issues and comments).
   ========================================================================== */

/* Lists */
ul.imrp-md-list {
    list-style: disc;
    margin: 0.5em 0 1em 1.5em;
    padding: 0;
}

ol.imrp-md-list {
    list-style: decimal;
    margin: 0.5em 0 1em 1.5em;
    padding: 0;
}

.imrp-md-list li {
    margin: 0.3em 0;
}

/* Headings */
.imrp-md-heading {
    margin: 1.5em 0 0.75em 0;
    font-weight: 600;
    color: #fff;
}

.imrp-md-heading:first-child {
    margin-top: 0;
}

h2.imrp-md-heading { font-size: 1.4em; }
h3.imrp-md-heading { font-size: 1.2em; }
h4.imrp-md-heading { font-size: 1.1em; }

/* Links */
.imrp-md-link {
    color: var(--link-color);
    text-decoration: none;
}

.imrp-md-link:hover {
    color: var(--link-hover-color);
}

.imrp-md-link-missing {
    color: #c44 !important;
    border-bottom: 1px dashed #c44;
}

.imrp-md-link-missing:hover {
    color: #f55 !important;
}

.imrp-md-external-link {
    color: var(--link-color);
    text-decoration: none;
}

.imrp-md-external-link:hover {
    color: var(--link-hover-color);
}

.imrp-md-external-link::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.6;
}

/* Code */
.imrp-md-inline-code {
    background: #1a1a1a;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 0.9em;
    color: #f0f0f0;
}

.imrp-md-codeblock {
    background: #1a1a1a;
    padding: 1em;
    border-radius: 3px;
    overflow-x: auto;
    margin: 1em 0;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.imrp-md-codeblock code {
    color: #f0f0f0;
}

/* Blockquotes */
.imrp-md-blockquote {
    border-left: 3px solid #064780;
    margin: 1em 0;
    padding: 0.5em 1em;
    background: rgba(6, 71, 128, 0.1);
    color: #ccc;
}

/* Horizontal rule */
.imrp-md-hr {
    border: none;
    border-top: 1px solid #333;
    margin: 1.5em 0;
}

/* Tables */
.imrp-md-table-wrapper {
    overflow-x: auto;
    margin: 1em 0;
}

.imrp-md-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.imrp-md-table-th {
    background: #1a1a1a;
    padding: 0.6em 1em;
    border: 1px solid #333;
    border-bottom: 2px solid #064780;
    font-weight: 600;
    color: #fff;
}

.imrp-md-table-td {
    padding: 0.5em 1em;
    border: 1px solid #333;
    color: #e0e0e0;
}

.imrp-md-table-row:nth-child(even) .imrp-md-table-td {
    background: rgba(255, 255, 255, 0.02);
}

.md-table-span-row .md-table-span-cell {
    padding: 0.75em 1em;
    border-top: 0;
    color: #d8e8f7;
    background: rgba(6, 71, 128, 0.14);
    line-height: 1.5;
}

.command-description .md-table-span-cell,
.md-table-span-cell.command-description {
    padding: 0.85em 1.1em;
    color: #cfe3f5;
    background: rgba(47, 129, 208, 0.13);
    border-left: 3px solid #2f81d0;
}

/* Banners */
.imrp-md-banner {
    border-radius: 3px;
    padding: 0.8em 1em;
    margin: 1em 0;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.5;
}

.imrp-md-banner-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.imrp-md-banner-warning {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
}

.imrp-md-banner-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.imrp-md-banner-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

/* Colored text — color is applied inline */
.imrp-md-color {
}

/* Images */
.imrp-md-image {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin: 1em 0;
}

/* Video */
.imrp-md-video {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin: 1em 0;
}

/* Light mode overrides */
body.lightmode .imrp-md-heading {
    color: #000;
}

body.lightmode .imrp-md-inline-code {
    background: #f0f0f0;
    color: #333;
}

body.lightmode .imrp-md-codeblock {
    background: #f5f5f5;
}

body.lightmode .imrp-md-codeblock code {
    color: #333;
}

body.lightmode .imrp-md-blockquote {
    background: rgba(6, 71, 128, 0.05);
    color: #444;
}

body.lightmode .imrp-md-hr {
    border-top-color: #ddd;
}

body.lightmode .imrp-md-link-missing {
    color: #a33 !important;
    border-bottom-color: #a33;
}

body.lightmode .imrp-md-table-th {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #232323;
}

body.lightmode .imrp-md-table-td {
    border-color: #e0e0e0;
    color: #232323;
}

body.lightmode .imrp-md-table-row:nth-child(even) .imrp-md-table-td {
    background: rgba(0, 0, 0, 0.02);
}

body.lightmode .md-table-span-row .md-table-span-cell {
    color: #1f3f5e;
    background: rgba(47, 129, 208, 0.08);
}

body.lightmode .command-description .md-table-span-cell,
body.lightmode .md-table-span-cell.command-description {
    color: #1d4f7a;
    background: rgba(47, 129, 208, 0.1);
    border-left-color: #2f81d0;
}

body.lightmode .imrp-md-banner-success {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.3);
    color: #1e8449;
}

body.lightmode .imrp-md-banner-warning {
    background: rgba(241, 196, 15, 0.08);
    border-color: rgba(241, 196, 15, 0.3);
    color: #b7950b;
}

body.lightmode .imrp-md-banner-error {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

body.lightmode .imrp-md-banner-info {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.3);
    color: #2471a3;
}

@media (max-width: 700px) {
    .imrp-md-table-th,
    .imrp-md-table-td {
        padding: 0.4em 0.6em;
        font-size: 0.9em;
    }
}

/* ==========================================================================
   Edit UI: inline editor + "edited" indicator + version history modal
   ========================================================================== */

.imrp-edited-indicator {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.55;
    font-size: 0.85em;
    font-style: italic;
    cursor: pointer;
    padding: 0;
    text-decoration: underline dotted;
}

.imrp-edited-indicator:hover {
    opacity: 1;
}

.imrp-comment-edit-btn,
.imrp-issue-edit-btn {
    background: none;
    border: 1px solid rgba(127, 127, 127, 0.35);
    color: inherit;
    cursor: pointer;
    font-size: 0.85em;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.3;
    opacity: 0.7;
}

.imrp-comment-edit-btn:hover,
.imrp-issue-edit-btn:hover {
    opacity: 1;
    border-color: rgba(127, 127, 127, 0.7);
}

.imrp-comment-edit-form {
    margin-top: 8px;
}

.imrp-comment-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    font-family: inherit;
    font-size: 0.95em;
    padding: 8px;
    border: 1px solid rgba(127, 127, 127, 0.35);
    border-radius: 4px;
    background: inherit;
    color: inherit;
    resize: vertical;
}

.imrp-comment-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
}

.imrp-issue-edit-form {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 4px;
}

.imrp-issue-edit-label {
    display: block;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 0.9em;
    opacity: 0.8;
}

.imrp-issue-edit-input,
.imrp-issue-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95em;
    padding: 8px;
    border: 1px solid rgba(127, 127, 127, 0.35);
    border-radius: 4px;
    background: inherit;
    color: inherit;
}

.imrp-issue-edit-textarea {
    min-height: 160px;
    resize: vertical;
}

.imrp-issue-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Version history modal */
.imrp-history-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.imrp-history-modal-card {
    background: #1e1e1e;
    color: #ddd;
    border-radius: 6px;
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.lightmode .imrp-history-modal-card {
    background: #fff;
    color: #222;
}

.imrp-history-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.imrp-history-modal-title {
    margin: 0;
    font-size: 1.05em;
}

.imrp-history-modal-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
}

.imrp-history-modal-close:hover {
    opacity: 1;
}

.imrp-history-modal-body {
    overflow-y: auto;
    padding: 14px 18px;
    flex: 1 1 auto;
}

.imrp-history-modal-loading,
.imrp-history-modal-empty,
.imrp-history-modal-error {
    text-align: center;
    padding: 24px 0;
    opacity: 0.7;
}

.imrp-history-version {
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.imrp-history-version-current {
    border-color: rgba(52, 152, 219, 0.45);
    background: rgba(52, 152, 219, 0.05);
}

.imrp-history-version-header {
    font-size: 0.88em;
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.imrp-history-current-badge {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.imrp-history-version-title {
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 6px;
}

.imrp-history-version-content {
    font-size: 0.95em;
    line-height: 1.5;
    word-wrap: break-word;
}

.imrp-history-version-content img {
    max-width: 100%;
    height: auto;
}

/* Mark as Implemented (developer) */
.imrp-mark-implemented-row {
    margin-bottom: 12px;
}

.imrp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.imrp-modal {
    background: #1e1e1e;
    color: #ddd;
    border-radius: 6px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.lightmode .imrp-modal {
    background: #fff;
    color: #222;
}

.imrp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.imrp-modal-header h3 {
    margin: 0;
    font-size: 1.05em;
}

.imrp-modal-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
}

.imrp-modal-close:hover {
    opacity: 1;
}

.imrp-modal-body {
    overflow-y: auto;
    padding: 14px 18px;
    flex: 1 1 auto;
}

.imrp-modal-body label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    margin: 10px 0 4px;
}

.imrp-modal-body label:first-child {
    margin-top: 0;
}

.imrp-modal-textarea,
.imrp-modal-input,
.imrp-modal-select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(127, 127, 127, 0.35);
    background: rgba(127, 127, 127, 0.08);
    color: inherit;
    font: inherit;
}

.imrp-modal-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.imrp-modal-hint {
    font-size: 0.82em;
    opacity: 0.7;
    margin-top: 4px;
}

.imrp-modal-hint code {
    background: rgba(127, 127, 127, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.95em;
}

.imrp-modal-warning {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(255, 152, 0, 0.12);
    border-left: 3px solid #ff9800;
    border-radius: 3px;
    font-size: 0.85em;
    color: #ffb74d;
}

body.lightmode .imrp-modal-warning {
    color: #b26a00;
}

.imrp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid rgba(127, 127, 127, 0.25);
}



/* ==========================================================================
   Feedback System - Shared Styles
   Include this at the TOP of all feedback templates
   ========================================================================== */

/* CSS Variables */
:root {
    --feedback-card: #232323;
    --feedback-border: #333;
    --feedback-text: #e0e0e0;
    --feedback-text-muted: #888;
    --feedback-primary: #064780;
    --feedback-danger: #dc3545;
    --feedback-success: #28a745;
    --feedback-warning: #ffc107;
}

body.lightmode {
    --feedback-card: #fff;
    --feedback-border: #e0e0e0;
    --feedback-text: #232323;
    --feedback-text-muted: #666;
}

/* ==========================================================================
   Card Component
   ========================================================================== */
.imrp-card {
    background: var(--feedback-card);
    border-radius: 3px;
    padding: 1.2em 1.5em;
    margin-bottom: 1em;
}

body.lightmode .imrp-card {
    border: 1px solid var(--feedback-border);
}

/* ==========================================================================
   Badge Components
   ========================================================================== */
.imrp-badge {
    padding: 0.15em 0.5em;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

/* Type badges */
.imrp-badge-suggestion { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.imrp-badge-bug { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

/* Status badges */
.imrp-badge-new { background: rgba(0, 123, 255, 0.2); color: #007bff; }
.imrp-badge-in_progress { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.imrp-badge-resolved { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.imrp-badge-closed { background: rgba(108, 117, 125, 0.2); color: #6c757d; }
.imrp-badge-wont_fix { background: rgba(108, 117, 125, 0.2); color: #6c757d; }
.imrp-badge-confirmed { background: rgba(23, 162, 184, 0.2); color: #17a2b8; }
.imrp-badge-not_a_bug { background: rgba(108, 117, 125, 0.2); color: #6c757d; }
.imrp-badge-needs_testing { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.imrp-badge-needs_info { background: rgba(255, 87, 34, 0.2); color: #ff7043; }

/* Priority badges */
.imrp-badge-critical { background: rgba(220, 53, 69, 0.3); color: #dc3545; }
.imrp-badge-high { background: rgba(255, 193, 7, 0.3); color: #ffc107; }
.imrp-badge-normal { background: rgba(108, 117, 125, 0.2); color: #888; }
.imrp-badge-low { background: rgba(108, 117, 125, 0.2); color: #888; }

/* Role badges */
.imrp-badge-developer { background: rgba(111, 66, 193, 0.2); color: #7c4dff; }
.imrp-badge-admin { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
.imrp-badge-helper { background: rgba(0, 123, 255, 0.2); color: #007bff; }

/* ==========================================================================
   Vote Button Component
   ========================================================================== */
.imrp-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5em;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.imrp-vote-btn:hover {
    border-color: var(--feedback-primary);
    background: rgba(6, 71, 128, 0.1);
}

.imrp-vote-btn.voted {
    background: rgba(6, 71, 128, 0.2);
    border-color: var(--feedback-primary);
}

.imrp-vote-count {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
}

.imrp-vote-label {
    font-size: 0.7em;
    color: #666;
    text-transform: uppercase;
}

body.lightmode .imrp-vote-btn {
    background: #f8f8f8;
}

body.lightmode .imrp-vote-count {
    color: #232323;
}

/* ==========================================================================
   Button Components
   ========================================================================== */
.imrp-btn {
    padding: 0.6em 1.2em;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.imrp-btn-primary {
    background: var(--feedback-primary);
    color: #fff;
}

.imrp-btn-primary:hover {
    background: #0a5ea8;
    color: #fff;
}

.imrp-btn-secondary {
    background: #333;
    color: var(--feedback-text);
}

.imrp-btn-secondary:hover {
    background: #444;
    color: #fff;
}

body.lightmode .imrp-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

body.lightmode .imrp-btn-secondary:hover {
    background: #d0d0d0;
}

/* ==========================================================================
   Filter Components
   ========================================================================== */
.imrp-filters-container {
    background: var(--feedback-card);
    border-radius: 3px;
    padding: 1.2em 1.5em;
    margin-bottom: 1.2em;
}

body.lightmode .imrp-filters-container {
    border: 1px solid var(--feedback-border);
}

.imrp-filters-header {
    margin-bottom: 1em;
}

.imrp-filters-title {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--feedback-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.imrp-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    margin-bottom: 1em;
}

.imrp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.imrp-filter-label {
    font-size: 0.85em;
    color: var(--feedback-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.imrp-filter-select,
.imrp-filter-input {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    color: var(--feedback-text);
    font-size: 0.95em;
    transition: all 0.15s;
}

.imrp-filter-select:focus,
.imrp-filter-input:focus {
    outline: none;
    border-color: var(--feedback-primary);
    box-shadow: 0 0 0 2px rgba(6, 71, 128, 0.1);
}

body.lightmode .imrp-filter-select,
body.lightmode .imrp-filter-input {
    background: #f8f8f8;
}

/* ==========================================================================
   Pagination Components
   ========================================================================== */
.imrp-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background: var(--feedback-card);
    border-radius: 3px;
    gap: 1em;
}

body.lightmode .imrp-pagination-wrapper {
    border: 1px solid var(--feedback-border);
}

.imrp-pagination-pages {
    display: flex;
    gap: 0.3em;
}

.imrp-page-link {
    padding: 0.4em 0.8em;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    color: var(--feedback-text);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.imrp-page-link:hover {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.imrp-page-link.active {
    background: var(--feedback-primary);
    border-color: var(--feedback-primary);
    color: #fff;
}

.imrp-page-ellipsis {
    padding: 0.4em 0.5em;
    color: #666;
}

.imrp-pagesize-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
    color: var(--feedback-text-muted);
}

.imrp-pagesize-select {
    padding: 0.4em 1.8em 0.4em 0.6em;
    background: #1a1a1a;
    border: 1px solid var(--feedback-border);
    border-radius: 3px;
    color: var(--feedback-text);
    font-size: 0.9em;
}

body.lightmode .imrp-page-link {
    background: #f8f8f8;
}

body.lightmode .imrp-page-link:hover {
    background: #f0f0f0;
}

body.lightmode .imrp-pagesize-select {
    background: #f8f8f8;
}

/* ==========================================================================
   No Results / Empty State
   ========================================================================== */
.imrp-no-results {
    padding: 3em 2em;
    text-align: center;
    background: var(--feedback-card);
    border-radius: 3px;
}

body.lightmode .imrp-no-results {
    border: 1px solid var(--feedback-border);
}

.imrp-no-results-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.imrp-no-results-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5em;
}

.imrp-no-results-message {
    color: var(--feedback-text-muted);
    font-size: 0.95em;
}

body.lightmode .imrp-no-results-title {
    color: #232323;
}

/* ==========================================================================
   Issue List Item - Clickable Row
   ========================================================================== */
.imrp-feedback-issue-item {
    cursor: pointer;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 700px) {
    .imrp-card {
        padding: 1em;
    }

    .imrp-filters-container {
        padding: 1em;
    }

    .imrp-filters-grid {
        grid-template-columns: 1fr;
    }

    .imrp-pagination-wrapper {
        flex-direction: column;
        gap: 1em;
    }

    .imrp-pagination-pages {
        justify-content: center;
        flex-wrap: wrap;
    }

    .imrp-pagesize-group {
        justify-content: center;
    }

    .imrp-vote-btn {
        flex-direction: row;
        gap: 0.3em;
        min-width: auto;
        padding: 0.4em 0.8em;
    }
}

/* ==========================================================================
   Tooltip Components
   ========================================================================== */
.imrp-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.imrp-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.8em;
    font-weight: 400;
    padding: 5px 9px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 200;
    pointer-events: none;
    border: 1px solid var(--feedback-border);
}

body.lightmode .imrp-tooltip {
    background: #333;
    color: #fff;
    border-color: #444;
}

.imrp-tooltip-wrap:hover .imrp-tooltip {
    display: block;
}

/* ==========================================================================
   Vote Controls (Up/Down Arrows)
   ========================================================================== */
.imrp-vote-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 50px;
}

.imrp-vote-arrow {
    background: none;
    border: 1px solid transparent;
    color: #666;
    cursor: pointer;
    font-size: 1em;
    padding: 4px 10px;
    border-radius: 3px;
    transition: all 0.15s;
    line-height: 1;
}

.imrp-vote-arrow:hover {
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
}

.imrp-vote-up.active {
    color: #28a745;
}

.imrp-vote-down.active {
    color: #dc3545;
}

body.lightmode .imrp-vote-arrow:hover {
    background: rgba(0, 0, 0, 0.05);
}

.imrp-vote-score {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

body.lightmode .imrp-vote-score {
    color: #232323;
}

.imrp-vote-negative {
    color: #dc3545 !important;
}

/* ==========================================================================
   Comment Vote Badges
   ========================================================================== */
.imrp-comment-vote-badge {
    font-size: 0.65em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.imrp-comment-vote-up {
    color: #28a745;
    background: rgba(40, 167, 69, 0.15);
}

.imrp-comment-vote-down {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
}

/* ==========================================================================
   Comment Warning Banner
   ========================================================================== */
.imrp-comment-warning {
    padding: 10px 14px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.05);
    border-radius: 3px;
    color: #ffc107;
    font-size: 0.85em;
    margin-bottom: 10px;
}

body.lightmode .imrp-comment-warning {
    background: rgba(255, 193, 7, 0.08);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.4);
}

/* ==========================================================================
   Vote Indicator on Comment Form
   ========================================================================== */
.imrp-vote-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.imrp-vote-indicator-up {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.imrp-vote-indicator-down {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.imrp-vote-indicator a {
    color: inherit;
    opacity: 0.7;
    font-size: 0.9em;
}

.imrp-vote-indicator a:hover {
    opacity: 1;
}

/* ==========================================================================
   Comment Delete / Deleted States
   ========================================================================== */
.imrp-comment-delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 4px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s;
}

.imrp-comment:hover .imrp-comment-delete-btn {
    opacity: 0.6;
}

.imrp-comment-delete-btn:hover {
    opacity: 1 !important;
}

.imrp-comment-deleted {
    opacity: 0.5;
}

.imrp-comment-deleted-banner {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-bottom: 6px;
}

.imrp-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.imrp-follow-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.imrp-follower-count {
    color: var(--feedback-text-muted);
    font-size: 0.85em;
}
.imrp-mention-dropdown {
    font-size: 0.9em;
    background: var(--feedback-card);
    border: 1px solid var(--feedback-border);
    color: var(--feedback-text);
}
.imrp-mention-dropdown .imrp-mention-item:hover,
.imrp-mention-dropdown .imrp-mention-item-active {
    background: #333;
}
body.lightmode .imrp-mention-dropdown {
    background: #fff;
    border-color: #ddd;
    color: #222;
}
body.lightmode .imrp-mention-dropdown .imrp-mention-item:hover,
body.lightmode .imrp-mention-dropdown .imrp-mention-item-active {
    background: #f0f0f0;
}



    .imrp-feedback-page-title {
        font-size: 1.2em;
        font-weight: 700;
        color: #fff;
        margin-bottom: 12px;
        letter-spacing: 0.01em;
    }

    .imrp-admin-issues-list {
        background: #232323;
        border-radius: 3px;
    }

    .imrp-admin-issue-row {
        display: flex;
        gap: 1em;
        padding: 0.8em 1em;
        border-bottom: 1px solid #333;
        transition: background 0.15s;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }

    .imrp-admin-issue-row:hover {
        background: #2a2a2a;
    }

    .imrp-admin-issue-row:last-child {
        border-bottom: none;
    }

    .imrp-admin-issue-info {
        flex: 1;
        min-width: 0;
    }

    .imrp-admin-issue-title {
        font-size: 1em;
        font-weight: 600;
        color: #e0e0e0;
        margin-bottom: 0.3em;
        line-height: 1.3;
    }

    .imrp-admin-issue-row:hover .imrp-admin-issue-title {
        color: #fff;
    }

    .imrp-admin-issue-meta {
        display: flex;
        gap: 0.5em;
        flex-wrap: wrap;
        font-size: 0.85em;
        color: #666;
    }

    .imrp-admin-issue-votes {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
    }

    .imrp-feedback-vote-count {
        font-size: 1.1em;
        font-weight: 600;
        color: #fff;
    }

    .imrp-feedback-vote-label {
        font-size: 0.7em;
        color: #666;
        text-transform: uppercase;
    }

    .imrp-feedback-badge {
        padding: 0.15em 0.5em;
        border-radius: 3px;
        font-size: 0.75em;
        font-weight: 500;
        text-transform: uppercase;
    }

    .imrp-feedback-badge-suggestion { background: rgba(40, 167, 69, 0.2); color: #28a745; }
    .imrp-feedback-badge-bug { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
    .imrp-feedback-badge-needs_testing { background: rgba(255, 152, 0, 0.2); color: #ff9800; }

    .imrp-feedback-issues-container {
        background: #232323;
        border-radius: 3px;
    }

    .imrp-feedback-no-results {
        padding: 3em 2em;
        text-align: center;
    }

    .imrp-feedback-no-results-icon { font-size: 2.5em; margin-bottom: 0.5em; }
    .imrp-feedback-no-results-title { font-size: 1.1em; font-weight: 600; color: #fff; margin-bottom: 0.5em; }
    .imrp-feedback-no-results-message { color: #888; font-size: 0.95em; }

    /* Light Mode */
    body.lightmode .imrp-feedback-page-title { color: #232323; }
    body.lightmode .imrp-admin-issues-list,
    body.lightmode .imrp-feedback-issues-container { background: #fff; border: 1px solid #e0e0e0; }
    body.lightmode .imrp-admin-issue-row { border-bottom-color: #e0e0e0; }
    body.lightmode .imrp-admin-issue-row:hover { background: #f8f8f8; }
    body.lightmode .imrp-admin-issue-title { color: #232323; }
    body.lightmode .imrp-admin-issue-row:hover .imrp-admin-issue-title { color: #064780; }
    body.lightmode .imrp-feedback-vote-count { color: #232323; }
    body.lightmode .imrp-feedback-no-results-title { color: #232323; }

    @media (max-width: 700px) {
        .imrp-admin-issue-row {
            flex-wrap: wrap;
        }
        .imrp-admin-issue-info {
            flex: 1 1 100%;
            order: 2;
        }
    }
