body {
    min-width: 1920px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow-y: scroll; /* 確保滾動功能 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


* {
    user-select: none;
    -webkit-user-select: none; /* for iOS Safari */
}
/* 針對 Webkit 瀏覽器（Chrome、Safari 等）隱藏滾動條 */
body::-webkit-scrollbar {
    display: none;
    touch-action: manipulation;
    
}

/* 確保內容容器可以正常滾動 */
html {
    overflow-y: scroll; /* 確保 html 也支持滾動 */
    scrollbar-width: none;
    
}

html::-webkit-scrollbar {
    display: none;
}

/* 以下是可選的，如果你想讓其他容器也隱藏滾動條但保留功能 */
.history-list,
.distribution-table-container,
.color-theme-content,
.settings-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.history-list::-webkit-scrollbar,
.distribution-table-container::-webkit-scrollbar,
.color-theme-content::-webkit-scrollbar,
.settings-content::-webkit-scrollbar {
    display: none;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}
.latest-result {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}
.number-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
}
.special-number {
    background-color: #f44336;
}
.update-info {
    display: none;
    text-align: right;
    font-size: 0.8em;
    color: #666;
    margin-top: 20px;
}
.connection-status {
    position: fixed;
    top: 1px;
    right: 1px;
    padding: 5px 5px;
    border-radius: 5px;
    font-size: 12px;
    color: white;
}
.connected {
    background-color: #1100ff;
}
.disconnected {
    background-color: #ff1100;
}
.status-message {
    background-color: #fffb00;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #6c757d;
}
.history-container {
    margin-top: 30px;
    display: none;
}
.history-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.history-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}
.history-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.history-item:last-child {
    border-bottom: none;
}
.clear-button {
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}
.history-normal-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}
.history-number {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    font-size: 0.8em;
}
.history-special-number {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background-color: #f44336;
    color: white;
    font-size: 0.8em;
}
.history-header {
    margin-bottom: 10px;
    font-weight: bold;
}
.history-basic-info {
    color: #333;
}
.history-detail {
    font-size: 0.9em;
    color: #444;
}
.history-row {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
}
.history-label {
    min-width: 80px;
}
.history-value {
    flex-grow: 1;
}
.toggle-btn {
    padding: 2px 8px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.2s;
}
.toggle-btn:hover {
    background-color: #e0e0e0;
}
.history-info {
    display: flex;
    flex-grow: 1;
}
.stats-container {
    display: none;
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}
.stats-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.stats-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.stats-select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.toggle-button {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.stats-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
.stats-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.number-stats {
    overflow-x: auto;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin-bottom: 10px;
}
.stats-cell {
    padding: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}
.stats-number {
    font-weight: bold;
    margin-bottom: 3px;
}
.stats-count {
    font-size: 0.9em;
}
.stats-percentage {
    font-size: 0.8em;
    color: #666;
}
.high-freq {
    color: #e53935;
    font-weight: bold;
}
.low-freq {
    color: #1e88e5;
    font-weight: bold;
}
.very-low-freq {
    color: #9e9e9e;
    font-weight: bold;
}
.very-high-missed {
    color: #6a1b9a;
    font-weight: bold;
}
.high-missed {
    color: #ad1457;
    font-weight: bold;
}
.low-missed {
    color: #00897b;
    font-weight: bold;
}
.stats-legend {
    margin-top: 10px;
    font-size: 0.8em;
    text-align: right;
    color: #666;
}
.legend-item {
    margin-left: 15px;
    display: inline-block;
}
.legend-color {
    display: inline-block;
    margin-right: 5px;
}
.stats-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}
/* 大小單雙統計相關樣式 */
.stats-flex-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-half-width {
    flex: 1;
    min-width: 200px;
}

.stats-attribute-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 20px;
}

.stats-attribute-table th, .stats-attribute-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stats-attribute-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.stats-attribute-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.stats-chart-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stats-chart {
    width: 200px;
    height: 200px;
    margin: 10px;
}

.stats-pie-chart {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #f5f5f5;
    overflow: hidden;
}

.stats-pie-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 50% 0%, calc(50% + 50% * cos(calc(3.6deg * var(--percentage) + var(--start) * 3.6deg))) calc(50% - 50% * sin(calc(3.6deg * var(--percentage) + var(--start) * 3.6deg))), 50% 50%);
    background-color: var(--color);
    transform: rotate(calc(var(--start) * 3.6deg));
}

.stats-pie-label {
    position: absolute;
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.stats-total-row {
    font-weight: bold;
    background-color: #f0f0f0;
}
.overlap-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f7f9fc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.overlap-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}
.overlap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.overlap-table th,
.overlap-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}
.overlap-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}
.overlap-table tr:nth-child(even) {
    background-color: #f8f8f8;
}
.overlap-table tr:hover {
    background-color: #f1f5fb;
}

.data-container.active {
    transition: margin-top 0.5s ease-in-out;
}

.data-container {
    position: relative;
    height: unset;
    margin-top: 50px;
    transition: margin-top 0.5s ease-in-out;
}

.grid-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.draw-grid-container {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 15px 0;
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

.draw-grid-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.draw-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0px 10px 0px 10px;
    margin: 6px 0px 4px 0px;
    width: 90%;
    height: fit-content;
}
.draw-grid-wrapper.scale15 {
    grid-template-columns: repeat(2, 1fr);
}

.draw-grid {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    /* height: fit-content; */
}

.draw-grid.scale15 {
    zoom: 1.5;
}

/* 左側統計隱藏時的縮放樣式 */
.draw-grid.zoom-2-grids {
    zoom: 1.765;
}

.draw-grid.zoom-3-6-grids {
    zoom: 1.17;
}
/* 標題欄佈局調整 */
.draw-grid-header {
    display: flex;
    justify-content: space-between; /* 兩端對齊 */
    align-items: center;
    padding: 4px 12px;
    background-color: #ff8c00; /* 橙色背景 */
    color: white;
    font-weight: bold;
    border-radius: 4px 4px 0px 0px;
}

/* 新增：左側容器 */
.header-left {
    display: flex;
    flex-direction: row; /* 水平排列 */
    align-items: center; /* 居中對齊 */
}

/* 新增：勾選框容器 */
.grid-checkbox-container {
    position: relative; /* 為提示框提供定位上下文 */
    margin-left: 10px;
    display: flex;
    align-items: center;
}

/* 新增：自訂勾選框樣式 */
.grid-checkbox {
    width: 20px;
    height: 20px;
    position: relative;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.grid-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.grid-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-checkbox input:checked + .checkmark {
    background-color: #4CAF50;
}

.grid-checkbox .checkmark:after {
    content: '';
    display: none;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
}

.grid-checkbox input:checked + .checkmark:after {
    display: block;
}

.draw-term {
    font-size: 26px;
}

.draw-time {
    font-size: 26px;
    padding: 2px 8px;
    margin-left: 10px;
    background-color: white;
    color: black;
    border-radius: 4px;
}

/* 指示器區域靠右 */
.draw-indicator {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end; /* 靠右對齊 */
}

/* 方形指示器 */
.indicator-box {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    color: white;
    border-radius: 10px;
}

.size-big {
    background-color: #4285f4; /* 藍色表示大 */
}

.size-small {
    background-color: #fbbc05; /* 黃色表示小 */
}

.odd-even-odd {
    background-color: #ea4335; /* 紅色表示單 */
}

.odd-even-even {
    background-color: #34a853; /* 綠色表示雙 */
}

.no-value {
    background-color: #9e9e9e; /* 灰色表示未開出 */
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 3px;
    padding: 4px;
    width: 526px;
}

.number-cell {
    width: 45px;
    height: 43px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #ffffff;
    font-weight: bold;
    font-size: 30px;
}

.number-cell.drawn {
    background-color: #1e88e5; /* 藍色表示一般獎號 */
    color: white;
}
.number-cell.repeated {
    background-color: #4CAF50 !important; /* 綠色表示交集，使用 !important 確保覆蓋其他樣式 */
    color: white !important;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.7); /* 輕微發光效果 */
}

.display-count-control {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    margin: 3px 18px;
}

.control-wrapper {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.count-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

.count-btn:hover {
    background-color: #45a049;
}

.count-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 10px 0;
    padding: 0 10px;
}

.section-title h3 {
    margin: 0;
}

.control-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

/* 切換開關樣式 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-left: 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

.distribution-table-container {
    width: 100%;
    margin-bottom: 20px;
    min-height: 642px;
}

.distribution-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 16px;
    font-weight: bold;
}

.distribution-table th, .distribution-table td {
    border: 1px solid #ddd;
    
    /* padding: 2px 1px; */
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-color: #f2f2f2;
}

.distribution-table th {
    background-color: unset;
}

/* 設定各列寬度分配 */
.distribution-table th.term-header {
    width: 4%;
}

.distribution-table th.indicator-header {
    width: 1.2%;
}

.distribution-table th.number-header {
    width: 1%;
}

.distribution-table td.term-cell {
    font-weight: bold;
    background-color: #f9f9f9;
    font-size: 15px;
}

.distribution-table td.big {
    background-color: #ff9800;
    color: white;
    border: 1px solid transparent; /* 無邊框 */ 
    border-radius: 10px;
}

.distribution-table td.small {
    background-color: #000000;
    color: white;
    border: 1px solid transparent; /* 無邊框 */
    border-radius: 10px;
}

