/* Depot List Styles */
.depot-list-section {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
}

.depot-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* System Item Styles */
.system-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.system-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.05);
}

.system-name {
    flex: 1;
    font-weight: 500;
}

.system-distance {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Depot Item Styles */
.depot-container {
    padding: var(--spacing-sm);
}

.depot-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.depot-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.depot-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-sm);
    align-items: center;
    background: none;
    border: none;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.depot-name {
    font-size: 0.9rem;
}

.depot-progress {
    grid-column: 1 / -1;
    width: 100%;
}

.contributor-count {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

/* Cohort Styles */
.cohort-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.cohort-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.cohort-name-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.cohort-name-btn:hover {
    color: var(--color-primary);
}

/* Cohort Modal Styles */
.cohort-detail-modal .modal-content {
    max-width: 600px;
}

.cohort-status {
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-xs);
}

.cohort-status.following {
    background-color: var(--color-success);
    color: white;
}

.cohort-status.not-following {
    background-color: var(--color-warning);
    color: white;
}

.shared-projects-section,
.cohort-cargo-section {
    margin-bottom: var(--spacing-lg);
}

.shared-projects-section h3,
.cohort-cargo-section h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.shared-project-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.project-system {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.project-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cargo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.cargo-item:last-child {
    border-bottom: none;
}

.commodity-name {
    font-weight: 500;
}

.cargo-amount {
    color: var(--color-text-secondary);
    font-family: monospace;
}

/* Checkbox Styles */
.checkbox-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.checkbox-container:hover .checkmark {
    border-color: var(--color-primary);
}

.checkbox-container input:checked + .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.modal-header h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.system-name {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.close-modal {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-text);
}

.modal-body {
    padding: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.04);
    color: var(--color-text);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.btn:hover { background: rgba(255,255,255,0.08); }
.btn.danger { border-color: #b33; background: rgba(179, 51, 51, 0.15); color: #f66; }
.btn.danger:hover { background: rgba(179, 51, 51, 0.25); border-color: #d44; color: #faa; }
.btn.full { width: 100%; }
.btn.sm { padding: 4px 8px; font-size: 0.85rem; }
.btn.success { border-color: #2b7a2b; background: rgba(43, 122, 43, 0.15); color: #65d165; }
.btn.success:hover { background: rgba(43, 122, 43, 0.25); border-color: #36a336; color: #9af09a; }
.btn-row { display: flex; gap: var(--spacing-sm); align-items: flex-start; }
.muted { color: var(--color-text-secondary); font-size: 0.9rem; }

/* Shopping List Styles */
.shopping-list-section {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
}

/* Section header layout and info icon */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.header-spacer { flex: 1; }
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    font-size: 0.8rem;
    line-height: 1;
    color: var(--color-text-secondary);
    cursor: default;
    user-select: none;
}
.info-icon:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* Small icon button */
.icon-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: var(--border-radius-sm);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}
.icon-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* refresh-btn removed */

/* Materials List Styles */
.materials-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
}

.material-name {
    font-size: 0.9rem;
}

.material-amount {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Carrier Styles */
.carriers-section {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
}

.carriers-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.carrier-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.carrier-item.owned-carrier {
    border-color: var(--color-primary);
    background-color: rgba(0, 123, 255, 0.05);
}

.carrier-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.05);
}

.carrier-serial {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    min-width: 80px;
}

.carrier-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.carrier-owner {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    min-width: 100px;
}

.carrier-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.carrier-controls input[type="checkbox"] {
    margin: 0;
}

/* Carrier Modal Styles */
.carrier-info {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
}

.carrier-info div {
    margin-bottom: var(--spacing-sm);
}

.carrier-info div:last-child {
    margin-bottom: 0;
}

.carrier-stock-section {
    margin-bottom: var(--spacing-md);
}

.carrier-stock-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.carrier-stock-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
}

.stock-amount {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Carrier Modal Cargo Items - Remove borders/dividers */
.carrier-cargo-list .cargo-item {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    margin-bottom: 0 !important;
    padding: var(--spacing-xs) 0;
}

.carrier-cargo-list .cargo-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.carrier-cargo-list .cargo-item:first-child {
    border-top: none !important;
    margin-top: 0 !important;
}

.carrier-cargo-section {
    margin-bottom: 12px;
}
