/**
 * QA Test Findings - Styles
 */

.qa-findings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.qa-findings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.qa-findings-header h1 {
    font-size: 2rem;
    margin: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* Findings Stats */
.qa-findings-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.qa-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.qa-stat-card.warning {
    border-color: #fbbf24;
}

.qa-stat-card.success {
    border-color: #22c55e;
}

.qa-stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.qa-stat-content {
    flex: 1;
}

.qa-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.qa-stat-value {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
}

/* Filters */
.qa-findings-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f9fafb;
}

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

/* Findings Table */
.qa-findings-table-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.qa-findings-table {
    width: 100%;
    border-collapse: collapse;
}

.qa-findings-table thead {
    background: #f9fafb;
}

.qa-findings-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.qa-findings-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.finding-row:hover {
    background: #f9fafb;
}

.finding-row.finding-open {
    border-left: 3px solid #fbbf24;
}

.finding-row.finding-fixed {
    border-left: 3px solid #22c55e;
    opacity: 0.7;
}

.no-findings {
    text-align: center;
    color: #6b7280;
    padding: 2rem !important;
}

.finding-status {
    width: 120px;
}

.status-selector {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.875rem;
}

.finding-notes {
    max-width: 500px;
}

.finding-note-display {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.finding-note-input {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.edit-note-btn,
.save-note-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-note-btn:hover,
.save-note-btn:hover {
    background: #f9fafb;
}

.save-note-btn {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

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

.finding-occurrences {
    text-align: center;
}

.occurrence-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #fef3c7;
    color: #d97706;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.finding-first-seen,
.finding-last-seen {
    font-size: 0.875rem;
    color: #6b7280;
}

.finding-actions {
    text-align: right;
}

.mark-fixed-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.mark-fixed-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .qa-findings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .qa-findings-table {
        font-size: 0.875rem;
    }

    .qa-findings-table th,
    .qa-findings-table td {
        padding: 0.5rem;
    }
}
