body{
    font-family: Arial, sans-serif;
    background:#f2f4f7;
    margin:0;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 28px;

  background: linear-gradient(
    135deg,
    #0f172a,
    #1e3a8a,
    #2563eb
  );

  box-shadow: 0 10px 30px rgba(15,23,42,0.45);
}

.container{
    width:90%;
    max-width:1000px;
    margin:auto;
}
.card {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 45px;   /* 🔥 yahin main fix */
  border-radius: 16px;
}

input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}



/* ===== PRIMARY FORM BUTTON ===== */
.primary-btn{
  display:block;
  width:240px;              /* 👈 chota & clean */
  margin:30px auto 0;       /* 👈 center aligned */
  padding:12px 0;
  font-size:14px;
  font-weight:600;
  border-radius:10px;
  border:2px solid #2563eb;
  background:#ffffff;
  color:#2563eb;
  cursor:pointer;
  transition:all 0.35s ease;
  position:relative;
  overflow:hidden;
}

/* Gradient hover */
.primary-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#2563eb,#1e40af,#3b82f6);
  opacity:0;
  transition:0.35s;
  z-index:-1;
}

.primary-btn:hover::before{
  opacity:1;
}

.primary-btn:hover{
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(37,99,235,0.35);
}

.primary-btn:active{
  transform:scale(0.97);
}

.hidden{display:none}

canvas{
    border:1px solid #ccc;
    margin-top:20px;
    width:100%;
}
.footer{
    text-align:center;
    padding:15px;
    color:#555;
}


/* ===== TEST UI ===== */
.test-header{
  background:#2563eb;
  color:#fff;
  padding:15px;
  border-radius:8px;
  margin-bottom:20px;
  text-align:center;
}

.q{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:10px;
  padding:15px;
  margin-bottom:15px;
}

.q p{
  font-weight:600;
  margin-bottom:10px;
  color:#0f172a;
}

.q label{
  display:block;
  padding:8px 10px;
  margin-bottom:6px;
  border-radius:6px;
  cursor:pointer;
  transition:0.2s;
}

.q label:hover{
  background:#e0e7ff;
}

.q input[type="radio"]{
  margin-right:8px;
}

.submit-btn{
  background:#16a34a;
  color:#fff;
  border:none;
  padding:14px;
  border-radius:10px;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
}

.submit-btn:hover{
  background:#15803d;
}

/* ===== CUSTOM MCQ OPTIONS ===== */

.q input[type="radio"] {
  display: none;
}

.q label {
  position: relative;
  padding: 12px 14px 12px 50px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15px;
  background: #fff;
  transition: all 0.2s ease;
}

/* Hover effect */
.q label:hover {
  border-color: #2563eb;
  background: #f1f5ff;
}

/* Custom bullet */
.q label::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  background: #fff;
}

/* Selected state */
.q input[type="radio"]:checked + label {
  border-color: #16a34a;
  background: #ecfdf5;
  font-weight: 600;
}

/* Selected bullet */
.q input[type="radio"]:checked + label::before {
  border-color: #16a34a;
  background: #16a34a;
}

/* Tick mark */
.q input[type="radio"]:checked + label::after {
  content: "✓";
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #fff;
  font-weight: bold;
}

.card {
  max-width: 600px;   /* 🔥 yahin main fix */
  margin: 40px auto;
  padding: 30px;
}

.form-group {
  margin-bottom: 18px;   /* 🔥 spacing control */
}

/* Page background already light hai */
.form-wrapper{
  display:flex;
  justify-content:center;
  margin-top:60px;
}

/* MAIN CARD */
.form-card{
  width:100%;
  max-width:520px;
  background:#ffffff;
  padding:40px 45px;
  border-radius:16px;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

/* TITLE */
.form-title{
  text-align:center;
  margin-bottom:30px;
  font-size:22px;
  color:#0f172a;
}

/* INPUT GROUP */
.form-group{
  margin-bottom:18px;
}

/* INPUTS */
.form-group input{
  width:100%;
  padding:14px 16px;
  font-size:14px;
  border-radius:10px;
  border:1px solid #d1d5db;
  outline:none;
  transition:0.2s;
}

.form-group input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,0.12);
}

/* BUTTON */
.primary-btn{
  width:100%;
  margin-top:20px;
  padding:14px;
  font-size:14px;
  font-weight:600;
  border-radius:10px;
  border:2px solid #2563eb;
  background:#fff;
  color:#2563eb;
  cursor:pointer;
  transition:0.25s;
}

.primary-btn:hover{
  background:#2563eb;
  color:#fff;
}

