/* --- GENERAL PAGE STYLING --- */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f4f8;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 100px auto 40px; /* top margin accounts for sticky navbar */
  text-align: center;
}

h1 {
  font-size: 3rem;
  color: #333;
  margin-bottom: 30px;
}

/* CARD */
.card {
  background: #fff;
  padding: 30px 25px;
  margin-bottom: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* INPUTS & BUTTONS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

button {
  width: 60%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 12px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

/* CERTIFICATE */
#certResultContainer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.certificate {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border: 5px solid #333;
  border-radius: 15px;
  padding: 20px;
  text-align: left;
  font-family: 'Times New Roman', serif;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.certificate h3 {
  text-align: center;
  font-size: 1.8rem;
  text-decoration: underline;
  margin-bottom: 20px;
}

/* --- TOAST --- */
#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 3s forwards;
  font-weight: bold;
}

.toast.success { background-color: #28a745; }
.toast.error { background-color: #dc3545; }
.toast.info { background-color: #17a2b8; }

@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity:1; transform: translateX(0); } }
@keyframes fadeOut { to { opacity:0; transform: translateX(100%); } }

/* --- NAVBAR --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(180deg, rgba(2,6,23,0.9), rgba(2,6,23,0.7));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #062435 0%, #082b3b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}

.logo-shine {
  position: absolute;
  left: -60%;
  top: -40%;
  width: 40%;
  height: 180%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(25deg);
  filter: blur(6px);
  animation: shine 3.2s linear infinite;
}

.brand h1 { font-size: 16px; margin: 0; color: #fff; }
.brand p { margin: 0; font-size: 11px; color: #bfeeff; }

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: #d9f3ff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.22s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
  color: #19b5fe;
}

/* CTA BUTTON */
.cta-enroll {
  background: linear-gradient(90deg, #19b5fe, #6ee7b7);
  padding: 8px 14px;
  border-radius: 12px;
  color: #021022;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(25,181,254,0.12);
  transition: all 0.3s ease;
}

.cta-enroll:hover {
  box-shadow: 0 10px 25px rgba(25,181,254,0.2);
}

/* MOBILE */
.burger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #bfeeff;
  cursor: pointer;
}

@media (max-width:900px) {
  .nav-links { display: none; flex-direction: column; gap: 12px; background: rgba(2,6,23,0.9); position: absolute; top: 60px; right: 20px; padding: 12px; border-radius: 12px; }
  .nav-links.show { display: flex; }
  .burger { display: block; }
}
