/* Custom Toastr Styles - Mini White Background with Border */

.toast {
    background-color: #ffffff !important;
    color: #000000 !important; /* Changed to pure black */
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    font-size: 13px !important;
    padding: 10px 15px 10px 45px !important; /* Added left padding for icon */
    min-height: 40px !important;
    max-width: 320px !important;
    opacity: 0.98 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    position: relative !important; /* Ensure proper positioning context */
}

/* Icons positioned absolutely on the left */
.toast-success::before {
    content: "✓" !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #28a745 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.toast-error::before {
    content: "✕" !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #dc3545 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.toast-warning::before {
    content: "⚠" !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ffc107 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.toast-info::before {
    content: "ℹ" !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #17a2b8 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.toast .toast-message {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-weight: 400 !important;
    padding-right: 25px !important; /* Add padding to avoid overlap with close button */
}

.toast .toast-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    padding-right: 25px !important; /* Add padding to avoid overlap with close button */
}

.toast .toast-close-button {
    color: #999999 !important;
    font-size: 16px !important;
    opacity: 0.8 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 18px !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
}

.toast .toast-close-button:hover {
    opacity: 1 !important;
    color: #666666 !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
}

/* Success toast */
.toast-success {
    border-left: 4px solid #28a745 !important;
}

.toast-success .toast-title {
    color: #155724 !important;
}

/* Error toast */
.toast-error {
    border-left: 4px solid #dc3545 !important;
}

.toast-error .toast-title {
    color: #721c24 !important;
}

/* Warning toast */
.toast-warning {
    border-left: 4px solid #ffc107 !important;
}

.toast-warning .toast-title {
    color: #856404 !important;
}

/* Info toast */
.toast-info {
    border-left: 4px solid #17a2b8 !important;
}

.toast .toast-icon {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.toast-success .toast-icon::before {
    content: "✓" !important;
    color: #28a745 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.toast-error .toast-icon::before {
    content: "✕" !important;
    color: #dc3545 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.toast-warning .toast-icon::before {
    content: "⚠" !important;
    color: #ffc107 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.toast-info .toast-icon::before {
    content: "ℹ" !important;
    color: #17a2b8 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

/* Position adjustments */
.toast-top-center {
    top: 30px !important;
}

.toast-bottom-center {
    bottom: 30px !important;
}

/* Animation improvements */
.toast.fade.in {
    opacity: 0.98 !important;
    transform: translateY(0) !important;
    animation: toastFadeIn 0.3s ease-out !important;
}

.toast.fade.out {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    animation: toastFadeOut 1s ease-in !important;
}

@keyframes toastFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0.98;
        transform: translateY(0);
    }
}

@keyframes toastFadeOut {
    0% {
        opacity: 0.98;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .toast {
        max-width: 280px !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    .toast .toast-title {
        font-size: 13px !important;
    }

    .toast .toast-message {
        font-size: 12px !important;
    }
}

.swal2-container{
    z-index: 9999999 !important;
}

.swal2-icon.swal2-warning{
    font-size: 15px !important;
}