.cb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.preview-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
}

.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.jxgbox {
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background-color: #f8fafc;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #334155;
}

.form-group input[type="number"], .form-group input[type="color"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.func-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 0.375rem;
}

.func-rendered {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0.5rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    cursor: text;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.func-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    background: #e2e8f0;
    border: 1px dashed #94a3b8;
    border-radius: 0.375rem;
    color: #475569;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #cbd5e1;
    border-style: solid;
}

.btn-remove {
    background: #ef4444;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
