/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

/* Popup Container */
.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-width: 700px;
    width: 90%;
    border-radius: 8px;
    max-height: 90vh;        /* limit height */
    overflow-y: auto;        /* enable scrolling inside */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.popup-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup-button:hover {
    background: #005177;
}

/* Style scrollbar only inside popup */
.popup-container::-webkit-scrollbar {
    width: 8px;               /* scrollbar width */
}

.popup-container::-webkit-scrollbar-track {
    background: #111;         /* track color (behind the bar) */
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #f58220;      /* scroll thumb color (orange to match button) */
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #d96e15;      /* darker orange on hover */
}

/* For Firefox */
.popup-container {
    scrollbar-width: thin;           /* makes it slim */
    scrollbar-color: #f58220 #111;   /* thumb + track */
}
