/* =========================================
   SmartMyTools - Merge PDF
   ========================================= */


/* =========================================
   Main Page
   ========================================= */

.merge-pdf-page {
    min-height: 700px;
    padding-bottom: 70px;

    background: #f7f7fb;
}


/* =========================================
   Hero
   ========================================= */

.merge-hero {
    max-width: 1000px;
    margin: 0 auto;

    padding: 42px 20px 24px;

    text-align: center;
}

.merge-hero h1 {
    margin: 0 0 10px;

    color: #30313b;

    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}

.merge-hero p {
    margin: 0 auto;

    max-width: 800px;

    color: #555866;

    font-size: 18px;
    line-height: 1.6;
}


/* =========================================
   Main Tool Area
   ========================================= */

.merge-tool {
    max-width: 850px;
    margin: 0 auto;

    padding: 0 20px;
}


/* =========================================
   Upload Area
   ========================================= */

.upload-area {
    min-height: 250px;

    padding: 50px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 2px dashed #cbd2dc;
    border-radius: 12px;

    text-align: center;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.upload-area.drag-over {
    border-color: #ef332f;
    background: #fff5f4;
}


/* =========================================
   Select PDF Button
   ========================================= */

.select-pdf-button {
    min-width: 300px;

    padding: 18px 30px;

    border: none;
    border-radius: 10px;

    background: #ef332f;
    color: #ffffff;

    font-family: inherit;
    font-size: 20px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.select-pdf-button:hover {
    background: #d92724;

    transform: translateY(-1px);
}

.select-pdf-button:active {
    transform: translateY(0);
}


/* =========================================
   Upload Text
   ========================================= */

.drop-text {
    margin: 17px 0 5px;

    color: #4d5260;

    font-size: 15px;
}

.file-limit {
    margin: 0;

    color: #858a96;

    font-size: 13px;
}


/* =========================================
   Selected File Container
   ========================================= */

.file-list-container {
    margin-top: 25px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #d7dce4;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* =========================================
   File List Header
   ========================================= */

.file-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;

    padding-bottom: 14px;

    border-bottom: 1px solid #e1e4e9;
}

.file-list-header h2 {
    margin: 0;

    color: #30313b;

    font-size: 20px;
}

.file-list-header span {
    color: #6c7280;

    font-size: 14px;
}


/* =========================================
   File List
   ========================================= */

.file-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* =========================================
   Individual File
   ========================================= */

.pdf-file-item {
    min-height: 62px;

    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: #f8f9fb;

    border: 1px solid #dde1e7;
    border-radius: 8px;

    cursor: default;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.pdf-file-item:hover {
    background: #f2f4f7;
    border-color: #cbd1da;
}

.pdf-file-item.dragging {
    opacity: 0.55;
    border-color: #ef332f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Drop position indicator */

.pdf-file-item.drag-over {
    border-color: #ef332f;
    background: #fff5f4;
    box-shadow: 0 -3px 0 #ef332f;
}


/* Drag Handle */

.file-drag-handle {
    width: 32px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #777f8c;

    font-size: 20px;

    text-align: center;

    cursor: grab;

    user-select: none;
}

.file-drag-handle:hover {
    color: #ef332f;
}

.file-drag-handle:active {
    cursor: grabbing;
}

/* PDF Icon */

.file-pdf-icon {
    width: 38px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 5px;

    background: #ffe1df;
    color: #e52d2a;

    font-size: 12px;
    font-weight: 700;
}


/* File Information */

.file-info {
    min-width: 0;
    flex: 1;
}

.file-name {
    margin-bottom: 4px;

    color: #30313b;

    font-size: 14px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #858a96;

    font-size: 12px;
}


/* Remove File */

.remove-file-button {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: #777d88;

    font-size: 20px;

    cursor: pointer;
}

.remove-file-button:hover {
    background: #ffe8e6;
    color: #e52d2a;
}


/* =========================================
   File Actions
   ========================================= */

.file-actions {
    display: flex;
    justify-content: space-between;

    margin-top: 20px;

    gap: 12px;
}


/* Secondary Buttons */

.secondary-button {
    padding: 11px 18px;

    border: 1px solid #cbd1da;
    border-radius: 7px;

    background: #ffffff;
    color: #444955;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.secondary-button:hover {
    background: #f3f4f6;
}


/* =========================================
   Merge Button
   ========================================= */

.merge-button {
    width: 100%;

    margin-top: 22px;

    padding: 16px 25px;

    border: none;
    border-radius: 8px;

    background: #ef332f;
    color: #ffffff;

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.merge-button:hover:not(:disabled) {
    background: #d92724;
}

.merge-button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


/* =========================================
   Processing
   ========================================= */

.processing-message {
    margin-top: 18px;

    padding: 14px;

    border-radius: 7px;

    background: #eef4ff;
    color: #315b96;

    font-size: 14px;
    text-align: center;
}


/* =========================================
   Result
   ========================================= */

.merge-result {
    margin-top: 25px;

    padding: 28px;

    border: 1px solid #cfe5d1;
    border-radius: 10px;

    background: #f1faf2;

    text-align: center;
}

.merge-result h2 {
    margin: 0 0 8px;

    color: #27652d;

    font-size: 23px;
}

.merge-result p {
    margin: 0 0 20px;

    color: #55705a;

    font-size: 14px;
}


/* Download */

.download-button {
    display: inline-block;

    padding: 13px 25px;

    border-radius: 7px;

    background: #32833a;
    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: background 0.2s ease;
}

.download-button:hover {
    background: #276b2e;
}


/* =========================================
   Error
   ========================================= */

.merge-error {
    margin-top: 18px;

    padding: 13px 15px;

    border: 1px solid #f0b9b7;
    border-radius: 7px;

    background: #fff1f0;
    color: #a62b28;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   Information
   ========================================= */

.merge-information {
    max-width: 1000px;

    margin: 65px auto 0;

    padding: 0 24px;
}

.merge-information h2,
.merge-about h2,
.merge-faq h2 {
    margin: 0 0 18px;

    color: #30313b;

    font-size: 28px;
    font-weight: 700;
}

.merge-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.merge-step {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #d9dde5;
    border-radius: 10px;
}

.merge-step-number {
    width: 36px;
    height: 36px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0f3b66;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
}

.merge-step h3 {
    margin: 0 0 8px;

    color: #30313b;

    font-size: 17px;
}

.merge-step p {
    margin: 0;

    color: #666b76;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   About
   ========================================= */

.merge-about {
    max-width: 1000px;

    margin: 60px auto 0;

    padding: 0 24px;
}

.merge-about p {
    margin: 0 0 14px;

    color: #555866;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   FAQ
   ========================================= */

.merge-faq {
    max-width: 1000px;

    margin: 60px auto 0;

    padding: 0 24px;
}

.merge-faq-item {
    padding: 18px 0;

    border-bottom: 1px solid #d9dde5;
}

.merge-faq-item h3 {
    margin: 0 0 7px;

    color: #30313b;

    font-size: 17px;
}

.merge-faq-item p {
    margin: 0;

    color: #666b76;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================
   Responsive - Tablet
   ========================================= */

@media (max-width: 900px) {

    .merge-steps {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   Responsive - Mobile
   ========================================= */

@media (max-width: 600px) {

    .merge-hero {
        padding: 30px 18px 22px;
    }

    .merge-hero h1 {
        font-size: 30px;
    }

    .merge-hero p {
        font-size: 15px;
    }

    .merge-tool {
        padding: 0 15px;
    }

    .upload-area {
        min-height: 220px;

        padding: 35px 18px;
    }

    .select-pdf-button {
        min-width: 0;
        width: 100%;

        font-size: 18px;
    }

    .file-list-container {
        padding: 18px;
    }

    .file-list-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

    .file-actions {
        flex-direction: column;
    }

    .secondary-button {
        width: 100%;
    }

    .pdf-file-item {
        padding: 9px;
    }

    .file-drag-handle {
    width: 28px;
    height: 40px;
    font-size: 18px;
    }   

    .file-pdf-icon {
        width: 34px;
        height: 38px;
    }

    .merge-information,
    .merge-about,
    .merge-faq {
        padding-left: 20px;
        padding-right: 20px;
    }

    .merge-information h2,
    .merge-about h2,
    .merge-faq h2 {
        font-size: 24px;
    }

    .merge-steps {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   PDF Disclaimer
   ========================================================= */

.pdf-disclaimer {
    max-width: 1050px;
    margin: 60px auto 40px;
    padding: 0 24px;
}

.pdf-disclaimer h2 {
    margin-bottom: 20px;
}

.pdf-disclaimer p {
    margin-bottom: 20px;
    line-height: 1.7;
}
/* =========================================
   FILE ACTION BUTTONS
========================================= */

.file-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.file-actions .secondary-button {
    background: #ffffff;
    color: #123f6d;
    border: 1px solid #123f6d;
    border-radius: 6px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-actions .secondary-button:hover {
    background: #123f6d;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 480px) {

    .file-actions {
        flex-direction: column;
    }

    .file-actions .secondary-button {
        width: 100%;
    }

}