/* Core Structural Adjustments */
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;
}

.encoder-hero {
    text-align: center;
    margin-bottom: 30px;
}
.encoder-title-main {
    font-size: 2.2rem !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    margin-bottom: 10px !important;
}
.encoder-subtitle-main {
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 500;
}

/* Workspace Frame elements */
.encoder-workspace {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 0 auto;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.toggle-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.toggle-btn.active {
    background: #4f46e5;
    color: #ffffff;
}

.utility-btn {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto; /* Push utilities to the right */
}
.btn-danger {
    margin-left: 0;
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}

.io-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .io-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.io-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.io-label {
    font-size: 13px;
    font-weight: 750;
    color: #475569;
}

.label-row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pro-textarea {
    width: 100%;
    height: 280px;
    padding: 14px;
    font-family: 'Fira Code', monospace;
    font-size: 13.5px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}
.pro-textarea:focus { border-color: #4f46e5; }
.ready-only-bg { background: #f8fafc; }

.copy-action-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* SEO Content Elements styling */
.seo-guide-section { max-width: 1200px; margin: 50px auto 0 auto; }
.step-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 25px; }
@media (min-width: 768px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: #fff; border: 1px solid #e2e8f0; padding: 22px; border-radius: 12px; position: relative; }
.step-num { position: absolute; top: -12px; left: 20px; background: #4f46e5; color: #fff; font-weight: 800; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; }
.step-card h4 { margin: 8px 0 8px 0; font-size: 16px; font-weight: 750; color: #0f172a; }
.step-card p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.5; }

.faq-section { max-width: 850px; margin: 50px auto 20px auto; }
.faq-main-title { font-size: 24px !important; font-weight: 850 !important; color: #0f172a; text-align: center; margin-bottom: 25px; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 15px; }
.faq-question { font-size: 16px !important; font-weight: 750 !important; color: #0f172a; margin-top: 0; margin-bottom: 8px; }
.faq-answer { font-size: 14px; color: #475569; line-height: 1.6; margin: 0; }