/* Base font size: 0.875rem (14px) */

/* Page header */
.page-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0;
}

/* Test mode indicator */
body[data-mode="test"] .page-header,
body[data-mode="development"] .page-header {
  color: #0d6efd;
}

/* Card layouts */
.card {
  min-height: calc(100vh - 10rem);
}

.card-body {
  height: 100%;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.drop-zone:hover {
  border-color: #0d6efd;
  background: #e9ecef;
}

.drop-zone.drag-over {
  border-color: #0d6efd;
  background: #cfe2ff;
  transform: scale(1.02);
}

.drop-zone-icon {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 0.625rem;
  display: block;
}

.drop-zone-text {
  color: #495057;
  font-size: 0.875rem;
}

.drop-zone-subtext {
  color: #6c757d;
  font-size: 0.75rem;
  margin-top: 0.3125rem;
}

/* File selected */
.file-selected {
  background: #d1e7dd;
  border: 1px solid #198754;
  padding: 0.625rem 0.9375rem;
  border-radius: 0.375rem;
  margin: 0.625rem 0;
}

.file-selected-name {
  font-weight: 600;
  color: #0f5132;
  font-size: 0.875rem;
}

.file-selected-count {
  color: #0f5132;
  font-size: 0.75rem;
}

.file-selected-types {
  color: #0a58ca;
  font-size: 0.7rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: #6c757d;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3125rem;
}

.empty-state-text {
  font-size: 0.875rem;
}

.grade-badge-pass {
  background: #28a745;
  color: white;
}

.grade-badge-fail {
  background: #dc3545;
  color: white;
}

/* Detail view */
.detail-header {
  margin-bottom: 1rem;
}

.detail-header-title {
  display: inline;
  margin-right: 0.5rem;
  font-size: 1.125rem;
}

.detail-header-spacer {
  display: inline-block;
  margin: 0 0.5rem;
}

/* Section headers in submission view */
#submission_view h3 {
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0.75rem 0 0.375rem;
}

#submission_view h3:first-of-type {
  margin-top: 0;
}

/* Code/output blocks in submission view */
#submission_view pre {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Grade-related styling */
#submission_view pre.comment-field.grade-pass {
  border-color: #28a745;
}

#submission_view pre.comment-field.grade-fail {
  border-color: #dc3545;
}

/* Comment fields */
#submission_view pre.comment-field {
  background: white;

}

/* Submission code field */
pre.submission-code {
  max-height: 10rem;
}


/* Grade badges */
.grade-badge {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  margin-right: 0.25rem;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
}

.grade-badge:hover {
  opacity: 0.8;
  text-decoration: none;
  color: white;
}

.grade-badge:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Solution button */
.solution-btn {
  margin-top: 0.625rem;
}

/* Table */
.grading-table {
  width: 100%;
}

.grading-table-row {
  cursor: pointer;
}

.grading-table-link {
  font-weight: bold;
  text-decoration: none;
  font-size: 0.875rem;
}

.file-type-badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 500;
  text-transform: uppercase;
}

.file-type-badge-r,
.file-type-badge-qmd,
.file-type-badge-rmd {
  background: #cfe2ff;
  color: #084298;
}

.file-type-badge-py {
  background: #fff3cd;
  color: #664d03;
}

.file-type-badge-txt,
.file-type-badge-md {
  background: #e9ecef;
  color: #495057;
}

.grading-table-row:focus {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
}

.text-pass,
.text-pass i,
.text-pass .fa {
  color: #28a745;
}

.text-fail,
.text-fail i,
.text-fail .fa {
  color: #dc3545;
}

/* Solution modal */
.solution-modal-pre {
  max-height: 25rem;
  overflow-y: auto;
}

