/*
* 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;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !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;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* 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;
}

/* --- Dashboard UI (soft / glass-inspired; scoped to body.dashboard-ui-theme) --- */
body.dashboard-ui-theme {
  --bs-primary: #7b61ff;
  --bs-primary-rgb: 123, 97, 255;
  --bs-link-color: #7b61ff;
  --bs-link-color-rgb: 123, 97, 255;
  --bs-link-hover-color: #6848e8;
  --bs-link-hover-color-rgb: 104, 72, 232;
  --bs-primary-bg-subtle: #ece8ff;
  --bs-primary-border-subtle: #d4cbff;
  --bs-primary-text-emphasis: #3d2f80;
  --bs-body-font-family: 'Inter', var(--bs-font-sans-serif);
  --bs-body-bg: #f8f9fb;
  --bs-heading-color: #2d2d2d;
  --bs-secondary-color: #8e8e8e;
  --dash-card-radius: 1.25rem;
  --dash-shadow: 0 0.5rem 1.75rem rgba(45, 55, 72, 0.06);
  --dash-shadow-hover: 0 0.75rem 2rem rgba(45, 55, 72, 0.09);
  --dash-border: 1px solid rgba(45, 55, 72, 0.06);
  --dash-focus-ring: 0 0 0 0.2rem rgba(123, 97, 255, 0.18);
}

body.dashboard-ui-theme .layout-wrapper,
body.dashboard-ui-theme .layout-page,
body.dashboard-ui-theme .content-wrapper {
  min-width: 0;
}

body.dashboard-ui-theme .layout-wrapper {
  overflow-x: clip;
}

body.dashboard-ui-theme .layout-page {
  background: linear-gradient(180deg, #f1f2f6 0%, #f8f9fb 38%, #f8f9fb 100%);
  background-color: var(--bs-body-bg);
}

body.dashboard-ui-theme .form-control:focus,
body.dashboard-ui-theme .form-select:focus {
  border-color: rgba(123, 97, 255, 0.55);
  box-shadow: var(--dash-focus-ring);
}

body.dashboard-ui-theme .btn-outline-primary {
  color: #7b61ff;
  border-color: rgba(123, 97, 255, 0.45);
  font-weight: 600;
}

body.dashboard-ui-theme .btn-outline-primary:hover {
  color: #fff;
  background-color: #7b61ff;
  border-color: #7b61ff;
}

body.dashboard-ui-theme .layout-navbar .navbar-nav-right {
  flex-basis: auto;
}

body.dashboard-ui-theme .layout-navbar {
  min-height: 3.875rem;
  height: auto;
  flex-wrap: nowrap;
  align-items: center;
}

body.dashboard-ui-theme .layout-navbar .navbar-search-wrapper {
  display: flex;
  align-items: center;
  align-self: center;
}

body.dashboard-ui-theme .layout-navbar #navbar-collapse {
  display: flex;
  align-items: center;
}

body.dashboard-ui-theme .layout-navbar .dashboard-navbar-user {
  min-height: 2.875rem;
  align-items: center;
}

body.dashboard-ui-theme .layout-navbar .dashboard-navbar-user .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575.98px) {
  body.dashboard-ui-theme .layout-navbar {
    flex-wrap: wrap;
  }

  body.dashboard-ui-theme .navbar-search-wrapper {
    flex: 1 1 100%;
    order: 3;
  }
}

