/* ==========================================================
   CONVERTODO
   ELIMINAR PÁGINAS PDF
========================================================== */

.hidden {
    display: none !important;
}


/* ==========================================================
   SUBIDA
========================================================== */

.deletepdf-upload-stage {
    width: min(900px, 100%);
    margin: 0 auto;
}


.deletepdf-drop-zone {

    min-height: 390px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 48px 30px;

    background: #ffffff;

    border:
        2px
        dashed
        #d9dce8;

    border-radius: 24px;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.05);

    transition: 0.2s;

}


.deletepdf-drop-zone.drag-over {

    border-color:
        var(--primary);

    background:
        #f7f7ff;

}


.deletepdf-upload-icon {

    width: 78px;

    height: 78px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 22px;

    color:
        #ef4444;

    background:
        #fff0f0;

    font-size: 32px;

}


.deletepdf-drop-zone h2 {

    color:
        var(--dark);

    font-size: 27px;

    letter-spacing: -0.8px;

}


.deletepdf-drop-zone p {

    max-width: 570px;

    margin:
        8px
        auto
        24px;

    color:
        var(--text-light);

    font-size: 14px;

}


.deletepdf-select-button {

    min-height: 54px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        13px
        25px;

    cursor: pointer;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6964e8
        );

    box-shadow:
        0 11px 26px
        rgba(91, 92, 240, 0.25);

    font-size: 14px;

    font-weight: 800;

    transition: 0.2s;

}


.deletepdf-select-button:hover {

    transform:
        translateY(-2px);

}


.deletepdf-drop-help {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color:
        #979bab;

    font-size: 11px;

}


/* ==========================================================
   EDITOR
========================================================== */

.deletepdf-editor {

    width: 100%;

    padding: 24px;

    background: #ffffff;

    border:
        1px
        solid
        var(--border);

    border-radius: 24px;

    box-shadow:
        0 12px 38px
        rgba(20, 23, 43, 0.06);

}


.deletepdf-editor-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 20px;

    margin-bottom: 22px;

    border-bottom:
        1px
        solid
        var(--border);

}


.deletepdf-document-info {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

}


.deletepdf-document-icon {

    width: 50px;

    height: 50px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 13px;

    color:
        #ef4444;

    background:
        #fff0f0;

    font-size: 22px;

}


.deletepdf-document-copy {
    min-width: 0;
}


.deletepdf-document-copy > strong {

    display: block;

    overflow: hidden;

    color:
        var(--dark);

    font-size: 14px;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.deletepdf-document-copy div {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 4px;

    color:
        #8e93a4;

    font-size: 10px;

}


.deletepdf-change-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    flex-shrink: 0;

    padding:
        10px
        14px;

    cursor: pointer;

    border:
        1px
        solid
        #dce0e9;

    border-radius: 11px;

    color:
        #555a6c;

    background:
        #ffffff;

    font-size: 10px;

    font-weight: 700;

    transition: 0.2s;

}


.deletepdf-change-button:hover {

    color:
        var(--primary);

    border-color:
        var(--primary);

}


/* ==========================================================
   LAYOUT
========================================================== */

.deletepdf-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 22px;

    align-items: start;

}


.deletepdf-pages-area {

    min-width: 0;

    padding: 18px;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

    background:
        #fcfcff;

}


/* ==========================================================
   TOOLBAR
========================================================== */

.deletepdf-toolbar {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;

}


.deletepdf-toolbar-heading h3 {

    color:
        var(--dark);

    font-size: 17px;

}


.deletepdf-toolbar-heading p {

    max-width: 500px;

    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 10px;

}


.deletepdf-quick-actions {

    display: flex;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 6px;

}


.deletepdf-small-button {

    min-height: 35px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    padding:
        7px
        9px;

    border:
        1px
        solid
        #dadee8;

    border-radius: 9px;

    color:
        #626779;

    background:
        #ffffff;

    font-size: 9px;

    font-weight: 700;

    transition: 0.2s;

}


