/* 模式切換 */
.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mode-btn {
    padding: 10px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    color: #666666;
}

.mode-btn.active {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

/* 快速輸入按鈕 */
.quick-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.result-btn {
    padding: 20px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid;
}

.result-btn.banker {
    background: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

.result-btn.banker:hover {
    background: #000000;
    color: #FFFFFF;
}

.result-btn.player {
    background: #FFFFFF;
    color: #4A4A4A;
    border-color: #4A4A4A;
}

.result-btn.player:hover {
    background: #4A4A4A;
    color: #FFFFFF;
}

.result-btn.tie {
    background: #FFFFFF;
    color: #808080;
    border-color: #808080;
}

.result-btn.tie:hover {
    background: #808080;
    color: #FFFFFF;
}

/* 詳細牌面輸入 */
.input-mode {
    display: none;
}

.input-mode.active {
    display: block;
}

.card-selection {
    margin-bottom: 20px;
}

.card-selection h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1A1A1A;
}

.card-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.card-btn {
    padding: 10px 6px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.card-btn:hover {
    background: #E0E0E0;
}

.selected-cards {
    min-height: 40px;
    padding: 8px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.selected-card {
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-card {
    background: none;
    border: none;
    color: #999999;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-card:hover {
    color: #666666;
}

.card-sum {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

/* 控制按鈕 */
.control-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-control {
    padding: 10px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
}

.btn-control:hover {
    background: #E0E0E0;
}

.btn-control.danger {
    color: #C00000;
    grid-column: span 2;
}

.btn-control.danger:hover {
    background: #FFE6E6;
    border-color: #FFB3B3;
}

/* 歷史紀錄顯示 */
.history-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 100px;
    padding: 12px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.history-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid;
}

.history-item.banker {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.history-item.player {
    background: #4A4A4A;
    color: #FFFFFF;
    border-color: #4A4A4A;
}

.history-item.tie {
    background: #808080;
    color: #FFFFFF;
    border-color: #808080;
}

/* 預測結果 */
.prediction-result {
    padding: 20px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.prediction-result .hint {
    color: #666666;
    font-size: 14px;
    text-align: center;
}

.prediction-stats {
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.stat-item.recommended {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

.recommendation {
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 6px;
    text-align: center;
}

.recommendation h4 {
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.recommendation .result {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.recommendation .confidence {
    font-size: 14px;
    color: #666666;
}

/* 模擬參數控制 */
.simulation-control {
    padding: 16px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.simulation-control label {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.simulation-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    outline: none;
    -webkit-appearance: none;
}

.simulation-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
}

.simulation-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: none;
}

/* 趨勢分析 */
.trend-analysis {
    padding: 16px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 14px;
}

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

.trend-label {
    color: #666666;
}

.trend-value {
    font-weight: 600;
    color: #1A1A1A;
}
