﻿.game-image-preview-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #2a2a2a;
}
.light-theme .game-image-preview-section {
    border-bottom-color: #e0e0e0;
}
.game-image-preview {
    width: 100px;
    height: 100px;
    min-width: 100px;
    flex-shrink: 0;
}
#gameModal .env-status-grid {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    border: 1px solid #2a2a2a;
    padding: 0.625rem;
}
.light-theme #gameModal .env-status-grid {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: #e5e7eb;
}
/* 輪播設定圖片預覽區 */
.carousel-image-preview-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}
.light-theme .carousel-image-preview-section {
    border-bottom-color: #e0e0e0;
}
.carousel-preview-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.carousel-preview-item {
    flex: 1;
    min-width: 200px;
}
.carousel-preview-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}
.carousel-image-preview {
    width: 100%;
    height: 120px;
    background: #1a1a2e;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border: 1px dashed #3a3a4a;
    overflow: hidden;
}
.light-theme .carousel-image-preview {
    background: #f3f4f6;
    border-color: #d1d5db;
}
.carousel-image-preview i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.carousel-image-preview span {
    font-size: 0.75rem;
}
.carousel-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* 輪播表格預覽圖樣式 - 原圖 800x247，比例 3.24:1 */
.carousel-table-preview {
    position: relative;
    width: 220px;
    height: 68px;
    border-radius: 6px;
    overflow: visible;
    cursor: pointer;
}
.carousel-table-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}
.carousel-table-preview:hover .carousel-table-img {
    transform: scale(3.64);
    transform-origin: left center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 100;
    border-radius: 4px;
}
.carousel-table-placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a40;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}
.light-theme .carousel-table-placeholder {
    background: #e5e7eb;
    color: #9ca3af;
}
/* 操作按鈕文字 - 桌面版隱藏 */
.action-btn-text {
    display: none;
}
/* 全螢幕圖片預覽覆蓋層 - 手機版 tap 預覽 */
.carousel-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.carousel-fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}
.carousel-fullscreen-overlay img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.carousel-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.carousel-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
/* Badge 樣式 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.badge-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}
.light-theme .badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.light-theme .badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.light-theme .badge-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* 通用隱藏類 */
.hidden {
    display: none !important;
}

/* 批量編輯 Config Modal 樣式 - 黑金/白金配色 */
#batchConfigModal .modal-content {
    max-width: 580px;
    border: 1px solid rgba(212, 165, 32, 0.3);
}
#batchConfigModal .modal-header {
    background: linear-gradient(135deg, rgba(212, 165, 32, 0.15) 0%, rgba(184, 134, 11, 0.1) 100%);
    border-bottom: 1px solid rgba(212, 165, 32, 0.2);
}
#batchConfigModal .modal-header h3 {
    color: #d4a520;
}
.light-theme #batchConfigModal .modal-content {
    border-color: rgba(184, 134, 11, 0.25);
}
.light-theme #batchConfigModal .modal-header {
    background: linear-gradient(135deg, rgba(212, 165, 32, 0.12) 0%, rgba(245, 197, 66, 0.08) 100%);
    border-bottom-color: rgba(184, 134, 11, 0.15);
}
.light-theme #batchConfigModal .modal-header h3 {
    color: #b8860b;
}

.batch-config-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 165, 32, 0.15);
}
.light-theme .batch-config-steps {
    border-bottom-color: rgba(184, 134, 11, 0.12);
}

.batch-config-steps .step {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #666;
    font-size: 0.8125rem;
}
.batch-config-steps .step.active {
    color: #d4a520;
}
.batch-config-steps .step.completed {
    color: #22c55e;
}
.batch-config-steps .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(212, 165, 32, 0.15);
    border: 1px solid rgba(212, 165, 32, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: #888;
}
.batch-config-steps .step.active .step-number {
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    border-color: #d4a520;
    color: white;
}
.batch-config-steps .step.completed .step-number {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}
.batch-config-steps .step-divider {
    width: 40px;
    height: 2px;
    background: rgba(212, 165, 32, 0.2);
    margin: 0 0.5rem;
}
.batch-config-steps .step.completed + .step-divider {
    background: #22c55e;
}

