.test-url-modal .modal-dialog {
  max-width: 820px;
}
.rounded-r-5 {
  border-radius: 0.5rem 0 0 0.5rem !important;
}
.rounded-l-5 {
  border-radius: 0 0.5rem 0.5rem 0 !important;
}
.test-url-modal .modal-content {
  border: 1px solid #dedbe3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(28, 22, 33, 0.22);
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 920px);
}

.test-url-modal-sm .modal-dialog {
  max-width: 520px;
}

.test-url-modal-md .modal-dialog {
  max-width: 500px;
}

.test-url-modal .modal-content.test-url-dialog-shell {
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(28, 22, 33, 0.28);
}

.test-url-dialog-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  width: 100%;
  padding: 0.25rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.test-url-tab-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border: 1px solid transparent;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.test-url-tab-trigger:hover:not(.is-active) {
  color: #111827;
}

.test-url-tab-trigger.is-active {
  background: #fff;
  border-color: #9ca3af;
  color: #111827;
}

.test-url-dialog-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.test-url-dialog-btn-cancel:hover {
  background: #f9fafb;
}

.test-url-dialog-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: #5d3d68;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.test-url-dialog-btn-primary:hover {
  opacity: 0.92;
}

.test-url-dialog-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.test-url-modal-header {
  background: #5d3d68;
  color: #fff;
  padding: 18px 26px;
}

.test-url-modal-header h2,
.test-url-modal-header h3,
.test-url-modal-header h4 {
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.test-url-modal-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.2;
}

.test-url-close.btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.9;
}

.test-url-modal-tabs-strip {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #ebe8ef;
}

.test-url-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 26px;
}

.test-url-modal-footer {
  background: #f5f4f8;
  border-top: 1px solid #dfdbe4;
  padding: 14px 26px;
}

.test-url-modal-footer .summary {
  color: #7f7286;
  font-weight: 700;
  font-size: 28px;
}

.test-url-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2d3340;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
}

.test-url-subsection-title {
  color: #2d3340;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.test-url-segmented {
  display: flex;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.test-url-segment-btn {
  flex: 1;
  border: 0;
  background: #ffffff;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 16px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.test-url-segment-btn svg {
  flex-shrink: 0;
  color: currentColor;
}

.test-url-segment-btn.active {
  background: #fff;
  color: #5d3d68;
  box-shadow: inset 0 -3px 0 #5d3d68;
}

.test-url-segment-btn:not(.active):hover {
  background: #eceaf0;
  color: #374151;
}

.test-url-pill-switch {
  display: inline-flex;
  background: #f2f1f5;
  border: 1px solid #d8d4df;
  border-radius: 5px;
}

.test-url-pill-switch .btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 600;
  color: #716879;
}

.test-url-pill-switch .btn.active {
  background: #fff;
  color: #5d3d68;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.test-url-box {
  border: 1px solid #dfdbe4;
  border-radius: 6px;
  background: #fff;
}

.test-url-input,
.test-url-select,
.test-url-textarea {
  border-color: #cfd5de;
  border-radius: 8px;
  min-height: 30px;
  background-color: #ffffff;
  color: #2d3340;
  width: 100%;
}

.test-url-input:focus,
.test-url-select:focus,
.test-url-textarea:focus {
  border-color: #5d3d68;
  box-shadow: 0 0 0 0.2rem rgba(93, 61, 104, 0.16);
}

.test-url-select-wrap {
  position: relative;
}

.test-url-heading-icon {
  flex-shrink: 0;
}

.test-url-select-with-chevron {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'16'%20height%3D'16'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%3E%3Cpath%20d%3D'M3.25%206%20L8%2010.75%20L12.75%206'%20stroke%3D'%235D3D68'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 16px 16px;
}

.test-url-textarea {
  min-height: 120px;
}

