:root {
    --color-toast-text: #f5f5f5ff;
    --color-toast-bg: #363636;
    --color-toast-progbar: #5fbb76;
    --color-toast-blob: #5fbb76;
    --color-toast-close: #d66161;
}

[data-theme="light"] {
    --color-toast-text: #000000FF;
    --color-toast-bg: #f5f5f5ff;
    --color-toast-progbar: #67bd7d;
    --color-toast-close: #fa0707;
}

.toast {
    position: absolute;
    bottom: 25px;
    right: 30px;
    border-radius: 10px;
    background: #fff;
    padding: 10px 25px 10px 15px;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    background: var(--color-toast-bg);
}

[data-theme="light"] .toast {
    box-shadow: #363636 2px 2px 5px 1px;
}

.toast.active {
    transform: translateX(0%);
}

.toast .toast-content {
    display: flex;
    align-items: center;
}

.toast-content .check {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 30px;
    background-color: #1ada9a;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-toast-text);
}

.toast .close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    color: var(--color-toast-close);
}

.toast .close:hover {
    opacity: 1;
}

.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;

}

.toast .progress:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-toast-progbar);
}

.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

button {
    padding: 12px 20px;
    font-size: 20px;
    outline: none;
    border: none;
    background-color: #4070f4;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #0e4bf1;
}

.toast.active ~ button {
    pointer-events: none;
}