.distribution-table td.odd {
    background-color: #9C27B0;
    color: white;
    border: 1px solid transparent; /* 無邊框 */
    border-radius: 10px;
    border-right: 1px solid #000000;
}

.distribution-table td.even {
    background-color: #00BCD4;
    color: white;
    border: 1px solid transparent; /* 無邊框 */
    border-radius: 10px;
    border-right: 1px solid #000000;
}

.distribution-table td.nullA {
    background-color: #9e9e9e;
    color: white;
    border: 1px solid transparent; /* 無邊框 */
    border-radius: 10px;
}

.distribution-table td.nullB {
    background-color: #9e9e9e;
    color: white;
    border: 1px solid transparent; /* 無邊框 */
    border-radius: 10px;
    margin: 1px;
    border-right: 1px solid #000000;
}

.distribution-table td.super {
    background-color: #F44336;
    color: white;
    font-weight: bold;
}


/* 懸浮設定按鈕 */
.settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s;
}

.settings-button:hover {
    background-color: #3d9641;
    animation: pulse 1.5s infinite;
}

.settings-icon {
    font-size: 24px;
}

/* 背景遮罩 */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

/* 設定面板 */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    display: none;
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.settings-header h3 {
    margin: 0;
    color: #333;
}

.close-button {
    font-size: 24px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: #333;
}

.settings-content {
    padding: 15px 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.settings-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.settings-section h4 {
    margin: 0 0 10px 0;
    color: #555;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settings-item:last-child {
    margin-bottom: 0;
}

.control-buttons {
    display: flex;
    align-items: center;
}

.settings-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.save-btn:hover {
    background-color: #45a049;
}

.reset-btn {
    background-color: #f44336;
    color: white;
}

.reset-btn:hover {
    background-color: #d32f2f;
}

/* 調整開關樣式，使其與設定面板風格一致 */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 22px;
}

.slider.round:before {
    border-radius: 50%;
}


/* 統一設定控制項樣式 */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.settings-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.settings-label {
    font-size: 14px;
    color: #555;
    flex: 1;
}

.settings-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-left: -70px;
}

.settings-btn.transparent{
    background-color: rgba(103, 58, 183, 0.4);
}
/* 統一按鈕樣式 */
.settings-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.settings-btn:hover {
    background-color: #45a049;
}

.settings-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.settings-btn.decrease {
    background-color: #f44336;
}

.settings-btn.decrease:hover {
    background-color: #d32f2f;
}

/* 統一輸入框樣式 */
.settings-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    font-size: 14px;
    background-color: #f9f9f9;
}

/* 統一開關樣式 */
.settings-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.settings-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.settings-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .settings-slider {
    background-color: #4CAF50;
}

input:focus + .settings-slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked + .settings-slider:before {
    transform: translateX(26px);
}

/* 音效選擇器樣式 */
.settings-select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
}

.settings-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.settings-select option {
    background-color: white;
    color: #333;
}

/* 檔案上傳控制項樣式 */
.settings-file-input {
    display: none;
}

.settings-upload-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.settings-upload-btn:hover {
    background-color: #e9e9e9;
    border-color: #4CAF50;
}

.settings-upload-btn:active {
    background-color: #d9d9d9;
}

/* 檔案上傳狀態指示 */
.upload-status {
    font-size: 12px;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    display: none;
}

.upload-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 測試按鈕樣式 */
.settings-test-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}

.settings-test-btn:hover {
    background-color: #218838;
}

.settings-test-btn:active {
    background-color: #1e7e34;
}

.settings-test-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 預設按鈕樣式 */
.settings-reset-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    transition: background-color 0.3s ease;
}

.settings-reset-btn:hover {
    background-color: #5a6268;
}

.settings-reset-btn:active {
    background-color: #545b62;
}

.settings-reset-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

/* 時間設定控制項樣式 */
.settings-time-label {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
    display: inline-block;
    min-width: 80px;
}

.settings-time-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-right: 4px;
}

.settings-time-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.settings-time-unit {
    font-size: 12px;
    color: #666;
    margin-right: 16px;
}

/* 可編輯時間樣式 */
.editable-time {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.editable-time:hover {
    background-color: #f0f0f0;
}

.editable-time:focus {
    outline: none;
    background-color: #e8f5e8;
    border: 1px solid #4CAF50;
}

.editable-time[contenteditable="true"] {
    background-color: #fff;
    border: 1px solid #4CAF50;
    min-width: 20px;
    display: inline-block;
}

/* 音量控制項樣式 */
.settings-volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-right: 10px;
}

.settings-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
}

.settings-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
}

.settings-volume-slider:hover::-webkit-slider-thumb {
    background: #45a049;
}

.settings-volume-slider:hover::-moz-range-thumb {
    background: #45a049;
}

.settings-volume-value {
    font-size: 12px;
    color: #666;
    min-width: 30px;
    text-align: center;
}

/* 設定面板整體樣式優化 */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
    z-index: 1002;
    display: none;
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.settings-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.settings-content {
    padding: 20px;
    max-height: 75vh;
    overflow-y: auto;
}


.settings-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.settings-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.1s;
}

.settings-action-btn:active {
    transform: scale(0.97);
}

.settings-save-btn {
    background-color: #4CAF50;
    color: white;
}

.settings-save-btn:hover {
    background-color: #3d9641;
}

.settings-reset-btn {
    background-color: #f44336;
    color: white;
}

.settings-reset-btn:hover {
    background-color: #d32f2f;
}


/* 設定提示樣式 */
.settings-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    opacity: 1;
    transition: opacity 0.5s;
    font-size: 14px;
}

.settings-toast.fade-out {
    opacity: 0;
}

/* 設定按鈕動畫效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

.settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s;
}

.settings-button:hover {
    background-color: #3d9641;
    animation: pulse 1.5s infinite;
}

/* 獎號分布表格樣式 */
.distribution-table td {
    border: 1px solid #ddd;
    padding: 2px 1px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
}

/* 一般獎號和超級獎號樣式 */
.distribution-table td.general {
    background-color: #fff0b5;
    color: rgb(15, 15, 15);
    font-weight: bold;
}

