:root{
    --radius:12px;
    --borderColor: rgba(0, 0, 0, .2);
    --border: 1px solid rgba(0, 0, 0, .2);
    --border2: 2px solid rgba(0, 0, 0, .4);

    --primary: oklch(0.75 0.03 60.62);  /* oklch(0.75 0.03 60.62); oklch(0.65 0.15 264);*/
    --bg-dark: oklch(0.92 0 264);
    --bg: oklch(0.96 0 264);
    --bg-light: oklch(1 0 264);
    /* text-colors */
    --text: oklch(0.15 0 264);
    --text-muted: oklch(0.4 0 264);

    --backroundPanels: oklch(1 0 0 / 50%);
    --backroundPanels2: oklch(0.2 0 0 / 10%);
    --backroundModelViewer: oklch(1 0 0 / 20%);

  /* shadows */
  --shadow-s: inset 0 1px 2px #ffffff30, /* top highlight */ 0 1px 2px #00000030,
    /* dark shadow */ 0 2px 4px #00000015; /* soft shadow */
  --shadow-m: inset 0 1px 2px #ffffff50, /* top highlight */ 0 2px 4px #00000030,
    /* dark shadow */ 0 4px 8px #00000015; /* soft shadow */
  --shadow-l: inset 0 1px 2px #ffffff70, /* top highlight */ 0 4px 6px #00000030,
    /* dark shadow */ 0 6px 10px #00000015; /* soft shadow */

  --aieditWidth: 400px;
}

button:focus, button:active {

}
 /* from luma temple? 
body {
    color: #333;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: .65rem;
}
*/

div{
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

p {
    /* font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
    /* margin-top: 0rem !important; */
    /* margin-bottom: 1rem !important; */
}

h3 {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

}

h4 {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin-top: 0rem;
    /*font-weight: 700 !important; */
}

button {
    background-image: none;
    background: #eee;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-family: 'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
    font-weight: 600;
    margin: 0;
    padding: 7px 15px;
    font-size: 1.4rem;
    line-height: 1.6rem;
    box-sizing: border-box;
    vertical-align: middle;
    text-transform: none;
}

button:focus,button:active {
    background: #e2e2e2;
    border: 1px solid #ccc;
    color: #333
}

button:hover {
    background: #e1e1e1;
    border: 1px solid #ccc;
    color: #333
}

button.disabled,button[disabled],fieldset[disabled] button {
    opacity: .5;
    cursor: default;
    pointer-events: none
}

button::-moz-focus-inner {
    border: 0;
    padding: 0
}

 /* from luma temple? */ 



/* Force full width for the editor page */
/*
.page-wrapper .columns .column.main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-wrapper .columns {
    max-width: 100% !important;
}

.page-wrapper .main-container {
    max-width: 100% !important;
}
*/
/* Editor content */
#canvas {
    border: var(--border);
    border-radius: 12px;
    Zbackground: white;
    max-width: 100%;
    height: auto;
}


.allContent {
    position: relative;
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 4%;
    padding-top: 1%;

    margin-left: 8%;
    margin-right: 8%;
    min-height: 950px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.backgroundImage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url('../images/room.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    border-radius: var(--radius);
    filter: blur(2px);
}

.allContent > *:not(.backgroundImage) {
    position: relative;
    z-index: 1;
}

.editorContainer {
    position: relative;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.editorColumn {
    flex: 1 1 320px;
}

.editorColumn--canvas {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editorColumn--controls {
    display: flex;
    flex-direction: column;
}

.editorFooter {
    display: flex;
    position: absolute;
    bottom: -10%;
    width: 100%;
    flex-direction: column;
    align-items: center;
}


.editorFooterProgress{
    width: 80%;
}

.editorFooterSteps{
    display: flex;
    width: 100%;
    justify-content: space-around;
}


.stepPanel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: var(--border);
    background: var(--backroundPanels);
    /* margin-top: 3rem; */
}

.stepPanel__header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stepPanel__eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0;
}

.stepPanel_iconTitle{
    display: flex;
    gap:10px;
    align-items: center;
}


.stepPanel__title {
    font-size: 1.1rem;
    margin: 0;
}

.stepPanel__subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.stepPanel__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stepTextBig{
    font-size: xx-large;
    font-weight: bold;
}

.stepTextSmall{
    display: flex;
    align-items: center;
    font-size: small;
}


.stepBigButton{
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: var(--border);
    margin: 1%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10%;
    text-align: center;
}

.stepBigButton:hover{
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: var(--border2);
    margin: 1%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10%;
    text-align: center;
}

button.stepAction {
    flex: 1 1 calc(50% - 0.75rem);
    /* padding: 0.85rem 1rem; */
    border-radius: 0.85rem;
    border: var(--border);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 0.65rem;
    /* font-weight: 600; */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    width: unset;
    height: unset;
}

.stepAction:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-m);
}

