/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* Wrapper to hold everything */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Shared control panel styling (Row 1) */
.shared-controls {
    display: flex;
    justify-content: center;
    padding: 20px;
    height: auto; /* Auto height to fit the buttons */
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shared-controls input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 10px; /* Creates space between buttons */
}

.shared-controls button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

/* Training sections for both bots */
.bot-training {
    display: flex;
    justify-content: space-between;
    height: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.training-section {
    width: 48%;
    display: flex;
    flex-direction: column;
}

.training-section textarea {
    flex-grow: 1;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    height: 100px;
}

.training-section button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 150px;
    align-self: center; /* Center the button */
}

/* Chat windows */
.chat-windows {
    display: flex;
    justify-content: space-between;
    height: 50%;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chatbox {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.messages {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    overflow-y: auto;
    margin-bottom: 10px;
}

.user-input {
    display: flex;
    align-items: center;
}

.user-input textarea {
    flex: 1;
    resize: none;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.user-input button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

/* Raw History sections */
.training-section textarea#history-1,
.training-section textarea#history-2 {
    height: 150px;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col {
        padding: 0;
    }

    .chatbox {
        height: 300px;
    }
}
