/**
 * Стили для toast-уведомлений
 * 
 * @package CTR_LAB
 */

#ctr-lab-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.ctr-lab-toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.ctr-lab-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.ctr-lab-toast.toast-success {
    border-left: 4px solid #46b450;
}

.ctr-lab-toast.toast-error {
    border-left: 4px solid #dc3232;
}

.ctr-lab-toast.toast-warning {
    border-left: 4px solid #ffb900;
}

.ctr-lab-toast.toast-info {
    border-left: 4px solid #00a0d2;
}

.ctr-lab-toast .toast-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.ctr-lab-toast.toast-success .toast-icon {
    color: #46b450;
}

.ctr-lab-toast.toast-error .toast-icon {
    color: #dc3232;
}

.ctr-lab-toast.toast-warning .toast-icon {
    color: #ffb900;
}

.ctr-lab-toast.toast-info .toast-icon {
    color: #00a0d2;
}

.ctr-lab-toast .toast-content {
    flex: 1;
    min-width: 0;
}

.ctr-lab-toast .toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

.ctr-lab-toast .toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ctr-lab-toast .toast-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    #ctr-lab-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .ctr-lab-toast {
        min-width: auto;
        max-width: none;
    }
}