.distribution-table td.super {
    background-color: #666799;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

/* 未開出數字樣式 */
.distribution-table td.not-drawn {
    background-color: #f9f9f9;
    color: #f7f7f7;
    font-size: 16px;
    border-left: 1px solid #000000;
}

/* 號碼交替行樣式，提高可讀性 */
.distribution-table tr:nth-child(even) td.not-drawn {
    background-color: #f1f1f1;
}

/* 滑鼠懸停效果 */
.distribution-table td.not-drawn:hover {
    background-color: #ececec;
    color: #666;
}

/* 添加漸變色效果，根據數字大小變化顏色深淺 */
.distribution-table td.not-drawn[data-number='01'] { color: #aaa; }
.distribution-table td.not-drawn[data-number='02'] { color: #a9a; }
.distribution-table td.not-drawn[data-number='03'] { color: #a8a; }
/* ... 以此類推，可以根據需要添加更多 ... */
.distribution-table td.not-drawn[data-number='80'] { color: #777; }

/* 或使用CSS變量實現漸變效果 */
:root {
    --min-color: #aaa;
    --max-color: #777;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.distribution-table td {
    animation: fadeIn 0.5s ease-in-out;
}



/* 懸浮配色按鈕 */
.color-theme-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7e57c2 0%, #673ab7 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.color-theme-button:hover {
    background: linear-gradient(135deg, #673ab7 0%, #5e35b1 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.color-theme-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.color-theme-icon {
    font-size: 28px;
}

/* 配色面板樣式 - 修正初始位置 */
.color-theme-panel {
    position: fixed;
    /* 去掉初始的 top 和 right 定位，讓 JavaScript 來處理初始位置 */
    /* top: 100px; */
    /* right: 20px; */
    width: 400px;
    max-width: 90%;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

/* 拖動時減少視覺效果以提高性能 */
.color-theme-panel.dragging {
    opacity: 0.95;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    transition: none; /* 拖動過程中取消過渡效果 */
}

/* 優化面板內容滾動效能 */
.color-theme-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain; /* 防止滾動傳播 */
    -webkit-overflow-scrolling: touch; /* iOS上的流暢滾動 */
}

/* 配色面板標題欄操作優化 */
.color-theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
    color: white;
    cursor: grab;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    touch-action: none; /* 防止觸控設備上的默認行為 */
}

.color-theme-header:active {
    cursor: grabbing;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-palette-icon {
    font-size: 18px;
}

.color-theme-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 控制按鈕 */
.color-theme-header-controls {
    display: flex;
    gap: 12px;
}

.minimize-button, .close-button {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.minimize-button:hover, .close-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 主題選擇器 */
.theme-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.select-wrapper {
    position: relative;
    flex: 1;
}

.theme-select {
    width: 100%;
    padding: 10px 12px;
    padding-right: 32px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-select:hover {
    border-color: #673ab7;
}

.theme-select:focus {
    outline: none;
    border-color: #673ab7;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.2);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #673ab7;
    pointer-events: none;
    font-size: 12px;
}

.theme-actions {
    display: flex;
    gap: 8px;
}

.theme-action-btn {
    padding: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-action-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 16px;
    font-weight: bold;
}

/* 編輯區域 */
.color-theme-editor {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.editor-header {
    margin-bottom: 20px;
}

.theme-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #673ab7;
    padding-bottom: 8px;
}

.theme-name-icon {
    font-size: 16px;
}

.theme-name-input {
    flex: 1;
    border: none;
    font-size: 16px;
    padding: 8px 5px;
    font-weight: 500;
    color: #333;
    background: transparent;
}

.theme-name-input:focus {
    outline: none;
}

.theme-name-input::placeholder {
    color: #999;
}

/* 分類區域 */
.color-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-title {
    margin: 0 0 15px 0;
    color: #673ab7;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed rgba(103, 58, 183, 0.3);
    padding-bottom: 10px;
}

.category-icon {
    font-size: 16px;
}

/* 顏色項目樣式 */
.color-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.color-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.color-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.color-picker {
    width: 100%;
    height: 36px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-picker:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.color-picker:focus {
    outline: none;
    border-color: #673ab7;
}

.color-preview {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* 底部按鈕 */
.editor-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.theme-save-btn, .theme-cancel-btn {
    width: 48%;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-save-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    color: white;
}

.theme-save-btn:hover {
    background: linear-gradient(135deg, #43A047 0%, #388E3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.theme-cancel-btn {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
}

.theme-cancel-btn:hover {
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 縮小模式的面板 */
.color-theme-panel.minimized {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
}

.color-theme-panel.minimized .color-theme-header {
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
}

.color-theme-panel.minimized .header-title,
.color-theme-panel.minimized .close-button {
    display: none;
}

.color-theme-panel.minimized .minimize-button {
    transform: rotate(180deg);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    font-size: 24px;
}

.color-theme-panel.minimized .color-theme-content {
    display: none;
}

/* 配色方案提示樣式 */
.color-theme-toast {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 1;
    transition: all 0.5s;
    font-size: 14px;
    border-left: 5px solid #9575CD;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.color-theme-toast.fade-out {
    opacity: 0;
    transform: translateX(-30px);
}



/* 防止面板內容被選取 */
.color-theme-panel {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 僅允許特定輸入元素可選 */
.color-theme-panel input[type="text"],
.color-theme-panel input[type="color"],
.color-theme-panel select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* 添加拖動時的游標樣式 */
.color-theme-header {
    cursor: move; /* 基本樣式 */
    cursor: grab; /* 現代瀏覽器 */
}

.color-theme-header:active {
    cursor: grabbing; /* 拖動時樣式 */
}

.color-theme-panel.dragging .color-theme-header {
    cursor: grabbing;
}

/* CSS 模態對話框樣式 */
.css-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.css-modal-content {
    width: 80%;
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.css-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #673ab7;
    color: white;
}

.css-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.css-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.css-modal-body pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
}

.css-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.css-modal-footer button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.distribution-table-head {
    color: #000000;
    background-color: #a1a1a1;
}

.distribution-table-body {
    color: #000000;
    background-color: #ffffff;
}
.distribution-table-head th {
    border-color: #727272; /* 藍色邊框，您可以更換成任何您喜歡的顏色 */
    border-width: 1px;
    border-style: solid;
}

.distribution-table-body td,
.distribution-table-body th {
    border-color: #686868; /* 藍色邊框，您可以更換成任何您喜歡的顏色 */
    border-width: 1px;
    border-style: solid;
}

th.term-header{
    background-color: unset;
}

/* mini-info 統計資料樣式 */
.mini-info {
    width: 15%;
    margin: 6px 0px 6px 6px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    max-height: 425px;
}

.mini-stats-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #333;
}

.mini-stats-section {
    margin-bottom: 4px;
    
}
.mini-stats-section.mini-stats-size-odd-even-section{
    background:#FFE48F;
    border-radius: 10px;
}
.mini-stats-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    padding: 3px 5px;
    border-radius: 3px;
}

.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 4px;
}

.mini-stats-row-separator {
    grid-column: 1 / -1;
    height: 8px;
}

.mini-stats-item {
    position: relative;
    width: 39px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mini-stats-number {
    color: white;
    font-weight: bold;
    margin-top: 2px;
    margin-right: 2px;
}

.mini-stats-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
    width: 20px;
    height: 20px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-stats-hot {
    background-color: #ff7675;
}

.mini-stats-very-hot {
    background-color: #e74c3c;
}

.mini-stats-cold {
    background-color: #74b9ff;
}

.mini-stats-very-cold {
    background-color: #0984e3;
}

.stats-category-label {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin: 5px 0;
    text-align: center;
    padding: 2px 0;
    background-color: #f5f5f5;
    border-radius: 3px;
}

/* 超級號碼格式 */
.mini-stats-super-section .mini-stats-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* 連續期間未開出格式 */
.mini-stats-missed-section .mini-stats-item {
    padding: 3px 1px;
}

/* 大小單雙格式 */
.mini-stats-size-odd-even {
    display: flex;
    gap: 5px;
    /* margin-top: 8px; */
    flex-direction: column;
    padding: 6px;
}

.mini-stats-attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 22px;
    font-weight: bold;
}

.mini-stats-attr-table th,
.mini-stats-attr-table td {
    padding: 2px;
    text-align: center;
    border: 1px solid #eee;
}

.mini-stats-attr-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.mini-stats-attr-table thead{
    font-size: 18px;
}

/* 新增：重複數字訊息樣式 */
.repeated-numbers-info {
    padding: 8px 12px;
    background-color: rgba(240, 240, 240, 0.9);
    border-radius: 5px;
    margin: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-left: 4px solid #4CAF50; /* 綠色邊框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.repeated-numbers-badge {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin: 0 3px;
    font-weight: bold;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

/* 交集數字樣式 - 使用更高特異性的選擇器確保優先級 */
.number-cell.drawn.repeated {
    border: 4px solid rgba(255, 255, 0, 0.7); /* 黃色邊框 */
    box-sizing: border-box; /* 確保邊框不影響元素大小 */
    /* background-color: #4CAF50 !important; 綠色表示交集 */
    color: white !important;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.7); /* 輕微發光效果 */
    position: relative; /* 為偽元素提供定位上下文 */
    z-index: 1; /* 確保元素在其他元素之上 */
}



/* 目標期數標記樣式 */
.target-period-marker {
    background-color: #ff5722;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 交集數字的重複次數標記 */
.number-cell.repeated::after {
    content: attr(data-repeat-count);
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    background-color: #ff9800;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    border: 1px solid white;
    display: none;
}

.number-cell.repeated[data-repeat-count="2"] {
    background-color: rgb(206 89 128) !important;
    border: unset;
}
.number-cell.super-number.repeated[data-repeat-count="2"] {
    background-color: rgb(255 0 247) !important;
    border: unset;
}
.number-cell.repeated[data-repeat-count="3"],
.number-cell.repeated[data-repeat-count="4"],
.number-cell.repeated[data-repeat-count="5"],
.number-cell.repeated[data-repeat-count="6"],
.number-cell.repeated[data-repeat-count="7"],
.number-cell.repeated[data-repeat-count="8"],
.number-cell.repeated[data-repeat-count="9"],
.number-cell.repeated[data-repeat-count="10"] {
    background-color: rgb(3 163 0) !important;
    border: unset;
}
.number-cell.super-number.repeated[data-repeat-count="3"],
.number-cell.super-number.repeated[data-repeat-count="4"],
.number-cell.super-number.repeated[data-repeat-count="5"],
.number-cell.super-number.repeated[data-repeat-count="6"],
.number-cell.super-number.repeated[data-repeat-count="7"],
.number-cell.super-number.repeated[data-repeat-count="8"],
.number-cell.super-number.repeated[data-repeat-count="9"],
.number-cell.super-number.repeated[data-repeat-count="10"] {
    background-color: rgb(3 163 0) !important;
    border: unset;
}


/* 交集數字的重複次數標記 */
.count-number::after {
    content: attr(data-repeat-count);
    position: absolute;
    top: -12px;
    right: -12px;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    background-color: #ff9800;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    border: 1px solid white;
}

/* 確保交集數字有相對定位，以便放置重複次數標記 */
.number-cell.drawn.repeated,
.number-cell.super-number.repeated {
    position: relative;
}

/* 新增：勾選框懸浮提示樣式 */
.grid-checkbox-container {
    position: relative; /* 為提示框提供定位上下文 */
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.checkbox-tooltip {
    position: absolute;
    top: 30px;
    left: 10px;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.checkbox-tooltip::after {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.7) transparent;
}

.grid-checkbox-container:hover .checkbox-tooltip {
    visibility: visible;
    opacity: 1;
}

/* 交集/聯集切換按鈕樣式 */
.intersection-mode-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.intersection-mode-label {
    font-size: 14px;
    color: white;
    margin-right: 5px;
    display: none; /* 隱藏標籤，使按鈕更加簡潔 */
}

.mode-toggle-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.mode-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.mode-toggle-btn .symbol {
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 交集三角形樣式 */
.intersection-symbol {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #ff5722;
}

/* 聯集圓形樣式 */
.union-symbol {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2196f3;
}

/* 交集模式下的重複數字 */
.number-cell.intersection {
    border: 4px solid rgba(255, 255, 0, 0.7);
    box-sizing: border-box;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.7);
    position: relative;
    z-index: 1;
}

/* 聯集模式下的重複數字 */
.number-cell.union {
    border: 4px solid rgba(255, 60, 0, 0.7);
    box-sizing: border-box;
    background-color: #2196f3 !important;
    color: white !important;
    box-shadow: 0 0 6px rgba(33, 150, 243, 0.7);
    position: relative;
    z-index: 1;
}


/* 修改導航欄相關樣式 */
.nav-bar {
    background: linear-gradient(319deg, #56AAB7, #e4ff00), 
                radial-gradient(circle at top left, #56AAB7, transparent), 
                radial-gradient(circle at bottom left, #FDD100, transparent) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1001;
    /* 防止整個導航欄的文字被選取 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 50px;
    width: -webkit-fill-available;
}

/* 新增左側容器樣式 */
.nav-left {
    /* display: flex; */
    align-items: center;
    gap: 12px;
    margin-right: 20px; /* 加入右側間距 */
    height: 50px;
}

/* Logo圖片樣式 */
.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-left: 15px;
}

.nav-logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 9px;
    align-items: center;
}

.nav-item {
    color: rgb(80, 80, 80);
    text-decoration: none;
    font-weight: bolder;
    font-size: 20px;
    padding: 8px 13px;
    border-radius: 5px;
    transition: all 0.3s;
    /* 防止按鈕文字被選取 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer; /* 確保滑鼠游標顯示為指針 */
    max-width: 120px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item#quickBetButton {
    animation: bounceButton 3s infinite;
}

@keyframes bounceButton {
    0%, 85% {
        transform: translateY(0);
        background-color: inherit;
    }
    87% {
        transform: translateY(-7px);
        background-color: rgba(255, 255, 255, 0.4);
    }
    89% {
        transform: translateY(-2px);
        background-color: rgba(255, 255, 255, 0.3);
    }
    91% {
        transform: translateY(-5px);
        background-color: rgba(255, 255, 255, 0.4);
    }
    93% {
        transform: translateY(0);
        background-color: rgba(255, 255, 255, 0.3);
    }
    95% {
        transform: translateY(-3px);
        background-color: rgba(255, 255, 255, 0.4);
    }
    97% {
        transform: translateY(0);
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.nav-item#quickBetButton:hover {
    animation: none;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 語言切換按鈕樣式 */
#languageToggleButton {
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    color: white !important;
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 16px;
    margin-left: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

#languageToggleButton:hover {
    background: linear-gradient(45deg, #45a049, #1976D2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

#languageToggleButton:active {
    transform: translateY(0) scale(0.98);
}

#languageToggleButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#languageToggleButton:hover::before {
    left: 100%;
}

/* 移除原本的懸浮按鈕樣式 */
.settings-button,
.color-theme-button {
    display: none;
}



/* 已開出數字的動畫 */
@keyframes numberAppear {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 將動畫應用到已開出的數字 */
.number-cell.drawn {
    animation: numberAppear 0.5s forwards;
    animation-delay: var(--random-delay, 0s);
}

/* 同樣應用到超級號碼 */
.number-cell.super-number {
    animation: numberAppear 0.5s forwards;
    animation-delay: var(--random-delay, 0s);
}

/* 確保重複號碼也有動畫 */
/* .number-cell.drawn.repeated {
    animation: numberAppear 0.5s forwards;
    animation-delay: var(--random-delay, 0s);
} */

.empty-draw-container{
    display: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    border-radius: 6px;
    box-sizing: border-box;
    background: #4b4b4b;
} 

/* 導航欄時間顯示容器 */
.nav-time {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 15px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: timePulse 2s infinite alternate;
}

/* 時間圖標 */
.time-icon {
    margin-right: 8px;
    font-size: 1.2em;
    color: #ffcc00;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.6);
}

/* 時間顯示 */
.time-display {
    font-size: 2em;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    
}
/* 時間容器呼吸燈效果 */
@keyframes timePulse {
    from {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
}


/* 剩餘期數顯示容器 */
.nav-periods {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding: 0 15px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: periodsPulse 2s infinite alternate;
}

/* 期數圖標 */
.periods-icon {
    margin-right: 8px;
    font-size: 1.5em;
    color: #ff9500;
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.6);
}

/* 期數資訊容器 */
.periods-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 期數標籤 */
.periods-label {
    font-size: 1.2em;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 期數計數 */
.periods-count {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.6);
}

/* 期數容器呼吸燈效果 */
@keyframes periodsPulse {
    from {
        box-shadow: 0 0 5px rgba(255, 149, 0, 0.2);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 149, 0, 0.4);
    }
}



.super-number-stats-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 538px;
    /* max-width: 90%; */
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 1002;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.super-number-stats-panel.transparent{
    background-color: rgba(255, 255, 255, 0.6) !important;
}
.super-number-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
    color: white;
    cursor: grab;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    height:40px;
}
.super-number-stats-header.transparent{
    background: rgba(103, 58, 183, 0.3);
}
.super-number-stats-content {
    padding: 13px 2px 2px 2px;
    /* max-height: 70vh; */
    overflow-y: auto;
}

.super-number-stats-title {
    font-size: 30px;
    font-weight: bold;
    color: white;
}

.number-cell.null-number {
    background-color: #e0e0e0 !important;
}

.number-cell.null-number.transparent {
    background-color: #e0e0e012!important; /* 半透明樣式 */
    color: #e0e0e030 !important;
}

.notifications-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  max-width: 350px;
}

.notification {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-left: 4px solid #1e88e5;
}

.notification.info {
  border-left-color: #1e88e5;
}

.notification.success {
  border-left-color: #4CAF50;
}

.notification.warning {
  border-left-color: #FF9800;
}

.notification.error {
  border-left-color: #e53935;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.hide {
  opacity: 0;
  transform: translateY(-20px);
}

.notification-title {
  font-weight: bold;
  margin-bottom: 5px;
  padding-right: 20px;
}

.notification-message {
  color: #333;
}

.notification-close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  color: #333;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(30, 136, 229, 0.5);
  width: 100%;
  transform-origin: left;
}

/* 快速投注面板樣式 */
.quick-bet-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 734px;
  max-width: 95%;
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 1002;
  /* display: none; */
  overflow: hidden;
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-bet-panel.dragging {
  cursor: grabbing;
  user-select: none;
}

.quick-bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5px;
  background: #00BCD4;
  color: white;
  cursor: grab;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  height: 50px;
  margin-bottom: 0px;
}

.quick-bet-header.transparent {
  background: rgba(0, 188, 212, 0.4);
}

.quick-bet-title {
  font-size: 30px;
  font-weight: bold;
  color: white;
}

.quick-bet-content {
  padding: 2px;
  /* max-height: 75vh; */
  overflow-y: auto;
}

.bet-section {
  display: flex;
}



.bet-section-title {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #424242;
  font-weight: 600;
}

.bet-number-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    justify-items: center;
}


.bet-number-cell {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  border: 1px solid #e0e0e0;
}

.bet-number-cell:hover {
  background-color: #e0e0e0;
}

.bet-number-cell.selected {
  background-color: #e53935;
  color: white;
  border-color: #c62828;
  transform: scale(1.05);
}

.bet-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bet-info-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bet-info-label {
  font-weight: 600;
  min-width: 80px;
  color: #616161;
}

.selected-numbers {
   display: flex;
   flex-wrap: wrap;
   gap: 5px;
   flex: 1;
   min-height: 32px;
}

.selected-number {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e53935;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  box-shadow: 0 0 6px rgba(229, 57, 53, 0.5);
}

.selected-number .remove-number {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background-color: #b71c1c;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.selected-number:hover .remove-number {
  opacity: 1;
}

.bet-amount-control {
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.amount-btn {
  background-color: #f5f5f5;
  border: none;
  color: #424242;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.amount-btn:hover {
  background-color: #e0e0e0;
}

.amount-btn.decrease {
  border-right: 1px solid #e0e0e0;
}

.bet-amount-input {
    width: 34px;
    text-align: right;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 3px 20px 3px 0px;
    font-size: 20px;
    font-weight: bold;
    background-color: #f9f9f9;
    color: #333;
    /* margin: 0 5px; */
    cursor: default;
    user-select: none;
}

.bet-amount-input:focus {
  outline: none;
  border-color: #00BCD4;
}

/* 隱藏輸入框上下箭頭 */
.bet-amount-input::-webkit-inner-spin-button,
.bet-amount-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
    margin: 0;
}

/* 建立倍數顯示容器 */
.bet-amount-display-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
button#printBtn {
    background: #18b918;
    color: white;
}
button#autoClearBtn {
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px 1px rgba(0, 0, 0, 0.5);
}
button#autoClearBtn.active {
    background: #5777e0;
    color: rgb(255, 255, 255);
}
button#autoClearBtn:hover {
    box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.5);
}
/* 倍數文字 */
.bet-multiplier {
  margin-left: -21px;
  margin-right: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #333;

}

/* 滾輪提示效果 */
.bet-amount-controls {
  position: relative;
    display: flex;
    align-items: center;
  cursor: ns-resize;
}

.bet-amount-controls:hover {
  background-color: rgba(0, 188, 212, 0.1);
  border-radius: 4px;
}

/* 控制按鈕樣式 */
.amount-control-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #333;
  cursor: pointer;
    display: flex;
    align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.amount-control-btn:hover {
  background-color: #e0e0e0;
}

.amount-control-btn:active {
  background-color: #d0d0d0;
  transform: scale(0.95);
}

.bet-actions {
    display: flex;
    gap: 0px;
    margin: 5px;
    flex-direction: column;
    justify-content: space-between;

    padding: 5px;
    background: #a8ffbb;
    border-radius: 4px;
}

.bet-action-btn {
  padding: 2px 2px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
    cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  width: 100%;
}
.bet-other-game {
    display: grid;
    grid-template-columns: repeat(1, 2fr);
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

button.bet-other-game-btn {
    width: 34px;
    height: 34px;
    font-size: 26px;
    font-weight: bolder;
    line-height: 1;
    border-radius: 4px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #000;
    text-align: center; /* 文字置中 */
    padding: 0px;
    cursor: pointer;
}
button.bet-other-game-btn:hover {
    background-color: #c4c4c4;
    color: #ffffff;
}
.bet-other-game-btn.active {
    background-color: #4265ff;
    color: #ffffff;
    border: 1px solid #7b7a7a;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.6);
}

.bet-other-game-row {
    background-color: #78909c;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    width: auto;
    height: auto;
    border-radius: 4px;
    padding: 2px;
    justify-content: center;
    align-items: center;
    padding: 2px 3px;
    position: relative;
}

button#increaseAmountBtn {
    width: 30px;
    height: 30px;
    font-size: 25px;
    align-content: center;
    padding: 0px;
    /* font-weight: bolder; */
}
button#decreaseAmountBtn {
    width: 30px;
    height: 30px;
    font-size: 25px;
    align-content: center;
    padding: 0px;
    /* font-weight: bolder; */
}
.bet-amount-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.random-btn {
  background-color: #4caf50;
  color: white;
}

.random-btn:hover {
  background-color: #388e3c;
}

.clear-btn {
  background-color: #9e9e9e;
  color: white;
}

.clear-btn:hover {
  background-color: #757575;
}

.confirm-btn {
  background-color: #e53935;
  color: white;
}

.confirm-btn:hover {
  background-color: #c62828;
}



/* 在快速投注面板中的數字格特殊樣式 */
#betNumberGrid .number-cell {
    user-select: none;
    -webkit-user-select: none;
    height: 35px;
    width: 40px;
    margin: 0px 3px;
    border-radius: 11px;
    color: #000 !important;
    background: #FFF !important;
    box-shadow: 0 4px 4px 0px rgb(95 95 95 / 70%);
    -moz-user-select: none;
    -ms-user-select: none;
}

#betNumberGrid .number-cell:hover {
  background-color: #f5f5f5;
  color: #333;
  box-shadow: 0 3px 4px 0px rgb(95 95 95 / 70%);
  transform: translateY(1px);
}

