/* =========================================
   SmartMyTools - Split PDF
   ========================================= */


/* =========================================
   Main Page
   ========================================= */

.split-pdf-page {
    min-height: 700px;
    padding-bottom: 70px;
    background: #f7f7fb;
}

/* =========================================================
   MAIN CONTENT + RIGHT SIDEBAR
   ========================================================= */

.split-ad-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}


/* Main Split PDF Content */

.split-main-content {
    min-width: 0;
}


/* Right Sidebar Advertisement */

.pdf-sidebar-ad {
    width: 100%;
    min-height: 250px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;

    /* Sidebar follows the page while scrolling */
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* =========================================
   Hero
   ========================================= */

.split-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 42px 20px 24px;
    text-align: center;
}

.split-hero h1 {
    margin: 0 0 10px;
    color: #30313b;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}

.split-hero p {
    max-width: 800px;
    margin: 0 auto;
    color: #555866;
    font-size: 18px;
    line-height: 1.6;
}


/* =========================================
   Main Tool
   ========================================= */

.split-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 PDF Container
   ========================================= */

.selected-pdf-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);
}


/* =========================================
   Selected PDF Header
   ========================================= */

.selected-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
    padding-bottom: 14px;

    border-bottom: 1px solid #e1e4e9;
}

.selected-pdf-header h2 {
    margin: 0;
    color: #30313b;
    font-size: 20px;
}


/* =========================================
   Remove PDF
   ========================================= */

.remove-pdf-button {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: #777d88;

    font-size: 22px;

    cursor: pointer;
}

.remove-pdf-button:hover {
    background: #ffe8e6;
    color: #e52d2a;
}


/* =========================================
   Selected PDF File
   ========================================= */

.selected-pdf-file {
    min-height: 62px;

    padding: 10px 12px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: #f8f9fb;

    border: 1px solid #dde1e7;
    border-radius: 8px;
}


/* =========================================
   PDF Icon
   ========================================= */

.file-pdf-icon {
    width: 42px;
    height: 46px;

    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;
}


/* =========================================
   Split Options
   ========================================= */

.split-options {
    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);
}

.split-options h2 {
    margin: 0 0 20px;

    color: #30313b;

    font-size: 20px;
}


/* =========================================
   Split Option
   ========================================= */

.split-option {
    padding: 18px 0;

    border-bottom: 1px solid #e5e7eb;
}

.split-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.split-option-title {
    display: block;

    margin-bottom: 7px;

    color: #30313b;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.split-option-description {
    margin: 0 0 12px;

    color: #6c7280;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   Page Range Input
   ========================================= */

.page-range-input {
    width: 100%;

    height: 46px;

    padding: 0 14px;

    border: 1px solid #cbd2dc;
    border-radius: 7px;

    background: #ffffff;

    color: #30313b;

    font-family: inherit;
    font-size: 15px;

    outline: none;
}

.page-range-input:focus {
    border-color: #2563eb;
}


/* =========================================
   Radio Option
   ========================================= */

.split-option-label {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #444955;

    font-size: 15px;

    cursor: pointer;
}

.split-option-label input {
    width: 17px;
    height: 17px;

    accent-color: #ef332f;

    cursor: pointer;
}


/* =========================================
   Split Button
   ========================================= */

.split-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;
}

.split-button:hover:not(:disabled) {
    background: #d92724;
}

.split-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;
}


/* =========================================
   Error
   ========================================= */

.split-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;
}


/* =========================================
   Result
   ========================================= */

.split-result {
    margin-top: 25px;

    padding: 28px;

    border: 1px solid #cfe5d1;
    border-radius: 10px;

    background: #f1faf2;

    text-align: center;
}

.split-result h2 {
    margin: 0 0 8px;

    color: #27652d;

    font-size: 23px;
}

.split-result p {
    margin: 0 0 20px;

    color: #55705a;

    font-size: 14px;
}


/* =========================================
   Split Files
   ========================================= */

.split-files {
    display: flex;
    flex-direction: column;

    gap: 10px;

    text-align: left;
}


/* =========================================
   Information
   ========================================= */

