/* styles.css  */

/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  color: #343a40;
  padding: 20px;
  height: 100%;
  margin: 0;
  display: block;
}

h1, h2 {
  color: #007bff;
  text-align: center;
}

/* Chat Container */
#chat-container {
  width: 90%;
  max-width: 400px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 20px auto; /* Centrando el contenedor */
}

#chat-box {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  border-bottom: 1px solid #ddd;
}

#user-input {
  padding: 15px;
  font-size: 16px;
  border: none;
  border-top: 1px solid #ddd;
  width: calc(100% - 60px);
  outline: none;
}

#send-btn {
  width: 60px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* User and Bot Messages */
.user-message {
  text-align: right;
  background-color: #007bff;
  color: white;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  width: fit-content;
  max-width: 70%;
  align-self: flex-end;
}

.bot-message {
  text-align: left;
  background-color: #e0e0e0;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  width: fit-content;
  max-width: 70%;
}

/* Chatbot Management Styles */
#chatbot-list {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 20px auto;
  max-width: 80%;
}

#chatbot-list div {
  padding: 15px 0;
  display: block;
}

#chatbot-list strong {
  font-size: 1.2em;
  color: #343a40;
  margin-bottom: 5px;
  display: block;
}

#chatbot-list form {
  display: inline-block;
  margin-right: 10px;
}

#chatbot-list .button-group {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

#chatbot-list button {
  background-color: #007bff;
  color: #fff;
  padding: 5px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#chatbot-list button:hover {
  background-color: #0056b3;
}

#chatbot-list hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

/* Form Styles */
form {

}

label {
  display: block;
  font-weight: bold;
  margin-top: 15px;
}

input[type="text"], input[type="number"], textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  box-sizing: border-box;
}

button {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
  display: block;
}

button:hover {
  background-color: #0056b3;
}

/* Sections Styles */
section {
  display: block;
  margin: 20px auto;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 80%;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section:first-of-type {
  margin-top: 0;
}

section:last-of-type {
  margin-bottom: 0;
}

section p {
  margin: 0;
}

/* Table BotList */

.table_botlist {
    overflow: auto;
    width: 100%;
}

.table_botlist table {
    border: 0px solid #dededf;

    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 1px;
    text-align: left;
}

.table_botlist caption {
    caption-side: top;
    text-align: left;
}

.table_botlist th {
    border: 0px solid #dededf;
    background-color: #007bff;
    color: #ffffff;
    padding: 5px;
}

.table_botlist td {
    border: 0px solid #dededf;
    padding: 5px;
}

.table_botlist tr:nth-child(even) td {
    background-color: #f8f9fa;
    color: #000000;
}

.table_botlist tr:nth-child(odd) td {
    background-color: #ffffff;
    color: #000000;
}

/* Ventana Modal */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
