﻿/*.hc-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}*/

.hc-toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 5000;
 
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.hc-toast {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border-left: 5px solid transparent;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    animation: hc-toast-in 0.18s ease-out;
}

.hc-toast-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.8rem 1rem;
}

.hc-toast-text {
    margin-top: 0.2rem;
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    word-break: break-word;
}

.hc-toast-title {
    font-weight: 900;
    font-size: 0.8rem;
}

.hc-toast-messsage {
    font-weight: 600;
    font-size: 0.7rem;
}

.hc-toast-refresh {
    margin-top: 0.2rem;
    font-weight: 300;
    font-size: 0.6rem;
    color: #ff0000;
}

.hc-toast-occurred {
    margin-top: 0.2rem;
    font-size: 0.6rem;
    /*color: #6b7280;*/
    color: #6600ff;
}

.hc-toast-close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    margin: -0.2rem -0.2rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

    .hc-toast-close:hover {
        background: rgba(0, 0, 0, 0.06);
        color: #111827;
    }

.hc-toast-progress-shell {
    position: relative;
    height: 4px;
    margin: 0 0.6rem 0.6rem 0.6rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.hc-toast-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    transform-origin: left center;
    animation-name: hc-toast-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* Info */
.hc-toast-info {
    border-left-color: #3b82f6;
    background: linear-gradient(to bottom, #ffffff, #f8fbff);
}

    .hc-toast-info .hc-toast-progress-bar {
        background: linear-gradient(to right, #60a5fa, #2563eb);
    }

/* Success */
.hc-toast-success {
    border-left-color: #22c55e;
    background: linear-gradient(to bottom, #ffffff, #f7fef9);
}

    .hc-toast-success .hc-toast-progress-bar {
        background: linear-gradient(to right, #4ade80, #16a34a);
    }

/* Warning */
.hc-toast-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to bottom, #ffffff, #fffaf0);
}

    .hc-toast-warning .hc-toast-progress-bar {
        background: linear-gradient(to right, #fbbf24, #d97706);
    }

/* Error */
.hc-toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(to bottom, #ffffff, #fff7f7);
}

    .hc-toast-error .hc-toast-progress-bar {
        background: linear-gradient(to right, #f87171, #dc2626);
    }

@keyframes hc-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hc-toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}
