/* ==================================================
   PDF TO WORD CONVERTER TOOL STYLES
   COURSORA
================================================== */

.tool-page-body {
    background: #f5f8ff;
    color: #292d50;
    min-height: 100vh;
}

.active-nav-link {
    color: #625bc6 !important;
    background: #f0ecff !important;
    border-color: rgba(98, 91, 198, 0.25) !important;
}

.tool-main {
    padding-top: 100px;
    padding-bottom: 80px;
    max-width: 1140px;
    margin: 0 auto;
    padding-inline: 4%;
}

/* ==================================================
   TOOL HERO
================================================== */
.tool-hero {
    text-align: center;
    max-width: 820px;
    margin: 30px auto 40px;
}

.tool-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 18px;
    border: 1.5px solid rgba(98, 91, 198, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #625bc6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(98, 91, 198, 0.08);
}

.tool-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    color: #202447;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0 0 16px 0;
}

.tool-title-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #625bc6 0%, #2563eb 50%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-subtitle {
    font-size: clamp(16px, 1.8vw, 18px);
    color: #5d617a;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 720px;
}

/* ==================================================
   CONVERTER CONTAINER & DROPZONE
================================================== */
.converter-container {
    max-width: 960px;
    margin: 0 auto 60px;
}

.upload-dropzone {
    background: #ffffff;
    border: 3px dashed #cfc9f7;
    border-radius: 28px;
    padding: 55px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 12px 35px rgba(98, 91, 198, 0.08);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #625bc6;
    background: #fbfaff;
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(98, 91, 198, 0.16);
}

.dropzone-icon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.doc-icon {
    font-size: 54px;
    display: inline-block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.upload-dropzone:hover .doc-icon {
    transform: scale(1.1);
}

.arrow-convert {
    font-size: 26px;
    color: #625bc6;
    font-weight: 900;
}

.upload-dropzone h3 {
    font-size: 24px;
    color: #202447;
    font-weight: 900;
    margin: 0 0 8px 0;
}

.upload-dropzone p {
    font-size: 15px;
    color: #6b6f8c;
    margin: 0 0 24px 0;
}

.browse-button {
    padding: 14px 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, #625bc6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(98, 91, 198, 0.35);
    transition: all 0.25s ease;
}

.browse-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(98, 91, 198, 0.5);
}

.dropzone-features {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eeebfc;
    color: #625bc6;
    font-size: 13px;
    font-weight: 700;
}

/* ==================================================
   PROGRESS STATE
================================================== */
.converter-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(98, 91, 198, 0.1);
    border: 2px solid #e7e3ff;
}

.progress-card {
    text-align: center;
    padding: 60px 30px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #ece8ff;
    border-top-color: #625bc6;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-card h3 {
    font-size: 24px;
    color: #202447;
    margin: 0 0 8px;
    font-weight: 900;
}

.progress-card p {
    color: #6b6f8c;
    font-size: 15px;
    margin: 0 0 24px;
}

.progress-bar-wrap {
    width: 100%;
    max-width: 480px;
    height: 12px;
    background: #edf0ff;
    border-radius: 999px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #625bc6, #38bdf8);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 14px;
    font-weight: 900;
    color: #625bc6;
}

/* ==================================================
   RESULTS & PREVIEW PANEL
================================================== */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0ecff;
    margin-bottom: 24px;
}

.file-info-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-icon-badge {
    font-size: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #eef2ff;
    border-radius: 14px;
    border: 1.5px solid #dcd7fc;
}

.file-info-badge strong {
    display: block;
    font-size: 18px;
    color: #202447;
    margin-bottom: 3px;
    word-break: break-word;
}

.file-meta {
    font-size: 13px;
    color: #727694;
    font-weight: 700;
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download-button {
    padding: 12px 22px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docx-btn {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.docx-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.doc-btn {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.doc-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.action-btn {
    padding: 11px 18px;
    border-radius: 20px;
    border: 1.5px solid #dcd7fc;
    background: #ffffff;
    color: #5144ad;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f0ecff;
    border-color: #625bc6;
}

.outline-btn {
    color: #6b6f8c;
}

.status-toast {
    margin-bottom: 18px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    background: #e6f9ed;
    color: #12803e;
    border: 1px solid #b7f0c9;
}

/* Document Live Preview Box */
.preview-panel {
    background: #fbfaff;
    border: 1px solid #e7e3ff;
    border-radius: 20px;
    padding: 18px;
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #434766;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece7ff;
}

.preview-hint {
    background: #f0ecff;
    color: #625bc6;
    font-weight: 800;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
}

.document-preview-box {
    background: #ffffff;
    border: 1px solid #ddd8f8;
    border-radius: 12px;
    padding: 35px 40px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-family: "Calibri", "Arial", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #1e243b;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
}

.document-preview-box:focus {
    border-color: #625bc6;
    box-shadow: 0 0 0 3px rgba(98, 91, 198, 0.15);
}

.preview-page-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
    color: #8c90ad;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    user-select: none;
}

.preview-page-divider::before,
.preview-page-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0dcf8;
}

.doc-heading {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin: 16px 0 8px;
}

.doc-paragraph {
    margin: 0 0 12px 0;
}

/* ==================================================
   HOW IT WORKS & STEPS
================================================== */
.tool-guide-section {
    margin-top: 50px;
}

.guide-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: #202447;
    margin-bottom: 35px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.step-card {
    background: #ffffff;
    border: 1.5px solid #e7e3ff;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(98, 91, 198, 0.06);
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: #cfc9f7;
}

.step-number {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 28px;
    height: 28px;
    background: #f0ecff;
    color: #625bc6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.step-icon {
    font-size: 38px;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #202447;
    margin: 0 0 10px;
}

.step-card p {
    font-size: 14px;
    color: #646884;
    line-height: 1.6;
    margin: 0;
}

/* Privacy Banner */
.privacy-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.privacy-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.privacy-banner h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 900;
    color: #14532d;
}

.privacy-banner p {
    margin: 0;
    font-size: 14px;
    color: #166534;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-main {
        padding-top: 90px;
    }

    .upload-dropzone {
        padding: 35px 20px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-actions {
        width: 100%;
    }

    .download-button,
    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .document-preview-box {
        padding: 20px;
    }

    .privacy-banner {
        flex-direction: column;
        text-align: center;
    }
}