.batch-config-info {
    background: rgba(212, 165, 32, 0.08);
    border: 1px solid rgba(212, 165, 32, 0.25);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.batch-config-info i,
.batch-config-info strong {
    color: #d4a520;
}
.batch-config-info.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}
.batch-config-info.warning i {
    color: #f59e0b;
}
.light-theme .batch-config-info {
    background: rgba(184, 134, 11, 0.06);
    border-color: rgba(184, 134, 11, 0.2);
}
.light-theme .batch-config-info strong {
    color: #b8860b;
}

.batch-game-select-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.batch-game-select-search {
    position: relative;
    flex: 1;
    max-width: 180px;
}
.batch-game-select-search i {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.6875rem;
}
.batch-game-select-search input {
    width: 100%;
    padding: 0.3rem 0.5rem 0.3rem 1.625rem;
    border: 1px solid rgba(212, 165, 32, 0.2);
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    font-size: 0.75rem;
}
.batch-game-select-search input:focus {
    border-color: #d4a520;
    outline: none;
}
.light-theme .batch-game-select-search input {
    border-color: rgba(184, 134, 11, 0.2);
    background: white;
}
.batch-game-select-count {
    font-size: 0.75rem;
    color: #888;
    margin-left: auto;
}
.batch-game-select-count strong {
    color: #d4a520;
}

/* 表頭樣式 */
.batch-game-table-header {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.5rem;
    background: rgba(212, 165, 32, 0.12);
    border: 1px solid rgba(212, 165, 32, 0.15);
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #d4a520;
}
.light-theme .batch-game-table-header {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.12);
    color: #b8860b;
}
.batch-game-table-header .sortable {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.15s;
}
.batch-game-table-header .sortable:hover {
    color: #f0c040;
}
.light-theme .batch-game-table-header .sortable:hover {
    color: #8b6914;
}
.batch-game-table-header .sortable i {
    font-size: 0.6rem;
    opacity: 0.4;
}
.batch-game-table-header .sortable.active i {
    opacity: 1;
}
.batch-game-table-header .sortable.active {
    color: #f0c040;
}
.light-theme .batch-game-table-header .sortable.active {
    color: #8b6914;
}

