.sfg-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

/* ==== CANVAS ==== */
.sfg-canvas-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

#sfg-canvas {
    position: relative;
    width: 360px;
    height: 640px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* GUIAS */
#sfg-canvas::before,
#sfg-canvas::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.35);
    z-index: 5;
}

#sfg-canvas::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

#sfg-canvas::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

/* ==== ELEMENTOS ==== */
#sfg-template {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.draggable {
    position: absolute;
    cursor: grab;
    user-select: none;
}

#sfg-text {
    top: 50%;
    left: 50%;
    font-size: 32px;
    color: #fff;
    font-weight: normal;
    text-align: center;
    max-width: 90%;
}

#sfg-logo {
    display: none;
    width: 120px;
}

/* ==== PANEL ==== */
.sfg-panel {
    width: 300px;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 12px;
}

.sfg-panel h3 {
    margin-top: 0;
}

.sfg-panel textarea {
    width: 100%;
    height: 60px;
}

.sfg-panel label {
    display: block;
    margin: 10px 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==== TEMPLATES CARRUSEL ==== */
#sfg-templates {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

#sfg-templates img {
    width: 90px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
}

#sfg-templates img:hover {
    border-color: #007cba;
}

/* ==== COLAPSAR ==== */
.sfg-templates-collapsed #sfg-templates,
.sfg-templates-collapsed #sfg-category {
    display: none;
}

#sfg-toggle-templates {
    display: none;
    margin-bottom: 10px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .sfg-wrapper {
        flex-direction: column;
    }

    .sfg-panel {
        width: 100%;
    }
}
