/* ============================================================================
   ROBOTICS CLUB NIE — recruitment.css
   Styles for the Recruitment 2026 page & live registration system
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--navy-dark, #000814);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 180, 216, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(25, 49, 159, 0.12) 0%, transparent 40%),
    url("images/bgimg3.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #f1f5f9;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ============================================================
   NAVBAR styles reside in theme.css as the single source of truth.
   ============================================================ */

/* ============================================================
   HERO HEADER
   ============================================================ */
.recruitment-hero {
  padding-top: calc(var(--nav-h, 75px) + 50px);
  padding-bottom: 30px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.35);
  color: var(--cyan-glow, #00eaff);
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.recruitment-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #00eaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.recruitment-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   MAIN CONTAINER & CARD
   ============================================================ */
.recruitment-card-wrapper {
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.recruitment-glass-card {
  background: rgba(0, 18, 38, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 234, 255, 0.25);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 180, 216, 0.08);
  position: relative;
  overflow: hidden;
}

.recruitment-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #001a33, #00eaff, #19319f, #00eaff, #001a33);
}

/* ============================================================
   FORM FIELDS & STYLING
   ============================================================ */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.required-star {
  color: #00eaff;
  margin-left: 4px;
}

.field-hint {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 400;
}

.form-control,
.form-select {
  background-color: rgba(0, 26, 51, 0.65) !important;
  border: 1px solid rgba(0, 234, 255, 0.25) !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  transition: all 0.25s ease !important;
}

.form-control::placeholder {
  color: #64748b !important;
  font-size: 0.92rem !important;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(0, 33, 69, 0.85) !important;
  border-color: #00eaff !important;
  box-shadow: 0 0 14px rgba(0, 234, 255, 0.35) !important;
  outline: none !important;
}

.form-select option {
  background-color: #001428;
  color: #f8fafc;
}

.input-icon-group {
  position: relative;
}

.input-icon-group .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #00eaff;
  font-size: 1.1rem;
  pointer-events: none;
}

.input-icon-group .form-control {
  padding-left: 44px !important;
}

.invalid-feedback {
  font-size: 0.82rem;
  color: #ff6b81;
  margin-top: 5px;
  display: none;
}

.has-error .form-control,
.has-error .form-select {
  border-color: #ff6b81 !important;
  box-shadow: 0 0 10px rgba(255, 107, 129, 0.3) !important;
}

.has-error .invalid-feedback {
  display: block;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.btn-submit-recruitment {
  width: 100%;
  padding: 15px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(135deg, rgb(65, 182, 200) 0%, rgb(25, 49, 159) 100%);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
  margin-top: 28px;
}

.btn-submit-recruitment:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 234, 255, 0.45);
  border-color: #00eaff;
}

.btn-submit-recruitment:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-recruitment:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   SUCCESS & CONFIRMATION STATE
   ============================================================ */
.success-screen {
  display: none;
  text-align: center;
  padding: 30px 15px;
  animation: fadeIn 0.5s ease both;
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 234, 255, 0.15);
  border: 2px solid #00eaff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.4);
}

.success-icon-wrapper svg {
  width: 36px;
  height: 36px;
  stroke: #00eaff;
}

.success-screen h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.success-screen p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

.registered-summary-card {
  background: rgba(0, 26, 51, 0.5);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

/* ============================================================
   VERIFICATION CODE HIGHLIGHT CARD
   ============================================================ */
.verification-code-card {
  background: linear-gradient(135deg, rgba(0, 24, 52, 0.85) 0%, rgba(0, 14, 30, 0.95) 100%);
  border: 2px dashed rgba(0, 234, 255, 0.6);
  border-radius: 14px;
  padding: 24px 20px;
  margin: 24px 0;
  text-align: center;
  box-shadow: 
    0 0 30px rgba(0, 234, 255, 0.15),
    inset 0 0 20px rgba(0, 234, 255, 0.05);
  position: relative;
}

.v-card-badge {
  display: inline-block;
  background: rgba(0, 234, 255, 0.15);
  border: 1px solid rgba(0, 234, 255, 0.4);
  color: #00eaff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.v-code-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.v-code-display {
  font-family: 'Space Grotesk', 'Courier New', monospace;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 5px;
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(0, 234, 255, 0.8),
    0 0 25px rgba(0, 234, 255, 0.4);
  background: rgba(0, 12, 26, 0.7);
  border: 1px solid rgba(0, 234, 255, 0.3);
  padding: 8px 24px;
  border-radius: 10px;
  user-select: all;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.3) 0%, rgba(25, 49, 159, 0.4) 100%);
  border: 1px solid #00eaff;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 234, 255, 0.2);
}

.btn-copy-code:hover {
  background: #00eaff;
  color: #000814;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.6);
  transform: translateY(-2px);
}

.btn-copy-code.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

.email-dispatch-notice {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 12px auto 14px;
  max-width: 580px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.email-notice-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.v-card-footer-tip {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 10px;
}

.success-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-print-receipt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 234, 255, 0.12);
  color: #00eaff;
  border: 1px solid rgba(0, 234, 255, 0.4);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-print-receipt:hover {
  background: rgba(0, 234, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
  transform: translateY(-1px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: #64748b;
}

.summary-value {
  color: #00eaff;
  font-weight: 600;
}

.btn-secondary-action {
  background: transparent;
  color: #b8d8ff;
  border: 1px solid rgba(0, 234, 255, 0.3);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-action:hover {
  background: rgba(0, 234, 255, 0.1);
  color: #00eaff;
  border-color: #00eaff;
}

/* ============================================================
   ADMIN & LIVE EXCEL EXPORT SECTION
   ============================================================ */
.admin-tools-container {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 15px;
}

.admin-card {
  background: rgba(0, 14, 30, 0.75);
  border: 1px solid rgba(0, 234, 255, 0.18);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.admin-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(0, 24, 48, 0.4);
  border-bottom: 1px solid rgba(0, 234, 255, 0.1);
}

.admin-header:hover {
  background: rgba(0, 36, 70, 0.4);
}

.admin-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-count-badge {
  background: rgba(0, 234, 255, 0.15);
  color: #00eaff;
  border: 1px solid rgba(0, 234, 255, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-body {
  padding: 20px;
  display: none;
}

.admin-body.open {
  display: block;
}

.btn-excel-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #107c41; /* Official Excel green */
  color: #ffffff;
  border: 1px solid #18a356;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(16, 124, 65, 0.3);
}

.btn-excel-export:hover {
  background: #18a356;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 124, 65, 0.45);
  color: #ffffff;
}

.table-responsive {
  max-height: 280px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 15px;
}

.registrations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.registrations-table th {
  background: rgba(0, 33, 69, 0.9);
  color: #00eaff;
  padding: 10px 12px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 600;
}

.registrations-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.registrations-table tr:hover {
  background: rgba(0, 234, 255, 0.05);
}

/* ============================================================
   FOOTER (Matching Site)
   ============================================================ */
.recruitment-footer {
  border-top: 1px solid rgba(0, 234, 255, 0.15);
  background: rgba(0, 6, 16, 0.95);
  padding: 30px 15px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.social-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #00eaff;
}

.copyright-text {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  .recruitment-hero {
    padding-top: 85px;
  }

  .recruitment-glass-card {
    padding: 24px 18px;
  }
}
