.bpbj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'DM Sans', sans-serif;
}

.voting-area {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.column {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.item-card {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    display: flex;
    /* Flex layout for better content alignment */
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #007bff);
}

.item-card.selected {
    border-color: var(--secondary-color, #28a745);
    background-color: #f9fff9;
}

.item-img-container {
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 4px;
}

.item-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.item-card h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    flex-grow: 1;
    /* Push price to bottom */
}

.price {
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--primary-color, #007bff);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

#selected-items {
    min-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1rem;
}

#selected-items .item-card {
    cursor: pointer;
    /* To remove */
}

/* Results Styles */
#results-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 2rem auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-item .rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    width: 50px;
}

.result-item:first-child .rank {
    color: gold;
}

.result-item:nth-child(2) .rank {
    color: silver;
}

.result-item:nth-child(3) .rank {
    color: #cd7f32;
}

.result-item .name {
    flex: 1;
    font-weight: 500;
}

.result-item .score {
    font-weight: bold;
    color: var(--primary-color, #007bff);
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    text-decoration: none;
    /* For link buttons */
    display: inline-block;
}

.btn.primary {
    background: var(--primary-color, #007bff);
    color: white;
    width: 100%;
    margin-top: 2rem;
    text-align: center;
}

.btn.primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn.secondary {
    background: #6c757d;
    color: white;
}

.btn.danger {
    background: #dc3545;
    color: white;
}

@media (max-width: 768px) {
    .voting-area {
        flex-direction: column;
    }
}