﻿/* ==========================================
   COMMON APPLICATION TOAST
   ========================================== */

.app-toast {
    position: fixed;
    top: 70px;
    right: 24px;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    width: 360px;
    min-height: 72px;
    padding: 14px 16px;
    background: #ffffff;
    border-left: 4px solid #0078d4;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

    .app-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

.app-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    background: #0078d4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.app-toast-content {
    flex: 1;
    min-width: 0;
}

.app-toast-title {
    margin-bottom: 3px;
    color: #323130;
    font-size: 14px;
    font-weight: 600;
}

.app-toast-message {
    color: #605e5c;
    font-size: 13px;
    line-height: 18px;
}

.app-toast-close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: #605e5c;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
}

    .app-toast-close:hover {
        background: #f3f2f1;
        color: #323130;
    }


/* ==========================================
   SUCCESS
   ========================================== */

.app-toast.success {
    border-left-color: #107c10;
}

    .app-toast.success .app-toast-icon {
        background: #107c10;
    }


/* ==========================================
   ERROR
   ========================================== */

.app-toast.error {
    border-left-color: #d13438;
}

    .app-toast.error .app-toast-icon {
        background: #d13438;
    }


/* ==========================================
   WARNING
   ========================================== */

.app-toast.warning {
    border-left-color: #ffb900;
}

    .app-toast.warning .app-toast-icon {
        background: #ffb900;
    }


/* ==========================================
   INFO
   ========================================== */

.app-toast.info {
    border-left-color: #0078d4;
}

    .app-toast.info .app-toast-icon {
        background: #0078d4;
    }
