/* ==========================
   RESULT CHECKER MODAL
========================== */

.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.result-card{
    width:95%;
    max-width:450px;
    max-height:90vh;

    background:#fff;

    padding:25px;

    border-radius:12px;

    box-shadow:0 15px 40px rgba(0,0,0,.3);

    position:relative;

    overflow:auto;
}

/* ===========================
DESKTOP RESULT VIEW
===========================*/



@media (min-width:769px){

.result-card.show-result{

max-width:1200px;

width:92%;

max-height:90vh;

}

#resultViewer{

max-height:68vh;

overflow:auto;

}

#resultViewer iframe{

width:100%;

height:65vh;

border:none;

}

#downloadBtn{

display:block;

margin:15px auto 0;

width:260px;

}

}
.result-card.show-result iframe{

width:100%;

height:100%;

border:none;

}

.result-card.show-result #downloadBtn{

margin-top:15px;

align-self:center;

width:260px;

}

}

.result-card h3 {
  margin-top: 0;
  text-align: center;
  color: #000066;
}

.result-card input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.result-card button:not(.result-close) {
  width: 100%;
  padding: 12px;
  background: #000066;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.result-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #555;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  line-height: 32px;
}

.result-close:hover {
  color: red;
}


* {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

/* Background image */
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url("classroom.jpg") center/cover no-repeat;
  z-index: -2;
}

/* Overlay color: dark navy */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 102, 0.65); /* #000066 */
  z-index: -1;
}

/* Left contact wrapper - desktop */
.contact-wrapper {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.contact-card {
  width: 320px;
  background: rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 10px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.contact-card h2 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

.contact-card p {
  font-size: 18px;
  font-weight: 400; /* reduced boldness */
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-card i {
  margin-right: 12px;
  font-size: 22px;
  color: #fff;
}

.contact-card .contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

/* Right login wrapper */
.login-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding-right: 5%;
}

/* Login card */
.login-card
 {
  width: 360px;
  background: #ffffff; /* plain white */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: fadeIn 0.8s ease;
}

.logo {
  display: block;
  margin: 0 auto 10px;
  width: 80px;
}

.app-title {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}

form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

form input:focus {
  outline: none;
  border-color: #000066;
}

form button {
  width: 100%;
  padding: 12px;
  background: #000066;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  background: #000044; /* darker on hover */
}

#errorMsg {
  margin-top: 10px;
  text-align: center;
  color: red;
  font-size: 14px;
}

/* Social icons */
.social-icons {
  margin-top: 20px;
  text-align: center;
}

.social-icons a {
  margin: 0 8px;
  font-size: 24px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

/* Pop hover effect: scale + rotate + glow */
.social-icons a:hover {
  transform: scale(1.4) rotate(-10deg) translateY(-3px);
  filter: drop-shadow(0 0 8px currentColor);
}

/* Natural brand colors */
.social-icons a.facebook { color: #1877F2; }
.social-icons a.instagram { color: #E1306C; }
.social-icons a.x-twitter { color: #1DA1F2; }
.social-icons a.youtube { color: #FF0000; }
.social-icons a.linkedin { color: #0077B5; }
.social-icons a.whatsapp { color: #25D366; }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Center login card */
  .login-wrapper {
    justify-content: center;
    padding-right: 0;
  }

  /* Contact card below login card, single line */
  .contact-wrapper {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .contact-card {
    width: auto;
    background: transparent;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    text-align: center;
  }

  .contact-card p {
    font-size: 14px;
    font-weight: 400;
    margin: 5px 10px;
    display: flex;
    align-items: center;
  }

  .contact-card .contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }

  /* Slightly smaller social icons for mobile */
  .social-icons a {
    font-size: 20px;
    margin: 0 6px;
  }
}

.global-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 999;
}

.result-checker-btn {
  width: 100%;
  padding: 14px;
  background: #05eeff;
  color: black;
  border: none;
  border-radius: 8px;
  font-weight: 700;
   margin-bottom: 15px;
  cursor: pointer;

}

@keyframes glowText {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.4;
    text-shadow:
      0 0 5px white,
      0 0 10px white;
  }
}

/* =====================================================
   GLOBAL STUDENT ACTION BUTTONS
===================================================== */

.global-student-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-info-btn {
    background: #000066;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.student-info-btn:hover {
    opacity: 0.9;
}


/* Mobile */

@media (max-width: 600px) {

    .global-student-actions {
        gap: 6px;
    }

    .global-student-actions button {
        font-size: 10px;
        padding: 8px 10px;
    }

}