/* Chatbot Panel Styles */
.chatbot-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chatbot-panel.minimized {
    height: 50px;
    width: 200px;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.chatbot-header-buttons {
    display: flex;
    gap: 10px;
}

.chatbot-header-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.chatbot-message.user {
    align-self: flex-end;
    background-color: #e1f5fe;
    color: #000;
    border-bottom-right-radius: 5px;
}

.chatbot-message.ai {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: #000;
    border-bottom-left-radius: 5px;
}

.chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chatbot-send-button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send-button:hover {
    background-color: #218838;
}

.chatbot-typing {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #666;
    font-size: 12px;
}

.chatbot-typing .dot {
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite both;
}

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

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

@keyframes typing {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

.chatbot-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.chatbot-toggle-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.chatbot-toggle-button i {
    font-size: 24px;
}

.chatbot-panel.hidden {
    display: none;
}

/* Progress indicators */
.chatbot-progress {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

.chatbot-progress h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.chatbot-progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.chatbot-progress-bar-fill {
    height: 100%;
    background-color: #28a745;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.chatbot-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.chatbot-metric {
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Code block styling */
.chatbot-message pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 5px 0;
    font-family: monospace;
    font-size: 13px;
}

.chatbot-message code {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 13px;
}