/**
 * YVLAB Toast Notifications
 * Flat Design - Sharp Corners - Minimal
 */

.yvlab-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.yvlab-toast {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0; /* Vuông cạnh */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); /* Flat shadow */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
}

/* Show animation */
.yvlab-toast-show {
    opacity: 1;
    transform: translateX(0);
}

/* Hide animation */
.yvlab-toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Accent bar - Left side */
.yvlab-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #B8A078; /* YVLAB gold */
}

/* Icon */
.yvlab-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yvlab-toast-icon svg {
    width: 100%;
    height: 100%;
}

/* Message */
.yvlab-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Close button */
.yvlab-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    padding: 0;
}

.yvlab-toast-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Toast Types */

/* Success - Black with gold accent */
.yvlab-toast-success {
    background: #000;
    color: #fff;
}

.yvlab-toast-success::before {
    background: #B8A078; /* Gold */
}

.yvlab-toast-success .yvlab-toast-icon {
    color: #B8A078;
}

/* Error - White with red accent */
.yvlab-toast-error {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.yvlab-toast-error::before {
    background: #DC2626; /* Red */
}

.yvlab-toast-error .yvlab-toast-icon {
    color: #DC2626;
}

.yvlab-toast-error .yvlab-toast-close {
    color: rgba(0, 0, 0, 0.6);
}

.yvlab-toast-error .yvlab-toast-close:hover {
    color: #000;
}

/* Warning - White with orange accent */
.yvlab-toast-warning {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.yvlab-toast-warning::before {
    background: #F59E0B; /* Orange */
}

.yvlab-toast-warning .yvlab-toast-icon {
    color: #F59E0B;
}

.yvlab-toast-warning .yvlab-toast-close {
    color: rgba(0, 0, 0, 0.6);
}

.yvlab-toast-warning .yvlab-toast-close:hover {
    color: #000;
}

/* Info - Black with light accent */
.yvlab-toast-info {
    background: #2B2B2B;
    color: #fff;
}

.yvlab-toast-info::before {
    background: #E5E5E5; /* Light gray */
}

.yvlab-toast-info .yvlab-toast-icon {
    color: #E5E5E5;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .yvlab-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .yvlab-toast {
        min-width: auto;
        width: 100%;
    }
}

/* Print - hide */
@media print {
    .yvlab-toast-container {
        display: none !important;
    }
}
