/**
 * Delivery Message Styles
 * Animated notification for email sending status
 * Sacasta Tech Language Service
 */

/* Delivery Message Container */
.delivery-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.delivery-message.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Delivery Message Content */
.delivery-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Delivery Icon */
.delivery-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-icon svg {
    width: 20px;
    height: 20px;
}

/* Sending State */
.delivery-icon.sending {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    animation: pulse 1.5s ease-in-out infinite;
}

.delivery-icon.sending svg {
    stroke: #ffffff;
    animation: sendAnimation 1s ease-in-out infinite;
}

/* Success State */
.delivery-icon.success {
    background: linear-gradient(135deg, #10B981, #059669);
    animation: successPop 0.5s ease-out;
}

.delivery-icon.success svg {
    stroke: #ffffff;
}

/* Error State */
.delivery-icon.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    animation: shake 0.5s ease-out;
}

.delivery-icon.error svg {
    stroke: #ffffff;
}

/* Delivery Text */
.delivery-text {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
}

@keyframes sendAnimation {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(3px) translateY(-3px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes successPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .delivery-message {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .delivery-content {
        padding: 12px 16px;
        width: 100%;
    }
    
    .delivery-icon {
        width: 36px;
        height: 36px;
    }
    
    .delivery-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .delivery-text {
        font-size: 13px;
        white-space: normal;
    }
}
