:root {
  --body-bg: #202123;
  --msger-bg: #444654;
  --border: 2px solid #1e1e1e;
  --left-msg-bg: #8b8da9;
  --right-msg-bg: #16171c;
}

.msger {
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  min-width: 100%;
  max-width: 867px;
  height: 100%;
  min-height: 500px;
border: none !important;
    background: #444654;
box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
  font-family: Helvetica, sans-serif;
}


.msger-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: var(--border);
  background: #2b2c34;
  color: #d9d9d9;
}

.msger-chat {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #343541;
  color: #ffffff;
  border-radius: 0px;
}


.msger-chat::-webkit-scrollbar {
  width: 6px;
}

.msger-chat::-webkit-scrollbar-track {
  background: #2b2c34;
}

.msger-chat::-webkit-scrollbar-thumb {
  background: #444654;
}

.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.msg:last-of-type {
  margin: 0;
}

.msg-img {
  width: 50px;
  height: 50px;
  display:none !important;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.msg-bubble {
  max-width: 450px;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg);
}

.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.msg-text {
  color: white;
  font-family: Google Sans,-apple-system,BlinkMacSystemFont,sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}

.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}

.right-msg .msg-bubble {
   background: #2d2e39;
    color: #fff;
    border-bottom-right-radius: 0;
    border: 1px solid #8E8E9F;
    font-family: Google Sans,-apple-system,BlinkMacSystemFont,sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
  border-bottom-right-radius: 0;
  margin-right: 20px;
    margin-top: 20px;
}

.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputarea {
  display: flex;
  padding: 10px;
  border-top: var(--border);
 background: #2d2e39;
  border: none !important;
}

.msger-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
}

.msger-input {
  flex: 1;
  background: #343541;
    color: #e4e2e2;
    border-radius: 8px;
    border: 1px solid #8E8E9F;
    font-family: Google Sans,-apple-system,BlinkMacSystemFont,sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.msger-send-btn {
  margin-left: 10px;
  border: 1px solid #8E8E9F;
    background: #343541;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
}

.msger-send-btn:hover {
  background: #40414e;
}

#delete-button {
  background: none !important;
  border: none;
  padding: 0 !important;
  /*optional*/
  font-family: arial, sans-serif;
  /*input has OS specific font-family*/
  color: rgb(255, 255, 255);
  text-decoration: underline;
  cursor: pointer;
}


@media(min-width: 768px) {

  /* For desktop: */
  body {
    font-size: 13pt;
  }

}
@media(max-width: 768px) {

  .grid-container{
    display: block !important;
  }
  .suggestion-first-box{
    bottom: 60px;
  }

}

/* tset */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {

  --body-color: #E4E9F7;
  --sidebar-color: #FFF;
  --primary-color: #1707c4;
  --primary-color-light: #F6F5FF;
  --toggle-color: #DDD;
  --text-color: #383838;
  --tran-03: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.3s ease;
  --tran-05: all 0.3s ease;
}

body {
  min-height: 100vh;
  background-color: var(--body-color);
  transition: var(--tran-05);
}

::selection {
  background-color: var(--primary-color);
  color: #fff;
}

body.dark {
  --body-color: #18191a;
  --sidebar-color: #242526;
  --primary-color: #3a3b3c;
  --primary-color-light: #3a3b3c;
  --toggle-color: #fff;
  --text-color: #ccc;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  padding: 10px 5px;
    background: #191e29 !important;
  transition: var(--tran-05);
  z-index: 100;
}

.sidebar.close {
  width: 50px;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
  height: 50px;
  list-style: none;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
}

