:root {
  --primary: #0070f3;
  --bg-light: #f9fbfe;
  --text: #1f2937;
  --radius: 10px;
  --shadow: 0 4px 10px rgba(0,0,0,0.05);
}


html, body {
  width: 100%;
}

main.job-post-container { 
  max-width: 1200px;
  margin: auto;
  margin-top: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  color: #333;
  line-height: 1.6;
}


textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 1rem;
}

input[type="file"] {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.file-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3f3f3;
  padding: 8px 12px;
  margin: 5px 0;
  border-radius: 5px;
  font-size: 14px;
}

.remove-btn {
  background: rgb(196, 228, 249);
  border: none;
  color: rgb(255, 255, 255);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}



.job-post-container {
  max-width: 700px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeIn 0.5s ease-in;
}

.job-post-container h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.job-form label {
  display: block;
  margin-bottom: 1rem;
}

.job-form input,
.job-form select {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  margin-top: 0.3rem;
}

.btn-submit,
.btn-template {
  margin-top: 1.5rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-submit {
  background: var(--primary);
  color: white;
  margin-right: 1rem;
}

.btn-submit:hover {
  background: #0057cc;
}

.btn-template {
  background: #f0f0f0;
  color: var(--text);
}

.btn-template:hover {
  background: #ddd;
}

.status-msg {
  margin-top: 1rem;
  color: green;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.section-divider {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
  margin-top: 2rem;
}


/* ----------------------------
   📝 My Job Posts Section
----------------------------- */
.my-posts {
  margin-top: 50px;
  padding: 30px;
  background-color: #f9f9f9;
  border-top: 2px solid #ddd;
  border-radius: 8px;
}

.my-posts h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.my-post-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease-in-out;
}

.my-post-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.my-post-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.my-post-card p {
  margin: 8px 0;
  color: #555;
  font-size: 0.95rem;
}

.my-post-card button {
  margin-right: 10px;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.my-post-card button:hover {
  opacity: 0.9;
}

.my-post-card button:nth-child(4) {
  background-color: #2196f3;
  color: #fff;
}

.my-post-card button:nth-child(5) {
  background-color: #f44336;
  color: #fff;
}

.my-post-card button:nth-child(6) {
  background-color: #4caf50;
  color: #fff;
}

/* Responsive */
@media screen and (max-width: 768px) {
  body{
    background: white;
  }

  .my-post-card h3 {
    font-size: 1rem;
  }

  .my-post-card p,
  .my-post-card button {
    font-size: 0.8rem;
  }
}


.no-posts {
  font-style: italic;
  color: #999;
  padding: 20px;
}



.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
}

.applicant-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
}

/* 📱 Tablet breakpoint (≤ 1024px) */
@media screen and (max-width: 1024px) {
  body{
    background: white;
  }

  main.job-post-container {
    padding: 0 1rem;
    margin-top: 2rem;
    margin: 1rem;
  }
  
  .job-post-container {
    padding: 1.5rem;
  }
  .job-post-container h1 {
    font-size: 1.8rem;
  }
  .job-form input,
  .job-form select,
  textarea {
    font-size: 0.95rem;
  }
  .my-posts {
    padding: 20px;
  }
  .my-post-card {
    padding: 16px;
  }
  .my-post-card h3 {
    font-size: 1.2rem;
  }
  .modal-content {
    padding: 1.5rem;
  }
}

/* 📱 Mobile breakpoint (≤ 768px) */
@media screen and (max-width: 768px) {
  body{
    background: #ffffff;
  }

  html, body {
    font-size: 14px;
  }
  main.job-post-container {
    padding: 0 1rem;
    margin-top: 2rem;
    margin: 1rem;
  }

  .job-post-container {
    padding: 1rem;
  }
  .job-post-container h1 {
    font-size: 1.5rem;
  }
  .job-form label {
    margin-bottom: 0.6rem;
  }
  .job-form input,
  .job-form select,
  textarea {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .btn-submit,
  .btn-template {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
  .my-posts {
    padding: 15px;
  }
  .my-posts h2 {
    font-size: 1.4rem;
  }
  .my-post-card {
    padding: 14px;
  }
  .my-post-card h3 {
    font-size: 1rem;
  }
  .my-post-card p {
    font-size: 0.85rem;
  }
  .my-post-card button {
    font-size: 0.8rem;
    padding: 6px 10px;
    margin-right: 6px;
  }
  .modal-content {
    width: 95%;
    padding: 1rem;
  }
}

/* 📱 Small mobile breakpoint (≤ 480px) */
@media screen and (max-width: 480px) {
  body {
    line-height: 1.4;
  }
  body{
    background: white;
  }

  main.job-post-container {
    padding: 0 1rem;
    margin-top: 2rem;
    margin: 1rem;
  }
  
  .job-post-container {
    padding: 0.8rem;
  }
  .job-post-container h1 {
    font-size: 1.2rem;
  }
  .job-form input,
  .job-form select,
  textarea {
    font-size: 0.85rem;
    padding: 0.45rem;
  }
  .btn-submit,
  .btn-template {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
  .file-preview {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.8rem;
  }
  .remove-btn {
    margin-top: 4px;
  }
  .my-post-card h3 {
    font-size: 0.9rem;
  }
  .my-post-card p {
    font-size: 0.8rem;
  }
  .my-post-card button {
    font-size: 0.75rem;
    padding: 4px 8px;
    margin-right: 4px;
  }
  .modal-content {
    padding: 0.8rem;
  }
  .applicant-card {
    padding: 0.8rem;
  }
}
