/* jpg-to-pdf.css */
@import '../../merge-pdf/css/merge-pdf.css';

/* Options Bar Styles inside Toolbar */
.options-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.option-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-item label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-item select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--t);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    min-width: 110px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-item select:focus {
    border-color: #ef4444;
    background: rgba(255, 255, 255, 0.1);
}

/* Image page-card thumbnail styling */
.page-thumb-wrap img.page-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1a24;
    border-radius: 4px;
    display: block;
}

/* Force zoom button to be visible on touch devices (no hover) */
@media (max-width: 1024px) {
    .page-zoom-btn {
        opacity: 0.95 !important;
        transform: translate(-50%, -50%) scale(1) !important;
        background: rgba(16, 185, 129, 0.95) !important;
    }
}

/* Responsive options stacking to prevent wrapping cutoff */
@media (max-width: 1200px) {
    .preview-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        height: auto !important;
    }
    
    .toolbar-left, .toolbar-center, .toolbar-right {
        display: flex;
        justify-content: center;
        width: 100% !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .options-bar {
        justify-content: center;
        width: 100%;
    }

    .option-item {
        flex-grow: 1;
        min-width: 120px;
    }

    .option-item select {
        width: 100%;
    }

    .toolbar-right button {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        height: 85vh;
    }
    
    .tool-header {
        padding: 30px 15px 15px;
    }
    
    .drop-zone {
        padding: 40px 15px;
    }
}
