:root {
  --primary-bg-color: #000000;
  --secondary-bg-color: #1a1a1a;
  --tertiary-bg-color: #333333;
  --messages-bg-color: #4d4d4d;
  --user-messages-bg-color: #666666;
  --primary-text-color: #ffffff;
  --secondary-text-color: #e6e6e6;
  --message-text-color: #cccccc;
  --border: 1px solid #ffffff;
  --box-shadow-color: rgba(255, 255, 255, 0.2);
  --font-family: 'Arial', sans-serif;
  --reply-border-color: #b3b3b3;
  --user-message-border: 1px solid #999999;
  --active-color: #ffffff;
}
body {
    font-family: var(--font-family);
    color: var(--primary-text-color);
    background-color: var(--primary-bg-color);
    margin: 0;
    padding: 0;
}

.ui-container {
    background: var(--secondary-bg-color); /* dark red background */
    color: var(--primary-text-color); /* light text color for contrast */
    font-family: 'Orbitron', sans-serif; /* sci-fi styled font */
    border: 4px solid var(--border); /* bright red border */
    padding: 20px;
  }
  
  /* Header styles for the UI */
  .ui-header {
    border: 2px solid var(--active-color); /* bright red border */
    background: var(--secondary-bg-color);
    color: var(--secondary-text-color);
    font-size: 3rem;  
    position:relative;
    justify-content:center;
   align-items: center;
  }

  .ui-bot {
    display: flex;
    /* border: 2px solid var(--active-color); */
    align: left;
    text-emphasis: 2px;
    margin-top: 20px;
    /* padding-right: 40px; */
    /* padding-left: 30px; */
    /* align-items: flex-start; */
    /* flex-direction: column; */
    /* justify-content: center; */
    /* display: flex; */
    /* margin: auto; */
    margin-bottom: 10px; 
    /* justify-content: center; */
    /* flex-wrap: nowrap; */
}

.ui-bot:hover {
    background-color:#011630;
  }


.ui-title {
    display: flex;
    align: left;
    text-emphasis: 2px;
    align-items: flex-end;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-content: stretch;
    padding-left:40px;
    padding-bottom:5px;
}

  .desctext {
    /* border: 1px solid var(--border); */
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    /* margin-left: 45px; */
}

  .ui-auth {
    position: absolute;
    bottom: 10px;
    right: 5px;  
  }


  #chat-box {
    border: 3px solid var(--active-color); /* border to separate messages */
    /* background: linear-gradient(to bottom, var(--user-messages-bg-color), var(--primary-bg-color)); */
    background: #000;
    height:500px;
    margin-top:20px;
    margin-bottom: 20px;
    overflow-y:auto;
    padding-left:20px;
    padding-right:20px;
  }
 
  .other-message, .user-message {
   font-size: 1rem;
    position: relative;
}

  .other-message {
    background: var(--messages-bg-color); /* slightly lighter red for message backgrounds */
    border: 2px solid var(--border); /* border to separate messages */
    padding: 10px;
    margin: 20px 0;
    color: #fff;
    width: 70%;
    position:relative;
  }
  .other-message-text {
    background: var(--messages-bg-color); /* green background for user's message text */
    color: #fff;
    padding: 10px;
    margin-right: auto; /* Pushes the element to the right */
  }

.user-message {
    background: var(--user-messages-bg-color); /* green background for user's message */
    color: #fff;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid var(--user-message-border); /* darker green for border */
    width:70%;
    margin-left: auto; /* Pushes the element to the right */
    position:relative;
  
  }
  
  .user-message-text {
    background:  var(--user-messages-bg-color); /* green background for user's message text */
    color: #fff;
    padding: 10px;
    margin-left: auto; /* Pushes the element to the right */
  }
  
  /* Footer styles with buttons for call and close */
  .footer-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
  }

  .menu-btn {
    background: transparent;
    padding: 5px 10px;
    border: none;
    }

  .menu-btn:hover {
    background: transparent;
  }

 .auth-btn {
    background: transparent;
    padding: 5px 10px;
    border: none;
    }

    .auth-btn:hover {
      background: transparent;
  }


  .activebot {
    background: transparent;
    padding: 5px 10px;
    color: #fff;
    font-size: 1.2rem;
}

button {
  background-color: transparent;
}
  
button, .call-button, .call-button {
    background: var(--tertiary-bg-color); /* dark background for buttons */
    border: 1px solid var(--border);
    color: #fff;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
  }

  #menu-button {
    margin-right:8px;
  }

  
  .close-button:before {
    content: 'CLOSE';
    margin-right: 5px;
  }
  
  #chat-input {
    width: 100%;
    border: 1px solid var(--active-color);
    padding:5px;
}

#send-btn {
    background: var(--active-color);
    border: 1px solid var(--active-color);
    color: var(--user-messages-bg-color);
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