.deletepdf-small-button:hover {

    color:
        var(--primary);

    border-color:
        var(--primary);

    background:
        #f7f7ff;

}


/* ==========================================================
   RANGO
========================================================== */

.deletepdf-range-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;

    padding:
        12px
        14px;

    border:
        1px
        solid
        #e3e5ed;

    border-radius: 13px;

    background:
        #ffffff;

}


.deletepdf-range-label {

    display: flex;

    align-items: center;

    gap: 9px;

}


.deletepdf-range-label > i {

    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    color:
        var(--primary);

    background:
        var(--primary-light);

}


.deletepdf-range-label strong {

    display: block;

    color:
        var(--dark);

    font-size: 10px;

}


.deletepdf-range-label span {

    display: block;

    margin-top: 2px;

    color:
        #9a9eac;

    font-size: 8px;

}


.deletepdf-range-controls {

    display: flex;

    gap: 7px;

    width:
        min(330px, 100%);

}


.deletepdf-range-controls input {

    min-width: 0;

    flex: 1;

    height: 39px;

    padding:
        8px
        10px;

    border:
        1px
        solid
        #dce0e9;

    border-radius: 9px;

    outline: none;

    color:
        var(--dark);

    background:
        #ffffff;

    font-size: 10px;

}


.deletepdf-range-controls input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(91, 92, 240, 0.08);

}


.deletepdf-range-controls button {

    padding:
        8px
        13px;

    border: none;

    border-radius: 9px;

    color:
        #ffffff;

    background:
        var(--primary);

    font-size: 9px;

    font-weight: 700;

}


/* ==========================================================
   CARGANDO
========================================================== */

.deletepdf-loading-pages {

    min-height: 230px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color:
        #8e93a4;

}


.deletepdf-loading-spinner {

    width: 42px;

    height: 42px;

    margin-bottom: 13px;

    border:
        4px
        solid
        #e7e8f2;

    border-top-color:
        var(--primary);

    border-radius: 50%;

    animation:
        deletepdf-spin
        0.8s
        linear
        infinite;

}


@keyframes deletepdf-spin {

    to {
        transform: rotate(360deg);
    }

}


.deletepdf-loading-pages strong {

    color:
        var(--dark);

    font-size: 12px;

}


.deletepdf-loading-pages span {

    margin-top: 3px;

    font-size: 9px;

}


/* ==========================================================
   MINIATURAS
========================================================== */

.deletepdf-page-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(135px, 1fr)
        );

    gap: 14px;

}


.deletepdf-page-card {

    position: relative;

    overflow: hidden;

    cursor: pointer;

    padding:
        9px
        9px
        10px;

    border:
        2px
        solid
        transparent;

    border-radius: 14px;

    background:
        #ffffff;

    box-shadow:
        0 5px 15px
        rgba(20, 23, 43, 0.05);

    transition: 0.2s;

}


.deletepdf-page-card:hover {

    transform:
        translateY(-2px);

    border-color:
        #d5d8e5;

}


.deletepdf-page-preview {

    height: 175px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 9px;

    background:
        #f1f2f7;

}


.deletepdf-page-preview img {

    max-width: 100%;

    max-height: 100%;

    display: block;

    object-fit: contain;

    background: #ffffff;

    box-shadow:
        0 3px 10px
        rgba(20, 23, 43, 0.08);

}


.deletepdf-page-placeholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    color:
        #a0a4b3;

    font-size: 8px;

}


.deletepdf-page-placeholder i {

    color:
        #ef4444;

    font-size: 23px;

}


.deletepdf-page-number {

    display: block;

    margin-top: 8px;

    text-align: center;

    color:
        #626779;

    font-size: 10px;

    font-weight: 700;

}


/* ==========================================================
   SELECCIONADA PARA ELIMINAR
========================================================== */

.deletepdf-page-card.selected {

    border-color:
        #ef4444;

    background:
        #fff4f4;

}


.deletepdf-page-card.selected
.deletepdf-page-preview {

    opacity: 0.48;

}


