/* MindScribe - Custom Styles */

/* Admin pagination styling */
.card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  background-color: #f8f9fa;
  padding: 1rem;
}

/* Pagination visibility */
#usersPagination,
#feedbackPagination {
  display: block !important;
}

/* Table sorting styles */
.sortable {
  user-select: none;
  position: relative;
}

.sort-icon {
  font-size: 0.8rem;
  opacity: 0.3;
  transition: opacity 0.2s ease;
  margin-left: 0.5rem;
}

.sortable:hover .sort-icon {
  opacity: 0.7;
}

.sortable.sort-asc .sort-icon {
  opacity: 1;
}

.sortable.sort-asc .sort-icon::before {
  content: "\f145"; /* chevron-up */
}

.sortable.sort-desc .sort-icon {
  opacity: 1;
}

.sortable.sort-desc .sort-icon::before {
  content: "\f144"; /* chevron-down */
}

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

.card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
}

.card-header {
  border-radius: 10px 10px 0 0 !important;
  font-weight: 600;
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

textarea.form-control {
  min-height: 100px;
}

.btn {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
}

.btn-primary {
  background-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

.test-item {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.test-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.test-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.test-item-title {
  font-weight: 600;
  margin-bottom: 0;
}

.test-item-content {
  margin-top: 10px;
}

.report-content {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Report heading styles with clear hierarchy */
.report-content h1,
.report-content h2,
.report-content h3,
.report-content h4,
.report-heading-1,
.report-heading-2,
.report-heading-3,
.report-heading-4 {
  color: #0d6efd;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.report-content h1,
.report-heading-1 {
  font-size: 2.2rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  color: #0b5ed7;
}

.report-content h2,
.report-heading-2 {
  font-size: 1.8rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.3rem;
  margin-top: 1.8rem;
}

.report-content h3,
.report-heading-3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.report-content h4,
.report-heading-4 {
  font-size: 1.3rem;
  color: #495057;
  margin-top: 1.2rem;
}

.report-content p,
.report-paragraph {
  margin-bottom: 1rem;
  text-align: justify;
}

.report-content ul,
.report-list {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.report-content li {
  margin-bottom: 0.5rem;
}

/* Bold and italic text in reports */
.report-content strong {
  font-weight: 600;
}

.report-content em {
  font-style: italic;
}

.footer {
  border-top: 1px solid #dee2e6;
}

/* File upload styling */
.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-label {
  display: block;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background-color: #e9ecef;
}

.file-upload-input {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-name {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #6c757d;
  word-break: break-all;
}

/* Manual input toggle */
.manual-input-toggle {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #0d6efd;
  cursor: pointer;
  text-decoration: underline;
}

/* Loading spinner */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* Input groups with textareas and submit/edit buttons */
.input-group {
  position: relative;
}

.input-group textarea {
  resize: vertical;
}

/* Text improvement modal */
#originalTextDisplay,
#improvedTextDisplay {
  min-height: 100px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: inherit;
}

#improvedTextDisplay {
  background-color: #f8f9fa;
  border-left: 4px solid #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 15px;
  }

  .test-item {
    padding: 10px;
  }
}
