
.knapsack-ui {
    width: 70%;
    margin-bottom: 30px;
}

.progress-bar-bg {
    width: 100%;
    height: 30px;
    background-color: var(--unvisited);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #94a3b8;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.items-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.item-card {
    border: 2px solid #94a3b8;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background-color: white;
    min-width: 80px;
    transition: all 0.3s ease;
}

.item-card div {
    margin: 5px 0;
}

.item-ratio {
    font-size: 0.85em;
    color: #64748b;
}

.active {
    border-color: var(--current);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.taken {
    background-color: var(--visited);
    border-color: var(--visited);
    color: #064e3b;
}

.fraction {
    background-color: #86efac;
    border-color: var(--visited);
    color: #064e3b;
}

.dimmed {
    opacity: 0.4;
}