.split-information {
    max-width: 1000px;

    margin: 65px auto 0;

    padding: 0 24px;
}

.split-information h2,
.split-about h2,
.split-faq h2 {
    margin: 0 0 18px;

    color: #30313b;

    font-size: 28px;
    font-weight: 700;
}


/* =========================================
   Steps
   ========================================= */

.split-steps {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.split-step {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #d9dde5;
    border-radius: 10px;
}

.split-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;
}

.split-step h3 {
    margin: 0 0 8px;

    color: #30313b;

    font-size: 17px;
}

.split-step p {
    margin: 0;

    color: #666b76;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   About
   ========================================= */

.split-about {
    max-width: 1000px;

    margin: 60px auto 0;

    padding: 0 24px;
}

.split-about p {
    margin: 0 0 14px;

    color: #555866;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   FAQ
   ========================================= */

.split-faq {
    max-width: 1000px;

    margin: 60px auto 0;

    padding: 0 24px;
}

.split-faq-item {
    padding: 18px 0;

    border-bottom: 1px solid #d9dde5;
}

.split-faq-item h3 {
    margin: 0 0 7px;

    color: #30313b;

    font-size: 17px;
}

.split-faq-item p {
    margin: 0;

    color: #666b76;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================
   Responsive - Tablet
   ========================================= */

@media (max-width: 900px) {

    .split-steps {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   Responsive - Mobile
   ========================================= */

@media (max-width: 600px) {

    .split-hero {
        padding: 30px 18px 22px;
    }

    .split-hero h1 {
        font-size: 30px;
    }

    .split-hero p {
        font-size: 15px;
    }

    .split-tool {
        padding: 0 15px;
    }

    .upload-area {
        min-height: 220px;
        padding: 35px 18px;
    }

    .select-pdf-button {
        min-width: 0;
        width: 100%;
        font-size: 18px;
    }

    .selected-pdf-container,
    .split-options {
        padding: 18px;
    }

    .split-information,
    .split-about,
    .split-faq {
        padding-left: 20px;
        padding-right: 20px;
    }

    .split-information h2,
    .split-about h2,
    .split-faq h2 {
        font-size: 24px;
    }

    .split-steps {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   Split File Result Rows
   ========================================= */

.split-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #d9dde5;
    border-radius: 7px;
}


.split-file-name {
    min-width: 0;

    color: #30313b;

    font-size: 14px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.download-split-file {
    flex-shrink: 0;

    padding: 9px 16px;

    border: none;
    border-radius: 6px;

    background: #0f3b66;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}


.download-split-file:hover {
    background: #0b2f52;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

    .split-file-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-split-file {
        width: 100%;
    }

}

/* =========================================
   Result Action Buttons
   ========================================= */

.split-result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.download-all-button,
.start-over-button {
    min-width: 150px;
    height: 42px;
    padding: 0 20px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}


/* Download All */

.download-all-button {
    border: none;
    background: #0f3b66;
    color: #ffffff;
}

.download-all-button:hover {
    background: #0b2f52;
}

.download-all-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Start Over */

.start-over-button {
    border: 1px solid #c7ced8;
    background: #ffffff;
    color: #30313b;
}

.start-over-button:hover {
    background: #f1f3f6;
    border-color: #aeb7c3;
}


/* Mobile */

@media (max-width: 600px) {

    .split-result-actions {
        flex-direction: column;
    }

    .download-all-button,
    .start-over-button {
        width: 100%;
    }

}
/* =========================================================
   SIDEBAR RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .split-ad-layout {
        grid-template-columns: 1fr;
    }

    .pdf-sidebar-ad {
        display: none;
    }

}

/* =========================================================
   TOP ADVERTISEMENT
   ========================================================= */

.pdf-top-ad {
    width: calc(100% - 48px);
    max-width: 970px;
    height: 90px;

    margin: 0 auto 30px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;
}
/* =========================================================
   BOTTOM STICKY ADVERTISEMENT
   ========================================================= */

.pdf-bottom-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 90px;

    background: #ffffff;
    border-top: 1px solid #d9e0e7;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;

    z-index: 9999;
}
.site-footer {
    padding-bottom: 120px;
}