body {
    font-family: Nunito, sans-serif;
}

#mainContainer {
    min-height: 100vh;
    position: relative;
}

#refWidget {
    width: 100%;
}

/* Base floating button (use ID, only once per page) */
#rw-floating-button {
    position: fixed;
    right: 30px;
    padding: 0 24px;
    height: 50px;
    border-radius: 28px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
	border:1px solid #fff;
}

/* Icon sizing for any floating button */
#rw-floating-button i {
    font-size: 18px;
}

/* Hover behavior for any floating button */
#rw-floating-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Back-to-Refari Platform variant */
.rw-back-to-refari-platform {
    top: 30px;
    background: linear-gradient(160deg, #0d0d0d 0%, #6c6c6c 100%);
    color: white;
}
.rw-back-to-refari-platform:hover {
    background: linear-gradient(160deg, #3a3a3a 0%, #bfbfbf 100%) !important;
}

/* Toggle Branding variant (position only) */
.rw-toggle-branding {
    top: 100px;
}

/* Dummy Branding theme */
.rw-switch-to-dummy {
    background: linear-gradient(160deg, #FF7904 0%, #FFAF09 100%) !important;
    color: #000;
}
.rw-switch-to-dummy:hover {
    background: linear-gradient(160deg, #cc5200 0%, #d48800 100%) !important;
}

/* Real Branding theme */
.rw-switch-to-real {
    background: linear-gradient(160deg, #28A745 0%, #5CD65C 100%) !important;
    color: #000;
}
.rw-switch-to-real:hover {
    background: linear-gradient(160deg, #218838 0%, #28A745 100%) !important;
}

/* Edit Widget variant */
.rw-edit-widget {
    bottom: 30px;
    height: 56px;
    background-color: #25b4d5;
    color: white;
}
.rw-edit-widget:hover {
    background-color: #198aae;
}

/* Editor area (JS code editor) */
#editor {
    width: 100%;
    height: 500px;
    border: 1px solid #e0e0e0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    margin: 20px 0;
    resize: vertical;
    white-space: pre;
    tab-size: 4;
    box-sizing: border-box;
    overflow: auto;
}

.rw-button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.rw-editor-button {
    padding: 12px 24px;
    color: white;
    background-color: #25b4d5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rw-editor-button:hover {
    background-color: #198aae;
    transform: translateY(-1px);
}

.rw-editor-button:active {
    transform: translateY(0);
}

.rw-editor-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    font-size: 14px;
}