/**
 * TerraAI Ashby Job Board CSS
 * Matches the actual design from screenshot
 */

:root {
  --ashby-theme-primary-color: #5b51a6;
  --ashby-theme-accent-color: #40c4ff;
  --ashby-theme-text-dark: #3d4852;
  --ashby-theme-text-gray: #718096;
  --ashby-theme-text-light: #a0aec0;
  --ashby-theme-background: #ffffff;
  --ashby-theme-background-gray: #f7f9fb;
  --ashby-theme-border: #e8ecef;
  --ashby-theme-border-radius: 4px;
  --ashby-theme-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.ashby-job-board-heading {
  color: var(--ashby-theme-primary-color);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ashby-job-board-heading-count {
  color: var(--ashby-theme-accent-color);
  font-size: 2rem;
  font-weight: 400;
}

.ashby-job-board-filter {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 48px;
  text-align: center;
}

.ashby-job-board-filters-label {
  color: var(--ashby-theme-text-dark);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.ashby-job-board-reset-filters-label {
  color: var(--ashby-theme-accent-color);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
}

.ashby-job-board-back-to-all-jobs-button {
  background: var(--ashby-theme-background);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  color: var(--ashby-theme-text-gray);
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.ashby-job-board-back-to-all-jobs-button:hover {
  background: var(--ashby-theme-background-gray);
  border-color: var(--ashby-theme-accent-color);
  color: var(--ashby-theme-text-dark);
}

.ashby-department-heading {
  color: var(--ashby-theme-accent-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 56px 0 32px 0;
  text-align: left;
}

.ashby-department-heading-level {
  color: var(--ashby-theme-accent-color);
}

.ashby-job-posting-brief {
  background: var(--ashby-theme-background);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.ashby-job-posting-brief:hover {
  border-color: var(--ashby-theme-accent-color);
  box-shadow: 0 2px 8px rgba(64, 196, 255, 0.12);
}

.ashby-job-posting-brief-title {
  color: var(--ashby-theme-text-dark);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ashby-job-posting-brief-details {
  color: var(--ashby-theme-text-gray);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ashby-job-posting-brief-list {
  margin-top: 8px;
  color: var(--ashby-theme-text-gray);
  font-size: 0.875rem;
}

.ashby-job-posting-brief-department-heading {
  color: var(--ashby-theme-accent-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ashby-job-posting-brief-department-heading-level {
  color: var(--ashby-theme-accent-color);
}

.ashby-job-posting-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ashby-theme-border);
}

.ashby-job-posting-heading {
  color: var(--ashby-theme-text-dark);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ashby-job-posting-left-pane {
  color: var(--ashby-theme-text-gray);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.ashby-job-posting-right-pane {
  background: var(--ashby-theme-background-gray);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  padding: 24px;
}

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  background: var(--ashby-theme-background);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  color: var(--ashby-theme-text-gray);
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ashby-job-posting-right-pane-overview-tab:hover,
.ashby-job-posting-right-pane-application-tab:hover {
  background: var(--ashby-theme-background-gray);
  border-color: var(--ashby-theme-accent-color);
  color: var(--ashby-theme-text-dark);
}

.ashby-job-posting-right-pane-tab-slider {
  background: var(--ashby-theme-accent-color);
  height: 2px;
  border-radius: 1px;
}

.ashby-application-form-container {
  background: var(--ashby-theme-background);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  padding: 32px;
}

.ashby-application-form-section-container {
  margin-bottom: 32px;
}

.ashby-application-form-section-header {
  color: var(--ashby-theme-text-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 32px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ashby-theme-border);
}

.ashby-application-form-section-header-title {
  color: var(--ashby-theme-text-dark);
  font-weight: 600;
}

.ashby-application-form-section-header-description {
  color: var(--ashby-theme-text-gray);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 400;
}

.ashby-application-form-field-entry {
  margin-bottom: 24px;
}

.ashby-application-form-question-title {
  color: var(--ashby-theme-text-dark);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.ashby-application-form-question-description {
  color: var(--ashby-theme-text-gray);
  font-size: 0.875rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.ashby-application-form-texting-consent-description {
  color: var(--ashby-theme-text-light);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 8px;
}

.ashby-application-form-autofill-pane {
  background: var(--ashby-theme-background-gray);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.ashby-application-form-autofill-uploader {
  background: var(--ashby-theme-background);
  border: 2px dashed var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  padding: 32px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ashby-application-form-autofill-uploader:hover {
  border-color: var(--ashby-theme-accent-color);
  background: var(--ashby-theme-background-gray);
}

.ashby-application-form-autofill-input-root {
  position: relative;
}

.ashby-application-form-autofill-input-base-layer {
  background: var(--ashby-theme-background);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  padding: 12px 16px;
}

.ashby-application-form-autofill-input-drag-layer {
  background: rgba(64, 196, 255, 0.05);
  border: 2px dashed var(--ashby-theme-accent-color);
  border-radius: var(--ashby-theme-border-radius);
}

.ashby-application-form-autofill-input-pending-layer {
  background: rgba(255, 255, 255, 0.95);
}

.ashby-application-form-autofill-input-title {
  color: var(--ashby-theme-text-dark);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.ashby-application-form-autofill-input-description {
  color: var(--ashby-theme-text-gray);
  font-size: 0.875rem;
}

.ashby-application-form-autofill-input-icon {
  color: var(--ashby-theme-accent-color);
}

.ashby-application-form-autofill-input-form-alert {
  background: #fff9f0;
  border: 1px solid #ffb84d;
  border-radius: var(--ashby-theme-border-radius);
  padding: 12px 16px;
  color: #b8860b;
  margin-top: 8px;
  font-size: 0.875rem;
}

.ashby-application-form-submit-button {
  background: var(--ashby-theme-accent-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 40px;
  border: none;
  border-radius: var(--ashby-theme-border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.ashby-application-form-submit-button:hover {
  background: #29b5f0;
  box-shadow: 0 2px 8px rgba(64, 196, 255, 0.25);
}

.ashby-application-form-submit-button:active {
  transform: translateY(0);
}

.ashby-application-form-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ashby-application-form-success-container {
  background: #e6f7ff;
  border: 1px solid var(--ashby-theme-accent-color);
  border-radius: var(--ashby-theme-border-radius);
  padding: 20px;
  margin-top: 24px;
  color: #0077cc;
  font-weight: 500;
  text-align: center;
}

.ashby-application-form-failure-container {
  background: #ffebee;
  border: 1px solid #ef5350;
  border-radius: var(--ashby-theme-border-radius);
  padding: 20px;
  margin-top: 24px;
  color: #c62828;
  font-weight: 500;
  text-align: center;
}

.ashby-application-form-blocked-application-container {
  background: #fff9f0;
  border: 1px solid #ffb84d;
  border-radius: var(--ashby-theme-border-radius);
  padding: 20px;
  margin-top: 24px;
  color: #b8860b;
  font-weight: 500;
  text-align: center;
}

.ashby-survey-form-container {
  background: var(--ashby-theme-background);
  border: 1px solid var(--ashby-theme-border);
  border-radius: var(--ashby-theme-border-radius);
  padding: 24px;
}

@media (max-width: 768px) {
  .ashby-job-board-heading {
    font-size: 1.75rem;
  }

  .ashby-job-posting-heading {
    font-size: 1.75rem;
  }

  .ashby-department-heading {
    font-size: 1.5rem;
    margin: 40px 0 24px 0;
  }

  .ashby-job-posting-brief {
    padding: 20px;
  }

  .ashby-application-form-container {
    padding: 24px 16px;
  }

  .ashby-application-form-submit-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ashby-job-board-heading {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }

  .ashby-department-heading {
    font-size: 1.25rem;
  }

  .ashby-job-posting-brief {
    padding: 16px;
  }

  .ashby-job-posting-brief-title {
    font-size: 1rem;
  }
}
