/* General Body and Typography */
body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: #333 !important;
  background-color: #f8f9fa !important;
}

p {
  text-align: center;
  margin-bottom: 10px;
}

em {
  font-style: italic;
}

/* --- Header --- */
.rssi-header {
  background-color: #1E5B96 !important;
  height: 50px;
  z-index: 1030;
}

.rssi-header .navbar-brand {
  font-size: 18px;
  line-height: 50px;
  padding-left: 15px;
  font-weight: bold;
  width: 500px;
  color: white !important;
}

.rssi-header .navbar-nav .nav-link {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

/* --- Layout --- */
.main-content {
  margin-left: 175px; /* Space for left sidebar */
  margin-right: 175px; /* Space for right sidebar */
  padding: 20px;
  margin-top: 50px; /* Space for header */
  width: calc(100% - 350px);
}

.main-content-full-width {
  width: calc(100% - 175px);
  margin-right: 0;
}

/* --- Left Sidebar --- */
.rssi-sidebar {
  position: fixed;
  top: 50px;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 0;
  width: 175px;
  background-color: #222d32;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 50px);
}

.sidebar-menu {
  padding: 0;
}

/* New styles for the main tracker group headers */
.sidebar-group .group-header {
  background-color: #1a2226;
  color: #fff;
  font-weight: bold;
  font-size: 12px !important;
  text-transform: uppercase;
  padding: 12px 15px;
  border-bottom: 1px solid #2c3b41;
  border-top: 1px solid #37484f;
  text-decoration: none;
}

.sidebar-group .group-header:hover {
  background-color: #1e282c;
  color: #fff;
}

/* Style the chevron icon */
.sidebar-group .group-header .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 10px;
  margin-top: 4px;
}

.sidebar-group .group-header[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(-180deg);
}

/* The collapsible area containing the sub-menu */
.sidebar-group .collapse {
  background-color: #2c3b41;
}

.sidebar-group .collapse .nav-link {
  color: #8aa4af;
  font-size: 11px !important;
  padding: 8px 15px 8px 25px; /* Indent sub-items */
}

.sidebar-group .collapse .nav-link:hover {
  color: #ffffff;
}

.sidebar-group .collapse .nav-link i,
.sidebar-group .collapsing .nav-link i {
  width: 20px;
  margin-right: 0px; /* Adjust this value to control the gap */
}

.sidebar-group .collapse .nav-link,
.sidebar-group .collapsing .nav-link {
  display: flex;
  align-items: center;
  color: #8aa4af;
  font-size: 12px !important;
  padding: 8px 15px 8px 25px;
  transition: none !important;
}

/* Dropdown sub-menus (RSSI Users, Advocacy) */
.sidebar-group .treeview > .nav-link {
  font-weight: 600;
  color: #b8c7ce;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-group .treeview-menu {
  display: none;
  list-style: none;
  padding-left: 15px; /* Further indent */
}

.sidebar-group .treeview.active > .treeview-menu {
  display: block;
}

.sidebar-group .treeview.active > .nav-link {
  color: #ffffff;
  background-color: #27343b;
}

.sidebar-group .treeview .right-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  margin-top: 4px;
}

.sidebar-group .treeview.active > .nav-link .right-icon {
  transform: rotate(-90deg);
}


/* --- Right Sidebar (Filters) --- */
#right-sidebar {
  position: fixed;
  top: 50px;
  right: 0;
  bottom: 0;
  width: 175px;
  overflow-y: auto;
  z-index: 1000;
  margin: 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 1px solid #ddd;
}

#right-sidebar h4 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
}

#right-sidebar label {
  font-size: 12px !important;
  font-weight: bold;
}

#right-sidebar select,
#right-sidebar option {
  font-size: 12px !important;
}

/* --- Tables --- */
th {
  background-color: #1E5B96 !important;
  color: white;
  padding: 10px;
  border: 1px solid #ddd !important;
}

th a {
  color: white !important;
}

th a:hover {
  color: white !important;
  text-decoration: none;
}

/* --- Pagination --- */
.pagination {
  justify-content: flex-end; /* Align to the right */
  margin-top: 20px;
}
.page-item .page-link {
  font-size: 12px;
  padding: 5px 10px;
}