/* ===========================
   BOTTOM BAR
   =========================== */
.bottom-bar,
#unitsBottomBar.bottom-bar,
#indexBottomBar.bottom-bar {
  width: 100%;
  background: #1a237e;
  color: #fff;
  display: flex;
  align-items: center;
  position: relative; /* Needed for absolute centering */
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 0;
  margin-top: 2rem;
  min-height: 56px;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  min-width: 180px;
  flex: 0 0 auto;
}
.bottom-bar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 1;
}
.bottom-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
  min-width: 150px;
  flex: 0 0 auto;
  margin-left: auto; /* ensures alignment to the far right */
}

.bottom-bar button,
#unitsBottomBar button,
#indexBottomBar button {
  background: #3949ab;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.bottom-bar button:hover:not(:disabled),
#unitsBottomBar button:hover:not(:disabled),
#indexBottomBar button:hover:not(:disabled) {
  background: #303f9f;
}

/*
#futureFeatureBtn {
  background: #757575;
  cursor: not-allowed;
  color: #eaeaea;
}
*/

/* mobile fix */
@media (max-width: 600px) {
  .bottom-bar,
  #unitsBottomBar.bottom-bar,
  #indexBottomBar.bottom-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;
    gap: 0.5rem;
    min-height: unset;
    position: static;
  }
  .bottom-bar-left,
  .bottom-bar-center,
  .bottom-bar-right {
    position: static !important;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: unset;
    width: 100%;
    margin-bottom: 0.5rem;
    left: unset !important;
    top: unset !important;
    transform: unset !important;
  }
  .bottom-bar button,
  #unitsBottomBar button,
  #indexBottomBar button {
    width: 100%;
    min-width: unset;
    margin-bottom: 0.5rem;
  }
}

/* === BOTTOM BAR DARK MODE ========== */
body.dark-mode .bottom-bar,
body.dark-mode #unitsBottomBar.bottom-bar,
body.dark-mode #indexBottomBar.bottom-bar {
  background: var(--bar-bg);
  color: var(--bar-text);
  border-top: 1px solid var(--box-border);
}
body.dark-mode .bottom-bar button,
body.dark-mode #unitsBottomBar button,
body.dark-mode #indexBottomBar button {
  background: #343456;
  color: #f0f0f0;
  border: 1px solid #44445a;
}
body.dark-mode .bottom-bar button:hover:not(:disabled),
body.dark-mode #unitsBottomBar button:hover:not(:disabled),
body.dark-mode #indexBottomBar button:hover:not(:disabled) {
  background: #44445a;
  color: #fff;
  border-color: #5d5d7a;
}
body.dark-mode #futureFeatureBtn {
  background: #444444;
  color: #757575;
}

/* === BOTTOM BAR LOWER TEXT ========= */
.footer-info {
  width: 100%;
  font-size: 0.89em;
  text-align: center;
  margin-top: 0px;
  color: #666;
  background: #1a237e;   /* matches bottom bar */
  color: #fff;           /* matches bottom bar text */
  padding: 0.25em 0;
}

.footer-dot {
  margin: 0 7px;
}

.tm-symbol {
  font-size: 0.7em;
  vertical-align: super;
}

.footer-copyright {
  margin-left: 10px;
}

/* Dark mode support */
body.dark-mode .footer-info {
  background: var(--bar-bg);
  color: var(--bar-text);
}
