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

.table-responsive tr.cursor-pointer:hover{
    background-color: #f5f5f5;
}

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

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

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

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

#session_card #icons-container .icon-card{
  border: solid 2px;
}

#session_card #icons-container .icon-card.active i{
  color: inherit !important;
}

.chart-legend {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* Espacio entre la leyenda y el gráfico */
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 15px; /* Espacio entre los elementos de la leyenda */
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 50%; /* Hace el color circular */
}

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

.html-ace-editor{
  min-height: 500px;
  line-height: 1.5;
  border:solid 8px #2F3129;
  background: #2F3129;
}

.bg-menu-theme .menu-sub > .html-visible-item > .menu-link::before {
  content: "\ea9a" !important;
  font-size: 1rem !important;
}

.bg-menu-theme .menu-sub > .html-invisible-item > .menu-link::before {
  content: "\ecf0" !important;
  font-size: 1rem !important;
}

.menu-sub .menu-header{
  padding: 1.25rem 1.85rem 0rem !important;
}

.menu-sub .title-link{
  padding-left: 1rem !important;
}

.menu-sub .title-link::before{
  display:none;
}

.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: 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;
}

/* === GeoPol UX Improvements === */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid #0381ff;
  outline-offset: 2px;
}

/* Dark mode contrast fixes */
.dark-style .card {
  background-color: #0a2a52;
}

.dark-style .text-muted {
  color: #78bcff !important;
}

/* Empty state component */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state .empty-state-icon {
  font-size: 3rem;
  color: #0381ff;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state .empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #002e70;
  margin-bottom: 0.5rem;
}

.dark-style .empty-state .empty-state-title {
  color: #c5e5ff;
}

.empty-state .empty-state-text {
  color: #4a8a87;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.empty-state .btn {
  min-width: 200px;
}

/* Quick actions bar */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.quick-actions .btn {
  border-radius: 50rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive KPIs */
@media (max-width: 575.98px) {
  .kpi-card .card-body {
    padding: 1rem;
  }
  .kpi-value {
    font-size: 1.5rem;
  }
  .chart-mobile-hide {
    display: none;
  }
  .chart-mobile-summary {
    display: block;
  }
}

@media (min-width: 576px) {
  .chart-mobile-summary {
    display: none;
  }
}

/* Loading overlay */
.geopol-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 46, 112, 0.12);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

/* Gamification streak badge */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.streak-badge-active {
  background: linear-gradient(135deg, #008a62, #0381ff);
  color: #fff;
}

/* Touch targets minimum 44x44px */
.menu-inner .menu-link {
  min-height: 44px;
}

/* Logo visibility in dark mode */
.app-brand-logo img {
  width: 32px;
  height: 24px;
  object-fit: contain;
}

.dark-style .app-brand-logo img {
  filter: brightness(0) invert(1);
}
