/* Base layout styles for Chess Trainer */

body {
  min-height: 100vh;
}

/* Make sure the floating menu sits above everything */
.menu-fab {
  z-index: 1050;
}

/* Settings menu positioning */
#settings-menu-btn {
  right: 0.5rem;
}

/* Top center section for drill pages */
.top-center-section {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100% - 8rem); /* Leave space for left/right menus */
}

.top-center-section .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.top-center-section .drill-info {
  font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* On desktop, center over board column instead of entire page */
@media (min-width: 992px) {
  .top-center-section {
    /* Will be positioned by JavaScript to center over board column */
    left: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 575.98px) {
  .top-center-section {
    max-width: calc(100% - 7rem);
    gap: 0.75rem;
  }
  .top-center-section .drill-info {
    font-size: 0.875rem;
  }
}

/* Prevent Bootstrap modal from adding padding-right to body (causes layout shift) */
body.modal-open {
  padding-right: 0 !important;
}
