.tool-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
}

.controls-panel {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
}

.controls-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
}

.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
}

#canvasContainer {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    background: #f0f2f5; /* Neutral background to show off the card */
    padding: 20px;
    border-radius: 8px;
}

.dark-mode #canvasContainer {
    background: #18191a;
}

canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.mt-4 {
    margin-top: 2rem;
}

.seo-content ul, .seo-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

.seo-content h2, .seo-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

body, html { overflow-x: hidden; margin: 0; padding: 0; }