body.dashboard-ui-theme .layout-navbar.navbar-detached {
  border-radius: 1.25rem;
  box-shadow: var(--dash-shadow);
  border: var(--dash-border);
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.dashboard-ui-theme .dashboard-top-search {
  background-color: rgba(45, 55, 72, 0.045);
  border-radius: 999px !important;
  border: 1px solid rgba(45, 55, 72, 0.08) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dashboard-ui-theme .dashboard-top-search:focus-within {
  border-color: rgba(123, 97, 255, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12);
}

body.dashboard-ui-theme .dashboard-top-search .search-input,
body.dashboard-ui-theme .dashboard-top-search .form-control {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

body.dashboard-ui-theme .dashboard-icon-btn {
  color: #646e78;
}

body.dashboard-ui-theme .dashboard-icon-btn:hover {
  background-color: rgba(123, 97, 255, 0.08);
  color: var(--bs-primary);
}

body.dashboard-ui-theme .bg-navbar-theme {
  background-color: #fff !important;
}

body.dashboard-ui-theme .layout-menu {
  box-shadow: var(--dash-shadow);
  border-right: var(--dash-border);
  background-color: #ffffff !important;
}

body.dashboard-ui-theme .bg-menu-theme .menu-inner > .menu-item .menu-link {
  border-radius: 0.875rem;
}

body.dashboard-ui-theme .bg-menu-theme .menu-item.active > .menu-link {
  color: #7b61ff !important;
  background-color: rgba(123, 97, 255, 0.12) !important;
  font-weight: 600;
}

body.dashboard-ui-theme .bg-menu-theme .menu-item.active > .menu-link .menu-icon {
  color: #7b61ff !important;
}

body.dashboard-ui-theme
  .layout-wrapper:not(.layout-horizontal)
  .bg-menu-theme
  .menu-inner
  > .menu-item.active::before {
  background-color: #7b61ff !important;
}

body.dashboard-ui-theme .card:not(.border) {
  border-radius: var(--dash-card-radius);
  box-shadow: var(--dash-shadow);
  border: var(--dash-border);
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.dashboard-ui-theme .dashboard-stat-card:hover,
body.dashboard-ui-theme .dashboard-action-card:hover {
  box-shadow: var(--dash-shadow-hover);
}

body.dashboard-ui-theme .btn-primary {
  background: linear-gradient(180deg, #8f7aff 0%, #7b61ff 100%);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 0.35rem 1rem rgba(123, 97, 255, 0.35);
}

body.dashboard-ui-theme .btn-primary:hover {
  background: linear-gradient(180deg, #9d8eff 0%, #6f52f5 100%);
  border-color: transparent;
  box-shadow: 0 0.5rem 1.25rem rgba(123, 97, 255, 0.4);
}

body.dashboard-ui-theme #navbar-collapse > ul.navbar-nav.flex-row {
  background: rgba(45, 55, 72, 0.06);
  border-radius: 9999px;
  padding: 0.3rem 0.55rem;
  gap: 0.15rem;
  align-items: center;
}

body.dashboard-ui-theme .dashboard-user-name {
  color: #2d2d2d;
}

body.dashboard-ui-theme .container-p-y {
  padding-top: 1.25rem !important;
}

/* Home dashboard */
.dashboard-home {
  max-width: 100%;
}

.dashboard-hero {
  border-radius: var(--dash-card-radius);
  background: linear-gradient(125deg, #7b61ff 0%, #9b85ff 45%, #6c5ce7 100%);
  padding: 2.25rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--dash-shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='rgba(255%2C255%2C255%2C0.07)' d='M40 4l3.2 9.8h10.4L45.2 20.4l3.2 9.8L40 24.4l-8.4 5.8 3.2-9.8-8.4-6.6h10.4z'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.9;
  pointer-events: none;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.dashboard-hero-inner {
  position: relative;
  z-index: 1;
}

.dashboard-hero-copy {
  max-width: 36rem;
}

.dashboard-hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}

.dashboard-hero-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

.dashboard-hero-cta {
  font-weight: 600;
  border: 0;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.65rem 1.75rem rgba(0, 0, 0, 0.25);
  color: #fff;
}

.dashboard-stat-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 8.5rem;
  padding: 1.35rem 1.15rem;
}

.dashboard-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 0.2rem 0.75rem rgba(45, 55, 72, 0.06);
}

.dashboard-stat-icon.stat-tone-a {
  background: rgba(123, 97, 255, 0.15);
  color: #7b61ff;
}

.dashboard-stat-icon.stat-tone-b {
  background: rgba(6, 182, 212, 0.14);
  color: #0891b2;
}

.dashboard-stat-icon.stat-tone-c {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.dashboard-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  line-height: 1.2;
}

.dashboard-stat-card .dashboard-stat-value {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  min-height: 2.5rem;
  min-width: 0;
}

.dashboard-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.dashboard-action-card h6 {
  font-weight: 600;
  color: var(--bs-heading-color);
}

.dashboard-action-card-desc {
  min-height: 3rem;
  line-height: 1.5;
  max-width: 17rem;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-insight-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 55%, rgba(236, 232, 255, 0.35) 100%);
  border: 1px solid rgba(123, 97, 255, 0.08) !important;
  box-shadow: var(--dash-shadow) !important;
}

.dashboard-insight-card .card-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.dashboard-ui-theme .dashboard-insight-card h5 {
  color: var(--bs-heading-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.dashboard-ui-theme .dashboard-insight-card .text-muted {
  color: #8e8e8e !important;
}

.dashboard-progress-ring {
  --progress: 32;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  padding: 0.4rem;
  background: conic-gradient(
    #9b85ff 0%,
    #7b61ff calc(var(--progress) * 1%),
    #e8eaef calc(var(--progress) * 1%)
  );
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0.35rem 1.25rem rgba(123, 97, 255, 0.2);
}

.dashboard-progress-ring-inner {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-progress-ring-inner .dashboard-progress-ring-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-mini-bars {
  height: 7.5rem;
  padding-top: 0.5rem;
}

.dashboard-insight-card .dashboard-mini-bars {
  margin-top: auto;
  padding-top: 0.75rem;
}

.dashboard-bar-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.dashboard-bar {
  width: 100%;
  max-width: 3rem;
  min-height: 2rem;
  border-radius: 0.65rem 0.65rem 0.25rem 0.25rem;
  background: linear-gradient(180deg, #b8a9ff 0%, #7b61ff 55%, #6c5ce7 100%);
  box-shadow: 0 0.2rem 0.65rem rgba(123, 97, 255, 0.25);
}

.dashboard-bar-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dashboard-action-card .text-muted {
  color: #8e8e8e !important;
}

body.dashboard-ui-theme .dashboard-action-card h6 + p.small {
  color: #8e8e8e;
}

body.dashboard-ui-theme .app-brand-link .app-brand-logo img {
  border-radius: 50%;
  box-shadow: 0 0.2rem 0.85rem rgba(123, 97, 255, 0.25);
}
