/* =========================================================
   LOOKUP PAGES (Tra cứu điểm, Tra cứu văn bằng)
   ========================================================= */

/* Generic Layout */
.lookup-page-wrapper {
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
  min-height: calc(100vh - 400px);
  padding: 60px 0;
}

.lookup-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.lookup-head {
  text-align: center;
  margin-bottom: 30px;
}
.lookup-head .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 16px;
}
.lookup-head.diem .ico {
  background: rgba(253, 126, 20, 0.1);
  color: var(--orange);
}
.lookup-head.vanbang .ico {
  background: rgba(32, 201, 151, 0.1);
  color: var(--teal);
}
.lookup-head h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.lookup-head p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* OTP Form */
.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.otp-inputs input {
  width: 45px;
  height: 55px;
  border: 2px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  transition: all 0.2s ease;
}
.otp-inputs input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(253, 126, 20, 0.1);
  outline: none;
}

/* Forms */
.form-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-control, .form-select {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(22, 60, 116, 0.1);
}

.btn-lookup {
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.btn-lookup.diem {
  background: var(--navy);
  color: #fff;
  border: none;
}
.btn-lookup.diem:hover {
  background: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(22, 60, 116, 0.3);
}
.btn-lookup.vanbang {
  background: var(--teal);
  color: #fff;
  border: none;
}
.btn-lookup.vanbang:hover {
  background: #17a077;
  box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

/* Result Box Mockup */
.result-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 24px;
  margin-top: 30px;
  display: none;
}
.result-box.show {
  display: block;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Certificate Result */
.cert-preview {
  background: #f8fafc;
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.cert-preview i {
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.5;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
}
.status-badge.valid {
  background: #dcfce7;
  color: #15803d;
}
.status-badge.invalid {
  background: #fee2e2;
  color: #b91c1c;
}

/* QR Scanner Mockup */
.qr-scanner-box {
  background: #000;
  border-radius: 12px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.qr-scanner-frame {
  width: 150px;
  height: 150px;
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
}
.qr-scanner-frame::before, .qr-scanner-frame::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--teal);
  border-style: solid;
}
.qr-scanner-frame::before {
  top: -2px; left: -2px;
  border-width: 3px 0 0 3px;
}
.qr-scanner-frame::after {
  bottom: -2px; right: -2px;
  border-width: 0 3px 3px 0;
}
.qr-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: scan 2s linear infinite;
}
@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

@media (max-width: 767.98px) {
  .lookup-box {
    padding: 24px;
  }
}

/* =========================================================
   NEW EDU PORTAL LOOKUP SCORE STYLES
   ========================================================= */
.lookup-banner {
    background: url('/themes/eduportal/images/banner-bg.png') no-repeat center center, linear-gradient(90deg, #021a59 0%, #0d328f 100%);
    background-size: cover;
    color: white;
    padding: 40px 0;
    border-radius: 12px;
    margin-bottom: 20px;
}
.lookup-banner h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.lookup-banner p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}
.lookup-tabs .nav-link {
    color: #666;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 0;
    margin-right: 20px;
}
.lookup-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: transparent;
}
.score-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 24px;
    border: 1px solid #f0f0f0;
}
.score-table th {
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #ddd;
}
.score-table td {
    padding: 12px 8px;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}
.status-excellent {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.score-highlight {
    color: #2e7d32;
    font-size: 1.4rem;
    font-weight: 700;
}
.captcha-box {
    background: #f1f3f5;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #0d328f;
    font-size: 1.1rem;
    display: inline-block;
}
.btn-lookup-main {
    background-color: #0d328f;
    border-color: #0d328f;
    color: white;
}
.btn-lookup-main:hover {
    background-color: #0a2569;
    border-color: #0a2569;
    color: white;
}

/* =========================================================
   PREMIUM UI ENHANCEMENTS (OVERRIDING PREVIOUS STYLES)
   ========================================================= */
.lookup-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 5px;
    margin-right: 25px;
    transition: all 0.3s ease;
}
.lookup-tabs .nav-link:hover {
    color: #0d6efd;
}
.lookup-tabs .nav-link.active {
    color: #0d328f !important;
    border-bottom: 3px solid #0d6efd !important;
    background: transparent;
}
.score-card {
    background: #fff;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(13, 50, 143, 0.08) !important;
    padding: 28px !important;
    border: 1px solid rgba(13, 110, 253, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.score-card:hover {
    box-shadow: 0 15px 35px rgba(13, 50, 143, 0.12) !important;
}
.score-table th {
    font-weight: 700 !important;
    color: #0d328f !important;
    border-bottom: 2px solid rgba(13, 110, 253, 0.2) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.score-table td {
    padding: 14px 8px !important;
    color: #495057;
    font-weight: 500;
}
.score-table tbody tr {
    transition: background-color 0.2s ease;
}
.score-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.03) !important;
}
.status-badge {
    padding: 6px 16px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.status-excellent {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    color: #1b5e20 !important;
    border: 1px solid #a5d6a7 !important;
}
.score-highlight {
    color: #0d6efd !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(13, 110, 253, 0.15);
}
.captcha-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important;
    color: #0d328f !important;
    font-size: 1.2rem !important;
    display: inline-block;
    border: 1px solid #dee2e6 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.btn-lookup-main {
    background: linear-gradient(135deg, #0d328f 0%, #0056b3 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(13, 50, 143, 0.3) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}
.btn-lookup-main:hover {
    background: linear-gradient(135deg, #0056b3 0%, #0d328f 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 50, 143, 0.4) !important;
}

/* =========================================================
   STUDENT PROFILE SECTION
   ========================================================= */
.student-profile-section {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 500;
}
.student-stats-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.stat-box {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
}
.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
}
.stat-badge {
    padding: 6px 20px !important;
    font-size: 0.95rem !important;
}
.stat-score {
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* =========================================================
   CERTIFICATE LOOKUP MODULE (Redesign)
   ========================================================= */
.cert-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.guide-alert {
    background-color: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.btn-cert-action {
    border-color: #e2e8f0;
    color: #033bbd;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-cert-action:hover {
    background-color: #f8faff;
    border-color: #033bbd;
    color: #033bbd;
}

.info-grid .col-6 {
    padding-left: 8px;
    padding-right: 8px;
}

.cert-mockup-img {
    max-width: 200px;
    flex-shrink: 0;
}

