/* NPTEL NOC candidate results dashboard (mimics examform.nptel.ac.in) */
body { margin: 0; font-family: 'Helvetica Neue', Arial, sans-serif; background: #f5f5f5; color: #333; }

/* Dark fixed navbar (Bootstrap-3 navbar-inverse look) */
.noc-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #222; border-bottom: 1px solid #0c0c0c; min-height: 60px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.noc-nav-inner {
  max-width: 1170px; margin: 0 auto; padding: 0 15px;
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
}
.noc-brand { display: inline-flex; align-items: center; }
.noc-brand img { height: 46px; width: auto; }
.noc-nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.noc-nav-links li a {
  color: #9d9d9d; text-decoration: none; padding: 10px 15px; font-size: 15px; display: block; border-radius: 3px;
}
.noc-nav-links li a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.noc-nav-toggle { display: none; background: none; border: 1px solid #555; color: #ccc; padding: 8px 10px; border-radius: 4px; cursor: pointer; }

.noc-container { max-width: 1170px; margin: 0 auto; padding: 90px 15px 40px; }

/* Sign-in prompt */
.noc-signin { text-align: center; padding: 80px 20px; }
.noc-signin p { font-size: 17px; color: #555; margin-bottom: 18px; }

/* Profile panel */
.noc-panel {
  background: #fff; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 28px;
  box-shadow: rgba(0,0,0,0.5) 5px 5px 5px, rgba(255,255,255,0.5) 0 0 10px inset;
}
.noc-panel-head {
  background: #f5f5f5; border-bottom: 1px solid #ddd; padding: 12px 16px;
  font-size: 16px; font-weight: 700; color: #333; border-radius: 4px 4px 0 0;
}
.noc-panel-body { padding: 16px; }
.noc-profile-row { display: flex; padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.noc-profile-row:last-child { border-bottom: none; }
.noc-profile-row .k { width: 160px; color: #777; font-weight: 600; }
.noc-profile-row .v { color: #222; }

.noc-section-title { font-size: 20px; color: #333; margin: 0 0 14px; font-weight: 600; }

/* Results table */
.noc-table-wrap { overflow-x: auto; background: #fff; border-radius: 4px; }
.noc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.noc-table thead th {
  background: #f5f5f5; border: 1px solid #ddd; padding: 10px 12px; text-align: center;
  font-weight: 700; color: #333; vertical-align: middle;
}
.noc-table thead th small { font-weight: 400; color: #888; font-size: 11px; }
.noc-table tbody td { border: 1px solid #ddd; padding: 10px 12px; text-align: center; color: #333; }
.noc-table tbody td.text-left { text-align: left; }
.noc-table tbody tr:hover { background: #f9f9f9; }
.noc-final { font-weight: 700; color: #187AE2; }

.noc-link { color: #187AE2; text-decoration: none; cursor: pointer; }
.noc-link:hover { text-decoration: underline; }
/* Matches the real site's small receipt download button. */
.noc-receipt-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #187AE2; color: #fff; border: 1px solid #187AE2;
  padding: 3px 10px; border-radius: 3px; font-size: 12px; line-height: 1.6;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.noc-receipt-btn:hover { background: #1569c7; color: #fff; }
.noc-receipt-btn i { font-size: 11px; }

.noc-btn {
  display: inline-block; background: #187AE2; color: #fff; border: none; padding: 9px 22px;
  border-radius: 3px; font-size: 15px; cursor: pointer; text-decoration: none;
}
.noc-btn:hover { background: #1569c7; color: #fff; }

.noc-empty { padding: 40px; text-align: center; color: #888; }

/* Score details modal */
.noc-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.noc-modal-card { background: #fff; border-radius: 6px; width: 420px; max-width: 92%; padding: 22px; position: relative; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.noc-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #888; }
.noc-modal-card h4 { margin: 0 0 14px; font-size: 18px; color: #222; padding-right: 20px; }
.noc-score-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.noc-score-row .k { color: #666; }
.noc-score-row .v { font-weight: 700; color: #222; }
.noc-score-row.total .v { color: #187AE2; }

@media (max-width: 768px) {
  .noc-nav-toggle { display: inline-block; }
  .noc-nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0; background: #222;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0;
  }
  .noc-nav-links.open { display: flex; }
  .noc-nav-links li a { padding: 12px 18px; }
}
