/* Toast Container */
.toast-wrapper {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
}

.toast-wrapper .container {
    position: relative;
}

#toast-container {
    position: absolute;
    top: 0;
    right: 20px;
    pointer-events: auto;
    width: auto;
    height: auto;
}

/* Toast Positioning - Only keeping top-right since that's what we use */
#toast-container.toast-top-right {
    top: 0;
    right: 20px;
}

/* Individual Toast */
.toast {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 10px;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
    border: 1px solid #e1e5e9;
    border-left: 4px solid; /* Brand color will be applied via ng-style */
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.toast:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateX(0) translateY(-2px);
}

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

.toast.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Toast Header */
.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* Toast Body */
.toast-body {
    padding: 8px 16px 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-wrapper {
        top: 60px;
    }
    
    #toast-container {
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Animation for multiple toasts (max 3) */
.toast:nth-child(1) { transition-delay: 0ms; }
.toast:nth-child(2) { transition-delay: 50ms; }
.toast:nth-child(3) { transition-delay: 100ms; }

/* Progress bar for auto-dismiss */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    transition: width linear;
}