/* Checkbox 樣式 */
.batch-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.batch-checkbox-label input,
.batch-config-field-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.batch-checkmark {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(212, 165, 32, 0.5);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: transparent;
}
.batch-checkbox-label:hover .batch-checkmark,
.batch-config-field-checkbox:hover .batch-checkmark {
    border-color: #d4a520;
}
.batch-checkbox-label input:checked ~ .batch-checkmark,
.batch-config-field-checkbox input:checked ~ .batch-checkmark {
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    border-color: #d4a520;
}
.batch-checkbox-label input:checked ~ .batch-checkmark::after,
.batch-config-field-checkbox input:checked ~ .batch-checkmark::after {
    content: '';
    display: block;
    width: 3px;
    height: 6px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.batch-checkbox-label input:indeterminate ~ .batch-checkmark {
    background: rgba(212, 165, 32, 0.5);
    border-color: #d4a520;
}
.batch-checkbox-label input:indeterminate ~ .batch-checkmark::after {
    content: '';
    display: block;
    width: 8px;
    height: 2px;
    background: white;
}

/* 欄位寬度 */
.batch-game-col-checkbox {
    width: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.batch-game-col-thumb {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
}
.batch-game-col-project {
    flex: 1;
    min-width: 0;
    padding: 0 0.25rem;
}
.batch-game-col-game {
    flex: 1;
    min-width: 0;
    padding: 0 0.25rem;
}
.batch-game-col-version {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.batch-game-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(212, 165, 32, 0.15);
    border-radius: 0 0 0.375rem 0.375rem;
    background: rgba(0, 0, 0, 0.15);
}
.light-theme .batch-game-list {
    border-color: rgba(184, 134, 11, 0.12);
    background: rgba(0, 0, 0, 0.02);
}

.batch-game-item {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid rgba(212, 165, 32, 0.08);
    cursor: pointer;
    transition: background 0.15s;
}
.batch-game-item:hover {
    background: rgba(212, 165, 32, 0.08);
}
.batch-game-item:last-child {
    border-bottom: none;
}
.batch-game-item.selected {
    background: rgba(212, 165, 32, 0.15);
}
.batch-game-item.hidden {
    display: none;
}

.batch-game-thumb {
    width: 32px;
    height: 32px;
    border-radius: 0.25rem;
    overflow: hidden;
    background: rgba(212, 165, 32, 0.1);
    flex-shrink: 0;
    border: 1px solid rgba(212, 165, 32, 0.15);
}
.batch-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.batch-game-text {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.batch-game-text.project-code {
    font-weight: 500;
}
.batch-game-text.game-code {
    color: #888;
}
.batch-game-text.version {
    color: #d4a520;
    font-size: 0.65rem;
}
.light-theme .batch-game-text.version {
    color: #b8860b;
}

/* 步驟2：模式選擇 */
.batch-config-mode-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    border: 1px solid rgba(212, 165, 32, 0.1);
}
.light-theme .batch-config-mode-selector {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(184, 134, 11, 0.1);
}
.batch-config-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.batch-config-mode-option:hover {
    background: rgba(212, 165, 32, 0.08);
}
.batch-config-mode-option:has(input:checked) {
    background: rgba(212, 165, 32, 0.12);
    border-color: rgba(212, 165, 32, 0.3);
}
.light-theme .batch-config-mode-option:has(input:checked) {
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.25);
}
.batch-config-mode-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.batch-config-mode-radio {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(212, 165, 32, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.15s;
}
.batch-config-mode-option:hover .batch-config-mode-radio {
    border-color: #d4a520;
}
.batch-config-mode-option input:checked ~ .batch-config-mode-radio {
    border-color: #d4a520;
}
.batch-config-mode-option input:checked ~ .batch-config-mode-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    border-radius: 50%;
}
.batch-config-mode-label {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.batch-config-mode-label strong {
    font-size: 0.75rem;
    color: inherit;
}
.batch-config-mode-label small {
    font-size: 0.65rem;
    color: #888;
}

/* 步驟2：Config編輯表單 */
.batch-config-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.batch-config-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: rgba(212, 165, 32, 0.03);
    border: 1px solid rgba(212, 165, 32, 0.12);
    border-radius: 0.375rem;
    transition: all 0.15s;
}
.batch-config-field.enabled {
    border-color: #d4a520;
    background: rgba(212, 165, 32, 0.08);
}
.batch-config-field.disabled-mode {
    opacity: 0.4;
    pointer-events: none;
}
.light-theme .batch-config-field {
    background: rgba(184, 134, 11, 0.03);
    border-color: rgba(184, 134, 11, 0.1);
}
.light-theme .batch-config-field.enabled {
    border-color: #b8860b;
    background: rgba(184, 134, 11, 0.06);
}

.batch-config-field-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-top: 0.125rem;
    position: relative;
}
.batch-config-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.batch-config-row .batch-config-field {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.375rem 0.5rem;
}
.batch-config-row .batch-config-field-checkbox {
    padding-top: 0;
}
.batch-config-row .batch-config-field-content {
    flex: 1;
    min-width: calc(100% - 22px);
}

.batch-config-field-full {
    width: 100%;
}

.batch-config-field-content {
    flex: 1;
    min-width: 0;
}
.batch-config-field-content .config-field-label {
    margin-bottom: 0.25rem;
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #d4a520;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.light-theme .batch-config-field-content .config-field-label {
    color: #b8860b;
}
.batch-config-field-content .config-field-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgba(212, 165, 32, 0.2);
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
}
.batch-config-field-content .config-field-input:focus {
    border-color: #d4a520;
    outline: none;
}
.batch-config-field-content .config-field-input:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.light-theme .batch-config-field-content .config-field-input {
    background: white;
    border-color: rgba(184, 134, 11, 0.2);
}

