/* Centered toast container */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Individual toast styling */
.toast {
    min-width: 400px;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: none;
    backdrop-filter: blur(10px);
    animation: toastPopIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success toast */
.toast-success {
    background-color: #d1e7dd;
    border-left: 4px solid #0f5132;
}

.toast-success .toast-header {
    background-color: #d1e7dd;
    color: #0f5132;
    border-bottom: 1px solid #badbcc;
}

/* Error toast */
.toast-error {
    background-color: #f8d7da;
    border-left: 4px solid #842029;
}

.toast-error .toast-header {
    background-color: #f8d7da;
    color: #842029;
    border-bottom: 1px solid #f5c2c7;
}

/* Warning toast */
.toast-warning {
    background-color: #fff3cd;
    border-left: 4px solid #664d03;
}

.toast-warning .toast-header {
    background-color: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid #ffecb5;
}

/* Info toast */
.toast-info {
    background-color: #cff4fc;
    border-left: 4px solid #055160;
}

.toast-info .toast-header {
    background-color: #cff4fc;
    color: #055160;
    border-bottom: 1px solid #b6effb;
}

/* Toast body */
.toast-body {
    padding: 16px;
    color: inherit;
    text-align: center;
}

/* Toast header */
.toast-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-header .me-auto {
    flex-grow: 1;
    text-align: center;
    margin: 0 10px;
}

/* Custom close button with icon */
.toast-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: inherit;
    opacity: 0.7;
}

.toast-close-btn:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.toast-close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

/* Entrance animation */
@keyframes toastPopIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Toast transitions */
.toast {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

/* Hover effects */
.toast:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

/* Fading out state */
.toast.fading-out {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    pointer-events: none;
}

/*
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
    min-width: 300px;
}

.toast {
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

.toast-success {
    background-color: #d1e7dd;
    border-left: 4px solid #0f5132;
}

.toast-success .toast-header {
    background-color: #d1e7dd;
    color: #0f5132;
    border-bottom: 1px solid #badbcc;
}

.toast-error {
    background-color: #f8d7da;
    border-left: 4px solid #842029;
}

.toast-error .toast-header {
    background-color: #f8d7da;
    color: #842029;
    border-bottom: 1px solid #f5c2c7;
}

.toast-warning {
    background-color: #fff3cd;
    border-left: 4px solid #664d03;
}

.toast-warning .toast-header {
    background-color: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid #ffecb5;
}

.toast-info {
    background-color: #cff4fc;
    border-left: 4px solid #055160;
}

.toast-info .toast-header {
    background-color: #cff4fc;
    color: #055160;
    border-bottom: 1px solid #b6effb;
}

.toast-body {
    padding: 12px 16px;
    color: inherit;
}

.toast .btn-close:focus {
    box-shadow: none;
}

.alert-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1055;
    min-width: 300px;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.6s ease-in;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0) scale(1);    
}
.alert-toast:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.alert-toast.fading-out {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    pointer-events: none;
}
.alert-toast.show {
    animation: toastSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-toast.success {
    background-color: #28a745;
}

.alert-toast.error {
    background-color: #dc3545;
}

.alert-toast.warning {
    background-color: #ffc107;
    color: #000;
}

.alert-toast.info {
    background-color: #17a2b8;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
} */



/* 
.toast {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.toast.fading-out {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    pointer-events: none;
}

.toast.show {
    animation: toastSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
} */

/* @keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
} */