/* Educa Online LTDA - Master Stylesheet (Bootstrap 5.3+ Native Theme Support) */

:root {
  --educa-sidebar-width: 260px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.educa-wrapper {
  display: flex;
  min-height: 100vh;
}

.educa-sidebar {
  width: var(--educa-sidebar-width);
  flex-shrink: 0;
  border-right: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  transition: transform 0.25s ease-in-out;
}

.educa-sidebar .nav-link {
  color: var(--bs-body-color);
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.educa-sidebar .nav-link:hover {
  background-color: var(--bs-tertiary-bg);
}

.educa-sidebar .nav-link.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.educa-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bs-tertiary-bg);
}

.educa-topbar {
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.educa-kpi-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  transition: transform 0.15s ease;
}

.educa-kpi-card:hover {
  transform: translateY(-2px);
}

.educa-toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1090;
}

@media (max-width: 991.98px) {
  .educa-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    transform: translateX(-100%);
  }

  .educa-sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
  }
}
