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

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

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

.app-brand-logo.demo svg {
  width: 30px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.25rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.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: 1.25rem !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: 300px;
    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: 1.25rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1.25rem;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 70px;
  background: #ffffff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 0 6px;
}

/* NAV ITEM */
.mobile-bottom-nav .nav-item {
  flex: 1;
  text-decoration: none;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  transition: .25s;
}

.mobile-bottom-nav .nav-item i {
  font-size: 21px;
  line-height: 1;
  transition: .25s;
}

/* 🔥 HOVER EFFECT */
.mobile-bottom-nav .nav-item:hover {
  color: #ff6b00;
  font-weight: 600;
}

.mobile-bottom-nav .nav-item:hover i {
  transform: translateY(-2px);
}

/* ACTIVE */
.mobile-bottom-nav .nav-item.active {
  color: #ff6b00;
  font-weight: 600;
  transform: translateY(-2px);
}

/* CENTER ADD BUTTON */
.mobile-bottom-nav .nav-add {
  margin-top: -22px;
}

.mobile-bottom-nav .nav-add .add-btn {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg,#ff6b00,#ff8c1a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(255,107,0,0.45);
  margin-bottom: 2px;
  transition: .25s;
}

.mobile-bottom-nav .nav-add .add-btn:hover {
  transform: scale(.92);
}

.mobile-bottom-nav .nav-add .add-btn i {
  color: #fff;
  font-size: 26px;
}

.mobile-bottom-nav .nav-add span {
  margin-top: 2px;
  color: #ff6b00;
  font-weight: 600;
}

/* MOBILE LAYOUT FIX */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 85px;
    background: #f5f7fb;
  }

  #layout-menu {
    display: none !important;
  }

  .layout-page {
    margin-left: 0 !important;
  }

  #layout-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
  }
}

.modal-dialog-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 86px; /* pushes modal above bottom nav */
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  z-index: 1060;
}

.reports-modal-content {
  border: none;
  border-radius: 24px 24px 20px 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  background: #fff;
}

.reports-modal-header {
  padding: 16px 18px 10px;
  background: #fff;
}

.reports-modal-body {
  padding: 14px 16px 22px;
  padding-bottom: 28px; /* extra bottom space */
  max-height: 58vh; /* smaller so it won’t hit nav */
  overflow-y: auto;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.report-card-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: 18px;
  padding: 14px 15px;
  transition: all 0.22s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.report-card-btn:hover {
  background: #fff7f2;
  border-color: #ffd7bd;
  transform: translateY(-1px);
}

.report-card-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b00, #ff8c1a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(255,107,0,0.22);
}

.report-card-icon i {
  color: #fff;
  font-size: 22px;
}

.report-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.report-card-title {
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.report-card-subtitle {
  color: #6b7280;
  font-size: 12px;
  margin-top: 3px;
}

.reports-modal-body::-webkit-scrollbar {
  width: 6px;
}

.reports-modal-body::-webkit-scrollbar-thumb {
  background: #d6d6d6;
  border-radius: 10px;
}

@media (min-width: 576px) {
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991.98px) {
  .modal.fade .modal-dialog-bottom {
    transform: translateY(20px);
    transition: transform .25s ease-out, opacity .25s ease-out;
    opacity: 0;
  }

  .modal.show .modal-dialog-bottom {
    transform: translateY(0);
    opacity: 1;
  }
}

.settings-shortcut {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7f2;
  color: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.settings-shortcut i {
  font-size: 22px;
}

.settings-shortcut:hover {
  background: #ff6b00;
  color: #fff;
  transform: rotate(20deg);
}

@media (max-width: 991.98px) {
  .settings-shortcut {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .settings-shortcut i {
    font-size: 20px;
  }
}