/* Popup styles */
#alertPopup {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black-100-100);
    color: var(--color-white-100-100);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--color-black-30-100);
    display: none;
    z-index: 1000;
}

    #alertPopup h3 {
        margin: 0 0 10px;
        font-weight: bold;
    }

    #alertPopup p {
        margin: 0 0 20px;
        white-space: pre-line; /* Respeta \n y \r */
    }

    #alertPopup button {
        padding: 10px 20px;
        background: var(--color-gray_medium-100-100);
        color: var(--color-white-100-100);
        border: none;
        border-radius: 5px;
        cursor: not-allowed;
    }

        #alertPopup button.enabled {
            cursor: pointer;
            background: var(--color-blue_medium-100-90);
        }

/* Button to open history */
#historyButton {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: var(--color-black-100-100);
    color: var(--color-white-100-100);
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

/* History container */
#historyPopup {
    position: fixed;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--color-black-100-100);
    color: var(--color-white-100-100);
    overflow-y: auto;
    transition: bottom 0.3s ease;
    padding: 20px;
    display: none;
}

    #historyPopup p {
        margin: 0 0 10px;
    }