#betNumberGrid .number-cell.selected {
    background-color: #5f4cf9 !important;
    color: #ffffff !important;
    transform: translateY(2px);
    box-shadow: 0 2px 4px 0px rgb(95 95 95 / 70%);
}

/* 禁止文字選取 */
#quickBetContent .numbers-grid {
    padding: 8px 8px;
    width: 550px;
    gap: 11px;
}

#betNumberGrid .number-cell {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

}

/* 拖拽時游標樣式 */
#betNumberGrid.dragging {
    cursor: grabbing;
}

.number-cell {
    cursor: pointer;
    transition: all 0.15s ease;
}

/* 選中狀態加強顯示 */
.number-cell.selected {
    transform: scale(0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 添加透明度按鈕樣式 */
.transparency-btn {
    padding: 4px 8px;
    margin-right: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bolder;
    color: #333;
}

.transparency-btn.active {
    background-color: #4CAF50;
    color: white;
}

.transparency-btn.transparent.active {
    background-color: rgba(15, 223, 60, 0.3);
}
/* 添加面板透明狀態樣式 */
.quick-bet-panel.transparent {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(1px);
}

.quick-bet-panel.transparent .quick-bet-content,
.quick-bet-panel.transparent .bet-section,
.quick-bet-panel.transparent .bet-info-item {
    background-color: transparent;
}

.quick-bet-panel.transparent .number-cell {
    background-color: rgba(224, 224, 224, 0.7);
}

.quick-bet-panel.transparent .number-cell.selected {
    background-color: rgba(30, 136, 229, 0.8);
}

/* 添加面板透明狀態樣式 */
.draw-grid.quick-bet-panel.transparent {
    background-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(0.65px) !important;
}

.quick-bet-panel.transparent .quick-bet-content,
.quick-bet-panel.transparent .bet-section,
.quick-bet-panel.transparent .bet-info-item,
.quick-bet-panel.transparent .bet-section-title,
.quick-bet-panel.transparent .bet-info-label {
    background-color: transparent;
    color: rgba(0, 0, 0, 0.8);
}

/* 透明模式下的數字格樣式 */
.quick-bet-panel.transparent #betNumberGrid .number-cell {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(0, 0, 0, 0.45) !important;
}

/* 透明模式下懸浮效果 */
.quick-bet-panel.transparent #betNumberGrid .number-cell:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
    color: rgba(238, 255, 0, 0.9) !important;
}

