.main-input-box {
  font-family: 'Asana Math', serif;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 200px;
  padding: 24px 24px 24px 24px;
  font-size: 16px;
  line-height: 1.35;
  box-sizing: border-box;
  resize: none;
  margin-bottom: 10px;
  border: 1px solid #cccccc;
  outline: none;
  cursor: text;

  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  word-break: normal;
  overflow-wrap: normal;
  scrollbar-width: thin;
  scroll-padding-left: 24px;
  scroll-padding-right: 24px;
}

.main-input-box *,
.input-container .main-input-box * {
  box-sizing: border-box;
  white-space: nowrap;
  max-width: none;
  font-family: inherit;
}

.main-input-box::before,
.main-input-box::after,
.main-input-box:empty::before,
.main-input-box:empty::after,
.input-container .main-input-box:empty::before,
.input-container .main-input-box:empty::after,
.input-container .main-input-box:not(.select-input):empty::before,
.input-container .main-input-box:not(.select-input):empty::after,
.input-container .main-input-box.has-prefix::before,
.input-container .main-input-box:not(.select-input).has-prefix::before {
  content: none;
  display: none;
}

.main-input-box[data-empty="true"]:not(:focus):not(:focus-within)::before {
  content: attr(data-placeholder);
  display: block;
  position: absolute;
  left: 24px;
  top: 24px;
  transform: none;
  color: #9a9a9a;
  opacity: 0.8;
  pointer-events: none;
  white-space: nowrap;
  font: inherit;
  line-height: inherit;
  z-index: 0;
}

.main-input-box:focus::before,
.main-input-box:focus-within::before,
.main-input-box[data-empty="false"]::before {
  content: none !important;
  display: none !important;
}

.main-input-box .math-line {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  min-width: max-content;
  line-height: inherit;
  vertical-align: top;
}

.main-input-box .math-line > * {
  flex: 0 0 auto;
}

.main-input-box::-webkit-scrollbar {
  height: 6px;
}

.main-input-box::-webkit-scrollbar-track {
  background: #f2f2f2;
}

.main-input-box::-webkit-scrollbar-thumb {
  background: #c7c7c7;
}

.main-input-box::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrap {
  flex: 1;
}

.main-content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 80px;
}

.content-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  gap: 20px;
}

.middle-section {
  display: flex;
  flex-direction: column;
  width: 60%;
  min-width: 0;
  gap: 10px;
}

.directory {
  font-size: 14px;
  color: #0645AD;
  cursor: pointer;
}

.directory a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

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

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.main-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: -5px;
}

.published-date {
  font-size: 12px;
  color: black;
}

.main-paragraph {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin: 20px 0;
}

.input-container {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.solve-button {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.solve-button:hover {
  background-color: #0056b3;
}

.answer-box {
  margin-top: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #333;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90px;
  box-sizing: border-box;
}

.answer-box .final-answer-box {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.steps-buttons {
  display: flex;
  gap: 10px;
  margin-top: 0px;
}

.steps-buttons.hidden {
  display: none !important;
}

.step-button {
  flex: 1;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.step-button:hover {
  background-color: #0056b3;
}

.login-please-text {
  color: #555;
  text-align: center;
  margin-top: 0px;
  font-size: 14px;
  font-weight: bold;
}

.login-please-text a {
  color: blue;
  text-decoration: none;
}

.login-please-text a:hover {
  text-decoration: underline;
}

.step-info {
  text-align: center;
  font-size: 12px;
  margin: 5px 0;
}

.step-explanation {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
  text-align: left;
  background-color: transparent;
}

.step-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  padding: 20px 18px;
  border-radius: 5px;
  margin: 20px 0;
  min-height: 90px;
  font-size: 14px;
}

.step-answer > * {
  max-width: 100%;
}

.step-layout {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-center-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step-final-answer-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.final-answer {
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  text-align: left;
}

#steps-container {
  border-radius: 5px;
  margin-top: 0px;
  text-align: left;
}

.step {
  margin-top: 20px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
  background-color: transparent;
}

.step-divider {
  border-top: 1px solid #ddd;
  margin: 18px 0;
}

.guide {
  margin: 10px 0 20px 0;
}

.guide-content {
  position: relative;
}

.guide[data-collapsed="true"] .guide-content {
  max-height: 160px;
  overflow: hidden;
}

.guide[data-collapsed="true"] .guide-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.guide-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.guide-toggle {
  border: none;
  background: transparent;
  color: #007BFF;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}

.guide-toggle:hover {
  text-decoration: underline;
}

.guide-content ol,
.guide-content ul {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin: 10px 0 16px 0;
  padding-left: 18px;
}

.guide-content li {
  margin: 6px 0;
}

.guide-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #222;
  margin: 14px 0 6px 0;
}

.guide-content .guide-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #222;
  margin: 16px 0 10px 0;
}

.bottom-bar {
  width: 100%;
  height: 300px;
  margin-top: 20px;
}

.step-formula {
  background: transparent;
}

.step-formula .step-answer {
  background: #fff7cc;
  border: 1px solid #e6d36a;
  border-radius: 12px;
  padding: 18px 16px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formula-equation {
  font-weight: 700;
  font-size: 1.1em;
}