#popup {
    display: none;
    opacity: 0;
    position: fixed;
    width: 50%;
    top: 50%;
    left: 50%;
    max-height: 650px;
    min-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

#popup::-webkit-scrollbar {
    width: 8px;               /* lebar scrollbar */
}

#popup::-webkit-scrollbar-track {
    background: #1a1a1a;      /* warna track */
    border-radius: 10px;
}

#popup::-webkit-scrollbar-thumb {
    background: #555;         /* warna scroll bar */
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

#popup::-webkit-scrollbar-thumb:hover {
    background: #888;         /* warna saat dihover */
}


#popup h5{
    width: fit-content;
}

#popup i {
    width: fit-content;
}

#popup i:hover {
    cursor: pointer;
}

    /* Background overlay */
#overlay {
    opacity: 0;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    pointer-events: none;
    height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

#popup.active{
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

#overlay.active{
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

#hasilSimulasi{
    background-color: #292929;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    width: 100%;
}

.rumusSimulasi{
    background-color: #292929;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    width: 100%;
}
