/* Spacing Scale */
/* Colors */
/* Shadows */
/* Border Radius */
/* Typography */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 10px;
  border-radius: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: black;
  margin: 5px 0;
}
.nav-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  z-index: 1;
  background-color: #fff;
  transition: 0.1s;
  padding-top: 60px;
}
.nav-menu.active {
  left: 0;
}
.nav-menu ul {
  list-style-type: none;
  padding: 0;
}
.nav-menu ul li a {
  color: black;
  text-decoration: none;
  display: block;
  padding: 10px 20px;
}
.nav-menu ul li a:hover {
  background-color: #f8f9fa;
}
/* Category hierarchy component styles */
.category-container {
  margin-bottom: 8px;
}
.category-header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
}
.category-header:hover {
  background-color: #f8f9fa;
}
.expand-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
  user-select: none;
  color: #666666;
  border-radius: 4px;
}
.expand-button:hover {
  background-color: #d0d0d0;
}
.category-label {
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  color: #333333;
}
.subcategory {
  display: flex;
  align-items: center;
  padding: 8px 24px 8px calc(24px + 32px);
  border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}
.subcategory:hover {
  background-color: #f5f5f5;
}
.subcategory:last-child {
  border-bottom: none;
}
.subcategory label {
  cursor: pointer;
  user-select: none;
  color: #666666;
  font-size: 14px;
}
/* Work type subcategories with public availability */
.work-type-subcategory {
  display: flex;
  align-items: center;
  padding: 8px 24px 8px calc(24px + 32px);
  border-bottom: 1px solid rgba(224, 224, 224, 0.5);
  gap: 12px;
}
.work-type-subcategory:hover {
  background-color: #f5f5f5;
}
.public-availability-checkbox {
  margin-left: auto;
}
.public-availability-label {
  font-size: 12px !important;
  color: #888888 !important;
  font-style: italic;
  white-space: nowrap;
}
.form-help-text {
  font-size: 12px;
  color: #888888;
  margin: 8px 0 0 0;
  line-height: 1.3;
  font-style: italic;
}
/* For add workplace page - make sure the category container looks good in the form */
.category-container-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #ffffff;
}
/* Inline add buttons - integrated with category hierarchy */
.inline-add-button {
  background: none;
  border: none;
  color: #666666;
  background-color: #f8f9fa;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  margin: 4px 0;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 0.8;
  font-weight: 300;
}
.inline-add-button:hover {
  opacity: 1;
  color: #333333;
  background-color: #e3f2fd;
}
.top-level-add {
  margin: 16px 24px;
  width: calc(100% - 24px * 2);
}
.subcategory-add {
  margin-left: calc(24px + 32px);
  margin-right: 24px;
  width: calc(100% - 24px * 2 - 32px);
}
/* Inline input styling */
.inline-input-container {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
  padding: 0 24px;
}
.subcategory .inline-input-container {
  padding-left: calc(24px + 32px);
}
.inline-category-input {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #1976d2;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}
.inline-category-input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.3);
}
.inline-save-button,
.inline-cancel-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
  color: #666666;
  opacity: 0.8;
}
.inline-save-button:hover {
  opacity: 1;
  background-color: #d4edda;
  color: #155724;
}
.inline-cancel-button:hover {
  opacity: 1;
  background-color: #f8d7da;
  color: #721c24;
}
.remove-custom-category {
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  margin-left: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
  border-radius: 4px;
}
.remove-custom-category:hover {
  opacity: 1;
  background-color: #f8d7da;
  color: #721c24;
}
html,
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}
body {
  display: flex;
  flex-direction: column;
}
h1 {
  text-align: center;
  font-weight: 300;
  color: #333333;
  margin: 24px 0 16px 0;
}
h2 {
  text-align: center;
  font-weight: 300;
  color: #333333;
  margin: 0 0 24px 0;
}
.form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.form-table {
  background-color: #ffffff;
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}
.form-table td {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}
.form-table tr:last-child td {
  border-bottom: none;
}
.form-table tr:hover {
  background-color: #f5f5f5;
}
.form-table td:first-child {
  background-color: #f8f9fa;
  font-weight: 400;
}
label {
  display: block;
  font-weight: 400;
  color: #333333;
  font-size: 16px;
  line-height: 1.4;
}
.form-input {
  width: 90%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #333333;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}
.form-input:hover {
  border-color: #d0d0d0;
}
.submit-container {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.regular-button {
  font-family: 'Roboto', sans-serif;
  padding: 16px 32px;
  background: #1976d2;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 120px;
}
.regular-button:hover {
  background: #145ca4;
  transform: translateY(-1px);
}
.regular-button:active {
  transform: translateY(0);
}
/* Responsive design */
@media (max-width: 768px) {
  .form-container {
    padding: 0 8px;
  }
  .form-table td {
    padding: 16px;
  }
  label {
    font-size: 14px;
  }
  .form-input {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .form-table {
    display: block;
  }
  .form-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
  }
  .form-table td {
    display: block;
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
  }
  .form-table td:first-child {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
  }
  .form-table td:last-child {
    border-bottom: none;
  }
}
/* Form message styling */
.form-message {
  margin: 16px auto;
  padding: 16px 24px;
  border-radius: 4px;
  max-width: 1200px;
  text-align: center;
  font-weight: 400;
  font-size: 16px;
}
.form-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
