* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f7;
  margin: 0;
  padding: 2rem;
  color: #1d1d1f;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

h1 {
  margin-bottom: 1.5rem;
}

section {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

input, select {
  padding: 0.5rem;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  background: #0071e3;
  color: #fff;
}

button#cancel-btn {
  background: #e5e5ea;
  color: #1d1d1f;
}

.hidden {
  display: none;
}

#application-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#application-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5ea;
}

#application-list li:last-child {
  border-bottom: none;
}

.application-info {
  cursor: pointer;
}

.application-info strong {
  display: block;
}

.application-info span {
  font-size: 0.85rem;
  color: #6e6e73;
}

.application-actions button {
  margin-left: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.application-actions .delete-btn {
  background: #ff3b30;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.status-SAVED { background: #e5e5ea; color: #1d1d1f; }
.status-APPLIED { background: #d0e8ff; color: #0058a3; }
.status-INTERVIEWING { background: #fff3cd; color: #8a6d00; }
.status-OFFER { background: #d4f7d4; color: #1a7a1a; }
.status-REJECTED { background: #ffd6d6; color: #a30000; }

.stats-total {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.stats-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stats-badges .status-badge {
  margin-left: 0;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}