.batch-config-feature-flags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    margin-top: 0.25rem;
}
.batch-config-feature-flag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    border: 1px solid rgba(212, 165, 32, 0.1);
    transition: all 0.15s;
}
.light-theme .batch-config-feature-flag {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(184, 134, 11, 0.08);
}
.batch-config-feature-flag.disabled {
    opacity: 0.35;
    pointer-events: none;
}
.batch-config-feature-flag:not(.disabled):hover {
    background: rgba(212, 165, 32, 0.1);
    border-color: rgba(212, 165, 32, 0.2);
}
.batch-config-feature-flag-label {
    font-size: 0.6875rem;
}
.batch-config-no-flags {
    color: #888;
    font-size: 0.75rem;
    padding: 0.5rem;
    text-align: center;
}

/* 步驟3：進度和結果 */
.batch-config-progress {
    margin-bottom: 0.625rem;
}
.batch-config-progress .progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}
.batch-config-progress .progress-bar-container {
    height: 5px;
    background: rgba(212, 165, 32, 0.15);
    border-radius: 3px;
    overflow: hidden;
}
.batch-config-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4a520, #f5c542);
    border-radius: 3px;
    transition: width 0.3s;
}
.batch-config-progress.completed .progress-bar {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* 確認修改面板樣式 */
.batch-config-confirm-section {
    margin-bottom: 0.75rem;
}
.batch-config-confirm-section:last-child {
    margin-bottom: 0;
}
.batch-config-confirm-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    margin: 0 0 0.375rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
}
.batch-config-confirm-title i {
    color: #d4a520;
}
.light-theme .batch-config-confirm-title i {
    color: #b8860b;
}
.batch-config-confirm-games {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-height: 60px;
    overflow-y: auto;
    padding: 0.375rem 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    border: 1px solid rgba(212, 165, 32, 0.1);
}
.light-theme .batch-config-confirm-games {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(184, 134, 11, 0.1);
}
.batch-config-confirm-game-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    background: rgba(212, 165, 32, 0.12);
    border: 1px solid rgba(212, 165, 32, 0.2);
    border-radius: 0.1875rem;
    font-size: 0.625rem;
    color: #d4a520;
}
.light-theme .batch-config-confirm-game-tag {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.25);
    color: #b8860b;
}
.batch-config-confirm-changes {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    border: 1px solid rgba(212, 165, 32, 0.1);
    max-height: 220px;
    overflow-y: auto;
}
.light-theme .batch-config-confirm-changes {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(184, 134, 11, 0.1);
}

/* 模式標籤 */
.batch-config-confirm-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(212, 165, 32, 0.1);
}
.batch-config-confirm-mode .mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}
.batch-config-confirm-mode.selective .mode-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
.batch-config-confirm-mode.override .mode-badge {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}
.batch-config-confirm-mode .mode-desc {
    font-size: 0.65rem;
    color: #888;
}

/* 參數分組 */
.batch-config-confirm-group {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(212, 165, 32, 0.06);
}
.batch-config-confirm-group:last-child {
    border-bottom: none;
}
.batch-config-confirm-group-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.batch-config-confirm-group-title i {
    color: #d4a520;
    font-size: 0.6rem;
}
.light-theme .batch-config-confirm-group-title i {
    color: #b8860b;
}

/* Config 參數項目 */
.batch-config-confirm-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.batch-config-confirm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    font-size: 0.7rem;
}
.light-theme .batch-config-confirm-item {
    background: rgba(0, 0, 0, 0.04);
}
.batch-config-confirm-item.changed {
    background: rgba(212, 165, 32, 0.1);
    border-left: 2px solid #d4a520;
}
.light-theme .batch-config-confirm-item.changed {
    background: rgba(184, 134, 11, 0.08);
    border-left-color: #b8860b;
}
.confirm-item-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.light-theme .confirm-item-label {
    color: rgba(0, 0, 0, 0.7);
}
.confirm-item-label i {
    color: #d4a520;
    font-size: 0.6rem;
    width: 12px;
}
.light-theme .confirm-item-label i {
    color: #b8860b;
}
.confirm-item-value {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: monospace;
    font-size: 0.65rem;
}
.confirm-item-value .old-value {
    color: #888;
}
.confirm-item-value .fa-arrow-right {
    font-size: 0.5rem;
    color: #888;
    margin: 0 0.125rem;
}
.confirm-item-value .new-value {
    color: #d4a520;
    font-weight: 500;
}
.batch-config-confirm-item.unchanged .confirm-item-value .new-value {
    color: rgba(255, 255, 255, 0.6);
}
.light-theme .batch-config-confirm-item.unchanged .confirm-item-value .new-value {
    color: rgba(0, 0, 0, 0.5);
}

