/*
 * File: style.css
 * Path: \themes\kadence-child-theme-master\tools\image-to-pdf\style.css
 * (UPDATED CSS for the Convert Image to PDF tool, matching reference image colors)
 */

#image-to-pdf-tool {
    max-width: 700px;
    width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", sans-serif;
    text-align: center;
}

#image-to-pdf-tool h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: #333;
}

/* --- Upload Section Styles (Matching Reference Image) --- */
.upload-section {
    border: 2px dashed #FF8A08; /* Orange dashed border from reference */
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-section:hover {
    border-color: #e67e22; /* Darker orange on hover */
}

.upload-section input[type="file"] {
    display: none;
}

.upload-section label {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-section label span {
    font-weight: bold;
    color: #FF8A08; /* Orange for "Click to Upload" */
    margin-top: 5px;
    text-decoration: underline;
}

.upload-section .icon {
    font-size: 3rem;
    color: #FF8A08; /* Orange for icon */
    margin-bottom: 10px;
}

/* --- PDF Options Container (Maintaining previous aesthetic with orange accents) --- */
.pdf-options-container {
    margin-bottom: 2rem;
    text-align: left;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.02);
}

.pdf-options-container h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.pdf-option-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pdf-option-group label {
    flex-basis: 120px;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
}

.pdf-option-group select,
.pdf-option-group input[type="checkbox"] {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    max-width: 200px;
}

.pdf-option-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 0;
}

.pdf-option-group .tooltip-text {
    font-size: 0.85rem;
    color: #777;
    margin-left: 0.5rem;
    flex-grow: 1;
}

/* --- Loading and Error Indicators --- */
#pdfLoadingIndicator {
    display: none;
    margin-top: 1.5rem;
    color: #FF8A08; /* Orange loading text */
    font-weight: bold;
}

#pdfErrorMessage {
    color: #dc3545; /* Red for errors */
    margin-top: 1rem;
    font-weight: bold;
    display: none;
}

/* --- Action Buttons Container (New, matching Convert to JPG) --- */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* --- Common Button Styles (Matching Reference Image) --- */
.convert-btn,
.clear-btn {
    background-color: #FF8A08; /* Orange button */
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 120px;
}

.convert-btn:hover,
.clear-btn:hover {
    background-color: #e67e22; /* Darker orange on hover */
    transform: translateY(-2px);
}

.convert-btn:active,
.clear-btn:active {
    transform: translateY(0);
}


/* --- Output Section (Maintaining previous aesthetic with orange accents) --- */
.output-section {
    margin-top: 2rem;
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.output-section h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
}

.output-info p { /* Not explicitly used in PDF tool, but keeping for consistency */
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
    text-align: left;
}

.output-info strong { /* Not explicitly used in PDF tool, but keeping for consistency */
    color: #FF8A08;
}

/* Download Link Style (Matching new button aesthetic) */
.download-link {
    display: inline-block;
    background-color: #FF8A08; /* Orange download button */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.download-link:hover {
    background-color: #e67e22;
}

/* Hide canvas as it's used internally */
#pdfProcessingCanvas {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .upload-section {
        padding: 1.5rem;
    }
    .pdf-option-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .pdf-option-group label {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    .pdf-option-group select,
    .pdf-option-group input[type="checkbox"] {
        max-width: 100%;
        width: 100%;
    }
    .pdf-option-group .tooltip-text {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    .action-buttons {
        flex-direction: column; /* Stack buttons on small screens */
        gap: 0.8rem;
    }
    .convert-btn,
    .clear-btn {
        width: 100%; /* Full width buttons */
        min-width: auto;
    }
}