* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASIC LAYOUT */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* HEADER - NOW FULLY CENTERED */
.header {
  background: #ffffff;
  padding: 30px 40px;
  display: flex;
  justify-content: center;        /* ✅ CENTERED */
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;             /* ✅ TEXT CENTERED */
  max-width: 800px;               /* ✅ Limits width for better proportion */
}

.logo-with-path {
  display: flex;
  align-items: center;
  justify-content: center;        /* ✅ LOGO + PATH CENTERED TOGETHER */
  gap: 30px;                      /* ✅ More space between logo & path */
  position: relative;
  width: 100%;
}

.main-logo {
  height: 200px;
  width: auto;
  z-index: 10;
  flex-shrink: 0;                 /* ✅ Prevents logo shrinking */
}

/* Place path stack to right of logo */
.education-path {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 5;
  flex-shrink: 0;                 /* ✅ Prevents path shrinking */
}

.path-level {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
}

.professional {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.college {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.school {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ROCKET ANIMATION – Positioned relative to path (stays right of logo) */
.rocket-container {
  position: absolute;
  right: -70px;
  top: 10px;
  width: 60px;
  height: 100px;
  z-index: 15;
  overflow: visible;
}

.rocket {
  font-size: 48px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: pathRocketCycle 8s ease-in-out infinite;
}

.rocket-flame {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 25px;
  background: linear-gradient(to top, #ff4500, #ff8c00, #ffd700);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flameFlicker 0.2s ease-in-out infinite alternate;
  opacity: 1;
}

@keyframes pathRocketCycle {
  0%, 5% { bottom: 10px; transform: translateX(-50%) rotate(0deg); }
  20%, 25% { bottom: 10px; transform: translateX(-50%) rotate(0deg); }
  30% { bottom: 35px; transform: translateX(-50%) rotate(-2deg); }
  35%, 45% { bottom: 35px; transform: translateX(-50%) rotate(0deg); }
  55% { bottom: 60px; transform: translateX(-50%) rotate(3deg); }
  60%, 75% { bottom: 60px; transform: translateX(-50%) rotate(0deg); }
  80% { bottom: 35px; transform: translateX(-50%) rotate(-1deg); }
  85% { bottom: 10px; transform: translateX(-50%) rotate(2deg); }
  95%, 100% { bottom: 10px; transform: translateX(-50%) rotate(0deg); }
}

@keyframes flameFlicker {
  0% { height: 20px; opacity: 1; }
  100% { height: 30px; opacity: 0.8; }
}

/* TAGLINE - NOW CENTERED */
.tagline {
  font-size: 18px;
  font-weight: 500;
  color: #64748b;
  margin: 0 auto;
  max-width: 600px;
}

/* SCREEN HANDLING */
.screen { display: none; }
.screen.active { 
  display: block; 
  animation: fadeIn 0.5s ease-in; 
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MAIN LAYOUT */
.main-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* LOGIN */
.login-wrapper { width: 100%; max-width: 500px; margin: 0 auto; }
.login-card { 
  background: #ffffff; 
  padding: 60px 40px; 
  border-radius: 24px; 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); 
  text-align: center; 
  border: 1px solid #f1f5f9; 
}

.top-section { margin-bottom: 40px; }
.login-card h1 { 
  color: #1e293b; 
  margin-bottom: 12px; 
  font-size: 28px; 
  font-weight: 700; 
}
.login-card p { 
  color: #64748b; 
  margin-bottom: 40px; 
  font-size: 16px; 
  font-weight: 500; 
}

.form-group { margin-bottom: 28px; text-align: left; }
.form-group label { 
  display: block; 
  margin-bottom: 12px; 
  font-weight: 600; 
  color: #1e293b; 
  font-size: 15px; 
}

input, select { 
  width: 100%; 
  padding: 16px 20px; 
  border: 2px solid #e2e8f0; 
  border-radius: 12px; 
  font-size: 16px; 
  transition: all 0.3s; 
  background: #f8fafc; 
  font-weight: 500; 
}

input:focus, select:focus { 
  outline: none; 
  border-color: #3b82f6; 
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); 
  background: #ffffff; 
}

.password-wrapper { position: relative; }
.password-toggle { 
  position: absolute; 
  right: 16px; 
  top: 50%; 
  transform: translateY(-50%); 
  background: none; 
  border: none; 
  font-size: 20px; 
  cursor: pointer; 
  padding: 8px; 
  z-index: 10; 
  transition: all 0.3s; 
}
.password-toggle:hover { transform: translateY(-50%) scale(1.1); }

/* BUTTONS */
.btn { 
  width: 100%; 
  padding: 18px; 
  border: none; 
  border-radius: 12px; 
  font-size: 17px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.3s; 
  margin-bottom: 16px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

.btn-primary { 
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 
  color: white; 
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4); 
}
.btn-primary:hover:not(:disabled) { 
  transform: translateY(-2px); 
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5); 
}
.btn-primary:disabled { 
  opacity: 0.6; 
  cursor: not-allowed; 
  transform: none; 
}

.btn-secondary { 
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); 
  color: white; 
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3); 
}
.btn-secondary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 35px rgba(107, 114, 128, 0.4); 
}

/* ERROR MESSAGE */
.error-message { 
  color: #ef4444; 
  font-size: 14px; 
  font-weight: 500; 
  min-height: 20px; 
}

/* PROGRESS BAR */
.progress-container { 
  background: #ffffff; 
  padding: 30px; 
  border-radius: 20px; 
  margin-bottom: 40px; 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
  display: flex; 
  align-items: center; 
  gap: 25px; 
  border: 1px solid #f1f5f9; 
}

