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

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 30px;
  height: 30px;
}

.app-brand-logo.demo svg {
  width: 1.7rem;
  height: 1.7rem;
}

.app-brand-logo.demo img,
.app-brand-logo-img {
  width: auto;
  height: 1.7rem;
  max-width: 100%;
  object-fit: contain;
}

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

.auth-brand-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-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;
}

/*
* ============================================================================
* Modern UI layer (redesign/modern-ui)
* ----------------------------------------------------------------------------
* Everything below is the redesign's component styling. It only uses the
* template's --bs-* CSS variables, so it follows light, dark and dark-sidebar
* automatically. To revert: delete from here to the end of the file.
* ============================================================================
*/

/* Typography: crisper numbers and slightly tighter headings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  letter-spacing: -0.01em;
  font-weight: 600;
}
.table td,
.table th,
.stat-card .stat-value {
  font-variant-numeric: tabular-nums;
}

/* Cards: hairline border, soft shadow, no heavy template look */
.card {
  border: 1px solid var(--bs-border-color);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--bs-border-color);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.card-header .card-title {
  margin-bottom: 0;
  font-size: 1.0625rem;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(16, 24, 40, 0.18);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
}

/* Tables: horizontal dividers only, quiet sticky-looking header, row hover */
/* "table-bordered" draws a full grid; keep only the horizontal row dividers (no side or outer frame) */
.table.table-bordered > :not(caption) > * > * {
  border-left-width: 0;
  border-right-width: 0;
}
.table.table-bordered {
  border-width: 0;
}
.table.table-bordered > thead > tr:first-child > * {
  border-top-width: 0;
}
.table thead th {
  background: rgba(var(--bs-primary-rgb), 0.04);
  color: var(--bs-secondary-color, var(--bs-body-color));
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  border-bottom: 1px solid var(--bs-border-color);
  white-space: nowrap;
}
.table > :not(caption) > * > * {
  border-bottom-color: var(--bs-border-color);
}
.table tbody tr:last-child > * {
  border-bottom-width: 0;
}
.table-hover > tbody > tr:hover > *,
.table tbody tr:hover > * {
  --bs-table-accent-bg: rgba(var(--bs-primary-rgb), 0.045);
  background-color: rgba(var(--bs-primary-rgb), 0.045);
}

/* Badges: soft pills with a leading status dot (only on label badges) */
.badge {
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35em 0.75em;
}
.badge[class*='bg-label-']::before {
  content: '';
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  margin-right: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.0625rem;
}

/* Buttons: quieter, with a visible keyboard focus state */
.btn {
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.28);
}

/* Row action buttons: ghost icon buttons that gain colour on hover */
.btn-ghost {
  --bs-btn-color: var(--bs-secondary-color, var(--bs-body-color));
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  background: transparent;
  border-color: transparent;
  color: var(--bs-btn-color);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
}
.btn-ghost.btn-ghost-danger:hover,
.btn-ghost.btn-ghost-danger:focus-visible {
  background: rgba(var(--bs-danger-rgb), 0.12);
  color: var(--bs-danger);
}
/* Existing solid icon buttons inside tables read as ghost until hovered */
.table .btn.btn-icon.btn-sm.btn-primary,
.table .btn.btn-icon.btn-sm.btn-danger,
.table .btn.btn-icon.btn-sm.btn-secondary {
  --bs-btn-box-shadow: none;
  box-shadow: none;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-color: transparent;
  color: var(--bs-primary);
}
.table .btn.btn-icon.btn-sm.btn-danger {
  background: rgba(var(--bs-danger-rgb), 0.1);
  color: var(--bs-danger);
}
.table .btn.btn-icon.btn-sm.btn-secondary {
  background: rgba(var(--bs-secondary-rgb), 0.12);
  color: var(--bs-secondary);
}
.table .btn.btn-icon.btn-sm.btn-primary:hover { background: var(--bs-primary); color: #fff; }
.table .btn.btn-icon.btn-sm.btn-danger:hover { background: var(--bs-danger); color: #fff; }
.table .btn.btn-icon.btn-sm.btn-secondary:hover { background: var(--bs-secondary); color: #fff; }

/* Forms */
.form-control,
.form-select {
  border-color: var(--bs-border-color);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.16);
}

/* Navigation pills (module tabs) become an understated segmented control */
.nav-pills {
  gap: 0.25rem;
}
.nav-pills .nav-link {
  border-radius: var(--bs-border-radius);
  color: var(--bs-body-color);
  font-weight: 500;
}
.nav-pills .nav-link:not(.active):hover {
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
}
.nav-pills .nav-link.active {
  box-shadow: 0 2px 6px -1px rgba(var(--bs-primary-rgb), 0.45);
}

/* Navbar: translucent bar with a soft blur so content scrolls underneath it */
.layout-navbar-fixed .layout-navbar.navbar-elevated,
.layout-navbar-fixed .layout-navbar {
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.layout-navbar.bg-navbar-theme {
  background-color: rgba(var(--bs-body-bg-rgb), 0.82) !important;
}
.layout-navbar-fixed .layout-navbar.navbar-elevated {
  box-shadow: 0 1px 0 var(--bs-border-color), 0 8px 24px -12px rgba(16, 24, 40, 0.18);
}

/* Dropdowns and modals */
.dropdown-menu {
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 12px 28px -6px rgba(16, 24, 40, 0.18);
  padding: 0.375rem;
}
.dropdown-item {
  border-radius: calc(var(--bs-border-radius) - 2px);
}
.dropdown-item.active,
.dropdown-item:active {
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
}
.modal-content {
  border: 1px solid var(--bs-border-color);
}

/* Global "loading" overlay: frosted instead of a flat black wash */
#app-loading-overlay {
  background: rgba(var(--bs-body-bg-rgb), 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Stat cards (dashboard) */
.stat-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--bs-border-radius-lg);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-card .stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bs-secondary-color, var(--bs-body-color));
}
.stat-card .stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bs-heading-color);
}
.stat-card .stat-meta {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color, var(--bs-body-color));
}
.stat-card .stat-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--bs-primary);
}
a.stat-card:hover .stat-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Authentication pages keep the template's original look: flat #f3f4f4 background (the modern page colour is
   #f5f6fa), the decorative corner images, and the original card radius/shadow. */
