:root {
  --primary: #5ce600;
  --primary-dark: #48b800;
  --dark: #18181b;
  --muted: #52525b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e4e4e7;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  background: var(--card);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  width: 100%;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.admin-badge {
  background: var(--dark);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.btn-whatsapp {
  background: var(--primary);
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-whatsapp:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Hero & Search */
.hero {
  background: var(--dark);
  color: #ffffff;
  padding: 36px 16px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: #d4d4d8;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.search-box {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.search-box button {
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.search-box button:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Main Container */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 24px auto;
  padding: 0 16px;
  flex: 1;
}

/* Job Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.card-logo-banner {
  width: 100%;
  height: 150px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.card-logo-banner img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.job-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.job-company {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.badge {
  background: #f4f4f5;
  color: var(--dark);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.job-snippet {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.btn-primary {
  display: inline-block;
  text-align: center;
  background: var(--primary);
  color: var(--dark);
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

/* Single Job Detail Page */
.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.detail-logo-wrap {
  width: 100%;
  max-height: 200px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.detail-logo-wrap img {
  max-width: 100%;
  max-height: 165px;
  object-fit: contain;
}

.detail-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.detail-content {
  white-space: pre-line;
  font-size: 1.02rem;
  color: #27272a;
  margin-bottom: 28px;
  word-wrap: break-word;
}

.apply-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}

.apply-box .btn-apply {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: 8px;
  margin-top: 12px;
}

.apply-box .btn-apply:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Admin Stats & Forms */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 20px auto;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.share-link-box {
  margin-top: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 16px;
  display: none;
}

.share-link-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.share-link-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 760px;
  margin: 20px auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.admin-job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #a1a1aa;
  text-align: center;
  padding: 28px 16px;
  margin-top: 50px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 700px) {
  .brand img {
    height: 36px;
    max-width: 145px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a:not(.btn-whatsapp) {
    display: none;
  }
  .btn-whatsapp {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .search-box {
    flex-direction: column;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .detail-card,
  .admin-card {
    padding: 18px;
  }
  .share-link-row {
    flex-direction: column;
  }
}