/* Toast-Benachrichtigungssystem Styling */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    min-width: 250px;
    max-width: 450px;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

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

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

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.7;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast-Typen */
.toast-success {
    background-color: #28a745;
    border-left: 5px solid #1e7e34;
}

.toast-error {
    background-color: #dc3545;
    border-left: 5px solid #bd2130;
}

.toast-warning {
    background-color: #ffc107;
    border-left: 5px solid #d39e00;
    color: #212529;
}

.toast-warning .toast-close {
    color: #212529;
}

.toast-info {
    background-color: #17a2b8;
    border-left: 5px solid #138496;
}

/* Responsive Anpassungen */
@media (max-width: 576px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
}
