/* GrapesJS Page Builder Styles */

.page-builder-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
}

/* GrapesJS Panel Customization */
.gjs-pn-panel {
    background-color: #1a1a2e !important;
    color: #fff !important;
}

.gjs-pn-btn {
    color: #fff !important;
}

.gjs-pn-btn:hover {
    background-color: #16213e !important;
}

.gjs-pn-btn.gjs-pn-active {
    background-color: #667eea !important;
    color: #fff !important;
}

/* Blocks Panel */
.gjs-block {
    background-color: #2c2c3e !important;
    color: #fff !important;
    border: 1px solid #3a3a4e !important;
    transition: all 0.3s ease;
}

.gjs-block:hover {
    background-color: #667eea !important;
    transform: scale(1.05);
}

.gjs-block i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Style Manager */
.gjs-sm-sector {
    background-color: #1a1a2e !important;
    border-bottom: 1px solid #3a3a4e !important;
}

.gjs-sm-sector-title {
    background-color: #16213e !important;
    color: #fff !important;
}

.gjs-sm-property {
    background-color: #2c2c3e !important;
    color: #fff !important;
}

.gjs-input {
    background-color: #16213e !important;
    color: #fff !important;
    border: 1px solid #3a3a4e !important;
}

.gjs-input:focus {
    border-color: #667eea !important;
}

/* Layer Manager */
.gjs-layer {
    background-color: #2c2c3e !important;
    color: #fff !important;
}

.gjs-layer:hover {
    background-color: #16213e !important;
}

.gjs-layer.gjs-selected {
    background-color: #667eea !important;
}

/* Toolbar (Element Controls) */
.gjs-toolbar {
    background-color: #667eea !important;
    border-radius: 4px !important;
}

.gjs-toolbar-item {
    color: #fff !important;
}

.gjs-toolbar-item:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Resizer Handles */
.gjs-resizer-h {
    background-color: #667eea !important;
}

/* Canvas */
.gjs-cv-canvas {
    background-color: #f5f5f5 !important;
}

/* Device Buttons */
.panel__devices {
    display: flex;
    gap: 4px;
}

.panel__devices .gjs-pn-btn {
    padding: 8px 12px;
}

/* Basic Actions */
.panel__basic-actions {
    display: flex;
    gap: 4px;
}

.panel__basic-actions .gjs-pn-btn {
    padding: 8px 12px;
}

/* Bootstrap Icons Integration */
.gjs-block i.bi {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
}

/* Color Picker */
.gjs-field-color-picker {
    background-color: #16213e !important;
}

/* Scrollbar Styling */
.gjs-blocks-c::-webkit-scrollbar,
.gjs-sm-sectors::-webkit-scrollbar,
.gjs-layers::-webkit-scrollbar {
    width: 8px;
}

.gjs-blocks-c::-webkit-scrollbar-track,
.gjs-sm-sectors::-webkit-scrollbar-track,
.gjs-layers::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.gjs-blocks-c::-webkit-scrollbar-thumb,
.gjs-sm-sectors::-webkit-scrollbar-thumb,
.gjs-layers::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.gjs-blocks-c::-webkit-scrollbar-thumb:hover,
.gjs-sm-sectors::-webkit-scrollbar-thumb:hover,
.gjs-layers::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gjs-pn-panel {
        font-size: 12px;
    }

    .gjs-block {
        min-height: 60px;
    }
}
