/* FidesIA — Moderation Page */

body { background: var(--bg-primary); color: var(--text-primary); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* Header */
.mod-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
}
.mod-back {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.mod-back:hover { color: var(--accent-hover); }
.mod-title {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}
.mod-badge {
    background: #c0392b;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 0 6px;
}
.mod-admin-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-left: auto;
}
.mod-admin-link:hover { text-decoration: underline; }

/* Filters */
.mod-filters {
    display: flex;
    gap: 4px;
}
.mod-filter {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.mod-filter:hover { border-color: var(--accent); color: var(--accent); }
.mod-filter.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Main */
.mod-main {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.mod-loading, .mod-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Card */
.mod-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: opacity 0.3s;
}
.mod-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.mod-card-category {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(139, 26, 43, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius);
}
.mod-card-date {
    font-size: 12px;
    color: var(--text-muted);
}
.mod-card-reporter {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.mod-card-exchange {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid var(--border-light);
}
.mod-card-question {
    margin-bottom: 8px;
    color: var(--text-primary);
}
.mod-card-response {
    color: var(--text-secondary);
}
.mod-card-response p { margin: 0 0 6px 0; }
.mod-card-response p:last-child { margin-bottom: 0; }
.mod-card-response ul, .mod-card-response ol { margin: 4px 0; padding-left: 20px; }
.mod-card-response h1, .mod-card-response h2, .mod-card-response h3,
.mod-card-response h4, .mod-card-response h5, .mod-card-response h6 {
    font-size: inherit;
    font-weight: 700;
    margin: 8px 0 4px 0;
}

/* Expand/collapse */
.mod-exchange-collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}
.mod-exchange-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}
.mod-exchange-expanded {
    max-height: none;
    overflow: visible;
}
.mod-exchange-expanded .mod-card-response {
    white-space: pre-wrap;
}
.mod-expand-btn {
    display: block;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    margin-bottom: 14px;
    font-family: inherit;
    transition: all var(--transition);
}
.mod-expand-btn:hover {
    background: rgba(139, 26, 43, 0.06);
    border-color: var(--accent);
}

/* Actions */
.mod-card-actions {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}
.mod-comment-row {
    margin-bottom: 10px;
}
.mod-comment-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--transition);
}
.mod-comment-input:focus { border-color: var(--accent); }
.mod-action-btns {
    display: flex;
    gap: 8px;
}
.mod-btn {
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: white;
    transition: opacity var(--transition);
}
.mod-btn:hover { opacity: 0.85; }
.mod-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mod-btn-confirm { background: #c0392b; }
.mod-btn-dismiss { background: var(--text-muted); }

/* Resolved */
.mod-card-resolved {
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    line-height: 1.6;
}
.mod-resolved-status {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 12px;
}
.mod-status-confirmed {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}
.mod-status-dismissed {
    background: rgba(138, 122, 110, 0.15);
    color: var(--text-muted);
}
.mod-resolved-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .mod-header { flex-wrap: wrap; padding: 12px 16px; gap: 8px; position: static; }
    .mod-title { font-size: 16px; }
    .mod-main { padding: 16px; }
    .mod-action-btns { flex-direction: column; }
    .mod-btn { width: 100%; text-align: center; }
    .mod-admin-link { margin-left: 0; }
}
