/* Layout: fixed header and footer; only main content scrolls */
html, body {
  height: 100%;
}

body {
  overflow: hidden; /* prevent body scroll; main will handle it */
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030; /* above content */
  background-color: #ffffff;
}

.project-title-bar {
  /* background-color: #f8f9fa; */
  background-color: #012345;
  color: #ffffff;
}
.title-border-bottom {
  border-bottom: 2px solid #012345;
  padding: 3px 5px;
  font-weight: bold;
  text-align: center;
}

.title-divider {
  height: 1px;
  background: rgba(255,255,255,0.25);
  max-width: 640px;
  margin: 6px auto 0 auto;
}

.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  background-color: #012345 !important;
  color: #ffffff !important;
}

/* Compute content height as viewport minus header+titlebar and footer */
.app-content {
  position: fixed;
  top:110px;
  bottom: 38px;
  left: 0;
  right: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
}

/* Logo sizing */
.ajce-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Student avatar placeholder */
.student-avatar {
  width: 40px;
  height: 40px;
  background: #e9ecef;
  color: #495057;
  font-weight: 600;
}

/* Small devices adjustments */
@media (max-width: 575.98px) {
  .ajce-logo {
    height: 32px;
  }
  .student-avatar {
    display: none; /* hide photo on mobile */
  }
  .student-photo {
    display: none !important; /* ensure img also hidden on mobile */
  }
}
.student-photo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