/* 透明模式下選中效果 */
.quick-bet-panel.transparent #betNumberGrid .number-cell.selected {
    background-color: rgba(229, 57, 53, 0.7) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 6px rgba(229, 57, 53, 0.4);
    border: 4px solid rgba(255, 255, 0, 0.7);
    box-sizing: border-box;
}

/* 透明模式下的已選數字 */
.quick-bet-panel.transparent .selected-number {
    background-color: rgba(229, 57, 53, 0.7);
    color: rgba(255, 255, 255, 0.9);
}

/* 透明模式下的按鈕 */
.quick-bet-panel.transparent .bet-action-btn {
    background-color: rgba(240, 240, 240, 0.7);
    border: 1px solid rgba(200, 200, 200, 0.5);
}

.quick-bet-panel.transparent .confirm-btn {
    background-color: rgba(76, 175, 80, 0.7);
    color: rgba(255, 255, 255, 0.9);
}
.bet-view-container {
    height: auto;
    background: #f1dd49;
    border-radius: 12px;
}
/* 標籤頁按鈕區域 */
.bet-tabs {
    /* right: 105px; */
    height: 45px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    align-items: flex-end;
    background-color: #ffffff00;
    padding: 0 5px;
    position: relative;
    gap: 3px;
    background: linear-gradient(319deg, #56AAB7, #e4ff00), radial-gradient(circle at top left, #56AAB7, transparent), radial-gradient(circle at bottom left, #FDD100, transparent) !important;
}

/* 標籤頁按鈕 */
.tab-btn {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 16px;
    color: #454545;
    position: relative;
    transition: all 0.2s ease;
    font-family: Arial, sans-serif;
    font-weight: bolder;
    height: 35px;
}

/* 數字標籤樣式較小 */
.tab-btn[data-tab="01"],
.tab-btn[data-tab="02"],
.tab-btn[data-tab="03"],
.tab-btn[data-tab="04"],
.tab-btn[data-tab="05"],
.tab-btn[data-tab="06"],
.tab-btn[data-tab="07"],
.tab-btn[data-tab="08"],
.tab-btn[data-tab="09"],
.tab-btn[data-tab="10"] {
    padding: 4px 6px;
    font-size: 20px;
    font-weight: bolder;
}

/* 懸停效果 */
.tab-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
    height: 32px;
    margin-bottom: 0;
    transform: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 活動標籤樣式 */
.tab-btn.active {
    background-color: #fbff00;
    z-index: 2;
    font-weight: bold;
    height: 30px;
    margin-bottom: 0;
    transform: none;
}

/* 透明模式下的標籤頁 */
/* .quick-bet-panel.transparent .bet-tabs {
    background-color: rgba(245, 245, 245, 0.5);
} */

.quick-bet-panel.transparent .tab-btn {
    background-color: rgba(224, 224, 224, 0.7);
    color: rgba(0, 0, 0, 0.7);
}

.quick-bet-panel.transparent .tab-btn.active {
    background-color: rgba(255, 255, 255, 0.7);
    color: rgba(229, 57, 53, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.bet-amount-display {
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 2px;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* 修改amount-control-btn樣式 */
.amount-control-btn {
  width: 30px;
  height: 30px;
  font-size: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #333;
  cursor: pointer;
    display: flex;
    align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.amount-control-btn:hover {
  background-color: #e0e0e0;
}

.amount-control-btn:active {
  background-color: #d0d0d0;
  transform: scale(0.95);
}

.number-container-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    margin-left: 208px;
    margin-top: 15px;
    height: 35px;
}

/* 添加反向flex佈局樣式 */
.bet-section.flex-row-reverse {
    flex-direction: row-reverse;
}

/* 針對反向佈局時的一些調整 */
.bet-section.flex-row-reverse .bet-actions {
    margin-right: 0;
    margin-left: 10px;
}

.bet-section.flex-row-reverse .number-container {
    margin-left: 0;
    margin-right: 10px;
}

/* 添加遊戲按鈕的相對定位，讓下拉選單能夠相對於它定位 */
.bet-other-game-btn {
    position: relative;
}

/* 下拉選單樣式 */
.multiplier-dropdown {
    position: absolute;
    top: 0px;
    left: 106px;
    /* width: 54px; */
    color: #000000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    margin-top: 3px;
}

/* 下拉選單項目樣式 */
.multiplier-option {
    padding: 7px 6px;
    font-size: 24px;
    font-weight: bolder;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #ccc;
}

.multiplier-option:hover {
    background-color: #adadad;
}

/* 當滑鼠懸浮在按鈕上時顯示下拉選單 */
/* 設定第1層的顏色為綠色，第2層藍色，第3層紅色 */
.bet-other-game-row:hover .multiplier-dropdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    
}

.bet-other-game-row:hover .multiplier-dropdown .multiplier-option:nth-child(-n+4) {
    background-color: #388e3c; /* 第1層顏色 */
    color: #ffffff;
    transition: background-color 0.2s;
}

.bet-other-game-row:hover .multiplier-dropdown .multiplier-option:nth-child(-n+4):hover {
    background-color: #00BCD4; /* 第1層顏色 */
    color: #000;
}

.bet-other-game-row:hover .multiplier-dropdown .multiplier-option:nth-child(n+5):nth-child(-n+8) {
    background-color: #388e3c; /* 第1層顏色 */
    color: #ffffff;
    transition: background-color 0.2s;
}

.bet-other-game-row:hover .multiplier-dropdown .multiplier-option:nth-child(n+5):nth-child(-n+8):hover {
    background-color: #00BCD4; /* 第1層顏色 */
    color: #000;
}

.bet-other-game-row:hover .multiplier-dropdown .multiplier-option:nth-child(n+9):nth-child(-n+12) {
    background-color: #388e3c; /* 第1層顏色 */
    color: #ffffff;
    transition: background-color 0.2s;
}

.bet-other-game-row:hover .multiplier-dropdown .multiplier-option:nth-child(n+9):nth-child(-n+12):hover {   
    background-color: #00BCD4; /* 第1層顏色 */
    color: #000;
}

/* 確保父容器不會限制子元素溢出 */
.bet-other-game-btn {
    position: relative;
    overflow: visible;
}

.bet-other-game-row {
    overflow: visible;
}

.bet-other-game {
    overflow: visible;
}

.bet-actions {
    overflow: visible;
}

.bet-section {
    overflow: visible;
}

.quick-bet-content {
    overflow: visible;
}

.quick-bet-panel {
    overflow: visible;
}

.fixed-bet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    margin-top: 48px;
    gap: 12px;
    transform: translateY(-100%);
    pointer-events: none;
    transition: transform 0.5s ease-in-out;
    will-change: transform, opacity;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(3px); 
}

.fixed-bet-container.active {
    transform: translateY(0%);
    pointer-events: auto;
    
}


@keyframes slideDown {
    from {
        transform: translateY(-100%); /* 從上方進入 */
        opacity: 0; /* 開始時透明 */
    }
    to {
        transform: translateY(0); /* 最終位置 */
        opacity: 1; /* 完全不透明 */
    }
}



.function-buttons {
    padding: 12px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    background: #f7ffc8;
    margin: 6px;
    border-radius: 6px;
}
.bet-function-btn {
    background-color: #ffffff;
    color: #000000;
    border-radius: 6px;
    border: 0px solid #ddd;
    box-shadow: 0 4px 5px 2px rgba(0, 0, 0, 0.4);
    padding: 3px 6px;
    font-size: 24px;
    font-weight: bolder;
}

.bet-function-btn:hover {
    background-color: #efefef;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.4);
}

.bet-function-btn.active {
    background-color:#0984e3;
    color: #ffffff;
    box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4);
}

.quick-bet-option {
    display: flex;
    gap: 6px;
    padding: 8px;
    margin: 10px 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    height: 390px;
    width: auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.quick-bet-btn {
    width: 180px;
    padding: 2px 6px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(145deg, #2980b9, #3498db);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    
}
.quick-bet-btn.active {
    display: flex;
    align-content: flex-start;
    flex-direction: row;
}

.quick-bet-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    border-radius: 10px;
}

.quick-bet-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, #3498db, #2980b9);
}

.quick-bet-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #2980b9, #2980b9);
}