.stepAction:focus {
    border: var(--border);
    box-shadow: var(--shadow-m);
    background-color: var(--bg-light);
}



.stepAction.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.stepAction--compact {
    flex: 1 1 calc(33% - 0.75rem);
}

.stepPanel__group {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgb(50 50 50 / 12%);
    padding: 1.5rem;
    padding-top: .5rem;
    /* padding-bottom: 2rem; */
    border-radius: var(--radius);
}

.stepPanel__ToolsGroup {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stepPanel__groupTitle {
    /* margin-top: 1rem; */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0rem;
}

.stepPanel__noImage {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

.stepPanel__noImage p {
    margin: 0;
    font-size: 1rem;
}

.stepPanel__content {
    display: block;
}

.colorCarousel {
    /* width: 50%; */
    /* display: flex; */
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.colorCarousel::-webkit-scrollbar {
    height: 6px;
}

.colorCarousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.colorCarousel::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.colorCarousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.colorButton {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.colorButton:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-m);
    border-color: var(--primary);
}

.colorButton:active {
    transform: scale(0.95);
}


model-viewer {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--backroundModelViewer);  
}

.previewPanel {
    width: 100%;
}

.previewPanel__hint {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.previewPanel__viewer {
    width: 100%;
    height: 360px;
    border-radius: 1rem;
    background: var(--bg);
    border: var(--border);
    box-shadow: var(--shadow-m);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.previewPanel__placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.previewPanel__viewer model-viewer {
    width: 100%;
    height: 100%;
}

.editorNavigation {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

button.editorNavigation__button {
    display: flex;
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    border-radius: 0.85rem;
    border: 1px solid var(--borderColor);
    background: var(--backroundPanels);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, font-size 0.2s ease;
    flex-direction: column;
    align-items: center;
    width: unset;
    height: unset;
}

.editorNavigation__button:hover {
    padding: 0.75rem 1.5rem;
    border-radius: 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;

    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.editorNavigation__button.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-m);
}




.editorNavigationBackNext {
    display: flex;
    padding: 1rem;
    gap: 0.75rem;
    border-radius: 0.85rem;
    background: var(--backroundPanels2);
    margin-top: 1rem;
    justify-content: space-around;
}
/*
.editorNavigationBackNext button {
    width: 100%;
    height: 100%;
    border-radius: 0.85rem;
    border: var(--border);
    background: #fff;
    box-shadow: var(--shadow-s);
    font-size: 1.1rem;
    font-weight: 600;
}
*/
.canvasUndoRedo {
    display: flex;
    width: 80%;
    padding: .5rem;
    gap: 20%;
    border-radius: 0.85rem;
    margin-top: 1rem;
    justify-content: space-around;
}

.canvasUndoRedo button {
    width: 100%;
    height: 100%;
    border-radius: 0.85rem;
    border: var(--border);
    background: #fff;
    box-shadow: var(--shadow-s);
    font-size: .65rem;
    font-weight: 600;
}

/* -------------------------------- */
/* Gallery CSS */
body.editor-gallery-modal-open {
    overflow: hidden;
}

.editor-gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.editor-gallery-dialog {
    background: #fff;
    border-radius: 8px;
    width: min(90vw, 1000px);
    max-height: 90vh;
    Zheight: 55vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.editor-gallery-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button.editor-gallery-btn-close {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    max-width: 60px;
}

.editor-gallery-content {
    padding: 16px 20px;
    overflow-y: auto;
}

.editor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

button.editor-gallery-thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 36px;
    font-weight: normal;
    min-height: 50px;
    white-space: nowrap;
    height: unset;
}

.editor-gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.editor-gallery-thumb:hover {
    border-color: #bbb;
    transform: translateY(-2px);
}

.editor-gallery-thumb.is-selected {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.08);
}

.editor-gallery-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.editor-gallery-footer button {
    min-width: 110px;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #898989;
    cursor: pointer;
    font-size: 14px;
}

.editor-gallery-footer button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.editor-gallery-btn-cancel {
    background: #fff;
    border-color: #ccc;
}

.editor-gallery-btn-confirm {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* AI Generate Modal Styles */
.ai-generate-image-container {
    position: relative;
    width: 99%;
    min-height: 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px dashed #ddd;
    overflow: hidden;
}

.ai-generate-image-container img {
    object-fit: contain;
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
}

.ai-generate-image-container:has(img[src]) {
    border-style: solid;
    border-color: #007bff;
    background-color: #fff;
}

.ai-generate-image-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Unified AI Modal Styles */
.ai-prompt-container {
    margin-bottom: 20px;
}

.ai-prompt-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ai-prompt-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.ai-prompt-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.ai-btn-close {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ai-btn-close:hover {
    color: #333;
}

.ai-generate-btn-generate {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.ai-generate-btn-generate:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
}

.ai-generate-btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-btn-add {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.ai-btn-add:hover:not(:disabled) {
    background-color: #218838;
    border-color: #218838;
}

.ai-btn-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Generate-specific: Add margin for spacing */
.ai-generate-btn-add {
    margin-left: 12px;
}

/* AI Edit Modal Styles */
.ai-edit-initialized {
    /* Body class when AI edit is initialized */
}

.ai-edit-image-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: var(--aieditWidth);
    height: var(--aieditWidth)
}

.ai-edit-original-image {
    display: block;
    position: relative;
    width: var(--aieditWidth);
    height: var(--aieditWidth)

}

.ai-edit-edited-image {
    display: none;
    position: relative;
    width: var(--aieditWidth);
    height: var(--aieditWidth)
}

.ai-edit-image-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
}

.ai-edit-image-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--aieditWidth);
    height: var(--aieditWidth)
}

.ai-edit-image-placeholder {
    text-align: center;
    padding: 40px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--aieditWidth);
    height: var(--aieditWidth)
}

