/* Premium Styles for Examination Management System - Student Portal */

.exam-banner-section {
  position: relative;
  background-image: url("../img/breadcrumb.png") !important;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}

.exam-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url("../img/breadcrumb.png"); */
  /* background: linear-gradient(
    135deg,
    rgba(15, 59, 141, 0.9) 0%,
    rgba(22, 44, 89, 0.95) 100%
  ); */
  z-index: 1;
}

.exam-banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.exam-banner-content h1 {
  font-family: "Poppins", "Roboto", sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.exam-banner-content p {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 0.75rem;
  max-width: 400px;
}

.exam-breadcrumb {
  font-size: 0.9rem;
  color: #ffd043;
}

.exam-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.exam-breadcrumb a:hover {
  color: #ffd043;
}

/* Card layout */
.exam-search-card {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  /* margin-top: -3.5rem; */
  position: relative;
  z-index: 10;
  padding: 2.5rem;
  margin-bottom: 4rem;
}

.exam-card-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f3b8d;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.exam-card-title-info h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.65rem;
  color: #112247;
  margin-bottom: 0.25rem;
}

.exam-card-title-info p {
  font-size: 0.95rem;
  color: #707070;
  margin: 0;
}

.btn-back-portal {
  border: 1px solid #0f3b8d;
  color: #0f3b8d;
  background-color: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-back-portal:hover {
  background-color: #0f3b8d;
  color: #ffffff;
}

/* Form Styles */
.exam-form-group {
  margin-bottom: 1.5rem;
}

.exam-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #112247;
  margin-bottom: 0.5rem;
  display: block;
}

.exam-form-label span.required {
  color: #d32f2f;
}

.exam-form-control {
  width: 100%;
  height: 45px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  color: #495057;
  background-color: #ffffff;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.exam-form-control:focus {
  border-color: #0f3b8d;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(15, 59, 141, 0.15);
}

/* Captcha wrapper */
.captcha-container-box {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.captcha-img-wrapper {
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-refresh-captcha {
  border: 1px solid #ced4da;
  background-color: #ffffff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh-captcha:hover {
  background-color: #e9ecef;
}

.captcha-input-box {
  flex: 1;
  min-width: 180px;
}

/* Action buttons */
.btn-exam-search {
  background-color: #1b5e20;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.btn-exam-search:hover {
  background-color: #1b5e20;
  opacity: 0.9;
}

.btn-exam-download {
  background-color: #0d3c61;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.btn-exam-download:hover {
  background-color: #0c3352;
}

/* Results Display styles */
.results-display-section {
  margin-top: 2rem;
  border-top: 1px dashed #cccccc;
  padding-top: 2rem;
}

.student-meta-table {
  width: 100%;
  margin-bottom: 1.5rem;
}

.student-meta-table td {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.student-meta-table td.meta-label {
  font-weight: 600;
  color: #112247;
  width: 25%;
}

.subject-grades-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.subject-grades-table th {
  background-color: #0f3b8d;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #0f3b8d;
}

.subject-grades-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
}

.result-summary-row {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 1.25rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.result-stat-box {
  text-align: center;
}

.result-stat-box span {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #707070;
  display: block;
  margin-bottom: 0.25rem;
}

.result-stat-box strong {
  font-size: 1.35rem;
  color: #112247;
}

/* Printing styles */
@media print {
  body * {
    visibility: hidden;
  }
  .print-area,
  .print-area * {
    visibility: visible;
  }
  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}


/* ===========================
   Responsive Styles
=========================== */

/* Tablet */
@media (max-width: 992px) {
  .exam-card-title-container {
    gap: 1rem;
  }

  .exam-card-title-info h2 {
    font-size: 1.45rem;
  }

  .exam-card-title-info p {
    font-size: 0.9rem;
  }

  .btn-back-portal {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .exam-card-title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .exam-card-title-info {
    width: 100%;
  }

  .exam-card-title-info h2 {
    font-size: 1.35rem;
  }

  .exam-card-title-info p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .btn-back-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.65rem 1.2rem;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  .exam-card-title-container {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .exam-card-title-info h2 {
    font-size: 1.2rem;
  }

  .exam-card-title-info p {
    font-size: 0.85rem;
  }

  .btn-back-portal {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}