/* --- Base Screen --- */

.base-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    overflow-y: auto;
}

.base-header {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 14px;
}

.income-rate {
    font-size: 11px;
    color: var(--text-success);
    margin-left: 4px;
}

/* Facility Grid */
.facility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.facility-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.facility-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.facility-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold);
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

.facility-info {
    flex: 1;
}

.facility-name {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 16px;
    color: var(--text-base);
    margin-bottom: 4px;
}

.facility-lv {
    font-size: 12px;
    color: var(--secondary);
    margin-left: 5px;
}

.facility-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.upgrade-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upgrade-btn.active {
    background: var(--primary);
    color: white;
    cursor: pointer;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Assignment Section */
.assignment-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.roster-list-scroll {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assignment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.assign-face {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #555;
    object-fit: cover;
}

.assign-name {
    flex: 1;
    font-size: 13px;
    font-weight: bold;
}

.assign-controls {
    display: flex;
    gap: 5px;
}

.assign-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.assign-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.assign-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.status-badge.battle {
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(220, 38, 38, 0.4);
}