 /* Chat Bot Styles - Enhanced visual presentation */
 .eco-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 700px;
    height: 600px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.eco-chat-header {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.eco-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.eco-chat-header h3::before {
    content: "🌱";
    margin-right: 8px;
    font-size: 20px;
}

.eco-chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.eco-chat-close:hover {
    opacity: 1;
}

.eco-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f7f9f7;
    background-image: linear-gradient(rgba(76, 175, 80, 0.05) 1px, transparent 1px);
    background-size: 100% 20px;
}

.eco-message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 12px 16px;
    line-height: 1.5;
    font-size: 14px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.eco-bot-message {
    background-color: #ffffff;
    color: #333;
    border-radius: 15px 15px 15px 5px;
    margin-right: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #4CAF50;
}

.eco-bot-message ul {
    padding-left: 20px;
    margin: 8px 0;
}

.eco-bot-message li {
    margin-bottom: 5px;
}

.eco-bot-message a {
    color: #2e7d32;
    text-decoration: none;
    border-bottom: 1px dotted #2e7d32;
}

.eco-bot-message a:hover {
    border-bottom: 1px solid #2e7d32;
}

.eco-bot-message.loading {
    background-color: #f1f1f1;
}

.eco-bot-message.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
    display: inline-block;
    width: 20px;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.eco-user-message {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white;
    border-radius: 15px 15px 5px 15px;
    margin-left: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.eco-chat-input {
    display: flex;
    padding: 12px 15px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    align-items: center;
}

.eco-chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background-color: #f5f5f5;
    transition: all 0.3s;
}

.eco-chat-input input:focus {
    border-color: #4CAF50;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.eco-chat-input button {
    margin-left: 10px;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.eco-chat-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.eco-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 24px;
    transition: all 0.3s ease;
}

#CHATINPUT{
    position: fixed;
    bottom: 20px;
    right: 87px;
    border-radius:  35% 0 35% 35%  ;
    background-color: #2e7d32;
    color: rgb(255, 255, 255);
    height: 50px;
    width: 90px;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: 0.5s ease ;
    font-weight: 500;
    font-family: cursive;
}



.eco-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.eco-chat-button:hover ~ #CHATINPUT{
    opacity: 1;
}


.eco-chat-container.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.eco-upload-btn, .eco-location-btn {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 20px;
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.eco-upload-btn:hover, .eco-location-btn:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.eco-quick-actions {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    scrollbar-width: thin;
}

.eco-quick-actions::-webkit-scrollbar {
    height: 4px;
}

.eco-quick-actions::-webkit-scrollbar-thumb {
    background-color: rgba(76, 175, 80, 0.3);
    border-radius: 4px;
}

.eco-action-btn {
    background-color: white;
    color: #2e7d32;
    border: 1px solid #4CAF50;
    border-radius: 18px;
    padding: 8px 15px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.eco-action-btn:hover {
    background-color: #e8f5e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Card-style format for structured responses */
.eco-card {
    background-color: white;
    border-radius: 8px;
    margin: 10px 0;
    padding: 12px;
    border-left: 3px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.eco-card-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #2e7d32;
}

.eco-card-content {
    font-size: 13px;
}

/* Typing indicator animation */
.typing-indicator {
    display: flex;
    margin: 5px 0;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    opacity: 0.6;
}

.typing-indicator span:nth-child(1) {
    animation: typing 1.5s infinite 0s;
}

.typing-indicator span:nth-child(2) {
    animation: typing 1.5s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: typing 1.5s infinite 0.4s;
}

@keyframes typing {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
}

@media (max-width: 770px) {
    .eco-chat-container{
        width: 350px;
    }
    .eco-chat-input input {
    font-size: 10px;
    }
   
}