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

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

.app-brand-logo-img {
  display: block;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

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

/* ! 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;
}

/*
* Modern form controls (admin)
******************************************************************************/
.form-select,
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #e4e6eb;
  background-color: #f8f9fb;
  color: #384551;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(67, 89, 113, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-select {
  cursor: pointer;
  padding-right: 2.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23696cff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-position: right 0.65rem center;
  background-size: 1.15rem;
}

.form-select:hover:not(:disabled),
.form-control:hover:not(:disabled):not([readonly]) {
  border-color: #c7cdd4;
  background-color: #fff;
}

.form-select:focus,
.form-control:focus {
  border-color: #696cff;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.14);
  outline: 0;
}

.form-select:disabled,
.form-control:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background-color: #eceef1;
}

.form-select-sm {
  border-radius: 0.4375rem;
  font-size: 0.8125rem;
  min-height: 2rem;
}

/* Rerun action chips (Blade panels) */
.rerun-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

.rerun-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #566a7f;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(67, 89, 113, 0.06);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
}

.rerun-action-btn:hover:not(:disabled) {
  border-color: #696cff;
  color: #696cff;
  box-shadow: 0 2px 8px rgba(105, 108, 255, 0.12);
  transform: translateY(-1px);
}

.rerun-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rerun-action-btn i {
  font-size: 1rem;
}

/*
* Custom select dropdown (.form-select enhanced by custom-select.js)
******************************************************************************/
.mi-select {
  position: relative;
  width: 100%;
}

.mi-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mi-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: #384551;
  text-align: left;
  background: #f8f9fb;
  border: 1px solid #e4e6eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(67, 89, 113, 0.06);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.mi-select-trigger:hover:not(:disabled) {
  border-color: #c7cdd4;
  background: #fff;
}

.mi-select--open .mi-select-trigger,
.mi-select-trigger:focus {
  border-color: #696cff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.14);
  outline: 0;
}

.mi-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mi-select-chevron {
  flex-shrink: 0;
  color: #696cff;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mi-select--open .mi-select-chevron {
  transform: rotate(180deg);
}

.mi-select-panel {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 0.625rem;
  box-shadow: 0 12px 28px rgba(67, 89, 113, 0.14), 0 0 0 1px rgba(105, 108, 255, 0.06);
}

.mi-select-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #566a7f;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0.4375rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.mi-select-option:hover:not(:disabled),
.mi-select-option--focus {
  background: rgba(105, 108, 255, 0.08);
  color: #696cff;
}

.mi-select-option--active {
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.14), rgba(144, 85, 253, 0.1));
  color: #696cff;
  font-weight: 600;
}

.mi-select-option--active::before {
  content: '✓';
  margin-right: 0.4rem;
  font-size: 0.75rem;
}

.mi-select-option--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mi-select--disabled .mi-select-trigger {
  opacity: 0.72;
  cursor: not-allowed;
  background: #eceef1;
}
