/* Additions injected for sprint board + ultra-minimalist dark */

/* Kill cards/borders/bubbles globally */
.card { background: transparent !important; border: none !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.app-shell { max-width: 1100px; }
.intro:after { content: ""; display: block; clear: both; }

/* Burger + slide-in menu */
.burger { border: none; background: transparent; display: inline-flex; flex-direction: column; gap: 5px; padding: 10px 8px; margin-left: auto; }
.burger span { width: 18px; height: 2px; background: rgba(233,236,255,0.8); border-radius: 2px; }

.tab-nav { display:flex; flex-wrap: nowrap; gap: 4px; }

/* Default: hide menu off-canvas */
#side-menu { position: fixed; top: 0; left: 0; height: 100vh; width: 220px; padding: 78px 14px 14px 14px; background: rgba(11,15,25,0.96); transform: translateX(-105%); transition: transform 160ms ease; z-index: 1000; }
body.menu-open #side-menu { transform: translateX(0); }

/* Dim page when menu open */
body.menu-open .app-shell { filter: blur(0.2px); }

.tab-btn { border: none !important; background: transparent !important; box-shadow: none !important; padding: 10px 8px !important; border-radius: 0 !important; opacity: 0.75; text-align: left; width: 100%; }
.tab-btn.active { opacity: 1; }

/* Borderless buttons */
button.ghost, .ghost { border: none !important; background: transparent !important; box-shadow: none !important; }
button.ghost:hover { background: rgba(255,255,255,0.04) !important; }

/* Remove pill/bubble styling */
.pill-list li { background: transparent !important; border: none !important; box-shadow: none !important; padding-left: 0 !important; }

/* Remove input outlines/borders completely */
.ticket-input { border: none !important; border-bottom: none !important; padding: 10px 0 !important; }
.ticket-input:focus { outline: none !important; }

/* Remove lane/ticket borders */
.lane, .ticket, .archive-item { border: none !important; background: transparent !important; }
.lane-head { border-bottom: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.lane-body { padding-left: 0 !important; padding-right: 0 !important; }

/* Make sprint board tighter */
.sprint-board { gap: 20px; }
.lane-count { background: transparent !important; }

/* Calendar: compact month grid (no scroll) */
.gym-calendar { max-height: none !important; overflow: visible !important; }
.gym-grid { gap: 6px !important; }
.gym-cell { border: none !important; border-radius: 0 !important; background: transparent !important; height: 34px !important; }
.gym-cell.today { outline: none !important; }
.gym-cell.selected { box-shadow: none !important; }
.gym-day-num { font-size: 12px !important; }
.gym-dot { display:none !important; }

/* Layout: left menu on desktop */
@media (min-width: 900px) {
  header { display:flex; align-items:flex-start; gap: 28px; }
  .brand { flex: 1; }
  .top-actions { margin-left: 0; }
  .tab-nav { flex-direction: column; align-items: flex-start; padding-top: 10px; min-width: 160px; }
  main { margin-left: 0; }
}

/* Mobile: keep nav as compact wrap */
@media (max-width: 899px) {
  .tab-nav { flex-wrap: wrap; }
}


.profile { display: block; }
.profile-left { float: left; margin: 4px 16px 10px 0; display:flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.profile-avatar { width: 84px; height: 84px; border-radius: 12px; border: none !important; }
.profile-meta h2 { margin: 0 0 6px 0; }
.chat-cta { padding: 8px 10px; opacity: 0.85; }
.plus-cta { display:flex; align-items:center; gap: 10px; margin-top: 14px; border: none; background: transparent; padding: 10px 0; font-weight: 700; }
.plus-cta .plus { width: 34px; height: 34px; border-radius: 999px; background: rgba(124,92,255,0.95); color: #0b0f19; display:inline-flex; align-items:center; justify-content:center; font-size: 22px; line-height: 0; }

.board-header { display:flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.board-actions { display:flex; gap: 8px; }

.ticket-form { display:flex; gap: 10px; margin-top: 14px; }
.ticket-input { flex: 1; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.10); color: #e9ecff; border-radius: 0; padding: 10px 4px; outline: none; }
.ticket-input:focus { border-bottom-color: rgba(124,92,255,0.85); box-shadow: none; }

.primary { background: rgba(124,92,255,0.90); border: none; color: #0b0f19; font-weight: 700; border-radius: 10px; padding: 10px 14px; }

.sprint-board { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.lane { background: transparent; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.lane-head { display:flex; justify-content: space-between; align-items:center; padding: 10px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.lane-head h3 { margin:0; font-size: 14px; letter-spacing: 0.4px; }
.lane-count { font-size: 12px; opacity: 0.8; background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 999px; }
.lane-body { padding: 12px; display:flex; flex-direction: column; gap: 10px; min-height: 180px; }

.ticket { background: transparent; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 10px; }
.ticket-top { display:flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ticket h4 { margin: 0; font-size: 13px; }
.ticket p { margin: 8px 0 0 0; opacity: 0.85; font-size: 12px; }
.ticket-meta { font-size: 11px; opacity: 0.55; white-space: nowrap; }
.ticket-actions { display:flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ghost.mini { padding: 6px 10px; border-radius: 999px; font-size: 12px; }

.archive-list { display:flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.archive-item { display:flex; justify-content: space-between; gap: 12px; background: transparent; border: 1px solid rgba(255,255,255,0.06); padding: 10px 12px; border-radius: 10px; }
.archive-item span { opacity: 0.6; font-size: 12px; }

/* Make the calendar feel less endless */
.gym-layout { grid-template-columns: 1.1fr 0.9fr; }
.gym-calendar { max-height: 420px; overflow: auto; }

.top-actions { display:flex; justify-content:flex-end; margin-left:auto; }

@media (max-width: 900px) {
  .sprint-board { grid-template-columns: 1fr; }
  .ticket-form { flex-direction: column; }
  .gym-layout { grid-template-columns: 1fr; }
  .profile { flex-direction: column; }
}

/* -------------------- School Comms -------------------- */

.school-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.school-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.school-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem;
}

.school-filters .ghost.active {
  border-color: rgba(108, 99, 255, 0.65);
  background: rgba(108, 99, 255, 0.16);
}

.school-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}

.school-section h3 {
  margin: 1rem 0 0.75rem;
}

.school-cards {
  display: grid;
  gap: 0.75rem;
}

.school-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.95rem;
  font-size: 0.98rem;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.school-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(233,236,255,0.7);
}

.school-card h4 {
  margin: 0.25rem 0 0.35rem;
}

.school-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.codebox {
  margin-top: 0.5rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  overflow: auto;
  max-height: 260px;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.school-card a {
  overflow-wrap: anywhere;
}

.pdf-viewer {
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
}

.pdf-toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: rgba(11,15,25,0.96);
  z-index: 2;
}

.pdf-pages {
  transform-origin: top left;
}
