﻿/* === Modal Overlay === */
.bangle-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    padding: 16px;
}

/* === Modal Content === */
.bangle-modal {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

    /* Scrollbar */
    .bangle-modal::-webkit-scrollbar {
        width: 6px;
    }

    .bangle-modal::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

/* === Close Button === */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    font-size: 24px;
    border: none;
    cursor: pointer;
}

/* === Preview Bangle Image === */
.bangle-img {
    width: 100%;
    max-height: 65vh;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    object-fit: contain;
}

/* === Hand View Layout === */
.hand-view-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hand-view-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hand-img {
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    object-fit: contain;
    position: relative;
}

/* Bangle Positioned on Hand */
.bangle-on-hand {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

/* === Button Group === */
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* === Button Styles === */
.reset-btn,
.next-view-btn,
.view-btn,
.secondary-btn {
    width: 100%;
    max-width: 160px;
    height: 48px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* === Primary Buttons (Purple) === */
.reset-btn,
.next-view-btn,
.view-btn {
    background-color: #800080;
    color: #fff;
    border: none;
}

    .reset-btn:hover,
    .next-view-btn:hover,
    .view-btn:hover {
        background-color: #5a005a;
    }

/* === Secondary Button Variant === */
.secondary-btn {
    background-color: #f3e5f5;
    color: #800080;
    border: 2px solid #800080;
}

    .secondary-btn:hover {
        background-color: #800080;
        color: white;
    }

/* === Responsive Media Query === */
@media (max-width: 480px) {
    .bangle-modal {
        padding: 16px;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        font-size: 20px;
    }

    .hand-view-container {
        max-width: 100%;
        max-height: 55vh;
    }

    .button-group {
        gap: 12px;
    }
}
