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

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

.app-brand-logo.demo svg {
  width: 38px;
  height: 20px;
}

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

.authentication-wrapper .app-brand-text.demo {
  text-transform: capitalize;
}

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

/* 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: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -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;
}

/* ============================================
   GrantFunds — Purple Palette Override
   Primary: #7c3aed  (Violet 700)
   ============================================ */
:root {
  --bs-primary:                #7c3aed;
  --bs-primary-rgb:            124, 58, 237;
  --bs-primary-text-emphasis:  #3b1a70;
  --bs-primary-bg-subtle:      #ede9fe;
  --bs-primary-border-subtle:  #c4b5fd;

  /* label/soft variants used throughout the theme */
  --bs-label-primary-bg:       rgba(124, 58, 237, 0.12);
  --bs-label-primary-color:    #7c3aed;
}

/* Buttons */
.btn-primary {
  --bs-btn-bg:           #7c3aed;
  --bs-btn-border-color: #7c3aed;
  --bs-btn-hover-bg:           #6d28d9;
  --bs-btn-hover-border-color: #6d28d9;
  --bs-btn-active-bg:          #5b21b6;
  --bs-btn-active-border-color:#5b21b6;
  --bs-btn-disabled-bg:        #7c3aed;
  --bs-btn-disabled-border-color: #7c3aed;
}
.btn-outline-primary {
  --bs-btn-color:         #7c3aed;
  --bs-btn-border-color:  #7c3aed;
  --bs-btn-hover-bg:      #7c3aed;
  --bs-btn-hover-border-color: #7c3aed;
  --bs-btn-active-bg:     #6d28d9;
  --bs-btn-active-border-color: #6d28d9;
}
.btn-white { background: #fff; color: #7c3aed; border: none; }
.btn-white:hover { background: #ede9fe; color: #6d28d9; }

/* Navbar active link */
.nav-link.active, .navbar .nav-link.active { color: #7c3aed !important; }

/* Badges */
.bg-primary  { background-color: #7c3aed !important; }
.text-primary { color: #7c3aed !important; }
.bg-label-primary { background-color: rgba(124,58,237,.12) !important; color: #7c3aed !important; }
.border-primary { border-color: #7c3aed !important; }

/* Form focus rings */
.form-control:focus, .form-select:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 0.2rem rgba(124,58,237,.18);
}
.form-check-input:checked {
  background-color: #7c3aed;
  border-color: #7c3aed;
}

/* Links */
a { color: #7c3aed; }
a:hover { color: #6d28d9; }

/* Auth & card accent */
.blockquote { border-left-color: #7c3aed; }
.article-content blockquote { border-left-color: #7c3aed !important; }

/* Landing navbar brand color */
.landing-navbar .app-brand-text { color: #7c3aed; }

/* Footer accent */
.footer-link:hover { color: #c4b5fd !important; }

/* Alert primary */
.alert-primary {
  --bs-alert-color:      #3b1a70;
  --bs-alert-bg:         #ede9fe;
  --bs-alert-border-color: #c4b5fd;
}

/* Breadcrumb active */
.breadcrumb-item.active { color: #7c3aed; }

