/* ==========================================
   EXCEL TO PDF
   Page-specific styling
========================================== */


/* ==========================================
   PAGE
========================================== */

.excel-to-pdf-page {
    width: 100%;
}


/* ==========================================
   UPLOAD AREA
========================================== */

.excel-to-pdf-page .upload-container {
    width: 100%;
}


.excel-to-pdf-page .upload-box {
    text-align: center;
    cursor: pointer;
}


.excel-to-pdf-page .upload-icon {
    font-size: 52px;
    margin-bottom: 15px;
}


/* ==========================================
   SELECTED FILE
========================================== */

.excel-to-pdf-page .selected-file-section {
    margin-top: 20px;
}


.excel-to-pdf-page .selected-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 20px;

    border: 1px solid #d9d9d9;
    border-radius: 10px;

    background: #ffffff;
}


.excel-to-pdf-page .selected-file-card > div {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 0;
}


.excel-to-pdf-page #fileName {
    overflow-wrap: anywhere;
}


.excel-to-pdf-page #fileSize {
    font-size: 14px;
    color: #666666;
}


.excel-to-pdf-page #removeFileButton {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #eeeeee;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


.excel-to-pdf-page #removeFileButton:hover {
    background: #dddddd;
}


/* ==========================================
   CONVERT BUTTON
========================================== */

.excel-convert-section {
    margin-top: 20px;

    text-align: center;
}


.excel-to-pdf-page .convert-button {
    padding: 13px 28px;

    border: none;
    border-radius: 7px;

    background: #0f3b66;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}


.excel-to-pdf-page .convert-button:hover {
    opacity: 0.92;
}


.excel-to-pdf-page .convert-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ==========================================
   PROGRESS
========================================== */

.excel-progress-section {
    margin-top: 25px;

    padding: 20px;

    text-align: center;

    border: 1px solid #dddddd;
    border-radius: 10px;

    background: #ffffff;
}


.excel-to-pdf-page .progress-message {
    margin-bottom: 14px;

    font-weight: 600;
}


.excel-to-pdf-page .progress-bar-container {
    width: 100%;
    height: 10px;

    overflow: hidden;

    border-radius: 10px;

    background: #eeeeee;
}


.excel-to-pdf-page .progress-bar {
    width: 0;
    height: 100%;

    border-radius: 10px;

    background: #0f3b66;

    transition: width 0.25s ease;
}


.excel-to-pdf-page .progress-percent {
    margin-top: 8px;

    font-size: 14px;
    color: #666666;
}


/* ==========================================
   RESULT
========================================== */

.excel-result-section {
    margin-top: 25px;
}


.excel-to-pdf-page .result-card {
    padding: 30px 20px;

    text-align: center;

    border: 1px solid #d9d9d9;
    border-radius: 10px;

    background: #ffffff;
}


.excel-to-pdf-page .result-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #e8f5e9;

    color: #2e7d32;

    font-size: 28px;
    font-weight: 700;
}


.excel-to-pdf-page .result-card h2 {
    margin-bottom: 10px;
}


.excel-to-pdf-page .result-card p {
    margin-bottom: 20px;
}


/* ==========================================
   DOWNLOAD BUTTON
========================================== */

.excel-to-pdf-page .download-button {
    display: inline-block;

    padding: 12px 25px;

    border-radius: 7px;

    background: #0f3b66;
    color: #ffffff;

    text-decoration: none;

    font-weight: 600;
}


.excel-to-pdf-page .download-button:hover {
    opacity: 0.92;
}


/* ==========================================
   START OVER
========================================== */

.excel-to-pdf-page .start-over-button {
    display: block;

    margin: 14px auto 0;

    padding: 10px 20px;

    border: 1px solid #cccccc;
    border-radius: 7px;

    background: #ffffff;
    color: #333333;

    cursor: pointer;
}


.excel-to-pdf-page .start-over-button:hover {
    background: #f5f5f5;
}


/* ==========================================
   HOW IT WORKS
========================================== */

.excel-how-it-works {
    margin-top: 40px;
}


.excel-how-it-works h2 {
    margin-bottom: 25px;
}


.excel-steps {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


.excel-step {
    padding: 22px;

    border: 1px solid #dddddd;
    border-radius: 10px;

    background: #ffffff;

    text-align: center;
}


.excel-step .step-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #0f3b66;
    color: #ffffff;

    font-weight: 700;
}


.excel-step h3 {
    margin-bottom: 10px;
}


.excel-step p {
    margin: 0;

    color: #555555;

    line-height: 1.6;
}


/* ==========================================
   ABOUT
========================================== */

.excel-about {
    margin-top: 40px;
}


.excel-about h2 {
    margin-bottom: 15px;
}


.excel-about p {
    line-height: 1.7;
}


/* ==========================================
   FAQ
========================================== */

.excel-faq {
    margin-top: 40px;
}


.excel-faq h2 {
    margin-bottom: 20px;
}


.excel-faq-item {
    padding: 18px 0;

    border-bottom: 1px solid #dddddd;
}


.excel-faq-item h3 {
    margin-bottom: 8px;
}


.excel-faq-item p {
    margin: 0;

    line-height: 1.6;
}


/* ==========================================
   DISCLAIMER
========================================== */

.excel-disclaimer {
    margin-top: 40px;
    margin-bottom: 40px;
}


.excel-disclaimer h2 {
    margin-bottom: 15px;
}


.excel-disclaimer p {
    line-height: 1.7;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .excel-steps {
        grid-template-columns: 1fr;
    }


    .excel-to-pdf-page .selected-file-card {
        align-items: flex-start;
    }


    .excel-to-pdf-page .upload-icon {
        font-size: 44px;
    }

}


@media (max-width: 480px) {

    .excel-to-pdf-page .selected-file-card {
        padding: 15px;
    }


    .excel-to-pdf-page .convert-button,
    .excel-to-pdf-page .download-button {
        width: 100%;
        box-sizing: border-box;
    }

}