.quick-bet-btn-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    font-family:  "微軟正黑體", Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: block;
}

.quick-bet-btn-amount {
    font-size: 26px;
    color: #ffeb3b;
    font-weight: 600;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.quick-bet-btn-time {
    font-size: 20px;
    color: #dcedc8;
    font-weight: 600;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.quick-pick-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d4e5ff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-direction: column;
}

.quick-pick-option {
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-bottom: 10px;
}

.quick-pick-btn {
    background: #ffa71e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 4px 5px 1px rgb(143 143 143);
    outline: none;
    position: relative;
    min-width: 110px;
}

.quick-pick-btn:hover{
    background: linear-gradient(135deg, #2196f3 0%, #4caf50 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(33,150,243,0.18);
}

/* .quick-pick-btn:active {
    background: linear-gradient(135deg, #388e3c 0%, #1976d2 100%);
    transform: scale(0.98);
} */

.quick-pick-btn-title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    display: block;
    text-align: center;
    padding: 8px 16px;
}

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

.quick-pick-header-title {
    font-size: 22px;
    font-weight: bold;
    color: #5d5d5d;
    letter-spacing: 2px;
    background: #31fba7;
    padding: 4px 32px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    border-bottom: 2.5px solid #4caf50;
    text-align: center;
    margin-bottom: 0;
    font-family:  "微軟正黑體", Arial, sans-serif;
}

.quick-select-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 參數調整區域 */
.quick-select-params {
    position: absolute;
    top: 100%;
    /* right: 0; */
    margin: 0 3px 0 0;
    background: #7ad158;
    border-radius: 0 0 6px 6px;
    padding: 5px;
    display: none;
    z-index: 2000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: -1px;
}
/* 參數輸入框樣式 */
.quick-select-params input {
    width: 35px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-align: center;
    font-size: 21px;
    font-family: 'TaipeiSansTCBeta', sans-serif;
    cursor: default;
}
.quick-select-container:hover .quick-select-params {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* 禁用輸入框的直接輸入 */
.quick-select-params input::-webkit-outer-spin-button,
.quick-select-params input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 調整按鈕樣式 */
.quick-select-params button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 33px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.quick-select-params button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 包牌參數區塊樣式 */
.meal-bet-container {
    background: #f7ffc8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    /* padding: 18px 20px 10px 20px; */
    /* margin: 10px 0 0 0; */
    /* min-width: 320px; */
    /* max-width: 420px; */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 380px;
}

.meal-bet-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 12px; */
}

.meal-bet-header-title {
    font-size: 22px;
    font-weight: bold;
    color: #5d5d5d;
    letter-spacing: 2px;
    background: #31fba7;
    padding: 8px 22px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    border-bottom: 2.5px solid #4caf50;
    text-align: center;
    margin-bottom: 0;
    font-family:  "微軟正黑體", Arial, sans-serif;
}

.meal-bet-option {
    display: flex;
    margin-top: 16px;
    gap: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    width: auto;
}

.meal-bet-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #c0ff00;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(33, 150, 243, 0.05);
    /* padding: 10px 8px 8px 8px; */
    min-width: 70px;
}

.meal-bet-option-item-title {
    font-size: 18px;
    font-weight: bold;
    padding: 6px 0px;
    color: #414141;
    letter-spacing: 1px;
}

.meal-bet-option-item-content {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #7ad158;
    border-radius: 0 0 6px 6px;
    padding: 5px;
    margin-top: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.meal-bet-option-item-input {
    width: 35px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.meal-bet-option-item-content input {
    width: 35px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-align: right;
    font-size: 21px;
    font-family: 'TaipeiSansTCBeta', sans-serif;
    cursor: default;
    display: ruby;
}

.meal-bet-option-item-content button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 33px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.meal-bet-option-item-content button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quick-bet-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-right: 10px;
    width: 1152px;
}

.quick-bet-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow-y: auto; 
    overflow-x: hidden;
     scrollbar-width: thin;
}
.quick-select-btn-container {
    background: #f7ffc8;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /* 新增：讓子項垂直方向自動平均分配間距 */
    justify-content: space-between;
    /* gap: 2px;  可視需求移除或保留固定間距 */
    /* 若容器本身需要有高度才能生效，請補上：
       height: 100%; 或具體像素／百分比高度 */
}
span.quick-select-btn-title {
    font-size: 24px;
    font-weight: bolder;
    /* line-height: 1; 添加行高 */
}
.quick-select {
    display: none;
    flex-direction: row;
    position: absolute;
    left: 224px;
    top: 8px;
    gap: 8px;
    background: #f1dd49;
    border-radius: 8px;
    align-items: flex-end;
    /* height: -webkit-fill-available; */
}
.quick-select.active {
    display: flex;
    animation: slideInFromLeft 0.5s ease-in-out; /* 加上從左側滑入的動畫 */
    z-index: 1000;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%); /* 從左側滑入 */
        opacity: 0;
    }
    to {
        transform: translateX(0); /* 移動到原位置 */
        opacity: 1;
    }
}


