/*
 * Shared toast/notification styling for auth + dashboard pages.
 * Color comes from the --accent-color custom property, set inline per
 * page from the admin-configurable accent_color() value.
 */

.toast-container {
    position: fixed;
    top: 25px;
    right: 30px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-container .toast {
    position: relative;
    border-radius: 8px;
    background: #1e2530;
    color: #e7ecf3;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border-left: 8px solid var(--accent-color, #6abce2);
    overflow: hidden;
    min-width: 300px;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.25, 1.35);
    display: block !important;
}

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

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

.toast-container .toast-check {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color, #6abce2);
    border-radius: 50%;
    color: #10151d;
    font-size: 20px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.toast-container .message {
    display: flex;
    flex-direction: column;
    margin: 0 16px;
}

.toast-container .message-text {
    font-size: 16px;
    font-weight: 600;
    color: #e7ecf3;
}

.toast-container .text-2 {
    color: #a7b1c2;
    font-weight: 400;
    font-size: 14px;
}

.toast-container .toast-close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    color: #e7ecf3;
}

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

.toast-container .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.toast-container .progress::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--accent-color, #6abce2);
}

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

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