/* ecochat.css */
.eco-chatbot {
    margin-top: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    max-width: 100%;
}

.chatbot-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
}

.chatbot-title {
    flex: 1;
}

.chatbot-title h3 {
    margin: 0 0 2px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chatbot-title span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.chat-container {
    height: 300px;
    overflow-y: auto;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.welcome {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    margin-top: 100px;
}

.welcome span {
    font-style: normal;
}

.message {
    display: flex;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.message-content {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user .message-content {
    background: rgba(255,255,255,0.9);
    color: #333;
    border-bottom-right-radius: 4px;
}

.message.bot .message-content {
    background: rgba(255,255,255,0.2);
    color: white;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 4px;
}

.typing {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    border-bottom-left-radius: 4px;
    max-width: 70%;
    font-size: 0.8rem;
}

.dots {
    display: flex;
    gap: 3px;
}

.dots div {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.dots div:nth-child(2) { animation-delay: 0.2s; }
.dots div:nth-child(3) { animation-delay: 0.4s; }

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

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.eco-chatbot textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    resize: none;
    min-height: 20px;
    max-height: 80px;
    outline: none;
    backdrop-filter: blur(10px);
}

.eco-chatbot textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.eco-chatbot textarea:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.eco-chatbot button#sendBtn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-chatbot button#sendBtn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.eco-chatbot button#sendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .eco-chatbot {
        padding: 15px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-btn {
        width: 100%;
        text-align: left;
    }
	
    .chat-container {
        height: 500px;
    }
}
