@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; }

:root {
  --primary-blue: #3B9EE8;
  --primary-blue-dark: #2182CC;
  --primary-blue-light: #EBF5FD;
  --accent-blue: #0D6EBD;
  --bg-light: #F0F8FF;
  --bg-white: #FFFFFF;
  --text-dark: #1A2B3C;
  --text-gray: #5A7A9A;
  --border-color: #C8DFEF;
  --sky-soft: #D6EEFA;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

img {
  display: block;
  max-width: 100%;
}

/* ===== HEADER (from main.html) ===== */
.jobfair-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(59, 158, 232, 0.25);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.logo span {
  color: #fbbf24;
}

.header-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: white;
  color: var(--primary-blue);
}

.header-btn:hover {
  background: transparent;
  color: white;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
  /* Full width for landing page, no constraints */
  display: block;
}

/* ===== DESKTOP HERO ===== */
.desktop-hero {
  background: linear-gradient(180deg, #ffffff 0%, #EBF5FD 100%);
  padding: 70px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.desktop-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 158, 232, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.desktop-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 158, 232, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.desktop-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.desktop-hero h1 .highlight {
  color: var(--primary-blue);
}

.desktop-hero p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 50px;
}

/* ===== HERO COMPANY CARDS (infinite scroll) ===== */
.hero-companies-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 0 20px;
}

.hero-companies-wrapper::before,
.hero-companies-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.hero-companies-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #EBF5FD, transparent);
}

.hero-companies-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #EBF5FD, transparent);
}

.hero-companies-grid {
  display: flex;
  gap: 20px;
  animation: slideCompanies 30s linear infinite;
  width: max-content;
}

.hero-companies-wrapper:hover .hero-companies-grid {
  animation-play-state: paused;
}

@keyframes slideCompanies {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-company-card {
  background: white;
  border: 1.5px solid #C8DFEF;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 165px;
  max-width: 165px;
  flex-shrink: 0;
  position: relative;
}

.hero-company-card:hover {
  box-shadow: 0 8px 28px rgba(59, 158, 232, 0.18);
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary-blue);
  z-index: 10;
}

.hero-company-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  padding: 8px;
}

.hero-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-company-name {
  font-size: 13px;
  font-weight: 600;
  color: #1A2B3C;
  line-height: 1.4;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CONTAINER FILTER ===== */
.container-filter {
  max-width: 1200px;
  width: 98%;
  margin: 0 auto;
  border-radius: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  box-shadow: 0 4px 20px rgba(59, 158, 232, 0.25);
}

.filter-section {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  border: 1.5px solid rgba(59, 158, 232, 0.4);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  font-weight: 700;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
}

.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.jobs-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}

.jobs-header h2 hr {
  border-color: rgba(255, 255, 255, 0.35);
  margin-top: 6px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}

/* ===== JOB CARDS GRID ===== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.job-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(59, 158, 232, 0.10);
  transition: all 0.3s;
  border: 1.5px solid #D6EEFA;
}

.job-card:hover {
  box-shadow: 0 8px 28px rgba(59, 158, 232, 0.20);
  transform: translateY(-3px);
  border-color: var(--primary-blue);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.job-logo {
  width: 95px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: white;
  border: 1.5px solid #D6EEFA;
  padding: 6px;
}

.job-logo img {
  width: 90px;
  height: 60px;
  object-fit: contain;
}

.ikuti-btn {
  padding: 6px 16px;
  background: transparent;
  border: 1.5px solid #A0BFCF;
  box-shadow: 0 2px 6px rgba(59, 158, 232, 0.08);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-gray);
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ikuti-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.job-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.job-meta svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-blue);
  opacity: 0.75;
}

.salary-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 12px;
  margin-bottom: 12px;
}

.salary-info svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-blue);
  opacity: 0.75;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--primary-blue);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.verified-badge svg {
  width: 10px;
  height: 10px;
  fill: white;
}

.view-jobs-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.view-jobs-btn:hover {
  background: var(--primary-blue);
  color: white;
}

/* ===== FOOTER CTA ===== */
.footer-cta {
  background: white;
  padding: 60px 20px;
  text-align: center;
  border-top: 1.5px solid #D6EEFA;
}

.more-companies-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 4px 16px rgba(59, 158, 232, 0.35);
  text-decoration: none;
}

.more-companies-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 158, 232, 0.45);
  color: white;
}

.more-companies-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(160deg, #1482c4 100%, #0D2540 100%);
  padding: 60px 20px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0 30px;
}

