/* ==========================================================================
   Glassmorphism CSS & Grid System
   ========================================================================== */

:root {
    --gap-glass-bg: rgba(255, 255, 255, 0.25);
    --gap-glass-border: rgba(255, 255, 255, 0.18);
    --gap-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --gap-glass-backdrop: blur(4px);
}

.gap-glass-container {
    background: var(--gap-glass-bg);
    box-shadow: var(--gap-glass-shadow);
    backdrop-filter: var(--gap-glass-backdrop);
    -webkit-backdrop-filter: var(--gap-glass-backdrop);
    border-radius: 10px;
    border: 1px solid var(--gap-glass-border);
    padding: 20px;
    margin-bottom: 20px;
}

/* Row & Grid Layout */
.gap-builder-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    box-sizing: border-box;
}

.gap-builder-col {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Fractional & Grid Column Widths Fix */
.gap-col-1-1,
.gap-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.gap-col-1-2,
.gap-col-2-4,
.gap-col-3-6,
.gap-col-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}

.gap-col-1-4,
.gap-col-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
}

.gap-col-3-4,
.gap-col-9 {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    width: 75% !important;
}

.gap-col-1-3,
.gap-col-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
}

.gap-col-2-3,
.gap-col-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
    width: 66.666667% !important;
}

/* Builder Drag & Drop Helper UI */
.gap-builder-dropzone {
    min-height: 80px;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 10px;
    transition: background-color 0.2s ease;
}

.gap-builder-dropzone.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}