/* Excel to PDF Page Specific Styles */
.excel-to-pdf-section {
    padding: 40px 0;
    min-height: 350px;
    background: white;
}

.main-body .excel-to-pdf-section {
    padding-top: 16px;
}

/* Excel to PDF Converter UI */
.excel-to-pdf-tool {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.excel-to-pdf-tool * {
    box-sizing: border-box;
}

.excel-to-pdf-tool .upload-area {
    border: 2px dashed #bfdbfe;
    border-radius: 18px;
    padding: 52px 32px 44px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.excel-to-pdf-tool .upload-area:hover {
    border-color: #2563eb;
    background: #f0f7ff;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.excel-to-pdf-tool .upload-area.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    transform: scale(1.01);
}

.excel-to-pdf-tool .upload-icon-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px auto;
    color: #2563eb;
    transition: transform 0.25s ease;
}

.excel-to-pdf-tool .upload-icon-circle svg {
    margin-bottom: 0;
    width: 32px;
    height: 32px;
    stroke: #2563eb;
}

.excel-to-pdf-tool .upload-area:hover .upload-icon-circle,
.excel-to-pdf-tool .upload-area.drag-over .upload-icon-circle {
    transform: scale(1.08) translateY(-2px);
}

.excel-to-pdf-tool .upload-instructions h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.excel-to-pdf-tool .upload-instructions p {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 14px;
}

.excel-to-pdf-tool .btn-select-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.28);
    font-family: inherit;
    pointer-events: none;
}

.excel-to-pdf-tool .btn-select-file svg {
    margin-bottom: 0;
    width: 18px;
    height: 18px;
    stroke: white;
}

.excel-to-pdf-tool .upload-area:hover .btn-select-file,
.excel-to-pdf-tool .upload-area.drag-over .btn-select-file {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}

.excel-to-pdf-tool .file-limits {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    opacity: 1 !important;
}

.excel-to-pdf-tool .file-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.excel-to-pdf-tool .file-info {
    font-size: 18px;
    font-weight: 500;
    color: #0f172a;
    display: flex;
    gap: 10px;
    align-items: center;
}

.excel-to-pdf-tool .file-info span:last-child {
    color: #64748b;
    font-size: 16px;
}

.excel-to-pdf-tool .convert-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.excel-to-pdf-tool .convert-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.excel-to-pdf-tool .convert-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.excel-to-pdf-tool .processing-status {
    text-align: center;
    padding: 40px;
}

.excel-to-pdf-tool .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: excel-to-pdf-spin 1s linear infinite;
}

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

.excel-to-pdf-tool .processing-status p {
    color: #475569;
    font-size: 18px;
    font-weight: 500;
}

.excel-to-pdf-tool .result-section {
    text-align: center;
    padding: 40px;
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
}

.excel-to-pdf-tool .success-message {
    font-size: 24px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 30px;
}

.excel-to-pdf-tool .download-link {
    display: inline-block;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-bottom: 20px;
}

.excel-to-pdf-tool .download-link:hover {
    background: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
}

.excel-to-pdf-tool .convert-another-btn {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #475569;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.excel-to-pdf-tool .convert-another-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.excel-to-pdf-tool .error-message {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
}

.excel-to-pdf-tool .upload-microcopy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.excel-to-pdf-tool .upload-microcopy-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.excel-to-pdf-tool .upload-microcopy-item svg {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .excel-to-pdf-tool {
        padding: 20px;
        margin: 10px auto;
        border-radius: 12px;
    }

    .excel-to-pdf-tool .upload-instructions h3 {
        font-size: 18px;
    }

    .excel-to-pdf-tool .convert-btn,
    .excel-to-pdf-tool .download-link {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }

    .excel-to-pdf-tool .upload-microcopy {
        flex-direction: column;
        gap: 12px;
    }
}

.excel-to-pdf-tool .hidden {
    display: none;
}

/* How to Convert Excel to PDF Section */
.how-to-convert-excel-pdf {
    padding: 40px 0;
    background: #ffffff;
}

.how-to-convert-excel-pdf .section-title {
    margin-bottom: 50px;
}

.steps-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1 1 220px;
    max-width: 320px;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    margin: 0 auto 16px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e293b;
}

.step-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}