/* ==========================================================================
   Toast Notification System
   ========================================================================== */

.lh-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    pointer-events: none;
}

.lh-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.lh-toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.lh-toast--success { border-left-color: #28a745; }
.lh-toast--error   { border-left-color: #dc3545; }
.lh-toast--warning { border-left-color: #ffc107; }
.lh-toast--info    { border-left-color: #17a2b8; }

.lh-toast--success .lh-toast-icon { color: #28a745; }
.lh-toast--error .lh-toast-icon   { color: #dc3545; }
.lh-toast--warning .lh-toast-icon { color: #ffc107; }
.lh-toast--info .lh-toast-icon    { color: #17a2b8; }

.lh-toast-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.lh-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #1a1d23;
}

.lh-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #8a8f98;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.lh-toast-close:hover {
    color: #1a1d23;
}

/* Progress bar */
.lh-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
}

.lh-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: lh-toast-countdown linear forwards;
}

.lh-toast--success .lh-toast-progress-bar { background: #28a745; }
.lh-toast--error .lh-toast-progress-bar   { background: #dc3545; }
.lh-toast--warning .lh-toast-progress-bar { background: #ffc107; }
.lh-toast--info .lh-toast-progress-bar    { background: #17a2b8; }

@keyframes lh-toast-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 480px) {
    .lh-toast-container {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}
