/* Core Layout & Typography */
main.container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: #1e293b !important;
    background-color: #f8fafc;
    padding: 40px 15px !important;
    border-radius: 16px;
}

.converter-hero {
    text-align: center;
    margin-bottom: 25px;
}
.converter-title-main {
    font-size: 2.2rem !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    margin-bottom: 10px !important;
}
.converter-subtitle-main {
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Mode Switcher Tabs */
.mode-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    border-color: #cbd5e1;
    color: #334155;
}
.tab-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .converter-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.converter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: left;
    width: fit-content;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.upload-zone:hover, .upload-zone.dragging {
    border-color: #4f46e5;
    background: #f0fdf4;
}
.upload-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}
.upload-text {
    font-size: 14px;
    color: #475569;
    margin: 0 0 5px 0;
}
.upload-limitation {
    font-size: 11px;
    color: #94a3b8;
}

/* File selected badge */
.file-info {
    margin-top: 12px;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    text-align: left;
    border-left: 4px solid #4f46e5;
}

.control-label {
    font-weight: 700 !important;
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.pro-input:focus {
    border-color: #4f46e5;
}

.converter-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700 !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s;
}
.converter-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Results Display Styling */
.result-card {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 30px;
    box-sizing: border-box;
}
.empty-state-text {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

/* Image preview with checkboard transparent background */
.preview-wrapper {
    background-color: #ffffff;
    background-image: radial-gradient(#cbd5e1 20%, transparent 20%),
                      radial-gradient(#cbd5e1 20%, transparent 20%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 250px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 20px;
}
#imagePreview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.download-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: #10b981;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    transition: all 0.2s;
}
.download-btn:hover {
    background: #059669;
}

/* FAQ Styles */
.faq-section { max-width: 850px; margin: 60px auto 30px auto; }
.faq-main-title { font-size: 24px !important; font-weight: 850 !important; color: #0f172a; margin-bottom: 30px; text-align: center; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.faq-question { font-size: 16.5px !important; font-weight: 750 !important; color: #0f172a; margin-top: 0; margin-bottom: 10px; }
.faq-answer { font-size: 14.5px; color: #475569; line-height: 1.6; margin: 0; }