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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
  padding: 20px;
  background: linear-gradient(135deg, #74ABE2, #5563DE);
}

.back-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.368);
  backdrop-filter: blur(6px);
  color: white;
  transition: background 0.25s ease, transform 0.2s ease;
}

.back-icon svg {
  width: 22px;
  height: 22px;
}

.back-icon:hover {
  background: rgba(255, 255, 255, 0.678);
  transform: scale(1.05);
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 450px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-in-out;
}

@media (min-width: 1024px) {
  .container {
    width: 35%;
    max-width: none;
  }
}

.title {
  margin-bottom: 1.5rem;
}

h2,
.title p {
  text-align: center;
  color: #5563DE;
}

form input,
form select,
form button {
  width: 100%;
  margin: 0.6rem 0;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

form input:focus,
form select:focus {
  border-color: #5563DE;
  outline: none;
  box-shadow: 0 0 6px rgba(85, 99, 222, 0.3);
}

button {
  background: #5563DE;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #3f4ac2;
}

.error-msg {
  color: #e74c3c;
  font-size: 0.9rem;
  text-align: center;
}

/* Job List */
#jobsList {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

#jobsList li {
  background: #f8f9ff;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#jobsList li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.job-info {
  display: flex;
  flex-direction: column;
}

.job-company {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.job-position {
  font-weight: 500;
  font-size: 0.95rem;
  color: #555;
  margin-top: 2px;
}

.job-status {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 4px;
  display: inline-block;
}

.job-status.pending {
  background: #fff3e0;
  color: #e67e22;
}

.job-status.interview {
  background: #e8f4fd;
  color: #3498db;
}

.job-status.declined {
  background: #fdecea;
  color: #e74c3c;
}

.job-status.accepted {
  background: #e5ffde;
  ;
  color: #2ac200;
}

/* Action icons on right */
.job-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-actions button {
  background: #eee;
  border: none;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
}

.job-actions button:hover {
  background: #ddd;
  color: #000;
}

/* Logout */
#logoutBtn {
  margin-top: 1.5rem;
  width: 100%;
  background: #222;
  color: #fff;
}

#logoutBtn:hover {
  background: #000;
}