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

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

/* Sidebar Styles */
.sidebar {
  width: 250px;
  background: #ffffff;
  color: #000000;
  height: 100vh;
  position: fixed;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sidebar h2 {
.sidebar h2 {
  color: #000000;
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.35rem;
}

.sidebar ul {
.sidebar ul {
  list-style: none;
  padding-left: 0;
  padding-bottom: 24px;
}

.sidebar li {
  margin: 20px 0;
}

.sidebar a {
  color: #000000;
  text-decoration: none;
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  color: #000000;
  background: #f8fafc;
  transform: translateX(4px);
}

/* 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;
  overflow-x: auto;
}

.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;
  overflow-y: hidden;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f1f1f1;
  max-width: 100%;
  width: 100%;
  display: block;
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #888;
}

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

/* Column width optimization */
.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) {
  min-width: 100px;
  width: 100px;
}

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) {
  min-width: 90px;
  width: 90px;
}

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) {
  min-width: 80px;
  width: 80px;
}

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) {
  min-width: 90px;
  width: 90px;
}

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) {
  min-width: 80px;
  width: 80px;
}

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) {
  min-width: 80px;
  width: 80px;
}

.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) {
  min-width: 80px;
  width: 80px;
}

.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) {
  min-width: 70px;
  width: 70px;
}

/* Actions column - always visible and properly sized */
.jobs-table th:nth-child(9),
.jobs-table td:nth-child(9) {
  min-width: 110px;
  width: 110px;
}

.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;
}

.jobs-action-stack {
  display: flex;
  flex-direction: row;
  gap: 4px;
  min-width: 110px;
  width: 100%;
  flex-wrap: wrap;
}

.jobs-action-stack button {
  flex: 1;
  min-width: 60px;
  padding: 5px 8px;
  border: none !important;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  color: white !important;
  background: #3498db !important;
}

.jobs-action-stack button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.jobs-action-stack button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.jobs-action-stack button.edit-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
  border-color: #2980b9;
}

.jobs-action-stack button.edit-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%) !important;
}

.jobs-action-stack button.toggle-btn {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%) !important;
  border-color: #d68910;
}

.jobs-action-stack button.toggle-btn:hover {
  background: linear-gradient(135deg, #d68910 0%, #a56c0d 100%) !important;
}

.jobs-action-stack button.delete-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
  border-color: #c0392b;
}

.jobs-action-stack button.delete-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #9b2a21 100%) !important;
}

/* 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 {
  .menu-toggle {
    display: none;
    cursor: pointer;
    padding: 15px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: #ffffff;
    color: #000000;
    border-radius: 10px;
    border: 1px solid #000000;
  }
    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;
  }
}