:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hero {
  position: relative;
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero__content {
  position: absolute;
  z-index: 2;
  color: #fff;
  padding: 0 1.5rem;
}

.hero__tag {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.container {
  width: min(960px, 92vw);
  margin: -4rem auto 3rem;
}

.admin-container {
  width: min(98vw, 100%);
  max-width: none;
  margin: 2rem auto;
}

.card {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.card__subtitle {
  color: var(--muted);
  margin-top: -0.5rem;
}

form {
  margin-top: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
}

.field--full {
  grid-column: 1 / -1;
}

input,
textarea {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

.status-text {
  min-height: 1.25rem;
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 500;
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
}

.admin-body {
  background: var(--bg);
}

.admin-container {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.table-card {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.table-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.button--ghost {
  width: auto;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: none;
}

.table-wrapper {
  overflow-x: visible;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: auto;
}

th,
td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  vertical-align: top;
  white-space: nowrap;
  word-break: keep-all;
}

th:nth-child(1), td:nth-child(1) { min-width: 100px; } /* Name */
th:nth-child(2), td:nth-child(2) { min-width: 60px; }  /* Age */
th:nth-child(3), td:nth-child(3) { min-width: 150px; }  /* Email */
th:nth-child(4), td:nth-child(4) { min-width: 110px; }  /* Phone */
th:nth-child(5), td:nth-child(5) { min-width: 120px; }  /* IC */
th:nth-child(6), td:nth-child(6) { min-width: 100px; }  /* Bank/TNG */
th:nth-child(7), td:nth-child(7) { 
  min-width: 150px; 
  max-width: 200px;
  white-space: normal; 
  word-wrap: break-word;
}  /* Experience */
th:nth-child(8), td:nth-child(8) { 
  min-width: 150px; 
  max-width: 200px;
  white-space: normal; 
  word-wrap: break-word;
}  /* Address */
th:nth-child(9), td:nth-child(9) { min-width: 140px; }  /* Submitted */
th:nth-child(10), td:nth-child(10) { min-width: 80px; } /* Action */

th {
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.empty-row {
  text-align: center;
  color: var(--muted);
}

.empty-row.error {
  color: #ef4444;
}

.hero__tag--muted {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
}

.delete-btn {
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.delete-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero__image {
    height: 45vh;
  }

  .container {
    margin-top: -2rem;
  }

  .card {
    border-radius: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

