#hr-rag-chatbot,
.hr-rag-chatbot-container {
    max-width: 400px;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hr-chat-header {
    background: #0073aa;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.hr-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 350px;
}

.hr-chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    max-width: 85%;
}

.hr-chat-message.user {
    background: #e3f2fd;
    margin-left: auto;
    text-align: right;
}

.hr-chat-message.bot {
    background: #f5f5f5;
    margin-right: auto;
}

.hr-chat-message.system {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    font-style: italic;
    text-align: center;
    margin: 0 auto;
}

.hr-chat-sources {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

.hr-chat-source {
    margin-bottom: 5px;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 3px;
}

.hr-chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.hr-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    resize: vertical;
    min-height: 40px;
    max-height: 120px;
    font-family: inherit;
}

.hr-chat-input:focus {
    border-color: #0073aa;
}

.hr-chat-send {
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.hr-chat-send:hover {
    background: #005a87;
}

.hr-chat-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.hr-chat-loading {
    display: none;
    text-align: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

.hr-chat-loading.active {
    display: block;
}

.hr-chat-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.hr-chat-message li {
    margin: 5px 0;
}

.hr-chat-message p {
    margin: 8px 0;
}

.hr-chat-message strong {
    font-weight: 600;
    color: #0073aa;
}

.hr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}

.hr-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.hr-table tr:first-child td {
    background: #f5f5f5;
    font-weight: 600;
}

@media (max-width: 480px) {
    #hr-rag-chatbot,
    .hr-rag-chatbot-container {
        max-width: 100%;
        height: 400px;
    }
    
    .hr-chat-messages {
        max-height: 250px;
    }
}