/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #d9dee3 !important;
  height: calc(1.53em + 0.844rem + 2px) !important;
  display: flex;
  align-items: center;
  border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #697a8d !important;
  padding-left: 0.875rem !important;
  line-height: normal !important;
  padding-top: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: none;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 55%;
  transform: translateY(-50%);
  margin-right: 0;
  color: #ff3e1d;
  font-size: 1.2rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-right: 50px !important;
}

/* ===========================================================
 * Navbar — Search Bar
 * ===========================================================*/
.navbar-search-wrapper {
  position: relative;
}

.navbar-search-wrapper .form-control:focus {
  box-shadow: none;
}

#globalSearchInput::placeholder {
  color: #a1acb8;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 380px;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(161, 172, 184, 0.45);
  z-index: 1080;
  overflow: hidden;
  border: 1px solid rgba(161, 172, 184, 0.2);
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: #f5f5f9;
}

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #566a7f;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.search-result-subtitle {
  font-size: 0.75rem;
  color: #a1acb8;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.search-result-badge {
  font-size: 0.7rem;
  padding: 0.2em 0.55em;
  margin-left: auto;
  flex-shrink: 0;
}

.search-no-results,
.search-loading {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}

.search-results-header {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a1acb8;
}

/* ===========================================================
 * Navbar — Notification Badge
 * ===========================================================*/
.badge-notifications {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.6rem;
  min-width: 16px;
  height: 16px;
  line-height: 1;
  padding: 3px 4px;
}

.notif-unread {
  background-color: rgba(105, 108, 255, 0.04) !important;
  border-left: 3px solid #696cff !important;
}

.notif-read {
  background-color: transparent !important;
  border-left: 3px solid transparent !important;
}

.dropdown-notifications-item {
  padding: 0.75rem 1rem;
}

/* ===========================================================
 * Navbar — Dark Mode Toggle
 * ===========================================================*/
#darkModeToggle {
  transition: color 0.2s ease;
}

#darkModeToggle:hover {
  color: #696cff !important;
}

/* ===========================================================
 * Dark Style Overrides
 * ===========================================================*/
.dark-style .search-results-dropdown {
  background: #2b2c40;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.4);
}

.dark-style .search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.dark-style .search-result-title {
  color: #cfd3ec;
}

.dark-style .notif-unread {
  background-color: rgba(105, 108, 255, 0.08) !important;
}

.dark-style #globalSearchInput::placeholder {
  color: #7983bb;
}

/* ===========================================================
 * Navbar — Avatar Image
 * ===========================================================*/
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
