/**
 * Toast Notifications System - Medical Works
 * Sistema centralizado de notificaciones estilo toast
 */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    background: #d1fae5;
    color: #065f46;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #991b1b;
}

.toast.warning .toast-icon {
    background: #fef3c7;
    color: #92400e;
}

.toast.info .toast-icon {
    background: #dbeafe;
    color: #1e40af;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.toast.success .toast-title {
    color: #065f46;
}

.toast.error .toast-title {
    color: #991b1b;
}

.toast.warning .toast-title {
    color: #92400e;
}

.toast.info .toast-title {
    color: #1e40af;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

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