/* PDF to Word Converter Styles */
.pdf-to-word-page {
    padding: 40px 0;
    background-color: #f9fafb;
    min-height: 100vh;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 15px;
    font-weight: 700;
}

.tool-header .subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.breadcrumb span {
    color: #4a5568;
}

/* Converter Section */
.converter-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
}

/* Drop Area */
.drop-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background-color: #f8fafc;
}

.drop-area.highlight {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.drop-area .drop-content {
    max-width: 500px;
    margin: 0 auto;
}

.drop-area i {
    font-size: 3rem;
    color: #4299e1;
    margin-bottom: 15px;
    display: block;
}

.drop-area h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.drop-area p {
    color: #718096;
    margin: 10px 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}

.btn-primary:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-convert {
    background-color: #48bb78;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn-convert:hover {
    background-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-convert:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-download {
    background-color: #48bb78;
    color: white;
    padding: 12px 24px;
    margin-right: 10px;
}

.btn-download:hover {
    background-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 12px 24px;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Conversion Options */
.conversion-options {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
}

.conversion-options h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 12px;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.95rem;
}

.option-group input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.option-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background-color: white;
    color: #4a5568;
    font-size: 0.95rem;
    margin-top: 8px;
    cursor: pointer;
}

/* Result Container */
.result-container {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    display: none;
}

.result-success .success-icon {
    font-size: 3.5rem;
    color: #48bb78;
    margin-bottom: 15px;
}

.result-success h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.result-success p {
    color: #4a5568;
    margin-bottom: 25px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.file-icon {
    font-size: 2rem;
    color: #2b6cb0;
    margin-right: 15px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 0.9rem;
    color: #718096;
}

.action-buttons {
    margin: 25px 0;
}

.share-options {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.share-options p {
    margin-bottom: 15px;
    color: #4a5568;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share {
    background-color: white;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-share i {
    margin-right: 6px;
    font-size: 1rem;
}

.btn-share:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* How It Works Section */
.how-it-works {
    text-align: center;
    margin: 60px 0;
}

.how-it-works h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.how-it-works .section-subtitle {
    color: #718096;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #4299e1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.step-content p {
    color: #718096;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin: 60px 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.features-section .section-subtitle {
    color: #718096;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #ebf8ff;
    color: #4299e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background-color: #4299e1;
    color: white;
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.feature p {
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    margin: 80px 0 60px;
    text-align: center;
}

.faq-section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.faq-section .section-subtitle {
    color: #718096;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: #718096;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* Related Tools Section */
.related-tools {
    margin: 80px 0 60px;
    text-align: center;
}

.related-tools h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.related-tools .section-subtitle {
    color: #718096;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tool-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background-color: #ebf8ff;
    color: #4299e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background-color: #4299e1;
    color: white;
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.tool-card p {
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.tool-card.coming-soon {
    position: relative;
    opacity: 0.8;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f6e05e;
    color: #744210;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Overlay */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4299e1;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.loading-content p {
    color: #718096;
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4299e1;
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .converter-section {
        padding: 20px 15px;
    }
    
    .drop-area {
        padding: 30px 15px;
    }
    
    .drop-area h3 {
        font-size: 1.3rem;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-download, .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .btn-share {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.8rem;
    }
    
    .tool-header .subtitle {
        font-size: 1rem;
    }
    
    .how-it-works h2, 
    .features-section h2,
    .faq-section h2,
    .related-tools h2 {
        font-size: 1.6rem;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    .feature {
        padding: 25px 20px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}
