body {
  /* background: linear-gradient(120deg, #f6f8fc 0%, #eaf1fb 100%); */
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
  height: 64px;
  z-index: 1050;
  overflow: visible !important;
}
.container-fluid {
  overflow: visible !important;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: #fff;
  background: linear-gradient(120deg, #f6f8fc 0%, #eaf1fb 100%);
  border-right: 1px solid #e5e9f2;
  box-shadow: 0 0 18px 0 rgba(44, 62, 80, 0.04);
  padding-top: 80px;
  z-index: 1000;
  overflow: visible;
}

.sidebar .nav-link {
  color: #253858;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 8px;
  transition:
    background 0.2s,
    color 0.2s;
  font-size: 1rem;
}

.nav-item .nav .nav-link {
  font-weight: 500;
  border-radius: 0px;
  margin-bottom: 0px;
  transition:
    background 0.2s,
    color 0.2s;
  font-size: 1rem;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: #f0f4ff;
  color: #2563eb;
}
.main-content {
  margin-left: 240px;
  padding: 2.5rem 2rem 2rem 2rem;
  padding-top: 90px;
  transition: margin-left 0.3s;
}
.profile-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e3e6ef;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
}
.dropdown-menu {
  position: absolute !important;
  z-index: 2000 !important;
  min-width: 300px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.09);
  border: none;
  padding: 1rem;
  right: 0;
  left: auto;
  overflow: visible;
}
.account-details pre {
  background: #f7f9fb;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 0.95rem;
  color: #34495e;
}
.algrow-logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #2563eb;
  letter-spacing: 2px;
  text-decoration: none;
}
.sidebar .logo {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 2px;
}
.alert {
  border-radius: 12px;
  font-size: 1.05rem;
  border: none;
}

#plot1,
#plot2,
#plot3 {
  width: 100% !important;
  height: 400px !important;
  margin-bottom: 1rem;
}

.d-flex h4 {
  font-weight: 500;
  color: #333;
  margin-bottom: 0; /* Remove default margin */
}

.spinner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

#metrics-content.loading,
#plot1.loading,
#plot2.loading,
#plot3.loading {
  opacity: 0.6;
  pointer-events: none;
}

#metrics-content.loading .spinner-overlay,
#plot1.loading .spinner-overlay,
#plot2.loading .spinner-overlay,
#plot3.loading .spinner-overlay {
  display: block;
}

#metrics-content .spinner-overlay,
#plot1 .spinner-overlay,
#plot2 .spinner-overlay,
#plot3 .spinner-overlay {
  display: none;
}

.spinner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@media (max-width: 991.98px) {
  .main-content {
    margin-left: 0;
    padding-top: 90px;
  }
}
/* Responsive adjustments */
@media (min-width: 768px) {
  #plot1 {
    height: 300px; /* Adjust height for medium screens */
  }
}

@media (min-width: 992px) {
  #plot1 {
    height: 350px; /* Adjust height for large screens */
  }
}

@media (min-width: 1200px) {
  #plot1 {
    height: 400px; /* Full height for extra-large screens */
  }
}