.ai-edit-toggle-container {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 20px;
}

.ai-edit-btn-toggle {
    display: none;
}


.ai-edit-btn-edit {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.ai-edit-btn-edit:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
}

.ai-edit-btn-edit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.iconsNavigation{
    width:26px;
    height:26px;
}

.iconsStepPanel{
    width:26px;
    height:26px;
}

.textListContainer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.textListItem {
    font-size: 16px;
    padding: 5px;
    padding-left: 10px;
    margin: 0;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.textListItem:hover {
    background-color: #f0f0f0;
}

.textListItem:active {
    background-color: #e0e0e0;
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .allContent {
        scale: 1;
        position: relative;
        padding-left: 2%;
        padding-right: 2%;
        padding-bottom: 4%;
        padding-top: 1%;
    
        margin-left: 0%;
        margin-right: 0%;
        margin-top: 20px;
        margin-bottom: 40px;
    }




    .editorNavigation {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        gap: 0.3rem;
    }

    .editorNavigation__button{
        min-width: 50px;
        padding: 0.5rem;
    }

    .editorNavigation__button:hover{
        min-width: 50px;
        padding: 0.5rem;
    }

    .editorContainer {
        flex-direction: column;
        gap: 0rem;
    }

    .editorColumn--canvas {
        max-width: 100%;
        width: 100%;
        order: 1;
    }

    .editorColumn--controls {
        width: 100%;
        order: 2;
    }

    #canvas {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    
    .editorColumn--canvas {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .editorNavigationBackNext {
        margin-top: 1rem;
    }

    .editor-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0px;
    }


    .editor-gallery-thumb {
        font-size: 26px;
        padding: 0px 0px;
    }


    .iconsNavigation{
        width:14px;
        height:14px;
    }

    .iconsStepPanel{
        width:20px;
        height:20px;
    }
    .stepPanel{
        margin-top:0rem;
    }

    .canvasUndoRedo {
        margin-top: 0.5rem;
        margin-bottom: .5rem;
        display: none;
    }

    .editor-gallery-dialog {
        height: 85vh;
    }


    .editor-gallery-footer {
        justify-content: space-around;

    }

    /* AI Edit - Mobile size override */
    :root {
        --aieditWidth: 260px;
    }
}

/* Suggestions Modal Styles */
.suggestions-input-container {
    margin-bottom: 20px;
}

.suggestions-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.suggestions-input,
.suggestions-select,
.suggestions-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.suggestions-textarea {
    resize: vertical;
    min-height: 120px;
}

.suggestions-input:focus,
.suggestions-select:focus,
.suggestions-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.suggestions-btn-send {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.suggestions-btn-send:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
}

.suggestions-btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

