:root {
  --embraer-blue: #0067B1;
  --embraer-text: #1E3137;
  --embraer-bg-light: #EFF4F7;
  --bs-primary: var(--embraer-blue);
  --bs-primary-rgb: 0, 103, 177;
  --bs-link-color: var(--embraer-blue);
  --bs-link-hover-color: #004a80;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--embraer-bg-light);
  color: var(--embraer-text);
  display: flex;
  min-height: 100vh;
}

/* Sidebar Base Styles */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background-color: #fff;
  border-right: 1px solid #dee2e6;
  padding: 1.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  z-index: 1040;
}

.sidebar .nav-link {
  font-weight: 500;
  color: var(--embraer-text);
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.sidebar .nav-link:hover {
  background-color: var(--embraer-bg-light);
  color: var(--embraer-blue);
}

.sidebar .nav-link.active {
  background-color: var(--embraer-bg-light);
  color: var(--embraer-blue);
  font-weight: 600;
}

.sidebar .nav-link .bi {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  vertical-align: text-bottom;
}

.sidebar-header {
  padding: 0 1rem 1.5rem 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--embraer-blue);
}

/* Content Wrapper */
.content-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 100vh; /* Fix height to allow internal scroll if needed */
}

.content {
  padding: 2rem;
  flex-grow: 1;
  overflow-y: auto;
}

.card {
  border: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

/* Mobile Overlay (Hidden by default) */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1030;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* Hide off-screen */
    height: 100%;
    transition: left 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }

  .sidebar.show {
    left: 0;
  }

  .mobile-overlay.show {
    display: block;
  }

  .content {
    padding: 1rem; /* Less padding on mobile */
  }
}