.scrollToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: rgba(40, 167, 69, 0.8);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out,
                transform 0.2s ease-in-out,
                background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scrollToTop:hover {
    opacity: 1;
    transform: translateY(-5px);
    background-color: rgba(40, 167, 69, 1);
}

.scrollToTop.show {
    opacity: 1;
}

.scrollToTop.rounded-rectangle {
    border-radius: 10px;
    width: auto;
    padding: 10px 20px;
    line-height: normal;
}

.scrollToTop.rounded-rectangle i {
    margin-right: 8px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.scrollToTop.animate-pulse {
    animation: pulse 2s infinite alternate;
}

@keyframes slideInBottom {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.scrollToTop.animate-slidein {
    animation: slideInBottom 0.4s ease-out forwards;
}

.scrollToTop i {
    display: inline-block;
}