/* Kontener na toasty */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    z-index: 9999;
}

/* Styl pojedynczego toastu */
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    max-width: 350px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out, fadeOut 0.5s ease-in-out 3.5s forwards;
    position: relative;
}

/* Styl dla każdego typu toastu */
.toast-success, .toast-info { background: #28a745; } /* Zielony */
.toast-error { background: #dc3545; } /* Czerwony */
.toast-danger { background: #dc3545; } /* Czerwony */
.toast-warning { background: #ffc107; color: #212529; } /* Żółty */

/* Przycisk zamykania toastu */
.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(10px); }
}

/* Responsywność dla ekranów mobilnych */
@media (max-width: 600px) {
    #toast-container {
        right: 10px;
        bottom: 10px;
        left: 10px;
        align-items: center;
    }
    .toast {
        width: 100%;
        max-width: none;
    }
}