.quick-select-btn-header {
    display: flex;
    justify-content: center;
}
.quick-select-btn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.quick-select-btns {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: #f1dd49;
    padding: 8px;
    border-radius: 8px;
    /* height: -webkit-fill-available; */
}
.quick-select-btn-item.selected {
    background-color: #1e88e5;
    color: white;
    font-weight: bold;
}
.quick-select-btn-item:hover {
    background-color: #adadad;
    color: white;
    font-weight: bold;
}
button.quick-select-btn-item {
    font-size: 24px;
    font-weight: bolder;
    background: #ffffff;
    border: 1px solid #8b8b8b;
    border-radius: 5px;
    padding: 4px 2px;
    cursor: pointer;
    color: #555555;
    line-height: 1;
}

.quick-select-amount {
    background-color: #f7ffc8;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 10px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: min-content;
}
span.quick-select-time-title {
    font-size: 20px;
    font-weight: bolder;
}
.quick-select-time-content {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    justify-content: space-between;
    width: 140px;
}
.quick-select-time-item {
    display: flex;
    align-items: center;
    border-radius: 3px;
    padding: 2px 6px;
}
span.quick-select-time-item-title {
    font-size: 20px;
    font-weight: bolder;
}
span.quick-select-amount-title {
    font-size: 20px;
    font-weight: bolder;
}

.quick-select-amount-content {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    justify-content: space-between;
}
span.quick-select-amount-item-title {
    font-size: 20px;
    font-weight: bolder;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    height: -webkit-fill-available;
}
button.quick-select-print-btn {
    background: #26af26;
    color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bolder;
    width: 100%;
}
.ad-container-fixed-bet {
    width: 500px;
    height: 400px;
    background: #e3e3e3;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ad-content {
    display: contents;
}

button.bet-other-game-btn[data-game="number"].active {
    width: 34px;
    height: 34px;
    font-size: 26px;
    font-weight: bolder;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 0px;
    cursor: pointer;
}
button.bet-other-game-btn[data-game="number"]:hover {
    width: 34px;
    height: 34px;
    font-size: 26px;
    font-weight: bolder;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 0px;
    cursor: pointer;
}
button.bet-other-game-btn[data-game="period"].active {
    width: 34px;
    height: 34px;
    font-size: 26px;
    font-weight: bolder;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 0px;
    cursor: pointer;
}
button.bet-other-game-btn[data-game="period"]:hover {
    width: 34px;
    height: 34px;
    font-size: 26px;
    font-weight: bolder;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 0px;
    cursor: pointer;
}

/* 自定義滾動條容器 */
.custom-scrollbar {
    position: fixed;
    right: 0px;
    top: 0;
    width: 16px;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-scrollbar:hover {
    opacity: 1;
}

/* 滾動條滑塊 */
.scrollbar-thumb {
    position: absolute;
    width: 16px;
    background-color: rgba(100, 100, 100, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.scrollbar-thumb:hover, .scrollbar-thumb.active {
    background-color: rgba(100, 100, 100, 0.8);
}

/* 當滾動頁面時顯示滾動條 */
.custom-scrollbar.scrolling {
    opacity: 1;
}

.super-number-line-container {
    height: auto;
    /* background: #e9e9e9; */
    padding: 2px;
    width: auto;
    display: flex;
    justify-content: center;
}
.super-number-line-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 2px 4px 2px 4px;
    gap: 4px;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    /* box-shadow: 0 5px 6px 3px rgba(0, 0, 0, 0.2); */
}

.super-number-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--super-number-bg-color, #ff6b6b);
    color: var(--super-number-color, white);
    font-weight: bold;
    font-size: 26px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0px 3.2px;
}

.super-number-cell.very-frequent {
    background-color: #800000; /* 深紅色 */
}

.super-number-cell.frequent {
    background-color: #ff0000; /* 紅色 */
}

.super-number-cell.rare {
    background-color: #4f9f3c; /* 深綠色 */
}

.super-number-cell:nth-child(2) {
    /* border: 3px solid #ffd700; */
    position: relative;
}

.super-number-cell:nth-child(2)::after {
    content: "最新";
    position: absolute;
    top: -16px;
    font-size: 12px;
    color: #333;
    z-index: 999;
}
.super-number-cell:last-child {
    /* border: 3px solid #ffd700; */
    position: relative;
}
.super-number-cell:last-child::after {
    content: "最舊";
    position: absolute;
    top: -16px;
    font-size: 12px;
    color: #333;
    z-index: 999;
}

h3.super-number-title {
    line-height: 0px;
    font-size: 24px;
}

/* 大小順序線樣式 */
.bigsmall-line-container, .odd-even-line-container {
    height: auto;
    padding: 2px;
    width: auto;
    display: flex;
    justify-content: center;
    /* margin-bottom: 10px; */
}

.bigsmall-line-wrapper, .oddeven-line-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;    
    padding: 2px 4px 2px 4px;
    /* gap: 4px; */
    align-items: center;
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    /* box-shadow: 0 5px 6px 3px rgba(0, 0, 0, 0.2); */
}

.bigsmall-cell, .oddeven-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0px 0.3px;
}