#send-btn:hover {
  background: var(--user-messages-bg-color);
  color: var(--active-color);
  border-top: 1px solid var(--active-color);
  border-right: 1px solid var(--active-color);
  border-bottom: 1px solid var(--active-color);
}

#login-btn {
    background: var(--active-color);
    border: 1px solid var(--user-messages-bg-color);
    color: var(--user-messages-bg-color);
    padding: 6px 10px;
    border: none;
    cursor: pointer;
}

#login-btn:hover {
  background: var(--user-messages-bg-color);
  color: var(--active-color);
  border: 1px solid var(--active-color);
  padding: 5px 10px;
}

.timestamp {
    position: absolute;
    bottom: 5px;
    right: 10px;
    padding: 1px;
    font-size: 0.8rem;
    color: var(--active-color);
}

#menu-container {
  display:none;
}

/* Overlay Style */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    z-index: 999; /* Ensures overlay is below the modal but above other items */
    display:none;
}
#prompt {
  width: 560px;
  height: 190px;
}
/* Modal/Element Style */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensures the modal is above everything else */
    /* Add more styling for your modal below */
    background-color: #1a0000;
    border: 2px solid var(--active-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display:none;
}

.botsmodal {
  max-height: 400px;
  overflow-y:auto;
    position: fixed;
    top: 260px;
    left: 160px;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensures the modal is above everything else */
    /* Add more styling for your modal below */
    background-color: transparent;
    border: 1px solid var(--active-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display:none;
}

.botslist {
    background-image: url('menuProcessor.php?base=2A0001&border=FF2800');
    width: 156px;
    height: 48px;
    margin-left: 15px;
    margin-right: 20px;
    background-size: cover;
    background-color: transparent;
    text-decoration: none;
    background-repeat: round; /* If this is the desired effect */
    color: #fff;
    font-size: 20px; /* Added unit 'px' */
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content: stretch;
    flex-wrap: wrap;
    padding-top: 6px;
    align-items: center;
}

.botslistactive {
    background-image: url('menuProcessor.php?base=011630&border=03d8f3');
    width: 156px;
    height: 48px;
    margin-left: 15px;
    margin-right: 20px;
    background-size: cover;
    background-color: transparent;
    text-decoration: none;
    background-repeat: round; /* If this is the desired effect */
    color: #fff;
    font-size: 20px; /* Added unit 'px' */
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content: stretch;
    flex-wrap: wrap;
    padding-top: 6px;
    align-items: center;
}

.botslistactive:hover {
    background-image: url('menuProcessor.php?base=011630&border=03d8f3');
    width: 156px;
    height: 48px;
    margin-left: 15px;
    margin-right: 20px;
    background-size: cover;
    background-color: transparent;
    text-decoration: none;
    background-repeat: round; /* If this is the desired effect */
    color: #03d8f3;
    font-size: 20px; /* Added unit 'px' */
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content: stretch;
    flex-wrap: wrap;
    padding-top: 6px;
    align-items: center;
}

.botslist:hover {
  background-image: url('menuProcessor.php?base=011630&border=03d8f3');
  background-size: cover;
    background-color: transparent;
    text-decoration: none;
    background-repeat: round; /* If this is the desired effect */
    color: #03d8f3;

}

.btn-nav {
  background-image: url('navProcessor.php?base=2A0001&border=FF2800&width=267&height=82');
  background-size: cover;
  background-repeat: round;
  margin-top:10px;
  margin-left:5px;
  width: auto;
  padding:10px;
  background-color: transparent;
}

.btn-nav:hover {
  background-image: url('navProcessor.php?base=2A0001&border=03d8f3&width=267&height=82');
  background-size: cover;
  background-repeat: round;
  margin-top:10px;
  margin-left:5px;
  width: auto;
  padding:10px;
  background-color: transparent;
}

  .botslist button {
    align-items:top;
  }

.botitem {
  margin-top: 9px;
    margin-bottom: 28px;
    display: flex;
    align-content: space-around;
    flex-direction: row;
    flex-wrap: nowrap;
}

.custom-pre { 
 background: #999;
 font-size: .9rem;
 padding: 15px;
 white-space: pre-wrap;
 display: flex;
 flex-direction: column; 
 align-items: left;
 justify-content: center;
}

  .bot-thinking {
   background: #999;
    display: flex;
    justify-content: center; /* Centers horizontally */
    border: 3px solid black; /* Just for visualization */
  }



/* Style the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: var(--secondary-text-color); /* Thumb background color */
}

/* Handle hover and active states for the thumb */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* Thumb background color on hover */
}

/* (Optional) Style the scrollbar button and corner */
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner {
    background: 2a0001; /* Button and corner background color */
    border: 1px solid var(--border-color);
}

/* Set the width of the scrollbar */
::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
    height: 10px; /* Height of the scrollbar (for horizontal scrollbars) */
}
