html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px; /* Default bottom margin for footer */
  display: flex; /* Added */
  flex-direction: column; /* Added */
  min-height: 100vh; /* Added */
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Added to make main content area take up available space */
.container-fluid {
  flex-grow: 1;
}

/* Styles for aiEssayanalysis.cshtml to ensure it uses full height if needed */
/* You might want to scope this further if it affects other pages undesirably */
.ai-essay-analysis-page-container {
  display: flex;
  flex-direction: column;
  height: 100%; /* Or calc(100vh - header_height - footer_height) if fixed header/footer */
}

.ai-essay-analysis-main-content {
  flex-grow: 1;
  overflow-y: auto; /* If content might overflow */
}

/* Layout styles (moved from _Layout.cshtml.css to remove CSS isolation/obfuscation) */
a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Step highlighting styles */
.step-correct {
  border: 2px solid #28a745 !important;
  background-color: rgba(40, 167, 69, 0.1) !important;
}

.step-wrong {
  border: 2px solid #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.1) !important;
}

.step-partial {
  border: 2px solid #ffc107 !important;
  background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Part group highlighting styles */
.answer-part-group.part-correct {
  border: 2px solid #28a745 !important;
  background-color: rgba(40, 167, 69, 0.05) !important;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.answer-part-group.part-partial {
  border: 2px solid #ffc107 !important;
  background-color: rgba(255, 193, 7, 0.05) !important;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

.answer-part-group.part-incorrect {
  border: 2px solid #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.05) !important;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

.answer-part-group.part-correct .answer-part-label::before {
  content: "✅ ";
  color: #28a745;
}

.answer-part-group.part-partial .answer-part-label::before {
  content: "⚠️ ";
  color: #ffc107;
}

.answer-part-group.part-incorrect .answer-part-label::before {
  content: "❌ ";
  color: #dc3545;
}