.progress-bar { 
  flex: 1; 
  height: 12px; 
  background: #e2e8f0; 
  border-radius: 6px; 
  overflow: hidden; 
}

.progress-fill { 
  height: 100%; 
  background: linear-gradient(90deg, #3b82f6, #1d4ed8); 
  width: 0%; 
  transition: width 0.4s ease; 
  border-radius: 6px; 
}

.progress-text { 
  font-weight: 700; 
  color: #1e293b; 
  font-size: 18px; 
  min-width: 120px; 
  text-align: center; 
}

/* CANDIDATE INFO */
.candidate-info { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 25px; 
  margin-bottom: 45px; 
  background: #ffffff; 
  padding: 35px; 
  border-radius: 20px; 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
  border: 1px solid #f1f5f9; 
}

/* QUESTIONS */
.question-group { 
  background: #ffffff; 
  margin-bottom: 30px; 
  padding: 35px; 
  border-radius: 20px; 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
  border-left: 5px solid #3b82f6; 
  border: 1px solid #f1f5f9; 
}

.question-group h3 { 
  color: #1e293b; 
  margin-bottom: 25px; 
  font-size: 24px; 
  font-weight: 700; 
}

.question { 
  font-size: 19px; 
  margin-bottom: 25px; 
  color: #444; 
  line-height: 1.6; 
  font-weight: 500; 
}

.radio-options { 
  display: flex; 
  gap: 20px; 
  margin: 25px 0; 
}

.radio-option { 
  flex: 1; 
  display: flex; 
  flex-direction:  column; 
  align-items: center; 
  justify-content: center; 
  padding: 25px 30px; 
  background: #f8fafc; 
  border: 2px solid transparent; 
  border-radius: 16px; 
  cursor: pointer; 
  transition: all 0.3s; 
  text-align: center; 
  font-weight: 600; 
  font-size: 18px; 
  min-height: 75px; 
  position: relative; 
}

.radio-option:hover { 
  border-color: #3b82f6; 
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); 
  transform: translateY(-2px); 
}

.radio-option.selected { 
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 
  color: white; 
  border-color: #2563eb; 
  transform: translateY(-2px); 
}

.radio-input { display: none; }

.radio-option::before { 
  content: ''; 
  width: 24px; 
  height: 24px; 
  border: 3px solid #d1d5db; 
  border-radius: 50%; 
  margin-bottom: 12px; 
  flex-shrink: 0; 
  transition: all 0.3s; 
  background: white; 
}

.radio-option:hover::before { border-color: #3b82f6; }
.radio-option.selected::before { 
  background: #3b82f6; 
  border-color: #2563eb; 
}

/* FORM ACTIONS */
.form-actions { 
  display: flex; 
  gap: 25px; 
  max-width: 700px; 
  margin: 0 auto 40px; 
}
.form-actions .btn { flex: 1; }

/* ADMIN */
.admin-header { 
  text-align: center; 
  margin-bottom: 45px; 
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 
  padding: 40px; 
  border-radius: 20px; 
  color: white; 
}

.admin-header h1 { 
  font-size: 36px; 
  margin-bottom: 12px; 
  font-weight: 700; 
}

.admin-stats { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 25px; 
  margin-bottom: 45px; 
}

.stat-card { 
  background: #ffffff; 
  padding: 35px; 
  border-radius: 20px; 
  text-align: center; 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); 
  border: 1px solid #f1f5f9; 
  transition: transform 0.3s; 
}

.stat-card:hover { transform: translateY(-5px); }

.stat-card h3 { 
  color: #666; 
  margin-bottom: 18px; 
  font-size: 17px; 
  font-weight: 600; 
}

.stat-card span { 
  font-size: 42px; 
  font-weight: 800; 
  color: #3b82f6; 
  line-height: 1; 
}

.reports-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
  gap: 30px; 
  margin-bottom: 45px; 
}

.report-card { 
  background: #ffffff; 
  padding: 35px; 
  border-radius: 20px; 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); 
  transition: all 0.3s; 
  text-align: center; 
  border: 1px solid #f1f5f9; 
}

.report-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15); 
}

/* ADMIN TABLE */
.table-container { 
  background: #ffffff; 
  border-radius: 20px; 
  overflow: hidden; 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); 
  margin-bottom: 40px; 
  border: 1px solid #f1f5f9; 
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { 
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%); 
  padding: 22px 20px; 
  text-align: left; 
  font-weight: 700; 
  color: #333; 
  font-size: 15px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}
.admin-table td { 
  padding: 22px 20px; 
  border-bottom: 1px solid #f0f0f0; 
  font-weight: 500; 
}
.admin-table tr:hover { background: #f8f9ff; }

/* DOWNLOAD BUTTON */
.download-btn { 
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%); 
  color: white; 
  padding: 12px 24px; 
  border: none; 
  border-radius: 10px; 
  cursor: pointer; 
  font-weight: 700; 
  font-size: 14px; 
  transition: all 0.3s; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}
.download-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4); 
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header { 
    flex-direction: column; 
    gap: 20px; 
    text-align: center; 
    padding: 20px; 
  }

  .logo-with-path { 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
  }

  .education-path { 
    order: -1; 
    width: 100%; 
    max-width: 300px; 
  }

  .rocket-container { 
    position: relative; 
    top: auto; 
    right: auto; 
    margin-top: 10px; 
  }

  .main-container { padding: 0 15px; margin: 20px auto; }
  .login-card { padding: 40px 25px; margin: 0 10px; }
  .radio-options { flex-direction: column; gap: 15px; }
  .candidate-info { grid-template-columns: 1fr; gap: 20px; padding: 25px; }
  .form-actions { flex-direction: column; gap: 15px; }
  .admin-stats, .reports-grid { grid-template-columns: 1fr; }
}
