/* body {
    display: flex;
    font-family: sans-serif;
    margin: 0;
} */

.image-wrapper {
    width: 500px;
    height: 300px;
    border: 2px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;


}

.module-container {
    position: absolute;
    background-color: transparent;
    /* ✅ Transparent now */
    display: flex;
    flex-wrap: nowrap;
}

.module-wrapper {
    position: relative;
    margin-right: 5px;
    height: 100%;
    background-color: black;
}

.cancel-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

.hidden {
    display: none;
}

.part-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    position: absolute;
    top: 0;
    left: 0;
    place-items: center;

}

.part {
    border: 1px dashed #ffffff80;
    position: relative;
    border-radius: 5px;
}

.part,
.mini-part {
    position: relative;
    border-radius: 5px;
}

.part {
    border: 1px dashed #ffffff80;
}

.mini-part {
    border: none;
}


.part img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* max-width: 70%;
    max-height: 70%; */
}

.selected-part {
    position: relative;
    border: 1px dashed #fff;
    border-radius: 5px;
    overflow: hidden;
    background: black;
    /* or your preferred bg color */
}

.selected-part::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0px,
            rgba(255, 255, 255, 0.2) 1px,
            transparent 3px,
            transparent 7px);
    animation: moveStripes 3s linear infinite;
    pointer-events: none;
}

@keyframes moveStripes {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
} */

.sidebar {
    width: 380px;
    max-width: 100%;
    height: 83vh;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    left: 0;
    padding: 16px;
    overflow-y: auto;
    z-index: 999;
    transition: box-shadow 0.3s ease;
    padding-bottom: 0px;
    padding-top: 0px;
    text-align: center;
    background-color: white;
}

/* .sidebar:hover {
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.15);
} */

.sidebar-content {
    flex: 1;
    padding-bottom: 30px;
    /* Keeps buttons clearly visible */
}

.sidebar-buttons {
    position: sticky;
    bottom: 0;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background-color: white;
    z-index: 10;
}

.sidebar-buttons button {
    background-color: #000000 !important;
    color: white !important;
}

.sidebar-buttons button:hover {
    background-color: #000000 !important;
    color: black !important;
}


.sidebar h3 {
    position: sticky;
    top: 0;
    background: #ffffff;
    /* or match your sidebar's background */
    z-index: 10;
    font-size: 24px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
    padding-top: 20px;

}

.sidebar img {

    max-height: 50px;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iconbar img {
    max-height: 90px;
    margin-bottom: 0px;
}

.iconSidebar img:hover {
    transform: scale(1.08);
    box-shadow: none;
}

.sidebar button {
    flex: 1;
    padding: 14px 20px;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}




.main-area {
    flex-grow: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f9fc;
    position: relative;
    background-position: center;
}






input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

input[type="file"]::before {
    content: 'Upload Image';
    display: inline-block;
    color: white;
    background-color: #000000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 20px;
    margin-top: 3px;
    font-weight: 600;
    height: 45px;
    display: flex;
    align-items: center;
    padding-left: 8px;
}

input[type="file"] {
    color: transparent;
}







/* Popup background overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7);
    /* darker and softer */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    /* glass blur effect */
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

/* Popup content */
.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f2f2f2 100%);
    padding: 35px 45px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 90%;
    max-width: 420px;
    animation: popupAppear 0.4s ease;
}

/* Popup heading */
.popup-content h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #222;
    font-weight: 600;
}

/* Form elements */
.popup-content label {
    display: block;
    margin: 12px 0;
    font-size: 17px;
    cursor: pointer;
}


.radio-group label,
.accessory-item label {
    gap: 10px;
}

/* Section title inside popup */
#finishingSection p {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

/* Make finishing options inline */
#finishingSection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#finishingSection .radio-group {
    display: flex;
    gap: 20px;
    /* Space between Glossy and Matt */
    margin-top: 10px;
    margin-left: 13px;
}

#finishingSection label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #555;
}

/* Buttons */
.popup-content button {
    background: linear-gradient(135deg, #4f93ff 0%, #007bff 100%);
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 10px 8px 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.3s ease;
}

.popup-content button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0056b3 0%, #0066cc 100%);
}

/* Smooth background fade */
@keyframes fadeIn {
    from {
        background: rgba(15, 15, 15, 0);
    }

    to {
        background: rgba(15, 15, 15, 0.7);
    }
}

/* Popup scale up */
@keyframes popupAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#displayArea {
    position: relative;
    width: 500px;
    height: 300px;
    resize: none;
    overflow: hidden;
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
    border: 2px dashed #aaa;
}

.resizable-canvas {
    display: block;
    resize: both;
    overflow: auto;
    width: 100%;
    height: 100%;
}

.sidebar-content p {
    color: #000000;
}
.custom{
    display: flex;
}


