* {
    margin: 0;
    padding: 0;
}
.chatbot .chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
    position: relative;
}

.chatbot .chat-header {
    flex-shrink: 0;
    padding: 15px 20px;
}

.chatbot .chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot .message {
    margin-top: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.chatbot .message:first-child {
    margin-top: 45px;
}


.chatbot .user-message {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot .ai-message {
    background: #f1f3f4;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid #e0e0e0;
}

.chatbot .error-message {
    background: #ffebee;
    color: #c62828;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid #ffcdd2;
}

.chatbot .typing-indicator {
    display: none;
    align-self: flex-start;
    background: #f1f3f4;
    padding: 15px 20px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    max-width: 70px;
}

.chatbot .typing-animation {
    display: flex;
    gap: 4px;
}

.chatbot .typing-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.chatbot .typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

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

.chatbot .chat-input-container {
    flex-shrink: 0;
    /*padding: 15px 20px;*/
    /*background: #ffffff;*/
    /*border-top: 1px solid #e0e0e0;*/
    /*position: sticky;*/
    bottom: 0;
    z-index: 10;
}

.chatbot .input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chatbot .chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.5;
}

.chatbot .chat-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.chatbot .send-button {
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot .send-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chatbot .send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot .loading-history {
    text-align: center;
    padding: 20px;
    color: #666;
}

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chatbot .chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot .chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot .chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chatbot .chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.new-tabs-bottom ion-content.chatbot {
    padding-bottom: 70px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot .chat-container {
        height: 100vh;
    }

    .chatbot .message {
        max-width: 85%;
    }

    .chatbot .chat-messages {
        padding: 15px;
    }
}
