/* Toast Container */
.toast-container,
#toast_container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Toast Base Styles */
.toast {
    min-width: 250px;
    max-width: 400px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-in-out;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toast Colors */
.toast-green {
    background-color: #4caf50;
    color: #ffffff;
}

.toast-red {
    background-color: #f44336;
    color: #ffffff;
}

.toast-yellow {
    background-color: #ff9800;
    color: #ffffff;
}

.toast-blue {
    background-color: #2196f3;
    color: #ffffff;
}

.toast-gray {
    background-color: #757575;
    color: #ffffff;
}

.toast-purple {
    background-color: #9c27b0;
    color: #ffffff;
}

/* Toast Visibility States */
.t-hidden {
    opacity: 0;
    visibility: hidden;
}

.t-show {
    opacity: 1;
    visibility: visible;
    animation: slideIn 0.3s ease-in-out;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .toast-container,
    #toast_container {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Mobile Portrait */
@media (max-height: 600px) {
    .toast {
        padding: 12px;
        font-size: 13px;
    }
}