.deletepdf-delete-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    pointer-events: none;

    background:
        rgba(239, 68, 68, 0.06);

    transition: 0.2s;

}


.deletepdf-delete-overlay span {

    width: 46px;

    height: 46px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color:
        #ffffff;

    background:
        #ef4444;

    box-shadow:
        0 8px 20px
        rgba(239, 68, 68, 0.28);

    font-size: 19px;

}


.deletepdf-page-card.selected
.deletepdf-delete-overlay {

    opacity: 1;

}


/* ==========================================================
   PANEL DERECHO
========================================================== */

.deletepdf-side-panel {

    position: sticky;

    top: 88px;

    padding: 18px;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

    background:
        #fcfcff;

}


.deletepdf-side-heading {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 17px;

}


.deletepdf-side-icon {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color:
        #ef4444;

    background:
        #fff0f0;

    font-size: 18px;

}


.deletepdf-side-heading h3 {

    color:
        var(--dark);

    font-size: 16px;

}


.deletepdf-side-heading p {

    margin-top: 2px;

    color:
        var(--text-light);

    font-size: 9px;

}


/* ==========================================================
   RESUMEN
========================================================== */

.deletepdf-summary-cards {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 7px;

}


.deletepdf-summary-card {

    padding:
        10px
        7px;

    text-align: center;

    border:
        1px
        solid
        #e2e4ec;

    border-radius: 11px;

    background:
        #ffffff;

}


.deletepdf-summary-card span {

    display: block;

    min-height: 25px;

    color:
        #979baa;

    font-size: 7.5px;

    line-height: 1.3;

}


.deletepdf-summary-card strong {

    display: block;

    margin-top: 4px;

    color:
        var(--dark);

    font-size: 22px;

}


.deletepdf-summary-card small {

    display: block;

    color:
        #9ca0ae;

    font-size: 7px;

}


.deletepdf-summary-card.danger strong {
    color: #ef4444;
}


.deletepdf-summary-card.success strong {
    color: #10b981;
}


/* ==========================================================
   INFORMACIÓN
========================================================== */

.deletepdf-info-box {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 14px;

    padding:
        11px
        12px;

    border:
        1px
        solid
        #e3e5ed;

    border-radius: 11px;

    background:
        #f7f8fd;

}


.deletepdf-info-box > i {

    margin-top: 1px;

    color:
        var(--primary);

}


.deletepdf-info-box strong {

    display: block;

    color:
        var(--dark);

    font-size: 10px;

}


.deletepdf-info-box p {

    margin-top: 3px;

    color:
        #74798a;

    font-size: 8.5px;

    line-height: 1.45;

}


.deletepdf-info-box.warning {

    border-color:
        #ffd7d4;

    background:
        #fff5f4;

}


.deletepdf-info-box.warning > i,
.deletepdf-info-box.warning strong {

    color:
        #d92d20;

}


/* ==========================================================
   BOTÓN PRINCIPAL
========================================================== */

.deletepdf-main-button {

    width: 100%;

    min-height: 53px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 15px;

    border: none;

    border-radius: 13px;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    box-shadow:
        0 10px 24px
        rgba(239, 68, 68, 0.22);

    font-size: 12px;

    font-weight: 800;

    transition: 0.2s;

}


.deletepdf-main-button:hover:not(:disabled) {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 28px
        rgba(239, 68, 68, 0.28);

}


.deletepdf-main-button:disabled {

    cursor: not-allowed;

    opacity: 0.42;

    box-shadow: none;

}


.deletepdf-private-note {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 10px;

    color:
        #969aaa;

    text-align: center;

    font-size: 8px;

}


.deletepdf-private-note i {
    color: #10b981;
}


/* ==========================================================
   PROCESANDO Y RESULTADO
========================================================== */

.deletepdf-processing,
.deletepdf-result {

    width:
        min(680px, 100%);

    min-height: 360px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 42px;

    text-align: center;

    border:
        1px
        solid
        var(--border);

    border-radius: 24px;

    background:
        #ffffff;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.06);

}


