.popup-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
}

#popup {
    visibility: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: left;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#popup.visible {
    visibility: visible;
    opacity: 1;
}

#popup-dim {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#popup.visible #popup-dim {
    opacity: 1;
}

#popup-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 11;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    max-width: 90%;
    width: 500px;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#popup.visible #popup-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#popup-box-outer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#popup-box-nav {
    position: relative;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#popup-box-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color);
}

#popup-box-closeBtn {
    position: absolute;
    right: 16px;
    top: 16px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

#popup-box-closeBtn:hover {
    background: rgba(0, 0, 0, 0.05);
}

#popup-box-content {
    padding: 24px 30px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    color: var(--text-color);
}

#popup-box-content::-webkit-scrollbar {
    width: 6px;
}

#popup-box-content::-webkit-scrollbar-track {
    background: transparent;
}

#popup-box-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#popup-box-select {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 0px 20px;
    gap: 12px;
}

.popup-prepare {
    display: none;
}

[data-theme="dark"] #popup-box {
    background: rgba(45, 52, 54, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #popup-box-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #popup-box-closeBtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #popup-box-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}