/* Autonomous Lab Dashboard Styles */

.lab-dashboard {
    display: none;
    margin: 12px 0;
    padding: 16px;
    border-radius: 10px;
    background: var(--card-bg, #1a1b2e);
    border: 1px solid var(--border-color, #2a2d4a);
    font-family: inherit;
}

.lab-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #2a2d4a);
}

.lab-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #e0e0ff);
    letter-spacing: 0.5px;
}

.lab-iteration {
    font-size: 13px;
    color: var(--text-secondary, #a0a0c0);
    background: rgba(100, 120, 255, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}

.lab-role {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}

.lab-role.role-pi {
    background: rgba(255, 180, 50, 0.15);
    color: #ffb432;
}

.lab-role.role-trainee {
    background: rgba(50, 200, 120, 0.15);
    color: #32c878;
}

.lab-status {
    font-size: 12px;
    color: var(--text-secondary, #a0a0c0);
    margin-left: auto;
}

.lab-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

@media (max-width: 800px) {
    .lab-body {
        grid-template-columns: 1fr;
    }
}

.lab-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary, #a0a0c0);
    margin: 0 0 8px 0;
}

/* Paper progress */
.paper-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.paper-section {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.paper-section .section-name {
    width: 80px;
    color: var(--text-primary, #e0e0ff);
    font-weight: 500;
}

.paper-section .progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.paper-section .progress-fill {
    height: 100%;
    background: #5b6abf;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.paper-section.has-content .progress-fill {
    background: #32c878;
}

.paper-section .word-count {
    width: 40px;
    text-align: right;
    color: var(--text-secondary, #a0a0c0);
    font-size: 11px;
}

/* Figures gallery */
.figures-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fig-thumb {
    width: 60px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, #2a2d4a);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-secondary, #a0a0c0);
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.fig-thumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px;
}

.no-figures {
    font-size: 12px;
    color: var(--text-secondary, #a0a0c0);
    font-style: italic;
}

/* File counts */
.file-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.file-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary, #a0a0c0);
}