.footer-brand {
  max-width: 450px;
  padding-bottom: 30px;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-logo span {
  color: #fbbf24;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 1);
  text-align: justify;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.social-linkedin { background: #0077b5; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-tiktok { background: #000000; }
.social-youtube { background: #FF0000; }

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 1);
}

/* ===== FORM PAGE STYLES (home.html / /apply) ===== */
.form-card {
  background: #ffffff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(59, 158, 232, 0.10);
  width: 100%;
  max-width: 550px;
  padding: 3rem 4rem;
  border: 1.5px solid #D6EEFA;
}

.form-header-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.text-muted {
  color: var(--text-gray) !important;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.input-group {
  display: flex;
  position: relative;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: #ffffff;
}

.input-group:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 158, 232, 0.1);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  background-color: transparent;
  color: var(--text-gray);
  border: none;
  font-size: 1.1rem;
}

.form-control {
  flex: 1;
  border: none;
  padding: 12px 15px 12px 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-control:focus {
  outline: none;
  box-shadow: none;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px !important;
  padding: 14px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  width: auto;
  min-width: 200px;
  margin: 1.5rem auto 0;
  box-shadow: 0 4px 16px rgba(59, 158, 232, 0.35);
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 158, 232, 0.45);
  text-decoration: none;
  color: #fff;
}

/* ===== CARD PREMIUM (code, auth, completed pages) ===== */
.card-premium {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(59, 158, 232, 0.10);
  border: 1.5px solid #D6EEFA;
  padding: 2.5rem 2rem;
}

.code-input {
  width: 52px !important;
  height: 56px !important;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-dark);
  transition: all 0.3s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.code-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 158, 232, 0.15);
  outline: none;
}

/* ===== LOADER ===== */
#loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .jobfair-header {
    padding: 10px 16px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .header-btn {
    padding: 8px 13px;
    font-size: 10px;
    font-weight: 700;
    border-width: 1.5px;
  }

  .desktop-hero {
    padding: 40px 16px 60px;
  }

  .desktop-hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .desktop-hero p {
    font-size: 15px;
    margin-bottom: 35px;
  }

  .hero-companies-wrapper {
    padding: 0 10px;
  }

  .hero-companies-wrapper::before,
  .hero-companies-wrapper::after {
    width: 40px;
  }

  .hero-companies-grid {
    gap: 12px;
    animation-duration: 20s;
  }

  .hero-company-card {
    min-width: 140px;
    max-width: 140px;
    padding: 18px 12px;
    border-radius: 10px;
  }

  .hero-company-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    padding: 6px;
  }

  .hero-company-name {
    font-size: 11px;
    min-height: 32px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .jobs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta h3 {
    font-size: 24px;
  }

  .more-companies-btn {
    width: 100%;
    justify-content: center;
  }

  .filter-btn {
    padding: 10px 20px;
    margin-top: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 12px;
  }

  footer {
    padding: 40px 20px 30px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .desktop-hero h1 {
    font-size: 24px;
  }

  .desktop-hero p {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .hero-companies-wrapper {
    padding: 0 5px;
  }

  .hero-companies-wrapper::before,
  .hero-companies-wrapper::after {
    width: 30px;
  }

  .hero-companies-grid {
    gap: 10px;
    animation-duration: 18s;
  }

  .hero-company-card {
    min-width: 120px;
    max-width: 120px;
    padding: 16px 10px;
    border-radius: 8px;
  }

  .hero-company-logo {
    height: 80px;
    margin-bottom: 8px;
    padding: 5px;
  }

  .hero-company-name {
    font-size: 10px;
    min-height: 30px;
    line-height: 1.3;
  }
}

/* ===== CONTENT PROTECTION ===== */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

.copy-alert {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(59, 158, 232, 0.4);
  z-index: 10001;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: none;
}

.copy-alert.show {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInRight 0.3s ease-out;
}

.copy-alert.hide {
  animation: slideOutRight 0.3s ease-out;
}

.copy-alert i {
  font-size: 16px;
}

@keyframes slideInRight {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

@media (max-width: 768px) {
  .copy-alert {
    top: 70px;
    right: 16px;
    left: 16px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ===== PENDAFTAR TERBARU (auth.php) ===== */
.applicants-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
}

.applicants-card {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(59, 158, 232, 0.10);
  border: 1.5px solid #D6EEFA;
}

.applicants-header {
  text-align: center;
  margin-bottom: 16px;
}

.applicants-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.applicants-subtitle {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin: 0;
}

.applicants-list {
  max-height: 256px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.applicants-list::-webkit-scrollbar {
  width: 6px;
}

.applicants-list::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 3px;
}

.applicants-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.applicant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.applicant-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.applicant-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--primary-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.applicant-initials {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.applicant-details {
  min-width: 0;
}

.applicant-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 2px 0;
}

.applicant-time {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin: 0;
}

.applicant-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  flex-shrink: 0;
}

.applicants-footer {
  margin-top: 16px;
  text-align: center;
}

.applicants-count {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin: 0;
}

.applicants-count-num {
  font-weight: 600;
  color: var(--primary-blue);
}