/* =========================
   LAYOUT.CSS
   Desktop structure only
   NO mobile rules here
   ========================= */

/* ---------- MAIN CONTAINER ---------- */


.container {
  width: 800px;
  margin: 0px auto; /* 5px top/bottom, auto left/right */
  padding: var(--space-md);
  background: white;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ---------- TOP HEADER ---------- */
.top-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.site-logo {
  height: 60px;
  width: auto;
}

/* ---------- TITLE ---------- */
.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #073557;
}

/* ---------- TOOLBAR ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: nowrap;
}

.toolbar .left,
.toolbar .right {
  display: flex;
  align-items: center;
}

.toolbar a {
  margin-right: 15px;
  text-decoration: none;
  font-weight: 600;
  color: #333;
}

.toolbar a:hover {
  text-decoration: underline;
}

/* ---------- AUTH AREA ---------- */
.auth-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.user-greeting {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- ICONS ---------- */
.icon-btn {
  width: 25px;
  height: 25px;
  cursor: pointer;
  margin-left: 10px;
}

/* ---------- LOGOUT ---------- */
#logoutBtn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: #f44336;
  color: white;
  cursor: pointer;
  font-size: 12px;
  height: 28px;
  white-space: nowrap;
  flex-shrink: 0;
  display: none;
}

/* ---------- SUBCONTAINER ---------- */
.subcontainer {
  margin-top: 5px;
  padding: 0;
  background: white;
}

/* ================= TOP CONTROLS: Number of Problems/Include Answer Toggle ================= */

.top-controls {
  display: flex;
  justify-content: center;
  align-items: center;
 
}

/* ================= ANSWER TOGGLE ALIGNMENT ================= */


/* Align checkbox perfectly with text */
.answer-toggle {
    transform: translateY(1px); /* tiny visual correction */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Slider layout refinement */
.slider-container {
    display: flex;
    align-items: center;
    width: 400px; 
}

/* Make slider value sit nicely beside slider */
.slider-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
}

/* Toggle alignment fix */
.answer-block {
  display: flex;
  flex-direction: column;   /* label above toggle */
  align-items: center;      /* center horizontally */
  justify-content: center;
  min-width: 120px;         /* helps mirror spacing feel consistent */
}

.answer-toggle {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* stack label above slider */
.slider-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* center the text properly */
.slider-label {
  text-align: center;

}
/* ---------- GRADE GRID ---------- */
.grade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------- SEO HEADER ---------- */
.seoHeader {
  margin-top: 5px;   
  cursor: pointer;
}

.seoHeader:hover {
  opacity: 0.85;
}

/* ---------- TOPIC RIGHT DEFAULT STATE ---------- */
.topic-right {
  display: none;
}

/* ensures JS toggle behaves consistently */
.topic-right.flex {
  display: flex;
}

/* ---------- LARGE SCREEN TWEAK ---------- */
@media (min-width: 1200px) {
  .container {
    max-width: 900px;
  }
}