/* Custom Toast Styles - Đẹp hơn */
#toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
    z-index: 9999 !important;
}

#toast-container > .toast {
    min-width: 350px;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 16px 40px 16px 20px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: none !important;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
}

#toast-container > .toast:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Success Toast - Màu main */
#toast-container > .toast.toast-success {
    background-color: var(--color-main, #2849B6);
    color: #ffffff;
}

/* Error Toast - Màu error */
#toast-container > .toast.toast-error {
    background-color: var(--color-error, #E61237);
    color: #ffffff;
}

/* Warning Toast - Màu warning */
#toast-container > .toast.toast-warning {
    background-color: #F59E0B;
    color: #ffffff;
}

/* Info Toast - Màu main */
#toast-container > .toast.toast-info {
    background-color: var(--color-main, #2849B6);
    color: #ffffff;
}

/* Toast Content Wrapper */
#toast-container > .toast > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Toast Title */
#toast-container > .toast .toast-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #ffffff;
    line-height: 1.4;
}

/* Toast Message */
#toast-container > .toast .toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.95;
}

/* Close Button - Căn giữa theo chiều dọc */
#toast-container > .toast .toast-close-button {
    color: #ffffff !important;
    opacity: 0.9 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-shadow: none !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: -1px !important;
    right: 12px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(calc(-50% + 2px)) !important;
    position: absolute !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
}

#toast-container > .toast .toast-close-button:hover {
    opacity: 1 !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
}

/* Progress Bar */
#toast-container > .toast .toast-progress {
    background-color: rgba(255, 255, 255, 0.3);
    height: 3px;
    bottom: 0;
    left: 0;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media (max-width: 576px) {
    #toast-container {
        width: calc(100% - 32px);
        left: 16px !important;
        right: 16px !important;
        top: 16px !important;
    }

    #toast-container > .toast {
        min-width: 100%;
        max-width: 100%;
    }
}

