.converter-card {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.upload-section {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.upload-section.drag-over {
    background-color: rgba(67, 97, 238, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-heading {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modern-notice {
    margin-top: 15px;
    font-size: 0.9rem;
}

#main-content {
    margin: 20px;
}

.size-notice {
    font-size: 0.8rem;
    margin-top: 5px;
}

.browse-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.control-group select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
}

.action-buttons {
    text-align: center;
    margin: 25px 0;
}

.convert-btn {
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.convert-btn:disabled {
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-container {
    display: none;
    margin: 25px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.results-section {
    margin-top: 30px;
    padding-top: 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 20px;
}

.results-header h3 {
    margin-bottom: 5px;
}

.file-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.file-preview-icon {
    font-size: 48px;
}

.file-info-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.download-btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    color: #eee;
}


/* Toast notifications */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

.toast.info {
    background: #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.processing-text {
    font-size: 1.1rem;
    color: #333;
}


/* FAQ Section */

.faq-section {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 20px;
}

.faq-answer.show {
    max-height: 500px;
    padding: 20px;
}


/* Related Tools Section */

.related-tools-section {
    margin: 60px 0;
}

.related-tools-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tool-card {
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.tool-card h3 {
    margin-bottom: 15px;
}

.tool-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tool-card a {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: auto;
}

.tool-card a:hover {
    background-color: var(--footer-link);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.tool-card a i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}


/* SEO Content Section */

.seo-content {
    margin: 60px 0;
}

.seo-content h2 {
    margin-bottom: 25px;
}

.seo-content h3 {
    margin: 25px 0 15px;
}

.seo-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.seo-content ul,
.seo-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}


/* Blog Section */

.blog-section {
    margin: 60px 0;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.blog-article {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.blog-article:last-child {
    border-bottom: none;
}

.blog-article h3 {
    margin-bottom: 15px;
}

.blog-article h3 a {
    text-decoration: none;
}

.blog-article h3 a:hover {
    text-decoration: underline;
}

.blog-article p {
    line-height: 1.6;
}


/* Responsive Design */

@media (max-width: 768px) {
    .converter-card {
        padding: 20px;
    }
    .upload-section {
        padding: 30px 15px;
    }
    .controls-grid {
        grid-template-columns: 1fr;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
}


/* Go to Top Button */

.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.go-to-top i {
    font-size: 1.2rem;
}