/* Email Agent - Custom Styles */

/* Grid background animation */
.grid-lines {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Voice wave animations */
.voice-waves {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave {
    position: absolute;
    border: 2px solid #00d4ff;
    border-radius: 50%;
    opacity: 0;
    animation: voice-wave 1.5s ease-in-out infinite;
}

.wave-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.wave-2 {
    width: 120%;
    height: 120%;
    animation-delay: 0.5s;
}

.wave-3 {
    width: 140%;
    height: 140%;
    animation-delay: 1s;
}

@keyframes voice-wave {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* Pulse glow animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Scan line animation */
@keyframes scan-line {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Voice button hover effects */
.voice-btn:hover .wave {
    border-color: rgba(255, 255, 255, 0.6);
}

.voice-btn:active {
    transform: scale(0.98);
}

/* Action button hover effects */
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* Status display styling */
.status-display {
    transition: all 0.3s ease;
}

.status-display:hover {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wave {
        border-width: 1px;
    }
    
    .grid-lines {
        background-size: 30px 30px;
    }
}

/* Loading states */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Success/Error states */
.success-glow {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.error-glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}