.page-content {
  padding: calc(45px + 1.5rem) calc(1.5rem * .5) 45px calc(1.5rem * .5);
}

.page-title-box {
  border-bottom: 1px solid #d3d3d3;
  border-top: 1px solid #d3d3d3;
  margin: 14px -1.5rem .5rem -1.5rem;
}

.auth-one-bg .bg-overlay {
  opacity: .95;
}

.auth-office {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgb(16 53 96 / 60%);
}

.auth-office h1,
.auth-office h2,
.auth-office h3,
.auth-office h4 {
  color: #fff;
  margin: 2px 0;
  text-align: center;
}

.auth-office h4 {
  font-size: 14px;
}

.auth-office h3 {
  font-size: 18px;
}

.auth-office h1 {
  font-size: 22px;
}

.login-notices {
  color: #fff;
}

.login-notices p {
  font-size: 13.5px;
  margin-bottom: 7px;
  text-shadow: 0px 0px 25px #000;
}

.custom-alert {
  position: fixed;
  right: 15px;
  min-width: 25%;
  z-index: 99999;
}

#back-to-top {
  bottom: 10px;
}

.office-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 1px;
  border: 2px solid #ccc;
}

.table,
.table th {
  border: 1px solid rgba(108, 122, 137, 0.5);
}

table thead tr th,
table thead tr td {
  text-align: center;
  font-size: 12px;
}

table tbody tr th,
table tbody tr td,
table tbody tr td a {
  font-size: 12px !important;
}

table tbody tr td a {
  padding: 5px !important;
}

.table>:not(caption)>*>* {
  padding: 0.5rem 0.25rem;
}

.tr-pointer tr {
  cursor: pointer;
}

.text-bold {
  font-weight: 600;
}

.table-responsive,
.table-responsive .table {
  min-width: 100%;
}

.display-block,
.btn-block {
  display: block;
  width: 100%;
}

.btn-xs {
  padding: 0.15rem !important;
}

@media print {
  .no-print {
    display: none;
  }
}

.text-link {
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}


.bg-danger-light {
  background-color: #ffd1d1 !important;
}

.bg-incomplete {
  background-color: #ffd095 !important;
}


.display-none,
.onlyExcel {
  display: none;
}

.student-block-wrapper {
  background: #f9f9fc;
  /* Soft off-white */
  border: 2px solid #405189;
  /* Dark blue border */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(64, 81, 137, 0.1);
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #405189;
  font-weight: 600;
  font-size: 1.2rem;
}

.student-block-wrapper:hover {
  background: #f0f2f8;
  /* Slightly darker off-white on hover */
  box-shadow: 0 10px 25px rgba(64, 81, 137, 0.15);
  transform: translateY(-4px);
}

.student-block-label {
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #405189;
}

.student-block-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.student-action-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.student-action-btn.edit {
  background-color: #0ab39c;
}

.student-action-btn.finalize {
  background-color: #d53333;
}

.student-action-btn.edit:hover {
  background-color: #088f7d;
}

.student-action-btn.preview {
  background-color: #17a2b8;
}

.student-action-btn.preview:hover {
  background-color: #117a8b;
}

@media (max-width: 768px) {
  .student-block-wrapper {
    height: auto;
    padding: 15px;
  }

  .student-block-actions {
    flex-direction: column;
  }

  .student-action-btn {
    width: 100%;
    justify-content: center;
  }
}

.student-block-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* space between rows */
  align-items: center;
}

.student-block-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* keeps buttons inside box even on zoom */
  gap: 10px;
}

.student-action-btn {
  min-width: 100px;
  text-align: center;
  justify-content: center;
}

.form-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #fff;
  padding: 10px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.question-block {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
  position: relative;
}

.question-inputs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.question-inputs .form-group.title {
  flex: 1 0 73%;
}

.question-inputs .form-group.marks {
  flex: 0 0 10%;
}

.question-inputs .form-group.number {
  flex: 0 0 12%;
}

.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.question-preview {
  margin-bottom: 1.5rem;
  background: #fff;
  padding: 15px 20px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.question-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.question-number {
  font-weight: 600;
  margin-right: 12px;
  min-width: 30px;
  text-align: right;
  font-size: 1.1rem;
}

.options-list {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 8px;
}

.options-list li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 25px;
  font-size: 1rem;
}

/* Circle for multiple choice (single choice) */
.options-list.multiple_choice li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 2px solid #555;
  border-radius: 50%;
  background: #fff;
}

/* Square for checkbox (multiple choice) */
.options-list.checkbox li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 2px solid #555;
  background: #fff;


}

div>.question-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

div>.dotted-line {
  display: block;
  border-bottom: 1px dotted #000;
  width: calc(100% + 140px);
  height: 1.2em;
  margin-left: 10px;
}

.custom-table-container {
  max-width: 900px;
  margin: auto;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #ffffff;
}

table.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

table.custom-table thead {
  /* background-color: #a4bad1; */
  /* color: white; */
  text-align: left;
}

table.custom-table th,
table.custom-table td {
  padding: 14px 20px;
  font-size: 16px;
}

table.custom-table thead th {
  font-weight: 600;
  letter-spacing: 0.5px;
}

table.custom-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

table.custom-table tbody tr {
  transition: background-color 0.3s ease;
}

table.custom-table tbody tr:hover {
  background-color: #e0e5ec;
}

table.custom-table td {
  color: #333;
  vertical-align: middle;
}

/* Rounded corner fix */
table.custom-table thead th:first-child {
  border-top-left-radius: 12px;
}

table.custom-table thead th:last-child {
  border-top-right-radius: 12px;
}

table.custom-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table.custom-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}