/* 投票区域样式 */
.vote-area-container {
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 不设置宽度，由内部自适应 */
}

.vote-area-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.vote-area {
    background: #333;
    border-radius: 12px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 10px 10px 10px;
    box-sizing: border-box;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    /* 宽度由JS动态设置 */
    margin: 0 auto;
    transition: width 0.2s;
}

.vote-card,
.seat-vote-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px #0006;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: grab;
    position: relative;
    flex-shrink: 0;
}

.vote-card {
    width: 36px;
    height: 36px;
    color: #3498db;
    border: 2px solid #3498db;
    font-size: 18px;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}

.seat-vote-card {
    width: 22px;
    height: 22px;
    color: #e67e22;
    border: 2px solid #e67e22;
    font-size: 14px;
    margin: 0 1px;
    pointer-events: auto;
}

.vote-card.dragging {
    opacity: 0.5;
}

.vote-reset-btn, 
.copy-votes-btn,
.history-clear-btn, 
.history-export-btn {
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.vote-reset-btn {
    background: #888;
    color: #fff;
    margin-left: 10px;
}

.vote-reset-btn:hover {
    background: #555;
}

.copy-votes-btn {
    background: #27ae60;
    color: #fff;
    margin-right: 10px;
}

.copy-votes-btn:hover {
    background: #1f884b;
}