/* FeatureFlags 項目 */
.batch-config-confirm-group-items.flags {
    flex-direction: row;
    flex-wrap: wrap;
}
.batch-config-confirm-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    font-size: 0.65rem;
}
.light-theme .batch-config-confirm-flag {
    background: rgba(0, 0, 0, 0.04);
}
.batch-config-confirm-flag.changed {
    background: rgba(212, 165, 32, 0.1);
}
.batch-config-confirm-flag .flag-name {
    color: rgba(255, 255, 255, 0.7);
}
.light-theme .batch-config-confirm-flag .flag-name {
    color: rgba(0, 0, 0, 0.6);
}
.batch-config-confirm-flag .flag-value {
    padding: 0.125rem 0.375rem;
    border-radius: 0.125rem;
    font-weight: 600;
    font-size: 0.6rem;
}
.batch-config-confirm-flag .flag-value.true {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}
.batch-config-confirm-flag .flag-value.false {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.batch-config-confirm-no-changes {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.batch-config-confirm-no-changes i {
    font-size: 1.5rem;
    color: #22c55e;
}
.light-theme .batch-config-confirm-no-changes {
    color: rgba(0, 0, 0, 0.4);
}

.batch-config-results {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(212, 165, 32, 0.12);
    border-radius: 0.375rem;
}
.light-theme .batch-config-results {
    border-color: rgba(184, 134, 11, 0.1);
}

.batch-config-result-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid rgba(212, 165, 32, 0.06);
}
.batch-config-result-item:last-child {
    border-bottom: none;
}
.batch-config-result-item.success {
    background: rgba(34, 197, 94, 0.06);
}
.batch-config-result-item.error {
    background: rgba(239, 68, 68, 0.06);
}
.batch-config-result-item.pending {
    opacity: 0.5;
}

.batch-config-result-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}
.batch-config-result-icon.success {
    color: #22c55e;
}
.batch-config-result-icon.error {
    color: #ef4444;
}
.batch-config-result-icon.pending {
    color: #888;
}

.batch-config-result-info {
    flex: 1;
    min-width: 0;
}
.batch-config-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
}
.batch-config-result-name {
    font-weight: 500;
    font-size: 0.75rem;
}
.batch-config-result-time {
    font-size: 0.625rem;
    color: #d4a520;
    flex-shrink: 0;
}
.batch-config-result-message {
    font-size: 0.6875rem;
    color: #888;
    margin-top: 0.125rem;
}
.batch-config-result-changes {
    font-size: 0.625rem;
    color: #aaa;
    margin-top: 0.125rem;
    line-height: 1.3;
}
.batch-config-result-changes code {
    background: rgba(212, 165, 32, 0.15);
    padding: 0.0625rem 0.1875rem;
    border-radius: 2px;
    font-family: monospace;
    color: #d4a520;
}
.light-theme .batch-config-result-changes code {
    background: rgba(184, 134, 11, 0.1);
    color: #b8860b;
}

/* Modal Footer 按鈕優化 */
#batchConfigModal .modal-footer {
    border-top: 1px solid rgba(212, 165, 32, 0.15);
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}
#batchConfigModal .modal-footer .btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
}
#batchConfigModal .btn-primary {
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    border: none;
}
#batchConfigModal .btn-primary:hover {
    background: linear-gradient(135deg, #e5b52a 0%, #c9971c 100%);
}
#batchConfigModal .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.light-theme #batchConfigModal .modal-footer {
    border-top-color: rgba(184, 134, 11, 0.12);
}