/* 大小樣式 */
.bigsmall-cell.big {
    background-color: var(--big-bg-color, #4285f4);
    color: white;
}

.bigsmall-cell.small {
    background-color: var(--small-bg-color, #fbbc05);
    color: white;
}

.bigsmall-cell.neutral {
    background-color: var(--no-value-bg-color, #9e9e9e);
    color: white;
}

/* 單雙樣式 */
.oddeven-cell.odd {
    background-color: var(--odd-bg-color, #ea4335);
    color: white;
}

.oddeven-cell.even {
    background-color: var(--even-bg-color, #34a853);
    color: white;
}

.oddeven-cell.neutral {
    background-color: var(--no-value-bg-color, #9e9e9e);
    color: white;
}

/* 標題樣式 */
h3.bigsmall-title, h3.oddeven-title {
    line-height: 0px;
    font-size: 24px;
    /* margin-right: 10px; */
}

/* 最新一期顯示特殊標記 */
.bigsmall-cell:nth-child(2), .oddeven-cell:nth-child(2) {
    position: relative;
}

.bigsmall-cell:nth-child(2)::after, .oddeven-cell:nth-child(2)::after {
    /* content: "最新"; */
    position: absolute;
    top: -16px;
    font-size: 12px;
    color: #333;
    z-index: 1000;
}

/* 最舊一期顯示特殊標記 */
.bigsmall-cell:last-child, .oddeven-cell:last-child {
    position: relative;
}

.bigsmall-cell:last-child::after, .oddeven-cell:last-child::after {
    /* content: "最舊"; */
    position: absolute;
    top: -16px;
    font-size: 12px;
    color: #333;
    z-index: 1000;
}

/* 水平線標題容器 */
.line-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 10px;
}

/* 關閉按鈕樣式 */
.line-close-btn {
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 8px;
    line-height: 1;
    border-radius: 50%;
    height: 22px;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.2s;
}

.line-close-btn:hover {
    background-color: #f1f1f1;
    color: #333;
    opacity: 1;
}

/* 水平線包裝器調整 */
.super-number-line-wrapper,
.bigsmall-line-wrapper,
.oddeven-line-wrapper,
.hot-number-line-wrapper,
.cold-number-line-wrapper {
    position: relative;
    padding-right: 10px;
}
h3.hot-number-title {
    line-height: 0px;
    font-size: 24px;
}

.hot-number-line-container {
    height: auto;
    padding: 2px;
    width: auto;
    display: flex;
    justify-content: center;
    /* margin-bottom: 10px; */
}

.hot-number-line-wrapper {
    display: flex;
    flex-direction: row;    
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: relative;
    align-items: center;
    width: 100%;
    /* gap: 0px; */
    border: 1px solid #d1d1d1;
    border-radius: 8px; 
    overflow:visible;
}

.hot-number-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 36px;
    color: var(--super-number-color, white);
    font-weight: bold;
    font-size: 26px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 4px;
    margin-right: 2px;
}


/* 熱門號碼單元格容器 */
.hot-number-cell-container {
    position: relative;
    display: inline-block;
    margin: 0 1.15px;
    border-radius: 50%;
    background-color: #e74c3c;
}

/* 熱門號碼的計數標籤 */
.count-badge {
    position: absolute;
    top: -7px;
    right: -5px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    border: 1px solid #d1d1d1;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 999;
}
h3.cold-number-title {
    line-height: 0px;
    font-size: 24px;
}

.cold-number-line-container {
    height: auto;
    padding: 2px;
    width: auto;
    display: flex;
    justify-content: center;
    /* margin-bottom: 10px; */
}

.cold-number-line-wrapper {
    display: flex;
    flex-direction: row;    
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: relative;
    align-items: center;
    width: 100%;
    /* gap: 0px; */
    border: 1px solid #d1d1d1;
    border-radius: 8px; 
    overflow:visible;
}

.cold-number-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 36px;
    color: var(--super-number-color, white);
    font-weight: bold;
    font-size: 26px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 4px;
    margin-right: 2px;
}


/* 冷門號碼單元格容器 */
.cold-number-cell-container {
    position: relative;
    display: inline-block;
    margin: 0 1.15px;
    border-radius: 50%;
    background-color: #74b9ff;
}

.line-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.repeat-info{
    display: none;
}

.number-cell.super-number.repeated {
    color: white !important;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.7); /* 輕微發光效果 */
    border: 4px solid rgba(255, 255, 0, 0.7) !important; 
    background-color: rgba(76, 175, 80, 0.7) !important;
    position: relative;
    z-index: 1;
}

.number-cell.super-number {
    background-color: #e53935; /* 紅色表示超級獎號 */
    color: white;
    border: 4px solid rgba(255, 255, 0, 0.9) !important; /* 黃色邊框 */
    box-sizing: border-box; /* 確保邊框不影響元素大小 */
    position: relative; /* 為偽元素提供定位上下文 */
    z-index: 1; /* 確保元素在其他元素之上 */
    animation: superNumberBlink 2s infinite; /* 每2秒閃爍一次，無限循環 */
    animation-timing-function: ease-in-out !important;
}

.number-cell.super-number.repeated::after {
    top: -14px;
    right: -14px;
}

.number-cell.super-number.panel-use {
    animation: unset !important; /* 每2秒閃爍一次，無限循環 */
    animation-timing-function: unset !important;
}
/* 拖動把手樣式 */
.drag-handle {
    cursor: move;
    text-align: center;
    padding: 2px;
    font-size: 16px;
    color: #888;
}

/* 拖動時的樣式 */
[draggable="true"].dragging {
    opacity: 0.5;
    border: 2px dashed #ccc;
}

/* 懸浮時鐘樣式 */
.floating-clock {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    z-index: 9999;
    background-color: #ffffff78;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.floating-clock.hidden {
    transform: translate(-50%, -100%);
    opacity: 0;
    pointer-events: none;
}

.floating-clock.show {
    transform: translate(-50%, 80px);
    opacity: 1;
}

.floating-clock.dragging {
    opacity: 0.8;
    transition: none;
}

.clock-face {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff00;
    border: 2px solid var(--border-color, #ccc);
}

.hour-hand, .minute-hand, .second-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    border-radius: 4px;
}

.hour-hand {
    width: 4px;
    height: 35px;
    background-color: var(--text-color, #333);
    transform: translateX(-50%);
}

.minute-hand {
    width: 3px;
    height: 45px;
    background-color: var(--text-color, #333);
    transform: translateX(-50%);
}

.second-hand {
    width: 2px;
    height: 50px;
    background-color: var(--accent-color, #f44336);
    transform: translateX(-50%);
}

.center-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color, #f44336);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.digital-time {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color, #333);
}

.countdown-timer {
    margin-top: 5px;
    font-size: 70px;
    font-weight: bold;
    color: #e53935;
    position: fixed;
    z-index: 1000;
    text-shadow: 1px 1px 0 #332b2b, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

/* 時鐘數字標記 */
.clock-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 50% 12%, #000 1px, transparent 2px),
        radial-gradient(circle at 88% 50%, #000 1px, transparent 2px),
        radial-gradient(circle at 50% 88%, #000 1px, transparent 2px),
        radial-gradient(circle at 12% 50%, #000 1px, transparent 2px),
        radial-gradient(circle at 81% 19%, #000 1px, transparent 2px),
        radial-gradient(circle at 81% 81%, #000 1px, transparent 2px),
        radial-gradient(circle at 19% 81%, #000 1px, transparent 2px),
        radial-gradient(circle at 19% 19%, #000 1px, transparent 2px);
}

.right-panel {
    display: flex;
    flex-direction: column;
}

.other-option-item {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
}

.ios body, .ios html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    min-width: 1920px;
}

@keyframes superNumberBlink {
    0%, 100% {
        border: 4px solid rgba(255, 255, 0, 0.9);
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.8);
        transform: scale(1);
    }
    50% {
        border: 4px solid rgba(255, 0, 0, 0.9);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.9);
        transform: scale(1.1);
    }
}

.other-option-btn {
    border: none;
    background: none;
    font-size: 18px;
    padding: 2px 8px;
    cursor: pointer;
    color: #464646;
    font-weight: bold;
}
.other-select-container {
    margin: 0px 10px 18px 0px;
}
.other-option-btn.active {
    color: #ffffff;
    font-weight: bold;
    border: 2px solid #1976d2;
    border-radius: 8px;
    background: #0093ff;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    padding: 2px 4px;
}

.slash {
    color: #aaa;
    margin: 0 2px;
    font-size: 18px;
    user-select: none;
}

.quick-select-btn-item.disabled-star {
    background: #e0e0e0 !important;
    color: #b0b0b0 !important;
    border: 1.5px dashed #b0b0b0 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    font-weight: normal;
    text-decoration: none;
    opacity: 0.7;
}

.quick-select-btn-container.disabled-star-container {
    background: #e0e0e0 !important;
    border-radius: 8px;
    opacity: 0.7;
    pointer-events: none;
}
.quick-select-btn-container.disabled-star-container .quick-select-btn-title,
.quick-select-btn-container.disabled-star-container button {
    color: #b0b0b0 !important;
    border-color: #b0b0b0 !important;
    background: #e0e0e0 !important;
    cursor: not-allowed !important;
    text-decoration: none;
    font-weight: normal;
}
.mini-stats-count-label {
    margin-left: 8px;
    font-size: 34px;
    color: #1976d2;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 6px;
    width: 65px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mini-stats-miss-label {
    margin-left: 10px;
    font-size: 34px;
    color: #c50e0e;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 6px;
    width: 65px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mini-stats-size-odd-even-row {
    display: flex;
    align-items: center;
}
.mini-stats-size-list{
    display: flex;
    flex-direction: column;
    background: #92afd6;
    padding: 6px;
    border-radius: 10px;
    gap: 8px;
}
.mini-stats-size-odd-even-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #aac8b9;
    padding: 6px;
    border-radius: 10px;
}
.mini-stats-size-odd-even-header {
    font-weight: bold;
    color: #555;
    font-size: 15px;
    margin-bottom: 2px;
    letter-spacing: 2px;
}
.mini-stats-size-odd-even-header span {
    margin-left: 0 !important;
}

.mini-stats-section-title.big-small-odd-even{
    display: none;
}
span#count-label {
    font-size: 24px;
    font-weight: bold;
    margin-left:38px;
    color: #1976d2;
}
span#miss-label {
    font-size: 24px;
    font-weight: bold;
    margin-left: 30px;
    color: #d32f2f;
}
.indicator-box.mini-info-box{
    width: 50px;
    height: 50px;
    font-size: 36px;
}
.mini-stats-size-odd-even-row-header{
    background: #FFFFFF;
    border-radius: 10px;
}

.draw-number-container {
    margin: 20px 20px;
    background: #575757;
    border-radius: 8px;
    padding: 15px;
}

.draw-number-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--header-bg-color, #007bff);
}

.draw-number-header h3 {
    margin: 0;
    color: var(--term-color, #333);
    font-size: 18px;
    font-weight: 600;
}

.display-info {
    color: var(--time-text-color, #666);
    font-size: 14px;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--time-text-color, #666);
    font-size: 16px;
}

.draw-number-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.draw-number-item {
    display: flex;
    width: fit-content;
    gap: 20px;
    background: #494141;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--header-bg-color, #007bff);
    transition: all 0.3s ease;
    align-content: center;
    align-items: center;
}

.draw-number-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.draw-info-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.draw-term-info {
    font-weight: bold;
    font-size: 28px;
    color: #d9d9d9;
}

.draw-time-info {
    font-size: 28px;
    color: #000;
    background: #d9d9d9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.draw-numbers-section {
    margin-bottom: 0px;
}

.normal-numbers-container,
.super-number-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.numbers-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--term-color, #333);
    min-width: 80px;
}

.super-label {
    color: var(--super-number-color, #ff6b35);
}

.numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.number-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.normal-number {
    background: var(--drawn-number-bg-color, #4CAF50);
    color: var(--drawn-number-color, white);
}

.super-number-item {
    background: var(--super-number-bg-color, #ff6b35);
    color: var(--super-number-color, white);
    border: 2px solid #ff8c69;
}

.draw-stats-section {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 24px;
}

.stat-label {
    font-weight: 600;
    color: #FFF;
}

.stat-value {
    color: var(--time-text-color, #666);
    background: var(--time-bg-color, #f0f0f0);
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}


.super-number-highlight {
    background: var(--super-number-bg-color, #ff6b35) !important;
    color: var(--super-number-color, white) !important;
    border-radius: 3px;
    font-weight: bold;
}

.repeated-highlight {
    background: var(--repeated-bg-color-2, #ffa726) !important;
    color: var(--repeated-color-2, white) !important;
    border-radius: 3px;
    font-weight: bold;
}

/* 編輯控制樣式 */
.edit-controls-container {
    margin-top: 15px;
    padding: 10px;
}

.edit-btn{
    background-color: #27bb40;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bolder;
    font-family: auto;
    margin-bottom: 10px;
}
.edit-btn:hover {
    background-color: #0056b3;
}

.edit-btn.active {
    background-color: #28a745;
}

.edit-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.add-btn, .save-btn, .cancel-btn, .delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.add-btn {
    background-color: #28a745;
    color: white;
}

.add-btn:hover {
    background-color: #1e7e34;
}

.save-btn {
    background-color: #ffc107;
    color: #212529;
}

.save-btn:hover {
    background-color: #e0a800;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #545b62;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* 編輯狀態下的 quick-bet-btn 樣式 */
.edit-mode .quick-bet-btn {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-mode .quick-bet-btn:hover {
    background-color: #90ee90;
    transform: scale(1.02);
}

.edit-mode .quick-bet-btn.edit-selected {
    background: #52d152;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
}