/* ========================================
   PREMIUM TOAST NOTIFICATION SYSTEM
   Clean, simple design matching FAAST aesthetics
   ======================================== */

.premium-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.premium-toast {
    min-width: 320px;
    max-width: 500px;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    
    /* Clean card design */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* Animation */
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.premium-toast.hiding {
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.2s ease-in;
}

/* Toast Types - Left border accent */
.premium-toast-success {
    border-left: 4px solid #10b981;
}

.premium-toast-success .toast-icon {
    color: #10b981;
}

.premium-toast-success .toast-progress {
    background: #10b981;
}

.premium-toast-error {
    border-left: 4px solid #ef4444;
}

.premium-toast-error .toast-icon {
    color: #ef4444;
}

.premium-toast-error .toast-progress {
    background: #ef4444;
}

.premium-toast-warning {
    border-left: 4px solid #f59e0b;
}

.premium-toast-warning .toast-icon {
    color: #f59e0b;
}

.premium-toast-warning .toast-progress {
    background: #f59e0b;
}

.premium-toast-info {
    border-left: 4px solid #3b82f6;
}

.premium-toast-info .toast-icon {
    color: #3b82f6;
}

.premium-toast-info .toast-progress {
    background: #3b82f6;
}

/* Icon */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.toast-icon i {
    font-size: 20px;
}

/* Content */
.toast-content {
    flex: 1;
    color: #1e293b;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Close Button */
.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #64748b;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    padding: 0;
}

.toast-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.toast-close i {
    font-size: 14px;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0.4;
    animation: toast-countdown 4s linear forwards;
}

@keyframes toast-countdown {
    from { width: 100%; }
    to   { width: 0%; }
}

/* Hover Effect */
.premium-toast:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .premium-toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .premium-toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* Accessibility */
.premium-toast:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
