/**
 * Query Bin Styles
 * View-only display of failed food searches
 */

.query-bin-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: #f9fafb;
}

.query-bin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.query-bin-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.query-bin-stats {
    display: flex;
    gap: 24px;
}

.query-bin-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.query-bin-stats .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.query-bin-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.query-bin-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.query-bin-list-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.query-bin-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.query-bin-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.query-bin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.query-info {
    flex: 1;
}

.query-name {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.data-source {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.confidence-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.confidence-badge.no-results {
    background: #fee2e2;
    color: #dc2626;
}

.confidence-badge.low {
    background: #fef3c7;
    color: #d97706;
}

.confidence-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.query-bin-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    align-items: start;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.info-value {
    font-size: 0.875rem;
    color: #111827;
}

.info-value.reasoning {
    font-style: italic;
    color: #6b7280;
    line-height: 1.6;
}

.info-row.timestamp {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.info-row.timestamp .info-label,
.info-row.timestamp .info-value {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Empty/Error States */
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state .icon,
.error-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state p,
.error-state p {
    margin: 0.5rem 0;
    font-size: 1.125rem;
    color: #111827;
    font-weight: 600;
}

.empty-state .description,
.error-state .description {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Loading State */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1rem;
}

/* Refresh Button */
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.refresh-btn .icon {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .query-bin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .query-bin-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .query-bin-card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}
