/* Error Dashboard Styles */
body {
    font-family: 'General Sans', sans-serif;
    background: #0a0a0f;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
}

.dash-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
}

.dash-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
}

.dash-back {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.dash-back:hover {
    text-decoration: underline;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-input {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #e2e8f0;
    font-size: 0.875rem;
}

/* Status Radio Buttons */
.filter-radios {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.filter-radio {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    background: #111827;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid #1e293b;
    user-select: none;
}

.filter-radio:last-child {
    border-right: none;
}

.filter-radio input[type="radio"] {
    display: none;
}

.filter-radio:hover {
    background: #1e293b;
    color: #e2e8f0;
}

.filter-radio.active {
    background: #3b82f6;
    color: #fff;
}

.filter-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

.filter-btn:hover {
    background: #2563eb;
}

/* Errors Table */
.errors-table {
    width: 100%;
    border-collapse: collapse;
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
}

.errors-table th {
    background: #1e293b;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.errors-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1e293b;
    font-size: 0.875rem;
    vertical-align: middle;
}

.errors-table tr:hover {
    background: #1e293b;
}

.errors-table a {
    color: #3b82f6;
    text-decoration: none;
}

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

.fp-id {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-open {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-resolved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-regression {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.badge-in_progress {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.badge-acknowledged {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-wont_fix {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.det-grid-mt {
    margin-top: 1rem;
}

.det-fix-desc-wrapper {
    margin-top: 0.75rem;
}

.det-link {
    color: #3b82f6;
    text-decoration: none;
}

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

/* Detail Page */
.det-header {
    margin-bottom: 2rem;
}

.det-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.det-fp {
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
    word-break: break-all;
}

.det-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.det-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
}

.det-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.det-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.875rem;
}

.det-label {
    color: #64748b;
}

.det-val {
    color: #f8fafc;
    font-weight: 500;
}

.friendly-summary {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.message-box-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.message-box {
    background: #0a0a0f;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #94a3b8;
    word-break: break-word;
}

/* Fix Info */
.fix-info {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fix-info h3 {
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Resolve Form */
.resolve-form {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.resolve-form h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.form-input {
    width: 100%;
    background: #0a0a0f;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #3b82f6;
    outline: none;
}

.resolve-btn {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.resolve-btn:hover {
    background: #16a34a;
}

.reports-table .report-id {
    font-family: monospace;
    font-size: 0.75rem;
}

/* Reports Table */
.reports-section {
    margin-top: 2rem;
}

.reports-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lifecycle Stage Dots */
.stage-dots {
    font-family: monospace;
    letter-spacing: 1px;
    color: #6366f1;
    cursor: help;
    font-size: 0.875rem;
}

/* Code blocks in error context */
.code-block {
    background: #1e1e2e;
    border: 1px solid #2a2a3c;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #cdd6f4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0.5rem 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
    .det-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
    }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0 0.5rem;
}

.page-link {
    color: #60a5fa;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    transition: all 0.2s;
}

.page-link:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
}

.page-info {
    color: #94a3b8;
    font-size: 0.875rem;
}