.sidebar .icon {
  min-width: 40px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.sidebar .text,
.sidebar .icon {
  color: var(--text-color);
  transition: var(--tran-03);
     font-size: 17px;

   
}

.sidebar .text {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  text-overflow: ellipsis;
   font-size: 17px;
    font-family: Google Sans,-apple-system,BlinkMacSystemFont,sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.sidebar.close .text {
  opacity: 0;
}

/* =========================== */

.sidebar header {
  position: relative;
}

.sidebar header .image-text {
  display: flex;
  align-items: center;
}

.sidebar header .logo-text {
  display: flex;
  flex-direction: column;
}

header .image-text .name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

header .image-text .profession {
  font-size: 16px;
  margin-top: -2px;
  display: block;
}

.sidebar header .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar header .image img {
  width: 40px;
  border-radius: 6px;
}

.sidebar header .toggle {
  position: absolute;
  top: 50%;
  right: -35px;
  transform: translateY(-50%) rotate(180deg);
  height: 40px;
  width: 40px;
  background-color: var(--primary-color);
  color: var(--sidebar-color);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: var(--tran-05);
}

body.dark .sidebar header .toggle {
  color: var(--text-color);
}

.sidebar.close .toggle {
  transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
  margin-top: 40px;
}

.sidebar li.search-box {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  cursor: pointer;
  transition: var(--tran-05);
}

.sidebar li.search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  background-color: var(--primary-color-light);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  transition: var(--tran-05);
}

.sidebar li a {
  list-style: none;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--tran-03);
}
#list-chat li a{
  justify-content: space-between;
}

.sidebar li a:hover {
background-color: #343541 !important;}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
  color: var(--sidebar-color);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
  color: var(--text-color);
}

.sidebar .menu-bar {
  height: calc(100% - 55px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
}

.menu-bar::-webkit-scrollbar {
  display: none;
}

.sidebar .menu-bar .mode {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  position: relative;
  transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
  height: 50px;
  width: 60px;
}

.mode .sun-moon i {
  position: absolute;
}

.mode .sun-moon i.sun {
  opacity: 0;
}

body.dark .mode .sun-moon i.sun {
  opacity: 1;
}

body.dark .mode .sun-moon i.moon {
  opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
  position: absolute;
  right: 0;
  height: 100%;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}

.toggle-switch .switch {
  position: relative;
  height: 22px;
  width: 40px;
  border-radius: 25px;
  background-color: var(--toggle-color);
  transition: var(--tran-05);
}

.switch::before {
  content: '';
  position: absolute;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  background-color: var(--sidebar-color);
  transition: var(--tran-04);
}

body.dark .switch::before {
  left: 20px;
}

.home {
  position: absolute;
  top: 0;
  left: 250px;
  height: 100vh;
  width: calc(100% - 250px);
  background-color: var(--body-color);
  transition: var(--tran-05);
}

.home .text {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  padding: 12px 60px;
}

.sidebar.close~.home {
  left: 50px;
  height: 100vh;
  width: calc(100% - 50px);
}

body.dark .home .text {
  color: var(--text-color);
}

.suggestion-first-box {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFF;
}

.grid-container {
  display: grid;
  grid-template-columns: auto auto auto;
  /* background-color: #2196F3; */
  padding: 10px;
}

.grid-item {
  /* background-color: rgba(255, 255, 255, 0.8); */
  /* border: 1px solid rgba(0, 0, 0, 0.8); */
  padding: 10px;
  font-size: 30px;
  text-align: center;
}

.grid-item .title-grid {
  font-size: 20px;
  margin-bottom: 20px;
}

.grid-item .grid-item-box {
    font-size: 14px;
    padding: 20px;
  background: transparent;
  border: 1px solid #8E8E9F;
  border-radius: 21px;
  margin-top: 25px;
  font-family: Google Sans,-apple-system,BlinkMacSystemFont,sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;

}
.id-tabs{
  overflow: hidden;
}
.id-tabs.active {
  --tw-bg-opacity: 1;
  background-color: rgba(52, 53, 65, var(--tw-bg-opacity));
}

.grid-item .grid-item-box.chat-exam:hover {
background:#40414e;  
cursor: pointer;
}

@media only screen and (max-width: 375px) {
  .sidebar.close {
    width: 0;
  }

  .sidebar.close~.home {
    left: 10px;
    width: calc(100% - 10px);
  }

  .msger-inputarea * {
    padding: 5px;
  }
}