/**
 * Toast Notification Styles
 * Hệ thống thông báo dạng toast hiển thị ở góc màn hình
 */

/* Container chứa tất cả toast messages */
.hotel-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Toast message box */
.hotel-toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

/* Animation khi toast xuất hiện */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation khi toast biến mất */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.hotel-toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Toast Success - màu xanh */
.hotel-toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-left: 4px solid #047857;
}

/* Toast Error - màu đỏ */
.hotel-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-left: 4px solid #b91c1c;
}

/* Toast Info - màu xanh dương */
.hotel-toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-left: 4px solid #1d4ed8;
}

/* Toast Warning - màu vàng */
.hotel-toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-left: 4px solid #b45309;
}

/* Icon trong toast */
.hotel-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-toast-icon svg {
    width: 100%;
    height: 100%;
}

/* Nội dung toast */
.hotel-toast-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Nút đóng toast */
.hotel-toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.hotel-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Progress bar cho auto-dismiss */
.hotel-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive cho mobile */
@media (max-width: 640px) {
    .hotel-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .hotel-toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hotel-toast {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
            0 4px 10px rgba(0, 0, 0, 0.2);
    }
}
