/* Batch Character Operations Dialog Styles */

.batch-copy-dialog,
.batch-paste-dialog {
    padding: 10px;
}

.batch-copy-info,
.batch-paste-info {
    margin-bottom: 8px;
    font-size: 12px;
    color: #555;
}

.batch-copy-options,
.batch-paste-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.batch-option-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s;
}

.batch-option-label:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.batch-option-label input[type="radio"]:checked ~ .batch-option-text {
    font-weight: 600;
    color: #3498db;
}

.batch-option-label input[type="radio"]:checked {
    accent-color: #3498db;
}

.batch-option-radio {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
}

.batch-option-text {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.batch-char-selector {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.batch-char-selector-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.batch-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    width: auto;
    display: inline-block;
}

.batch-btn-primary {
    background: #3498db;
    color: white;
}

.batch-btn-primary:hover {
    background: #2980b9;
}

.batch-btn-secondary {
    background: #95a5a6;
    color: white;
}

.batch-btn-secondary:hover {
    background: #7f8c8d;
}

.batch-btn-success {
    background: #4caf50;
    color: white;
}

.batch-btn-success:hover {
    background: #45a049;
}

.batch-selected-count {
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.batch-char-grid {
    max-height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, auto));
    gap: 3px;
    padding: 6px;
    background: white;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.batch-char-item {
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 1px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: auto;
    min-width: 25px;
    max-width: 25px;
}

.batch-char-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.batch-char-item.selected {
    background: #fffacd;
    border-color: #ffd700;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.batch-char-item-label {
    font-size: 8px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1;
}

.batch-char-item-code {
    font-size: 6px;
    color: #666;
    line-height: 1;
}

.batch-char-bitmap-grid {
    display: grid;
    gap: 0;
    background: #ccc;
    padding: 1px;
    border: 1px solid #999;
}

.batch-char-bitmap-grid > div {
    width: 2px;
    height: 2px;
}

.batch-paste-mode-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.batch-paste-mode-title {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.batch-paste-mode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.batch-paste-mode-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.batch-paste-mode-label:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.batch-paste-mode-label input[type="radio"]:checked ~ .batch-paste-mode-content {
    border-color: #3498db;
    background: #f0f8ff;
}

.batch-paste-mode-radio {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
}

.batch-paste-mode-content {
    flex: 1;
}

.batch-paste-mode-title-text {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.batch-paste-mode-desc {
    font-size: 12px;
    color: #666;
}

