.chatbot-div { 
    position: absolute;
    right: 2vw;
    top: 14vh;
    width: 40vw;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1a1a1a !important;
    box-shadow: inset 0 1px 0 var(--edge-highlight), 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.chatbot-div h2, .training-data-div h2 {
    margin: 0;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(to bottom, #4a9eff, #2b6ec0);
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: 0.5px;
}

#chatbot-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
}

.msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--border);
    max-width: 85%;
    align-self: flex-start;
}

#chatbot-form {
    display: flex;
    padding: 20px;
    gap: 10px;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

#chatbot-form input[type="text"], #training-data-form input[type='text'] {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    color: white;
}

#chatbot-form button[type="submit"], #training-data-form button[type='submit'] {
    background: linear-gradient(to bottom, #4a9eff, #3584e4);
    color: white;
    border: 1px solid #1a5fb4;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.4);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

#chatbot-form button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.training-data-div { 
    position: absolute;
    left: 20vw;
    top: 14vh;
    width: 30vw;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1a1a1a !important;
    box-shadow: inset 0 1px 0 var(--edge-highlight), 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

#training-data-form button[type='submit'] {
    position: absolute;
    left: 24vw;
    top: 9vh;
}

.alert-training-data {
    position: absolute;
    left: 20vw;
    bottom: -1.8vh;
}