/*================================================
Template name: AIPRO HTML Mobile Template
Version: 1.0.0
Author: Website Stock       
Author url: https://themeforest.net/user/website_stock/portfolio  

[ Table of Contents ]

01: search CSS
02: previous-search CSS
03: not-found CSS
04: history CSS
05: message CSS
06: dark-mode CSS

==================================================*/
/*===========================================================
01: search CSS
=============================================================*/
.search .search-area {
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  background-color: #fff;
  gap: 12px;
}

.search .search-bar {
  border-radius: 16px;
  flex-grow: 1;
  padding: 1px;
  width: 100%;
}

.search .search-bar.focused {
  background: var(--primary-gradient);
}

.search .search-bar .inputs {
  border-radius: 15px;
  height: 60px;
  padding-left: 16px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  width: 100%;
}

.search .search-bar.focused .inputs {
  background: #F1F3FE;
}

.search .search-bar .input-msg {
  width: 100%;
  font-size: 18px;
  color: var(--primary-text);
  padding-left: 14px;
  background: transparent;
}

.search .search-bar .input-msg::placeholder {
  font-size: 18px;
  color: var(--gray-80);
}

/*===========================================================
02: previous-search CSS
=============================================================*/
.previous-search {
  display: none;
}

.previous-search.show {
  display: block;
}

.previous-search ul li {
  padding: 12px 0;
}

.previous-search ul li:first-child {
  border-bottom: 1px solid #EEEEEE;
}

.previous-search h4 {
  color: var(--primary-text);
  font-weight: 700;
  font-size: 20px;
}

.previous-search p {
  color: #757575;
  font-weight: 700;
  font-size: 20px;
}

/*===========================================================
03: not-found CSS
=============================================================*/

.not-found {
  text-align: center;
  display: none;
}

.not-found.show {
  display: block;
}

.not-found h5 {
  padding-top: 60px;
  padding-bottom: 12px;
  font-size: 24px;
  color: var(--primary-text);
  font-weight: 700;
}

.not-found p {
  font-size: 18px;
  color: var(--primary-text);
}

/*===========================================================
04: history CSS
=============================================================*/
.history .action-btns {
  grid-column-start: 6;
  grid-column-end: 7;
  gap: 20px;
}

.history .deleteModal {
  text-align: center;
}

.history .deleteModal .modal-body p {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-text);
  padding: 24px 0;
}

.history .deleteModal .modal-body .action-buttons button {
  font-size: 16px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 100px;
}

.history .deleteModal .modal-body .action-buttons .cancel {
  background: #E0E7F2;
}

.history .deleteModal .modal-body .action-buttons .cancel span {
  display: inline-block;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.history .deleteModal .modal-body .action-buttons .yes {
  background: var(--primary-gradient);
  color: #fff;
}

/*===========================================================
05: message CSS
=============================================================*/
.history-list {
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  display: none;
}

.history-list.show {
  display: flex;
}

.history-list .single-chat .single-main {
  padding: 16px;
  background: #FAFAFA;
  border-radius: 14px;
  height: 80px;
  position: relative;
  z-index: 10;
}

.history-list .single-chat .single-main>div {
  width: calc(100% - 50px);
}

.history-list .single-chat h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-text);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-list .single-chat p {
  font-size: 10px;
  color: #616161;
  padding-top: 6px;
}

.history-list .single-chat .trash {
  width: 90px;
  height: 80px;
  border-radius: 15px;
  background: var(--secondary);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
}

/*===========================================================
06: dark-mode CSS
=============================================================*/
.dark-mode .history-list .single-main img,
.dark-mode .history .action-btns img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(322deg) brightness(102%) contrast(102%);
}

.dark-mode .not-found img {
  filter: unset;
}

.dark-mode .history .deleteModal .modal-body p,
.dark-mode .not-found h5,
.dark-mode .previous-search h4,
.dark-mode .history-list .single-chat h4 {
  color: #fff;
}

.dark-mode .previous-search p,
.dark-mode .not-found p,
.dark-mode .search .search-bar .input-msg::placeholder,
.dark-mode .history-list .single-chat p {
  color: var(--gray-40);
}

.dark-mode .search .search-area {
  background: var(--gray-100);
}

.dark-mode .search .search-bar.focused .input-msg,
.dark-mode .search .search-bar .input-msg {
  background: var(--gray-80);
  color: #fff !important;
}

.dark-mode .search .search-bar .inputs,
.dark-mode .history-list .single-chat .single-main {
  background: var(--gray-80);
}