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

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

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

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

/* ! 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;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !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;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    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;
}

/* Color Palette & Custom Fonts Integration
 * ========================================================================== */

@font-face {
  font-family: 'ROCKFORGE';
  src: url('/static/fonts/ROCKFORGE.woff2') format('woff2'),
       url('/static/fonts/ROCKFORGE.woff') format('woff'),
       url('/static/fonts/ROCKFORGE.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HEAVITAS';
  src: url('/static/fonts/HEAVITAS.woff2') format('woff2'),
       url('/static/fonts/HEAVITAS.woff') format('woff'),
       url('/static/fonts/HEAVITAS.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BATA';
  src: url('/static/fonts/BATA.woff2') format('woff2'),
       url('/static/fonts/BATA.woff') format('woff'),
       url('/static/fonts/BATA.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Palette Variables */
  --color-verde-lima: #B4F200;
  --color-turquesa: #00C1AA;
  --color-lila: #9767F9;
  --color-morado-oscuro: #5A2898;

  --color-verde-oscuro: #1A4331;
  --color-verde-desaturado: #3A867A;
  --color-verde-casi-negro: #121A16;
  --color-crema: #F5F1E6;
  --color-ocre-dorado: #C89B3C;

  --color-amarillo: #FFD400;
  --color-rosa: #FE92ED;
  --color-coral: #FF7765;
  --color-beige-claro: #FEEAC8;

  /* Bootstrap Theme Colors Overrides */
  --bs-primary: var(--color-lila);
  --bs-primary-rgb: 151, 103, 249;
  --bs-primary-text-emphasis: var(--color-morado-oscuro);
  --bs-primary-bg-subtle: #eae5fd;
  --bs-primary-border-subtle: #cfc3fa;

  --bs-secondary: var(--color-verde-desaturado);
  --bs-secondary-rgb: 58, 134, 122;
  --bs-secondary-text-emphasis: var(--color-verde-oscuro);
  --bs-secondary-bg-subtle: #f0f8f6;
  --bs-secondary-border-subtle: #d3ebe7;

  --bs-success: var(--color-turquesa);
  --bs-success-rgb: 0, 193, 170;
  --bs-success-text-emphasis: #005c51;
  --bs-success-bg-subtle: #e6fcf9;
  --bs-success-border-subtle: #bbf7ef;

  --bs-info: var(--color-turquesa);
  --bs-info-rgb: 0, 193, 170;

  --bs-warning: var(--color-amarillo);
  --bs-warning-rgb: 255, 212, 0;

  --bs-danger: var(--color-coral);
  --bs-danger-rgb: 255, 119, 101;

  --bs-dark: var(--color-verde-casi-negro);
  --bs-dark-rgb: 18, 26, 22;

  --bs-body-bg: #fdfcfa;
  --bs-body-color: var(--color-verde-casi-negro);
  --bs-heading-color: var(--color-verde-oscuro);

  /* Fonts Override */
  --bs-font-sans-serif: "Montserrat", "Public Sans", -apple-system, sans-serif !important;
  --bs-body-font-family: var(--bs-font-sans-serif) !important;
}

/* Headings Typography */
h1, .h1, h2, .h2, h3, .h3 {
  font-family: "HEAVITAS", "ROCKFORGE", "Montserrat", sans-serif !important;
}

h4, .h4, h5, .h5, h6, .h6 {
  font-family: "ROCKFORGE", "Montserrat", sans-serif !important;
}

/* Font classes for custom fonts usage */
.font-montserrat {
  font-family: 'Montserrat', sans-serif !important;
}
.font-rockforge {
  font-family: 'ROCKFORGE', sans-serif !important;
}
.font-heavitas {
  font-family: 'HEAVITAS', sans-serif !important;
}
.font-bata {
  font-family: 'BATA', sans-serif !important;
}

/* Color Classes (Background & Text) */
.bg-verde-lima { background-color: var(--color-verde-lima) !important; }
.text-verde-lima { color: var(--color-verde-lima) !important; }

.bg-turquesa { background-color: var(--color-turquesa) !important; }
.text-turquesa { color: var(--color-turquesa) !important; }

.bg-lila { background-color: var(--color-lila) !important; }
.text-lila { color: var(--color-lila) !important; }

.bg-morado-oscuro { background-color: var(--color-morado-oscuro) !important; }
.text-morado-oscuro { color: var(--color-morado-oscuro) !important; }

.bg-verde-oscuro { background-color: var(--color-verde-oscuro) !important; }
.text-verde-oscuro { color: var(--color-verde-oscuro) !important; }

.bg-verde-desaturado { background-color: var(--color-verde-desaturado) !important; }
.text-verde-desaturado { color: var(--color-verde-desaturado) !important; }

.bg-verde-casi-negro { background-color: var(--color-verde-casi-negro) !important; }
.text-verde-casi-negro { color: var(--color-verde-casi-negro) !important; }

.bg-crema { background-color: var(--color-crema) !important; }
.text-crema { color: var(--color-crema) !important; }

.bg-ocre-dorado { background-color: var(--color-ocre-dorado) !important; }
.text-ocre-dorado { color: var(--color-ocre-dorado) !important; }

.bg-amarillo { background-color: var(--color-amarillo) !important; }
.text-amarillo { color: var(--color-amarillo) !important; }

.bg-rosa { background-color: var(--color-rosa) !important; }
.text-rosa { color: var(--color-rosa) !important; }

.bg-coral { background-color: var(--color-coral) !important; }
.text-coral { color: var(--color-coral) !important; }

.bg-beige-claro { background-color: var(--color-beige-claro) !important; }
.text-beige-claro { color: var(--color-beige-claro) !important; }

/* Custom UI Polish & Enhancements */
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(135deg, var(--color-lila), var(--color-morado-oscuro)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(90, 40, 152, 0.3) !important;
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary) !important;
  --bs-btn-border-color: var(--bs-primary) !important;
  --bs-btn-hover-bg: #8555e1 !important;
  --bs-btn-hover-border-color: #7645d1 !important;
  --bs-btn-active-bg: #7645d1 !important;
  --bs-btn-active-border-color: #6737c1 !important;
}
