/* Sites Section Styles */
#sites-section {
    background: #1e1e1e;
    width: 100%;
    margin-top: 100px;
}

#sites-section main {
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
}

.sites-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mode Toggle inside GrapeJS panels */
.gjs-mode-toggle-container {
    display: flex !important;
    align-items: center;
    padding: 0 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.gjs-mode-toggle {
    display: flex;
    gap: 4px;
}

/* Style panel buttons for mode toggle */
#mode-toggle-web,
#mode-toggle-email {
    padding: 4px 8px !important;
    margin: 0 2px !important;
    border: 1px solid #404040 !important;
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}

#mode-toggle-web:hover,
#mode-toggle-email:hover {
    background: #3d3d3d !important;
    border-color: #667eea !important;
}

#mode-toggle-web.active,
#mode-toggle-email.active {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.gjs-mode-btn {
    padding: 4px 8px;
    border: 1px solid #404040;
    background: #2d2d2d;
    color: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.gjs-mode-btn:hover {
    background: #3d3d3d;
    border-color: #667eea;
}

.gjs-mode-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* GrapeJS Editor Container */
#gjs {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Override GrapeJS styles for better integration */
.gjs-editor {
    height: 100vh !important;
}

.gjs-cv-canvas {
    height: 100% !important;
}

/* GrapeJS Dark Theme Styles */
.gjs-editor {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.gjs-pn-panels {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

.gjs-pn-panel {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

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

.gjs-pn-btn:hover {
    background: #3d3d3d !important;
}

.gjs-block {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #404040 !important;
}

.gjs-block:hover {
    background: #3d3d3d !important;
}

.gjs-sm-sector {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

.gjs-sm-property {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
}

.gjs-sm-property input,
.gjs-sm-property select {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #404040 !important;
}

.gjs-layer {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
}

.gjs-layer:hover {
    background: #3d3d3d !important;
}

.gjs-cv-canvas {
    background: #1e1e1e !important;
}

.gjs-frame {
    background: #1e1e1e !important;
}

.gjs-toolbar {
    background: #2d2d2d !important;
}

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

.gjs-toolbar-item:hover {
    background: #3d3d3d !important;
}

/* Custom styles for better UX */
.sites-section-header {
    display: none; /* Hide if not needed, or style as needed */
}

