
#konva-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30%;
    margin-right: 30%;
    /* Add border for visualization */
    /* padding: 20px; */
    /* Adjust padding as needed */
}

/* form decoration */
/* Container for all form elements */
#form-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa; /* Light gray background for better visibility */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Title styling for each section */
.form-title {
    font-size: 1.0rem;
    font-weight: bold;
    margin: 3%;
}

/* Scrollable list styling for products and toppings */
.form-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Flexible columns */
    gap: 10px;
    overflow-y: auto;
    max-height: 270px; /* Set max height for vertical scroll */
    padding: 10px 0;
    scrollbar-width: thin; /* For Firefox */
}

/* Individual item styling in lists */
.form-product-item {
    min-width: 100px;
    max-width: 120px;
    text-align: center;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-toppin-item {
    /* min-width: 100px;
    max-width: 120px;
    text-align: center;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.selected {
    /* background-color:#000; */
    /* color: white; */
    border: 2px dashed limegreen;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.form-product-item img{
    width: 100%;
    border-radius: 8px;
}


.form-toppin-item img {
    width: 100%;
    border-radius: 8px;
}

/* Custom scrollbar */
.form-product-list::-webkit-scrollbar {
    height: 8px;
}

.form-product-list::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

/* Style for the scrollable topping list (grid layout with vertical scroll) */
.form-toppin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Flexible columns */
    gap: 10px;
    overflow-y: auto;
    max-height: 270px; /* Set max height for vertical scroll */
    padding: 10px 0;
    scrollbar-width: thin; /* For Firefox */
}

/* Each topping item styling */
.form-toppin-item {
    text-align: center;
}

.form-toppin-item img {
    max-width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Optional: Style the scrollbar */
.form-toppin-list::-webkit-scrollbar {
    width: 8px;
}

.form-toppin-list::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

/* Text input styling */
#form-container input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Wrapper for shapes + arrows */
.form-shape-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scrollable shape list */
.form-shape-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    scroll-behavior: smooth;
}

/* Shape item */
.form-shape-item {
    flex: 0 0 auto;
    width: 90px;
    text-align: center;
    background-color: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.form-shape-item:hover {
    transform: scale(1.05);
}

/* Shape image */
.form-shape-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Selected shape */
.selected {
    border: 2px solid limegreen;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

/* Scrollbar styling */
.form-shape-list::-webkit-scrollbar {
    height: 6px;
}
.form-shape-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}
.form-shape-list::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Scroll indicator */
.scroll-indicator {
    height: 4px;
    width: 0;
    background: limegreen;
    border-radius: 2px;
    transition: width 0.2s linear;
    margin: 4px 0 10px 0;
}

/* Scroll buttons */
.scroll-btn {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    width: 32px;
    height: 32px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.scroll-btn:hover {
    background: limegreen;
    color: white;
}
.scroll-btn.left-btn {
    position: absolute;
    left: -12px;
    z-index: 1;
}
.scroll-btn.right-btn {
    position: absolute;
    right: -12px;
    z-index: 1;
}


/* form decoration */



/* uploadBar */

.uploadOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(115, 98, 186, 0.3);
    display: none; /* Hidden by default */
    z-index: 2000;
}

.uploadbar {
    position: fixed;
    top: -61%; /* Hide initially above the view */
    left: 0;
    width: 100%;
    height: 60%; /* Half the viewport height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: top 0.5s ease-in-out;
    z-index: 2001;

    background: #F7F6FB;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 0px 0px 16px 16px;

}

#uploadTitle{
    font-weight: 600;
    font-size: 24px;
    padding: 1rem 1rem 0rem 1rem;
}


.gallery{
    height: 100%;
    background-color: white;
    margin: 10px;
    border-radius: 8px;

    max-height: calc(100% - 190px); /* Adjust based on your design */
    overflow-y: auto;


}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    /* height: 100%; */
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
}

.gallery-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.gallery-images img:hover {
    border: 2px solid #2980b9; /* Change the border color as needed */
}

.addImage.containerx {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100px; /* Adjust as needed */
    text-align: center; /* Ensure text inside label is centered */
    background-color: #EDF7EF;
    box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin: 0px 10px 12px 10px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 24px;
    position: relative; /* To position the input and span inside this container */
}

#uploadLabel {
    cursor: pointer;
    width: max-content;
    position: absolute;
    z-index: 1; /* Ensure the label is below the input (z-index is 2) */
}

#imageUpload {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
}


#uploadProgressContainer {
    width: 100%; /* Adjust as needed */
}

#uploadProgressContainer > div {
    position: relative;
    width: 100%;
}

#uploadProgress {
    width: 100%;
    height: 30px;
}

#uploadProgressText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Prevent interaction with the text */
}

.savebutton{
    background-color: #EDF7EF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 200px;

}

#photo-action-title{
    font-weight: bolder;
}

#photo-action-container{
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}

#save-title{
    background-color: lime;
    font-size: 18px;
    font-weight: 900;
    padding: 10px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.save-title{
    background-color: lime;
    font-size: 18px;
    font-weight: 900;
    padding: 10px;
    color: white;
    border-radius: 4px;
}

.disableButton{
    opacity: 50%;
}

