:root {
  --primary: #2e8b57;
  --accent: #2196f3;
  --danger: #ff4d4d;
  --bg: #f4f6f8;
  --card: #ffffff;
  --muted: #6b7280;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #111827;
}

header {
  background: linear-gradient(90deg, var(--primary), #3cb371);
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.container {
  max-width: 980px;
  margin: 20px auto;
  padding: 0 16px 40px;
}

/* Form Card */
.card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  background: var(--card);
  padding: 14px;
  border-radius: 8px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(13, 38, 59, 0.08);
  margin-bottom: 16px;
}

.card input[type="text"],
.card input[type="date"],
.card select {
  padding: 10px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%;
}

.card button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.card button:hover { transform: scale(1.03); filter: brightness(0.95); }

/* Summary */
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}
.summary span b { color: #111827; }

/* Controls */
.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.controls input[type="text"] {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e6e9ee;
  flex: 1 1 260px;
}

.controls select, .controls button {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e6e9ee;
  background: white;
  cursor: pointer;
  transition: 0.2s;
}
.controls button:hover { transform: scale(1.03); }

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(13, 38, 59, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

thead th {
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 12px;
  font-weight: 600;
}

td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

tbody tr:hover { background: #f9fafb; transition: background 0.2s ease; }

/* Buttons */
.action-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 6px;
}
.edit-btn { background: var(--accent); }
.delete-btn { background: var(--danger); }

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}
.badge.applied { background: #3b82f6; }
.badge.interview { background: #f59e0b; }
.badge.selected { background: #10b981; }
.badge.rejected { background: #ef4444; }

.status-summary {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .card { grid-template-columns: 1fr; }
  .controls { flex-direction: column; }
  .controls button, .controls select, .controls input { width: 100%; }
}
