/*
 * Note that this is toastr v2.1.3, the "latest" version in url has no more maintenance,
 * please go to https://cdnjs.com/libraries/toastr.js and pick a certain version you want to use,
 * make sure you copy the url from the website since the url may change between versions.
 * */
#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

#toast-container > div {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin: 0 12px 12px;
    padding: 16px 20px 16px 56px;
    width: 350px;
    /* Bo góc cực lớn đồng bộ với rounded-3xl của giao diện chính */
    border-radius: 20px;
    background-position: 20px center;
    background-repeat: no-repeat;
    background-size: 22px;
    /* Shadow mềm mại, hiện đại */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #FFFFFF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#toast-container > div:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    cursor: pointer;
}

/* Các tiêu đề và nội dung */
.toast-title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
    word-wrap: break-word;
}

/* Nút đóng (X) */
.toast-close-button {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 18px;
    font-weight: 300;
    color: #FFFFFF;
    opacity: 0.5;
    transition: opacity 0.2s;
}

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

/* Tùy chỉnh màu sắc dựa trên Tailwind Palette */

/* Success - Emerald 500 */
.toast-success {
    background-color: #10b981 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") !important;
}

/* Error - Rose 500 */
.toast-error {
    background-color: #f43f5e !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E") !important;
}

/* Info - Sky 500 */
.toast-info {
    background-color: #0ea5e9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") !important;
}

/* Warning - Amber 500 */
.toast-warning {
    background-color: #f59e0b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E") !important;
}

/* Thanh Progress (Thời gian chạy) */
.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Vị trí hiển thị */
.toast-top-right {
    top: 20px;
    right: 20px;
}

.toast-top-left {
    top: 20px;
    left: 20px;
}

.toast-bottom-right {
    bottom: 20px;
    right: 20px;
}

.toast-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Responsive cho thiết bị di động */
@media (max-width: 480px) {
    #toast-container > div {
        width: calc(100vw - 40px);
        margin: 8px 20px;
    }
}