.description{
    font-size: 12px;
    text-align: center;
    margin: 10px;
    font-weight: bold;
}

#brandNameSpan{
    font-size: 12px;
    font-weight: 900;
    color: red;
}



/* product card decoration starts */

#productList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.productCard
{
    /* margin:  0rem 1.2rem 1.2rem 1.2rem; */
    border-radius: 8px;
    border: transparent;
    padding: 0.1rem;
    position: relative;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
    transition: opacity 0.5s ease-out, max-height 0.5s ease-out, margin 0.5s ease-out;
    opacity: 1;
    position: relative;

}

.disappear {
    opacity: 0;
}

.productCard img{
    padding: 0.4rem;
    border-radius: 12px;
    width: 100px;
}

.productData{
    background-color: rgba(218, 226, 229, 0.3); /* Background color with 30% opacity */
    margin: 0.4rem;
    border-radius: 8px;
}

.modelName{
    font-weight: 900;
    font-size: small;
}

.productName{
    font-weight: 600;
    font-size: smaller;
    /* text-transform: capitalize; */
}

.productPrice{
    font-weight: 700;
    font-size: smaller;
    margin: 0;
    padding: 0;
    margin-bottom: -0.75rem;
    margin-right: -0.8rem;
    align-content: end;
    display: flex;
    flex-flow: row-reverse;
}

.prdImage-box{
    align-content: center;
    left: 15px
}

.centerBox {
    display: flex;
    flex-direction: column;     /* icon top, text bottom */
    justify-content: center;    /* center vertically */
    align-items: center;        /* center horizontally */
    text-align: center;
}


label{
    font-weight: 500;
    font-size: smaller;
    color: green;
}


.delete-icon {
    position: absolute;
    top: 16px;
    right: 32px;
    cursor: pointer;
    color: rgba(255, 0, 0, 0.7); /* Background color with 30% opacity */
    width: 18px;
    height: auto;
}

/*responsive font size for product details*/
/* ---------- RESPONSIVE FONTS ---------- */
.modelName {
    font-size: clamp(11px, 2vw, 14px);
    font-weight: 900;
}

.productName {
    font-size: clamp(10px, 1.8vw, 13px);
    font-weight: 600;
}

.productPrice {
    font-size: clamp(11px, 2vw, 14px);
}

label {
    font-size: clamp(10px, 1.6vw, 12px);
}

@media (max-width: 370px) {
    .prdImage-box {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .productCard .col-7,
    .productCard .col-5 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

.uploadCard {
    background: #ff0000; /* bright red like your image */
    padding: 18px 14px;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    margin: 12px 0;
}

.uploadTitle {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    margin-top: 0;
}

.uploadIconBox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.uploadTextBox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.uploadButton {
    background: #ffffff;
    color: #d10000;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    width: 100%;
}
@media (max-width: 370px) {
    .uploadTitle {
        font-size: 17px;
    }
    .uploadButton {
        font-size: 16px;
        padding: 8px 10px;
    }
    .uploadIconBox svg {
        width: 40px;
        height: 40px;
    }
}




/* product card decoration ends */



/* uploadBar */



/* Default — Desktop View */
#popupEditorModal .modal-dialog {
    max-width: 500px;       /* fixed modal width */
    width: 500px;
    margin: auto;           /* center horizontally */
}

/* Vertically center the modal */
#popupEditorModal .modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 1rem);
}

/* Compact paddings */
#popupEditorModal .modal-header,
#popupEditorModal .modal-body {
    padding: 10px 15px;
}

/* Mobile view — full width for smaller screens */
@media (max-width: 576px) {
    #popupEditorModal .modal-dialog {
        width: 95%;           /* slightly inset on mobile */
        max-width: 95%;
        margin: 0 auto;       /* center horizontally */
    }
}


/* added product list starts */

.product-card {
    border: 2px solid #e0e6f5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.product-header {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

.product-body img {
    width: 100px;
    height: 130px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.product-details {
    flex: 1;
}

.edit-btn {
    background-color: #eaf2ff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-btn:hover {
    background-color: #dbe7ff;
}

.quality-box {
    background-color: #eaf2ff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
    margin-top: 10px;
}

.add-photo-btn {
    border: 2px dashed #0d6efd;
    color: #0d6efd;
    border-radius: 10px;
    padding: 10px 16px;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.add-photo-btn:hover {
    background: #f0f6ff;
}


/* added product list ends */


/*dynamic stage switch starts*/

#dynamicStgSwitchBtn{
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 3%;
    justify-content: center;
    align-items: center;
    display: none;
    flex-flow: wrap;

}

#dynamicStgSwitchBtn label {
    background-color: white !important;
    /*border-color: red !important;*/
    /*color: red !important;*/

    border-color: deepskyblue !important;
    color: deepskyblue !important;


}

#dynamicStgSwitchBtn .active{
    /*background-color: red !important;*/
    /*border-color: red !important;*/
    color: white !important;

    background-color: deepskyblue !important;
    border-color: deepskyblue !important;
}

/*dynamic stage switch ends*/


/*topMenuOptions update*/

#topMenuOptions{
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 3%;
    margin-bottom: 3%;
    justify-content: space-evenly;
    align-items: center;
    display: flex;
}

/*topMenuOptions update*/