.container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

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

th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.primary-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.secondary-btn {
  background-color: #6c757d;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 50%);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.9em;
}

.status-building {
  background-color: #ffd700;
}

.status-active {
  background-color: #90ee90;
}

.status-completed {
  background-color: #87ceeb;
}

.status-paused {
  background-color: #ffb6c1;
}

/* Add these styles */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.state-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
}

.state-checkbox input[type='checkbox'] {
  width: auto;
}

.state-checkbox label {
  margin: 0;
  font-size: 0.9em;
}

/* In the table, format states as badges */
.states-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.state-badge {
  background-color: #e9ecef;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
}

.actions-cell {
  min-width: 300px;
}

/* Combined the duplicate .action-links selectors */
.action-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Combined the duplicate .action-link selectors and fixed order for specificity */
.action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  text-decoration: none;
  color: #333;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 0.9em;
}

.action-link:hover {
  background-color: #dee2e6;
}

/* Combined the duplicate .count-badge selectors */
.count-badge {
  background: #e0e0e0;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8em;
  color: white;
  background-color: #007bff;
}

/* Update table header */
th:last-child {
  text-align: center;
}
