/* =========================
   DASHBOARD TOASTS
========================= */

.app-toast-container {
    position: fixed;
    top: 86px; 
    right: 20px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 24px);
}

.app-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-md);
    overflow: hidden;
    animation: appToastSlideIn 0.25s ease;
}

.app-toast::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--app-primary);
}

.app-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    margin-top: 1px;
}

.app-toast-main {
    flex: 1;
    min-width: 0;
}

.app-toast-title {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--app-text);
    line-height: 1.3;
}

.app-toast-text {
    margin: 0;
    font-size: 13px;
    color: var(--app-text-muted);
    line-height: 1.45;
}

.app-toast-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--app-transition);
    margin-top: -2px;
}

.app-toast-close:hover {
    background: #f1f5f9;
    color: var(--app-primary);
}

.app-toast-success::before {
    background: var(--app-success);
}

.app-toast-success .app-toast-icon {
    background: rgba(15, 118, 110, 0.10);
    color: var(--app-success);
}

.app-toast-danger::before {
    background: var(--app-danger);
}

.app-toast-danger .app-toast-icon {
    background: rgba(220, 38, 38, 0.10);
    color: var(--app-danger);
}

.app-toast-warning::before {
    background: var(--app-warning);
}

.app-toast-warning .app-toast-icon {
    background: rgba(217, 119, 6, 0.12);
    color: var(--app-warning);
}

.app-toast-info::before {
    background: var(--app-primary);
}

.app-toast-info .app-toast-icon {
    background: rgba(30, 58, 138, 0.10);
    color: var(--app-primary);
}

.app-toast-secondary::before {
    background: var(--app-secondary);
}

.app-toast-secondary .app-toast-icon {
    background: rgba(51, 65, 85, 0.10);
    color: var(--app-secondary);
}

.app-toast-demo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    max-width: 100%;
}

.app-toast-demo-list .app-toast {
    animation: none;
    width: 100%;
}

@keyframes appToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@media (max-width: 768px) {
    .app-toast-container {
        top: 86px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: none;
    }
}