/* Split-specific styles - shared styles come from merge.css */

/* Mode Selection */
.split-modes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.mode-btn {
    padding: 8px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.mode-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}

.mode-btn:hover:not(.active) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Page Grid */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.page-thumb {
    aspect-ratio: 3/4;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.page-thumb:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.page-thumb.selected {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.page-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

/* Range Section */
.range-section {
    text-align: center;
    margin-bottom: 24px;
}

.range-input {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: inherit;
}

.range-input:focus {
    outline: none;
    border-color: #2563eb;
}

.range-hint {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
}

/* Override file-remove to look consistent */
.file-list .file-item {
    cursor: default;
}

/* Responsive */
@media (max-width: 640px) {
    .page-grid {
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    }

    .mode-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}