/* TechTaskAI Assistant - Enhanced UI Styles */

/* AI Logo Animation */
.ai-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
}

.ai-logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.ai-logo-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    animation: ai-pulse 3s infinite;
}

.ai-logo-icon i {
    color: white;
    font-size: 16px;
    z-index: 2;
    animation: ai-float 3s ease-in-out infinite;
}

.ai-logo-text {
    font-size: 1.5rem;
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.ai-logo-text:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ai-logo:hover .ai-logo-text:after {
    transform: scaleX(1);
}

/* AI Assistant UI Elements */
.ai-assistant-card {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.ai-assistant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.15);
}

.ai-assistant-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4361ee, #3a0ca3);
}

.ai-assistant-header {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.05));
    padding: 20px;
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
}

.ai-assistant-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.ai-assistant-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    animation: ai-pulse 3s infinite;
}

.ai-assistant-icon i {
    color: white;
    font-size: 24px;
    z-index: 2;
}

.ai-assistant-body {
    padding: 20px;
}

.ai-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
}

.ai-feature-icon i {
    color: #4361ee;
    font-size: 24px;
    animation: ai-float 3s ease-in-out infinite;
}

.ai-feature-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(67, 97, 238, 0.2);
    animation: ai-pulse-border 3s infinite;
}

/* Voice Assistant Specific Styles */
.mic-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
}

.mic-container:hover {
    transform: scale(1.05);
}

.mic-container.voice-active {
    animation: ai-pulse-mic 1.5s infinite;
}

.mic-wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
}

.mic-container.voice-active .mic-wave:nth-child(1) {
    width: 100%;
    height: 100%;
    animation: ai-wave 2s infinite;
}

.mic-container.voice-active .mic-wave:nth-child(2) {
    width: 100%;
    height: 100%;
    animation: ai-wave 2s infinite 0.4s;
}

.mic-container.voice-active .mic-wave:nth-child(3) {
    width: 100%;
    height: 100%;
    animation: ai-wave 2s infinite 0.8s;
}

.mic-icon {
    color: white;
    font-size: 30px;
    z-index: 2;
}

/* Animations */
@keyframes ai-pulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes ai-pulse-border {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ai-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes ai-wave {
    0% {
        opacity: 0.8;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

@keyframes ai-pulse-mic {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

/* AI Assistant Chat Interface */
.ai-chat-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.ai-chat-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
}

.ai-chat-footer {
    padding: 15px;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
}

.ai-chat-input {
    flex: 1;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    outline: none;
    transition: all 0.3s ease;
}

.ai-chat-input:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-chat-send:hover {
    transform: scale(1.05);
}

.ai-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.ai-message-user {
    justify-content: flex-end;
}

.ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.ai-message-user .ai-message-avatar {
    order: 1;
    margin-right: 0;
    margin-left: 10px;
    background: #e9ecef;
    color: #495057;
}

.ai-message-content {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 18px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ai-message-user .ai-message-content {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
}

.ai-typing {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6c757d;
    margin-right: 3px;
    animation: ai-typing 1.5s infinite;
}

.ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ai-typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}