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

body {
  font-family: "Arial", sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Header and Navbar */
header {
  background-color: #007bff;
  color: white;
  padding: 1em 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header .logo h1 {
  font-size: 1.8em;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #0056b3;
}

/* Hero Section */
.hero {
  background-color: #007bff;
  color: white;
  padding: 4em 2em;
  text-align: center;
}

.hero h2 {
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
}

.hero .btn {
  background-color: #28a745;
  color: white;
  padding: 1em 2em;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  text-decoration: none;
  cursor: pointer;
}

.hero .btn:hover {
  background-color: #218838;
}

/* About Section */
.about {
  padding: 3em 2em;
  background-color: #f1f1f1;
  text-align: center;
}

.about h2 {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 1em;
}

.about p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Features Section */
.features {
  padding: 3em 2em;
  display: flex;
  justify-content: space-around;
  text-align: center;
  position: relative;
}

.features .feature {
  max-width: 300px;
}

.features h2 {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 1.5em;
}

.features h3 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.features p {
  font-size: 1.1em;
  color: #555;
}

.features .btn-secondary {
  background-color: #0088ff;
  color: white;
  padding: 0.8em 1em;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.1em;
  margin-top: 2em;
  position: absolute;
}

.features .btn-secondary:hover {
  background-color: #416dde;
}

/* Footer */
footer {
  background-color: #0076ec;
  color: rgb(252, 252, 252);
  padding: 1em;
  text-align: center;
}

/* Submit Job Form Styles */
.submit-job {
  max-width: 700px;
  margin: 2em auto;
  padding: 2em;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.submit-job h2 {
  text-align: center;
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 1.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-job label {
  display: block;
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #555;
}

.submit-job input,
.submit-job textarea {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 1.2em;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.submit-job input:focus,
.submit-job textarea:focus {
  border-color: #007bff;
  outline: none;
}

.submit-job button.submit-btn {
  background-color: #007bff;
  color: white;
  padding: 0.8em 2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  width: 100%;
  transition: background-color 0.3s ease;
}

.submit-job button.submit-btn:hover {
  background-color: #0056b3;
}

.submit-job button.submit-btn:focus {
  outline: none;
}

.submit-job input::placeholder,
.submit-job textarea::placeholder {
  color: #aaa;
}

/* Styling the active link in the navigation */
nav ul li a.active {
  background-color: #007bff;
  color: white;
  padding: 0.5em 1em;
  border-radius: 4px;
}

/* Add hover effect to form inputs and text areas */
.submit-job input:hover,
.submit-job textarea:hover {
  border-color: #007bff;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 1em;
  background-color: #136aff;
  margin-top: 8em;
}
/* Apply for Job Page Styling */

/* Main Section */
.apply-main {
  background-color: #f1f1f1;
  padding: 3em 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.apply-section {
  max-width: 800px;
  background-color: white;
  padding: 3em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.apply-section h2 {
  font-size: 2.5em;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 1.5em;
}

.apply-section p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 2em;
}

/* Form Styling */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.apply-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
}

.apply-form label {
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
}

.apply-form input,
.apply-form textarea {
  width: 100%;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  color: #333;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.apply-form input:focus,
.apply-form textarea:focus {
  border-color: #007bff;
  background-color: #fff;
  outline: none;
}

.apply-form textarea {
  resize: vertical;
}

.apply-form select {
  width: 100%;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  color: #333;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.apply-form select:focus {
  border-color: #007bff;
  background-color: #fff;
  outline: none;
}

/* Button Styling */
.btn-primary {
  background-color: #28a745;
  color: white;
  padding: 1em 2em;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #218838;
}

/* Footer */
footer {
  background-color: #0e5bdf;
  color: white;
  padding: 1em;
  text-align: center;
  /*  position: fixed; */
  bottom: 0;
  width: 100%;
}
/* Job Listings Page Styling */

/* Main Section */
.job-listings-main {
  background-color: #f9f9f9;
  padding: 3em 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.job-listings-container {
  max-width: 1200px;
  width: 100%;
  padding: 3em;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.job-listings-container h2 {
  font-size: 2.5em;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 1.5em;
}

.job-listings-container p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 2em;
}

/* Job Card Styling */
.job-card {
  background-color: white;
  border-radius: 8px;
  padding: 2em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2em;
  transition: all 0.3s ease;
}

.job-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.job-card h3 {
  font-size: 2em;
  font-weight: 600;
  color: #333;
  margin-bottom: 1em;
}

.job-card .job-description {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 1.5em;
}

.job-card .job-location,
.job-card .job-type {
  font-size: 1em;
  color: #777;
  margin-bottom: 0.5em;
}

.job-card .apply-btn {
  display: inline-block;
  padding: 0.8em 2em;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  text-align: center;
}

.job-card .apply-btn:hover {
  background-color: #0056b3;
}

/* Filter Section */
.job-filter-section {
  background-color: #fff;
  padding: 2em;
  width: 100%;
  margin-bottom: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.job-filter-section h3 {
  font-size: 2em;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 1em;
}

.job-filter-section select,
.job-filter-section input {
  width: 100%;
  padding: 1em;
  font-size: 1em;
  color: #555;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 1.5em;
  transition: all 0.3s ease;
}

.job-filter-section select:focus,
.job-filter-section input:focus {
  border-color: #007bff;
  outline: none;
  background-color: #fff;
}

/* Button */
.filter-btn {
  display: inline-block;
  padding: 1em 2em;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.filter-btn:hover {
  background-color: #218838;
}

/* Admin Panel Styles */
.admin-panel {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.admin-panel-header {
  text-align: center;
  margin-bottom: 30px;
}

.admin-panel-header h1 {
  font-size: 36px;
  color: #333;
}

.admin-panel-header p {
  font-size: 18px;
  color: #666;
}

.admin-panel-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Left Panel: Job Listings */
.job-listings {
  flex: 1;
  min-width: 300px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-listings h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.job-listings table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.job-listings table th,
.job-listings table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.job-listings table th {
  background-color: #333;
  color: white;
}

.job-listings table td {
  color: #666;
}

.job-listings .action-buttons {
  display: flex;
  gap: 10px;
}

.job-listings .approve-btn,
.job-listings .reject-btn,
.job-listings .delete-btn {
  padding: 8px 16px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.job-listings .approve-btn {
  background-color: #4caf50;
  color: white;
}

.job-listings .approve-btn:hover {
  background-color: #45a049;
}

.job-listings .reject-btn {
  background-color: #ff6347;
  color: white;
}

.job-listings .reject-btn:hover {
  background-color: #e5533c;
}

.job-listings .delete-btn {
  background-color: #f44336;
  color: white;
}

.job-listings .delete-btn:hover {
  background-color: #d32f2f;
}

/* Right Panel: Stats & Filters */
.admin-stats {
  flex: 1;
  min-width: 300px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-stats h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.admin-stats p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-panel label {
  font-size: 16px;
  color: #333;
}

.filter-panel select,
.filter-panel input[type="text"] {
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.filter-panel button {
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-panel button:hover {
  background-color: #4795fc;
}

/* Footer */
footer {
  background-color: #0080ff;
  color: white;
  padding: 1em;
  text-align: center;

  bottom: 0;
  width: 100%;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .admin-panel-container {
    flex-direction: column;
    align-items: center;
  }

  .job-listings,
  .admin-stats {
    width: 100%;
    margin-bottom: 20px;
  }
  .job-listings-container {
    width: 100%;
    padding: 2em;
  }

  .job-card {
    padding: 1.5em;
  }

  .job-filter-section {
    padding: 1.5em;
  }

  .job-card h3 {
    font-size: 1.8em;
  }

  .job-card .apply-btn {
    padding: 0.7em 1.5em;
    font-size: 1em;
  }
  .submit-job {
    padding: 1.5em;
  }

  .submit-job h2 {
    font-size: 1.5em;
  }

  .features {
    flex-direction: column;
    gap: 2em;
  }

  .hero h2 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1.1em;
  }
  .apply-section {
    padding: 2em;
    width: 90%;
  }

  .apply-section h2 {
    font-size: 2em;
  }

  .apply-form input,
  .apply-form textarea {
    font-size: 0.9em;
  }

  .btn-primary {
    font-size: 1em;
    padding: 0.8em 1.5em;
  }
}



/* === Additional Mobile Optimizations === */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 20px;
  }

  header nav ul li {
    width: 100%;
  }

  header nav ul li a {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .logo h1 {
    font-size: 1.5rem;
    margin-left: 15px;
  }

  .feature {
    text-align: center;
  }

  .feature .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  table, thead, tbody, th, td, tr {
    font-size: 0.875rem;
  }
}

/* Ensure table is scrollable */
table {
  width: 100%;
  border-collapse: collapse;
}

table-wrapper {
  overflow-x: auto;
}



/* === FINAL MOBILE FIXES === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

header {
  flex-wrap: wrap;
  gap: 1em;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    text-align: left;
  }

  .features .btn-secondary {
    position: static;
    margin-top: 1em;
  }

  .action-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .job-listings table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}