.test-url-btn-primary {
  background: #5d3d68;
  border: 1px solid #5d3d68;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.test-url-btn-primary:hover,
.test-url-btn-primary:focus {
  background: #4e3258;
  border-color: #4e3258;
  color: #fff;
}

.test-url-btn-primary:disabled {
  background: #b4a7bb;
  border-color: #b4a7bb;
  color: #fff;
}

.test-url-btn-secondary {
  background: #fff;
  border: 1px solid #d2ccd9;
  color: #242a36;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.test-url-btn-secondary:hover,
.test-url-btn-secondary:focus {
  background: #f8f7fa;
  color: #242a36;
}

.test-url-note {
  color: #7f8796;
  font-size: 18px;
}

.test-url-muted {
  color: #7d7387;
}

.test-url-divider {
  border-top: 1px solid #e1dde7;
  margin: 18px 0;
}

.test-url-table-wrap {
  border: 1px solid #e0dde6;
  border-radius: 12px;
  overflow: hidden;
}

.test-url-table-wrap .fixed-height-table {
  max-height: 260px;
  overflow-y: auto;
}

.test-url-table {
  table-layout: fixed;
}

.test-url-table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.test-url-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.test-url-table tbody {
  display: block;
  max-height: calc(5 * 52px);
  overflow-y: auto;
  width: 100%;
}

.test-url-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.test-url-table-wrap thead th {
  background: #f7f6f9;
  color: #7a7387;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.test-url-level-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 999px;
  background: #eee8f2;
  color: #6f5d7b;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
}

.test-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #ece5f1;
  color: #6b5876;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
}

.test-url-chip button {
  border: 0;
  background: transparent;
  color: #8b7a97;
  font-weight: 700;
  line-height: 1;
}

.test-url-dropzone {
  border: 2px dashed #98a2b3;
  border-radius: 18px;
  background: #faf9fc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  display: block;
}

.test-url-dropzone--prompt {
  margin-bottom: 0;
}

.test-url-dropzone--selected {
  cursor: default;
  text-align: left;
  padding: 16px 18px;
  border-color: #c4b8cf;
  background: #fff;
}

.test-url-dropzone-selected-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-url-dropzone-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.test-url-selected-filename {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.test-url-dropzone-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.875rem;
}

.test-url-dropzone-link {
  color: #6b5876 !important;
  font-weight: 600;
  text-decoration: underline !important;
}

.test-url-dropzone-link:hover {
  color: #4a3d52 !important;
}

.test-url-dropzone-actions-sep {
  color: #98a2b3;
  user-select: none;
}

.test-url-template-row {
  border: 1px solid #dfdbe4;
  border-radius: 12px;
  background: #f8f7fa;
  padding: 14px 16px;
}

.test-url-teacher-dropdown {
  position: relative;
}

.test-url-teacher-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dbd6e1;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(31, 22, 39, 0.16);
  z-index: 1200;
}

.test-url-teacher-list {
  max-height: 220px;
  overflow-y: auto;
}

.test-url-teacher-item {
  padding: 12px 14px;
  border-top: 1px solid #f0edf4;
}

.test-url-teacher-item:first-child {
  border-top: 0;
}

.test-url-teacher-item:hover {
  background: #f8f6fb;
}

.test-url-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.test-url-table thead {
  background: #f5f4f8;
  border-bottom: 1px solid #dfdbe4;
}

.test-url-table tbody tr {
  border-bottom: 1px solid #ede8f0;
  transition: background-color 0.15s ease;
}

.test-url-table tbody tr:hover {
  background: #f9f8fb;
}

.test-url-table tbody td {
  color: #2d3340;
  padding: 4px 10px;
  font-size: 14px;
}

.test-url-table .form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  border-color: #dbd6e1;
}

.test-url-table .form-check-input:checked {
  background-color: #5d3d68;
  border-color: #5d3d68;
}

@media (max-width: 991.98px) {
  .test-url-modal .modal-dialog {
    margin: 0.75rem;
  }

  .test-url-modal-scroll {
    padding: 14px 14px;
  }

  .test-url-modal-header,
  .test-url-modal-footer {
    padding: 12px 14px;
  }
}
