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

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  background: #2c3e50;
  color: white;
  height: 100vh;
  position: fixed;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar h2 {
  color: white;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 15px;
}

.sidebar a {
  color: #ecf0f1;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.sidebar a:hover {
  background: #34495e;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 15px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background: #2c3e50;
  color: white;
  border-radius: 4px;
  border: none;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 20px;
  transition: margin 0.3s ease;
}

.header {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.header-buttons button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  background: #2c3e50;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.header-buttons button:hover {
  background: #34495e;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#searchCompanyInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 1;
  min-width: 200px;
}





/* Table Styles */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px;
  margin-bottom: 20px;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

/* Keep long descriptions from expanding the whole row */
.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) {
  width: 30%;
  max-width: 420px;
}

.jobs-table td:nth-child(8) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

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

.jobs-table th {
  background-color: #2c3e50;
  color: white;
  position: sticky;
  top: 0;
}

.jobs-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.jobs-table tr:hover {
  background-color: #f1f1f1;
}

.jobs-table img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

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

.action-buttons button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-btn {
  background: #3498db;
  color: white;
}

.delete-btn {
  background: #e74c3c;
  color: white;
}

/* Form Styles */
#addJobForm {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: 20px;
}

#addJobForm h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

#jobForm input, 
#jobForm textarea, 
#jobForm select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  color: #4b5563;
  margin-bottom: 6px;
  font-weight: 600;
}

#jobForm textarea {
  height: 100px;
  resize: vertical;
}

#jobForm button[type="submit"] {
  padding: 10px 20px;
  background: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .jobs-table th, .jobs-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  
  .header h1 {
    font-size: 1.3rem;
  }
  
  .header-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding-top: 70px;
  }
  
  .header {
    padding: 15px;
  }
  
  .header h1 {
    font-size: 1.2rem;
  }
  
  .header-buttons button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 1.1rem;
  }
  
  .table-container {
    padding: 5px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 3px;
  }
  
  #addJobForm {
    padding: 15px;
  }
}