/*
* 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: 1rem;
  letter-spacing: 0;
  /*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;
}

/*
* Login
******************************************************************************/

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(105, 108, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, #f6f8fc 0%, #eef3f8 48%, #f8fbff 100%);
}

.login-page-container {
  min-height: 100vh;
}

.login-auth-wrapper {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.login-auth-wrapper .authentication-inner {
  max-width: 430px;
}

.login-box {
  border: 1px solid rgba(67, 89, 113, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(67, 89, 113, 0.16);
  overflow: hidden;
}

.login-box-body {
  padding: 2rem;
}

.login-brand {
  margin-bottom: 1.15rem;
}

.login-logo {
  width: 86px;
  height: auto;
}

.login-heading {
  text-align: center;
  border-bottom: 1px solid #e7eaf0;
  margin-bottom: 1.4rem;
  padding-bottom: 1.15rem;
}

.login-heading h5 {
  color: #263446;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.login-heading span {
  color: #697a8d;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-form-fields .form-label {
  color: #3d4f61;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.login-input-group {
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(67, 89, 113, 0.04);
}

.login-input-group .input-group-text,
.login-input-group .form-control {
  border-color: #d9e1ea;
}

.login-input-group .input-group-text {
  color: #697a8d;
  background-color: #f8fafc;
}

.login-input-group .form-control {
  min-height: 44px;
}

.login-input-group:focus-within .input-group-text,
.login-input-group:focus-within .form-control {
  border-color: #696cff;
}

.btn-login {
  border-radius: 8px;
  font-weight: 500;
  min-height: 44px;
  box-shadow: 0 8px 18px rgba(105, 108, 255, 0.24);
}

@media (max-width: 575.98px) {
  .login-auth-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .login-box-body {
    padding: 1.5rem;
  }

  .login-heading h5 {
    font-size: 1rem;
  }
}

/*
* Authenticated shell
******************************************************************************/

.layout-menu.menu {
  border-right: 1px solid #e6edf5;
}

.sidebar-brand {
  height: 78px !important;
  min-height: 78px;
  flex-shrink: 0;
  margin-top: 0 !important;
  padding: 0 1.15rem;
  border-bottom: 1px solid #dfe8f2;
  background:
    linear-gradient(135deg, rgba(105, 108, 255, 0.11) 0%, rgba(31, 157, 97, 0.08) 100%),
    #f8fafc;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.75);
}

.sidebar-logo-wrap {
  width: 48px;
  height: 48px;
  border: 1px solid #e5ecf4;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 12px rgba(67, 89, 113, 0.08);
  flex: 0 0 auto;
}

.sidebar-logo-wrap img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.sidebar-brand-text {
  min-width: 0;
  line-height: 1.12;
  letter-spacing: 0 !important;
}

.sidebar-brand-text span,
.sidebar-brand-text small {
  display: block;
}

.sidebar-brand-text span {
  color: #263446;
  font-size: 1.02rem;
  font-weight: 600;
}

.sidebar-brand-text small {
  color: #7a8898;
  font-size: 0.74rem;
  font-weight: 400;
  margin-top: 0.18rem;
  white-space: nowrap;
}

.menu .menu-header {
  margin-top: 0.9rem;
  padding: 0.55rem 1.45rem 0.3rem;
}

.menu .menu-header-text {
  color: #8a97a8;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0;
}

.menu .menu-item .menu-link {
  margin: 0.12rem 0.75rem;
  border-radius: 8px;
  min-height: 42px;
}

.menu .menu-item.active > .menu-link:not(.menu-toggle) {
  box-shadow: 0 2px 7px rgba(105, 108, 255, 0.11);
}

.layout-navbar.navbar-detached {
  border: 1px solid #e6edf5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(67, 89, 113, 0.08);
}

.navbar-page-context {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.navbar-page-context span {
  color: #263446;
  font-weight: 500;
  line-height: 1.1;
}

.navbar-page-context small {
  color: #7a8898;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.navbar-user-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0.35rem 0.3rem 0.8rem;
  border: 1px solid #e6edf5;
  border-radius: 999px;
  background: #fff;
}

.navbar-user-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.navbar-user-text strong {
  color: #263446;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.05;
}

.navbar-user-text span {
  color: #7a8898;
  font-size: 0.73rem;
  margin-top: 0.15rem;
}

/*
* Dashboard
******************************************************************************/

.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.55rem;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
  box-shadow: 0 8px 24px rgba(67, 89, 113, 0.08);
}

.dashboard-eyebrow {
  color: #696cff;
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.dashboard-welcome h4 {
  color: #263446;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.dashboard-welcome p {
  color: #697a8d;
  margin-bottom: 0;
}

.dashboard-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  color: #263446;
  background: #fff;
  border: 1px solid #e6edf5;
  padding: 0.55rem 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 112px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #fff;
  padding: 1.2rem;
  color: inherit;
  box-shadow: 0 8px 24px rgba(67, 89, 113, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-stat-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(67, 89, 113, 0.11);
}

.dashboard-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.dashboard-stat-card span {
  color: #697a8d;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.dashboard-stat-card strong {
  color: #263446;
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.dashboard-stat-primary .dashboard-stat-icon { color: #696cff; background: rgba(105, 108, 255, 0.11); }
.dashboard-stat-success .dashboard-stat-icon { color: #1f9d61; background: rgba(31, 157, 97, 0.11); }
.dashboard-stat-info .dashboard-stat-icon { color: #0b7fab; background: rgba(11, 127, 171, 0.11); }
.dashboard-stat-warning .dashboard-stat-icon { color: #bf7a00; background: rgba(191, 122, 0, 0.12); }
.dashboard-stat-secondary .dashboard-stat-icon { color: #566a7f; background: rgba(86, 106, 127, 0.11); }

.dashboard-panel {
  border: 1px solid #e6edf5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(67, 89, 113, 0.07);
}

.dashboard-panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-panel-title h5 {
  color: #263446;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
}

.dashboard-panel-title span {
  color: #7a8898;
  font-size: 0.78rem;
  font-weight: 400;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.dashboard-action-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  color: #263446;
  font-weight: 500;
  padding: 0.85rem;
  background: #fbfcfe;
}

.dashboard-action-link:hover {
  color: #696cff;
  border-color: rgba(105, 108, 255, 0.35);
}

.dashboard-action-link i {
  font-size: 1.1rem;
}

.dashboard-permission-list {
  display: grid;
  gap: 0.7rem;
}

.dashboard-permission-group {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 0.7rem;
}

.dashboard-permission-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-permission-group strong {
  color: #263446;
  font-size: 0.82rem;
  font-weight: 500;
}

.dashboard-permission-group span {
  color: #7a8898;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .navbar-page-context,
  .navbar-user-text {
    display: none;
  }

  .navbar-user-chip {
    border: 0;
    padding: 0;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
}