html.customizer-hide:not(.dark-style) body {
  background: #f3f4f4;
}
.authentication-wrapper .authentication-inner .card {
  border-radius: 0.3125rem;
  box-shadow: 0 2px 14px rgba(38, 60, 85, 0.16);
  border-width: 0;
}
/* ...and the original control sizing inside the card (the modern tokens made inputs/buttons rounder and 1px taller) */
.authentication-wrapper .form-control,
.authentication-wrapper .form-select,
.authentication-wrapper .input-group-text {
  border-radius: 0.25rem;
  padding-top: 0.469rem;
  padding-bottom: 0.469rem;
}
.authentication-wrapper .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.authentication-wrapper .btn {
  border-radius: 0.25rem;
  padding: 0.469rem 1.375rem;
  font-weight: 400;
}
.authentication-wrapper h4,
.authentication-wrapper .h4 {
  letter-spacing: normal;
  font-weight: 500;
}
.authentication-wrapper .btn-primary {
  box-shadow: 0 0.125rem 0.25rem rgba(147, 158, 170, 0.4);
}
.authentication-wrapper .btn-primary:hover {
  box-shadow: 0 0.25rem 1rem rgba(147, 158, 170, 0.45) !important;
}

/* Dark mode: the brand blue (#004494) is too dark on dark surfaces, so use a lighter tint of it there */
.dark-style {
  --wk-brand-on-dark: #6ea8ff;
}
.dark-style .bg-label-primary,
.dark-style .stat-card .stat-icon.bg-label-primary {
  background-color: rgba(110, 168, 255, 0.16) !important;
  color: var(--wk-brand-on-dark) !important;
}
.dark-style .nav-pills .nav-link:not(.active):hover,
.dark-style .btn-ghost:hover,
.dark-style .dropdown-item.active,
.dark-style .dropdown-item:active {
  color: var(--wk-brand-on-dark);
}
.dark-style .layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner .menu-item.active > .menu-link:not(.menu-toggle),
.dark-style .layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active > .menu-link.menu-toggle {
  position: relative;
  background-color: rgba(110, 168, 255, 0.16) !important;
  color: #fff !important;
}
.dark-style .layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner .menu-item.active > .menu-link:not(.menu-toggle)::after,
.dark-style .layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active > .menu-link.menu-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background-color: var(--wk-brand-on-dark);
}
.dark-style .layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner .menu-item.active > .menu-link .menu-icon {
  color: var(--wk-brand-on-dark);
}

/* Sidebar toggle icon: brand blue is invisible on a dark sidebar (dark and dark-sidebar modes) */
.dark-style .app-brand .layout-menu-toggle i,
html[data-theme='theme-semi-dark'] .app-brand .layout-menu-toggle i {
  color: #6ea8ff;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  .stat-card .stat-arrow {
    transition: none;
  }
  a.card:hover {
    transform: none;
  }
}
