/* =========================================
   PDF to JPG Page
   ========================================= */

.pdf-to-jpg-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 55px 20px 80px;
}


/* =========================================
   Tool Header
   ========================================= */

.tool-header {
    text-align: center;
    margin-bottom: 35px;
}

.tool-header h1 {
    font-size: 42px;
    color: #2f3e52;
    margin-bottom: 12px;
}

.tool-header p {
    font-size: 18px;
    color: #526070;
}


/* =========================================
   Upload Container
   ========================================= */

.upload-container {
    max-width: 850px;
    margin: 0 auto;
}


/* Upload Box */

.upload-box {
    background: #ffffff;
    border: 2px dashed #c7d0db;
    border-radius: 14px;
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 35px;
}


/* Upload Icon */

.upload-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 35px;

    background: #eef3f8;
    border-radius: 18px;

    margin-bottom: 15px;
}


/* Upload Heading */

.upload-box h2 {
    font-size: 24px;
    color: #2f3e52;
    margin-bottom: 10px;
}


/* Upload Text */

.upload-box p {
    color: #58677a;
    margin-bottom: 8px;
}

.upload-box span {
    color: #697789;
    margin: 5px 0;
}


/* Choose File Button */

.choose-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
    padding: 15px 40px;

    background: #ff3131;
    color: #ffffff;

    border-radius: 8px;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.choose-file-btn:hover {
    background: #e82727;
}


/* File Limit */

.file-limit {
    margin-top: 15px !important;
    font-size: 14px;
    color: #7a8796 !important;
}


/* =========================================
   Selected File
   ========================================= */

.selected-file {
    margin-top: 20px;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}


.file-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef3f8;

    border-radius: 10px;

    font-size: 24px;
}


.file-info div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.file-info strong {
    color: #2f3e52;
}


.file-info span {
    color: #718096;
    font-size: 14px;
}


/* Convert Button */

#convertBtn {
    border: none;

    background: #0f3b66;
    color: #ffffff;

    padding: 14px 28px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

#convertBtn:hover {
    background: #092c4d;
}


/* =========================================
   Progress
   ========================================= */

.progress-container {
    margin-top: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}


.progress-text {
    display: flex;
    justify-content: space-between;

    margin-bottom: 10px;

    color: #4a5568;
    font-weight: 600;
}


.progress-bar {
    width: 100%;
    height: 10px;

    background: #e7ecf1;

    border-radius: 10px;

    overflow: hidden;
}


.progress-fill {
    width: 0%;
    height: 100%;

    background: #ff3131;

    transition: width 0.3s ease;
}


/* =========================================
   Result
   ========================================= */

.result-container {
    margin-top: 25px;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    padding: 30px;

    text-align: center;
}


.success-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e5f6ea;
    color: #1f8a45;

    border-radius: 50%;

    font-size: 28px;
    font-weight: 700;
}


.result-container h3 {
    color: #2f3e52;
    font-size: 23px;
    margin-bottom: 8px;
}


.result-container p {
    color: #667085;
}


/* =========================================
   Image Results
   ========================================= */

.image-results {
    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;

    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


.image-results img {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 8px;

    border: 1px solid #d9e0e7;
}


.image-results a {
    display: inline-block;

    margin-top: 15px;
}

/* =========================================
   Information Section
   ========================================= */

.tool-info {
    max-width: 1100px;

    margin: 70px auto 0;

    text-align: center;
}


.tool-info h2 {
    font-size: 30px;
    color: #2f3e52;

    margin-bottom: 35px;
}


/* Steps */

.steps {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.step {
    background: #ffffff;

    padding: 30px 25px;

    border: 1px solid #d9e0e7;

    border-radius: 12px;
}


.step > span {
    width: 42px;
    height: 42px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0f3b66;
    color: #ffffff;

    border-radius: 50%;

    font-weight: 700;
}


.step h3 {
    color: #2f3e52;

    margin-bottom: 10px;
}


.step p {
    color: #667085;

    line-height: 1.6;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {

    .tool-header h1 {
        font-size: 32px;
    }

    .tool-header p {
        font-size: 16px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .selected-file {
        flex-direction: column;
        gap: 20px;
    }

}

/* =========================================
   JPG Conversion Results
   ========================================= */

.image-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.image-result-card {
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.image-result-card img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e7ec;
}

.image-result-card a {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;

    background: #ff3131;
    color: #ffffff;

    text-decoration: none;
    font-weight: 600;

    border-radius: 6px;
}

.image-result-card a:hover {
    background: #e62828;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-section {

    max-width: 1100px;

    margin: 70px auto 0;

    padding: 0 24px;

}


.about-section h2 {

    margin: 0 0 20px;

    color: #2f3e52;

    font-size: 30px;

    font-weight: 700;

}


.about-section p {

    margin: 0 0 16px;

    color: #526070;

    font-size: 17px;

    line-height: 1.7;

}


/* =========================================
   FAQ SECTION
========================================= */

.faq-section {

    max-width: 1100px;

    margin: 70px auto 0;

    padding: 0 24px 30px;

}


.faq-section h2 {

    margin: 0 0 30px;

    color: #2f3e52;

    font-size: 30px;

    font-weight: 700;

}


.faq-item {

    padding: 0 0 20px;

    margin-bottom: 20px;

    border-bottom: 1px solid #d9e0e7;

}


.faq-item h3 {

    margin: 0 0 10px;

    color: #2f3e52;

    font-size: 18px;

    font-weight: 700;

}


.faq-item p {

    margin: 0;

    color: #526070;

    font-size: 16px;

    line-height: 1.6;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .about-section,
    .faq-section {

        padding-left: 20px;
        padding-right: 20px;

    }


    .about-section h2,
    .faq-section h2 {

        font-size: 26px;

    }

}
/* =========================================
   SELECTED FILE ACTIONS
========================================= */

.selected-file-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.selected-file-actions button {
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#convertBtn {
    background: #123f6d;
    color: #ffffff;
    border: 1px solid #123f6d;
}

#convertBtn:hover {
    background: #0d3155;
}

#clearBtn {
    background: #ffffff;
    color: #123f6d;
    border: 1px solid #123f6d;
}

#clearBtn:hover {
    background: #123f6d;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 480px) {

    .selected-file-actions {
        flex-direction: column;
    }

    .selected-file-actions button {
        width: 100%;
    }

}
/* ==========================================
   OUTPUT FORMAT SELECTOR
========================================== */

.output-format-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.output-format-selector label {
    font-size: 15px;
    font-weight: 600;
}

.output-format-selector select {
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    cursor: pointer;
    outline: none;
}

.output-format-selector select:focus {
    border-color: #999999;
}