/* Scientist Lab Panel */
.lab-panel {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.lab-section {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 0.8rem;
}

.lab-section h3 {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

/* Lead Scientist Slots */
.scientist-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.scientist-slot {
    background: #1a1a2e;
    border: 1px solid #333;
    padding: 0.6rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: border-color 0.2s ease;
}

.scientist-slot.idle {
    border-color: #ff9800;
    border-style: dashed;
}

.scientist-slot.assigned {
    border-color: #4caf50;
}

.scientist-slot.stressed {
    border-color: #f44336;
}

.scientist-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.scientist-info {
    flex: 1;
    min-width: 0;
}

.scientist-name {
    font-size: 0.75rem;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scientist-spec {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.scientist-status {
    font-size: 0.6rem;
    color: #4caf50;
    font-style: italic;
}

.scientist-status.idle-status {
    color: #ff9800;
}

.scientist-stress-bar {
    width: 40px;
    height: 4px;
    background: #1a1a2e;
    border: 1px solid #333;
    flex-shrink: 0;
}

.scientist-stress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.stress-low { background: #4caf50; }
.stress-med { background: #ff9800; }
.stress-high { background: #f44336; }

/* Research Projects */
.active-research, .available-research {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.research-card {
    background: #1a1a2e;
    border: 1px solid #333;
    padding: 0.6rem;
    transition: all 0.2s ease;
    cursor: default;
}

.research-card.available {
    cursor: pointer;
    border-style: dashed;
}

.research-card.available:hover {
    border-color: var(--accent);
    background: rgba(255, 68, 68, 0.03);
}

.research-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.research-name {
    font-size: 0.75rem;
    color: #fff;
    font-weight: bold;
}

.research-days {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.research-desc {
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.research-progress-bar {
    width: 100%;
    height: 6px;
    background: #0a0a12;
    border: 1px solid #333;
    margin-bottom: 0.3rem;
}

.research-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4dabf7, #74c0fc);
    transition: width 0.4s ease;
}

.research-assigned {
    font-size: 0.6rem;
    color: #4caf50;
    font-style: italic;
}

.research-bonus {
    font-size: 0.55rem;
    color: #ff9800;
}

.research-unassigned {
    font-size: 0.6rem;
    color: #ff9800;
    font-style: italic;
}

/* Assign scientist modal */
.assign-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 900;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.assign-overlay.active { display: flex; }

.assign-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    max-width: 500px;
    width: 100%;
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.assign-panel h3 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.assign-panel p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.assign-option {
    display: block;
    width: 100%;
    background: #1a1a2e;
    border: 1px solid #333;
    padding: 0.6rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.assign-option:hover {
    border-color: var(--accent);
    transform: translateX(3px);
}

.assign-option .name { color: #fff; font-weight: bold; font-size: 0.8rem; }
.assign-option .detail { color: var(--text-secondary); font-size: 0.65rem; }
.assign-option .bonus { color: #ff9800; font-size: 0.6rem; }

.assign-cancel {
    margin-top: 0.8rem;
}

/* Empty state */
.lab-empty {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-style: italic;
    padding: 0.5rem;
    text-align: center;
}

/* Personnel File */
.personnel-file {
    font-size: 0.75rem;
}

.pf-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.pf-avatar {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    border: 2px solid #333;
    border-radius: 4px;
}

.pf-title-block { flex: 1; }
.pf-name { font-size: 1.1rem; color: #fff; font-weight: bold; }
.pf-role-title { font-size: 0.8rem; color: var(--accent); margin-top: 0.2rem; }
.pf-status { font-size: 0.7rem; color: var(--text-secondary); margin-top: 0.2rem; }

.pf-section {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #1a1a2e;
}

.pf-section-title {
    font-size: 0.6rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.pf-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding: 0.15rem 0;
}

.pf-label { color: var(--text-secondary); }
.pf-value { color: #fff; text-align: right; }

.pf-bio {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.6rem;
    font-style: italic;
}
