/* admin.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  color: #333;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1f2937;
  color: #fff;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 22px;
}

header nav a {
  margin-left: 20px;
  font-weight: 500;
  color: #f1f5f9;
}

/* Main container */
main.admin-container {
  max-width: 800px;
  margin: 100px auto 80px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

main h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #1f2937;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input,
form textarea,
form button {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

form button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #0056b3;
}

/* Applicants List */
ul#appList {
  list-style: none;
  padding-left: 0;
}

ul#appList li {
  background-color: #f9fafb;
  padding: 10px;
  margin-bottom: 8px;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}

/* Job List */
.job-list-wrapper {
  margin-top: 20px;
}

#job-list {
  list-style: none;
  padding: 0;
}

/* Individual Job Item */
.job-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
  padding: 15px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: box-shadow 0.2s ease;
}

.job-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.job-item span {
  flex: 1;
  word-break: break-word;
}

/* Delete Button Styling */
.delete-btn {
  background-color: #e11d48;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.delete-btn:hover {
  background-color: #be123c;
}

/* Footer */
footer.admin-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1f2937;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav a {
    margin: 5px 10px 0 0;
    display: inline-block;
  }

  main.admin-container {
    margin-top: 120px;
    margin-bottom: 100px;
    padding: 15px;
  }

  .job-item {
    flex-direction: column;
    align-items: stretch;
  }

  .delete-btn {
    width: 100%;
    margin-top: 10px;
  }
}
