/* Container adjustments */
.bsg-wrapper {
    padding: 20px 0;
}

/* Layer Card Styling */
.bsg-layer-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.bsg-remove-layer {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    font-size: 12px;
}

/* Range slider spacing */
.bsg-control-group {
    margin-bottom: 10px;
}
.bsg-control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

/* Preview Canvas */
.bsg-preview-canvas {
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee), 
                      linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border: 1px solid #ccc;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* The actual Box */
#bsg-preview-box {
    width: 150px;
    height: 150px;
    background-color: #3b82f6; /* Default generic blue */
    border-radius: 8px;
    transition: all 0.1s ease;
}

/* Output Textarea */
#bsg-css-output {
    font-family: 'Courier New', Courier, monospace;
    background: #2d2d2d;
    color: #83ff83;
    cursor: pointer;
}
#bsg-css-output:focus {
    outline: 2px solid #83ff83;
}
/* Ensure color input has a consistent height with other inputs */
.form-control-color {
    padding: 0.2rem;
    height: 31px; /* Matches Bootstrap sm input height */
}

/* Align checkbox nicely */
.bsg-layer-item .form-check {
    padding-left: 1.5rem;
}