.form-wrapper{
  display:flex;
  justify-content:center;
  margin-top:60px;
}

.form-card{
  width:100%;
  max-width:520px;
  background:#ffffff;
  padding:40px 45px;
  border-radius:16px; 
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.form-title{
  text-align:center;
  margin-bottom:30px;
  font-size:22px;
  color:#0f172a;
}

.form-group{
  margin-bottom:18px;
}

.hidden{
  display: none;
}


/* ================= STUDY PAGE UI ================= */

.study-wrapper{
  min-height:60vh;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:40px;
}

.study-card{
  width:100%;
  max-width:520px;
  background:#ffffff;
  padding:40px 45px;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,0.08);
  text-align:center;
}

/* Heading */
.study-card h2{
  margin:0 0 10px;
  font-size:24px;
  color:#0f172a;
}

/* Description */
.study-desc{
  font-size:14px;
  color:#475569;
  margin-bottom:25px;
  line-height:1.6;
}

/* Points list */
.study-points{
  list-style:none;
  padding:0;
  margin:0 0 30px;
  text-align:left;
}

.study-points li{
  font-size:14px;
  color:#1e293b;
  padding:8px 0;
  border-bottom:1px dashed #e5e7eb;
}

/* Start Test Button */
.study-btn{
  width:240px;
  padding:14px;
  border:none;
  border-radius:12px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg,#2563eb,#1e40af);
  color:#fff;
  transition:0.3s ease;
}

.study-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(37,99,235,0.4);
}

.study-btn:active{
  transform:scale(0.97);
}

.hidden{
  display: none;
}


/* ===== CERTIFICATE PAGE ===== */
.certificate-card{
  max-width:900px;
  margin:50px auto;
  padding:35px;
  border-radius:20px;
  background:#ffffff;
  box-shadow:0 25px 60px rgba(0,0,0,0.15);
  text-align:center;
}

.cert-header h2{
  margin:0;
  font-size:26px;
  color:#0f172a;
}

.cert-header p{
  margin-top:8px;
  font-size:14px;
  color:#475569;
}

.cert-info{
  margin:20px 0;
  font-size:15px;
  color:#1e293b;
}

.cert-info p{
  margin:6px 0;
}

#certCanvas{
  margin-top:20px;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
}

/* ===== ACTION BUTTONS ===== */
.cert-actions{
  margin-top:30px;
  display:flex;
  gap:15px;
  justify-content:center;
  flex-wrap:wrap;
}

/* PRIMARY */
.btn-primary{
  background:linear-gradient(135deg,#2563eb,#1e40af);
  color:#fff;
  border:none;
  padding:14px 22px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(37,99,235,0.4);
}

/* LINKEDIN */
.btn-linkedin{
  background:#0A66C2;
  color:#fff;
  border:none;
  padding:14px 22px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.btn-linkedin:hover{
  background:#004182;
  transform:translateY(-2px);
}

/* OUTLINE */
.btn-outline{
  background:#fff;
  color:#2563eb;
  border:2px solid #2563eb;
  padding:14px 22px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.btn-outline:hover{
  background:#2563eb;
  color:#fff;
}


/* ===== MAIN HEADER ===== */
.main-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  padding:14px 30px;
  display:grid;
  grid-template-columns: auto 1fr;
  align-items:center;
  box-shadow:0 8px 25px rgba(0,0,0,0.25);
}


/* LEFT BRAND */
.header-left{
  display:flex;
  align-items:center;
  gap:14px;
}

/* LOGO — no frame, clean */
.header-logo{
  width:40px;
  height:40px;
  object-fit:contain;
}

/* BRAND NAME — premium font look */
.brand-name{
  font-size:22px;
  font-weight:700;
  letter-spacing:0.6px;
  color:#ffffff;
  font-family: 'Poppins', sans-serif;

}
.admin-btn{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  text-decoration:none;
  padding:10px 18px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  transition:0.3s;
}

.admin-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(37,99,235,0.45);
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .header-nav{
    display:none;
  }
}

.header-center{
  display:flex;
  justify-content:center;
  gap:30px;
}

.header-nav a{
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  color:#e5e7eb;
  position:relative;
  padding-bottom:4px;
  transition:0.3s;
}

.header-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:2px;
  background:#3b82f6;
  transition:0.3s;
}

.header-nav a:hover{
  color:#fff;
}

.header-nav a:hover::after{
  width:100%;
}

.header-nav .active{
  color:#93c5fd;
  font-weight:600;
}

.highlight-link{
  color:#60a5fa;
  font-weight:600;
}
