/* Toast Notification System Styles */
/* Matches the existing Sierra Dashboard dark theme */

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

.toast-item {
    background-color: var(--third);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    margin-bottom: 0 !important;
    box-shadow: var(--shadow-medium);
    pointer-events: all;
    animation: toast-slide-in 0.3s ease-out;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 64px;
}

.toast-item:hover {
    transform: translateX(-3px);
    box-shadow: var(--shadow-heavy);
}

.toast-inner {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    position: relative;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.toast-icon i {
    font-size: 18px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-message {
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--secondary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.toast-close-btn:hover {
    background-color: var(--overlay-medium);
    color: var(--primary);
}

.toast-close-btn i {
    font-size: 14px;
}

/* Toast Type Variants - matching existing status badge system */
.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info .toast-icon i {
    color: #17a2b8;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-warning .toast-icon i {
    color: #ffc107;
}

.toast-danger {
    border-left: 4px solid #dc3545;
}

.toast-danger .toast-icon i {
    color: #dc3545;
}

/* Animations */
@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-item.toast-removing {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
        max-height: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-inner {
        padding: 14px;
        gap: 10px;
    }
    
    .toast-title {
        font-size: 13px;
    }
    
    .toast-message {
        font-size: 12px;
    }
}

/* Ensure toasts appear above everything else */
.toast-container {
    z-index: 10000 !important;
}