.deletepdf-processing-icon {

    width: 64px;

    height: 64px;

    display: grid;

    place-items: center;

    margin-bottom: 17px;

    border-radius: 50%;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-size: 26px;

    animation:
        deletepdf-spin
        1s
        linear
        infinite;

}


.deletepdf-processing h2,
.deletepdf-result h2 {

    color:
        var(--dark);

    font-size: 24px;

}


.deletepdf-processing p,
.deletepdf-result > p {

    margin-top: 5px;

    color:
        var(--text-light);

    font-size: 11px;

}


.deletepdf-progress {

    width:
        min(460px, 100%);

    height: 8px;

    overflow: hidden;

    margin:
        24px
        auto
        9px;

    border-radius: 50px;

    background:
        #e8eaf1;

}


.deletepdf-progress-bar {

    width: 0;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition:
        width
        0.2s
        ease;

}


#deleteProcessingStatus {

    color:
        #9296a5;

    font-size: 9px;

}


/* ==========================================================
   RESULTADO
========================================================== */

.deletepdf-success-icon {

    width: 68px;

    height: 68px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border-radius: 50%;

    color:
        #10b981;

    background:
        #e9fbf5;

    font-size: 29px;

}


.deletepdf-result-stats {

    width:
        min(430px, 100%);

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 9px;

    margin-top: 20px;

}


.deletepdf-result-stats > div {

    padding: 11px;

    border-radius: 11px;

    background:
        #f5f6fa;

}


.deletepdf-result-stats span {

    display: block;

    color:
        #999dab;

    font-size: 7px;

    text-transform: uppercase;

}


.deletepdf-result-stats strong {

    display: block;

    margin-top: 3px;

    color:
        var(--dark);

    font-size: 18px;

}


.deletepdf-result-message {

    display: inline-flex;

    margin-top: 14px;

    padding:
        7px
        11px;

    border-radius: 100px;

    color:
        #087b58;

    background:
        #e9fbf5;

    font-size: 9px;

    font-weight: 700;

}


/* ==========================================================
   MENSAJES
========================================================== */

.deletepdf-message {

    width:
        min(850px, 100%);

    margin:
        15px
        auto
        0;

    padding:
        12px
        14px;

    border:
        1px
        solid
        #ffd5d1;

    border-radius: 11px;

    color:
        #b42318;

    background:
        #fff0ef;

    font-size: 10px;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1050px) {

    .deletepdf-layout {

        grid-template-columns: 1fr;

    }


    .deletepdf-side-panel {

        position: static;

    }

}


@media (max-width: 780px) {

    .deletepdf-editor {

        padding: 16px;

    }


    .deletepdf-editor-header {

        align-items: flex-start;

        flex-direction: column;

    }


    .deletepdf-toolbar {

        flex-direction: column;

    }


    .deletepdf-quick-actions {

        justify-content: flex-start;

    }


    .deletepdf-range-box {

        align-items: stretch;

        flex-direction: column;

    }


    .deletepdf-range-controls {

        width: 100%;

    }


    .deletepdf-page-grid {

        grid-template-columns:
            repeat(
                auto-fill,
                minmax(115px, 1fr)
            );

    }


    .deletepdf-page-preview {

        height: 155px;

    }

}


@media (max-width: 480px) {

    .deletepdf-drop-zone {

        min-height: 340px;

        padding:
            35px
            18px;

    }


    .deletepdf-drop-zone h2 {

        font-size: 22px;

    }


    .deletepdf-pages-area,
    .deletepdf-side-panel {

        padding: 12px;

    }


    .deletepdf-page-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

        gap: 9px;

    }


    .deletepdf-page-preview {

        height: 150px;

    }


    .deletepdf-summary-cards {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .deletepdf-processing,
    .deletepdf-result {

        padding:
            30px
            17px;

    }


    .deletepdf-result-stats {

        grid-template-columns: 1fr;

    }

}