
    body {
      font-family: "Segoe UI", Arial, sans-serif;
      background: #eef2f7;
      margin: 0;
      padding: 0;
      text-align: center;
      color: #333;
    }

    header {
      background: linear-gradient(90deg, #003366, #0055aa);
      color: white;
      padding: 15px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    header img {
      height: 60px;
      width: 60px;
      border-radius: 50%;
      vertical-align: middle;
      margin-right: 10px;
      box-shadow: 0 0 8px rgba(255,255,255,0.8);
    }
    header h1 { display: inline; font-size: 24px; }

    .container {
      margin: 25px auto;
      padding: 20px;
      max-width: 750px;
      background: #fafafa;
      border-radius: 15px;
      box-shadow: 0 0 15px rgba(0,0,0,0.15);
      animation: fadeIn 1s ease;
    }

    input[type="text"] {
      width: 80%;
      padding: 10px;
      margin: 10px 0;
      border: 1px solid #bbb;
      border-radius: 6px;
      transition: 0.3s;
    }
    input[type="text"]:focus {
      border-color: #0055aa;
      box-shadow: 0 0 6px #0055aa;
      outline: none;
    }

    button {
      background: #003366;
      color: white;
      border: none;
      padding: 10px 25px;
      border-radius: 8px;
      cursor: pointer;
      margin: 12px;
      font-size: 15px;
      transition: background 0.3s;
    }
    button:hover { background: #0055aa; }

    #captchaBox {
      display: inline-block;
      padding: 12px 25px;
      font-size: 24px;
      font-weight: bold;
      color: #222;
      letter-spacing: 4px;
      border-radius: 10px;
      background: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 10px,
        #dcdcdc 10px,
        #dcdcdc 20px
      );
      box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
      transform: rotate(-2deg);
      user-select: none;
    }

    #resultSection {
      display: none;
      margin-top: 20px;
      animation: fadeIn 0.8s ease-in-out;
    }

    @keyframes fadeIn {
      from {opacity: 0; transform: translateY(15px);}
      to {opacity: 1; transform: translateY(0);}
    }

    .student-card {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      background: #f9f9f9;
      padding: 15px;
      border-radius: 12px;
      margin-bottom: 15px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .student-card img {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      margin-right: 15px;
      border: 2px solid #0055aa;
    }
    .student-info { text-align: left; }
    .student-info p { margin: 5px 0; font-size: 15px; }

    table { width: 100%; border-collapse: collapse; margin: 15px 0; }
    table, th, td { border: 1px solid #444; }
    th, td { padding: 10px; text-align: center; font-size: 15px; }
    tr:nth-child(even) { background: #f2f2f2; }

    .pass {
      color: white;
      background: green;
      padding: 5px 15px;
      border-radius: 20px;
      animation: pulse 1.5s infinite;
    }
    .fail {
      color: white;
      background: red;
      padding: 5px 15px;
      border-radius: 20px;
    }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(0,255,0,0.6); }
      70% { box-shadow: 0 0 0 12px rgba(0,255,0,0); }
      100% { box-shadow: 0 0 0 0 rgba(0,255,0,0); }
    }

    #progressCircle {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      border: 12px solid #eee;
      margin: 20px auto;
      position: relative;
      background: conic-gradient(#28a745 0% 0%, #eee 0% 100%);
    }
    #progressCircle span {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      font-size: 22px;
      font-weight: bold;
      color: #003366;
    }

    #congratsMsg {
      font-size: 20px;
      margin-top: 15px;
      font-weight: bold;
      color: #444;
    }
  
  footer {
      background: linear-gradient(135deg, #003366, #0059b3);
      color: #fff;
      padding: 40px 20px;
      text-align: center;
      border-top-left-radius: 40px;
      border-top-right-radius: 40px;
      box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    }

    .footer-logo img {
      width: 90px;
      border-radius: 50%;
      border: 2px solid #fff;
      box-shadow: 0 0 10px rgba(255,255,255,0.5);
    }

    .footer-logo h2 {
      margin: 15px 0 5px;
      font-size: 22px;
      font-weight: bold;
    }

    .footer-bottom {
      margin-top: 15px;
      font-size: 14px;
      opacity: 0.9;
    }

    /* --- Print Styles --- */
    @media print {
      button, footer, #captchaSection, #inputSection { display: none; }
      body { background: white; }
      .container {
        box-shadow: none;
        border: 3px solid #003366;
        background: #fafafa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
      .pass { background: green !important; color: white !important; }
      .fail { background: red !important; color: white !important; }
      th { background: #0055aa !important; color: white !important; }
    }

