/* TCD Viewer Component Styles */

.tcd-viewer {
    padding: 1rem;
}

.tcd-viewer .p-dialog {
    box-shadow: none;
}

/* Actions bar with reload button */
.tcd-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

/* Not yet computed state */
.tcd-not-computed {
    padding: 2rem 1rem;
}

.tcd-not-computed .p-message {
    font-size: 0.95rem;
}

/* Loading state */
.tcd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.tcd-loading p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Error state */
.tcd-error {
    padding: 1rem;
}

/* Empty state */
.tcd-empty {
    padding: 1rem;
}

/* Result container */
.tcd-result {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Metadata info bar */
.tcd-metadata {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.tcd-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
}

.tcd-meta-item i {
    color: #6c757d;
}

.tcd-meta-item.tcd-errors {
    color: #dc3545;
    font-weight: 500;
}

.tcd-meta-item.tcd-errors i {
    color: #dc3545;
}

/* Table header */
.tcd-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tcd-table-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

/* Table styling */
.tcd-table {
    font-size: 0.9rem;
}

/* Total column styling */
.tcd-table .tcd-total-column {
    background: #e9ecef;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tcd-metadata {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tcd-table {
        font-size: 0.85rem;
    }
}
