/* =========================================================
   PAGE
========================================================= */

.page {
    max-width: 900px;
    margin: 40px auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
}

.page-header p {
    margin-top: 8px;
    color: #64748b;
    font-size: .95rem;
}


/* =========================================================
   CARD
========================================================= */

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.form-group select,
.form-group input {
    width: 100%;
}


/* =========================================================
   DROP ZONE
========================================================= */

.drop-zone {
    margin: 26px 0;

    border: 2px dashed #cbd5e1;
    border-radius: 16px;

    background: #fafcff;

    transition: .25s;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #2563eb;
    background: #f5f9ff;
}

.drop-zone.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
    transform: scale(1.01);
}

.drop-zone-content {
    padding: 55px 24px;
    text-align: center;
}

.upload-icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.drop-zone h3 {
    margin-bottom: 10px;
}

.supported-files {
    margin-top: 18px;
    color: #94a3b8;
    font-size: .9rem;
}


/* =========================================================
   FILES
========================================================= */

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

.file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 18px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #fff;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.file-name {
    font-weight: 500;
    word-break: break-word;
}

.file-size {
    color: #64748b;
    font-size: .88rem;
}

.remove-file {
    border: none;
    background: transparent;

    color: #dc2626;

    font-size: .9rem;
    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   BUTTON
========================================================= */

#extractBtn {
    width: 100%;
    /* margin-top: 12px; */
}

#extractBtn:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* =========================================================
   BUTTONS
========================================================= */

/* .primary-btn,
.secondary-btn,
.danger-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;

    min-width: 120px;
    height: 44px;

    padding: 0 18px;

    border-radius: 12px;
    border: none;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: .2s;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: #f1f5f9;
    color: #334155;
}

.secondary-btn:hover {
    background: #e2e8f0;
}

.danger-btn {
    background: #dc2626;
    color: white;
}

.danger-btn:hover {
    background: #b91c1c;
} */


/* =========================================================
   REQUIREMENTS
========================================================= */

.requirements {
    margin-top: 16px;
}

.requirement {
    margin-top: 10px;

    color: #b45309;
    font-size: .92rem;
}

.requirement a {
    margin-left: 6px;
}


/* =========================================================
   MODAL
========================================================= */

/* .modal {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(15, 23, 42, .45);

    z-index: 1000;
}


.modal-card {
    width: min(480px, calc(100% - 32px));

    background: white;

    border-radius: 18px;

    padding: 34px;

    text-align: center;
} */

.modal-card {
    text-align: center;
}

/* .spinner {
    width: 56px;
    height: 56px;

    margin: 0 auto 22px;

    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;

    animation: spin .8s linear infinite;
} */

.modal-icon {
    font-size: 58px;
    margin-bottom: 18px;
}

/* .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-actions button {
    flex: 1;
} */

.modal-actions button {
    flex: 1;
}

/* =========================================================
   OVERLAY
========================================================= */

/* .overlay {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(15, 23, 42, .72);

    z-index: 1200;
}

.overlay-card {
    width: min(460px, calc(100% - 32px));

    background: white;

    border-radius: 18px;

    padding: 34px;

    text-align: center;
}

.overlay-card p {
    margin: 18px 0 26px;
    color: #64748b;
} */


/* =========================================================
   HELPERS
========================================================= */

.hidden {
    display: none !important;
}

/* @keyframes spin {

    to {
        transform: rotate(360deg);
    }

} */


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .page {
        margin: 20px auto;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        padding: 20px;
    }

    .drop-zone-content {
        padding: 40px 18px;
    }

    /* .modal-card,
    .overlay-card {
        padding: 24px;
    } */

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
        min-height: 42px;
    }

}