/* stylelint-disable */

/* FastAPI Cloud dark theme variables for Ashby dashboard */
:root {
  /* Primary colors matching FastAPI Cloud brand */
  --colorPrimary900: #ffffff;
  --colorPrimary600: #eaeae0;

  /* Layout constraints */
  --widthMaxJobBoard: 1200px;

  /* Border radius matching website style */
  --borderRadiusContainer: 8px;
  --borderRadiusControl: 6px;
  --borderRadiusButton: 6px;

  /* FastAPI Cloud font stack */
  --fontFamily: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Dark theme background */
  --colorAppBackground: #000101;
}

/* Job board heading */
.ashby-job-board-heading {
  color: #ffffff;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.ashby-job-board-heading-count {
  color: rgba(234, 234, 224, 0.6);
  font-weight: 300;
  font-size: 1.125rem;
}

/* Job posting cards */
.ashby-job-posting-brief {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ashby-job-posting-brief:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ashby-job-posting-brief-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.ashby-job-posting-brief-details {
  color: rgba(234, 234, 224, 0.8) !important;
  font-weight: 300;
  font-size: 1rem;
}

/* Department and team headings */
.ashby-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-department-heading-level {
  color: rgba(234, 234, 224, 0.9) !important;
  font-family: "DMMono", monospace;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin: 2.5rem 0 1.25rem 0;
  opacity: 0.8;
}

/* Filter controls */
.ashby-job-board-filter {
  background: rgba(18, 18, 18, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eaeae0 !important;
  font-weight: 300;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.ashby-job-board-filter:hover,
.ashby-job-board-filter:focus {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(18, 18, 18, 0.8) !important;
  outline: none !important;
}

.ashby-job-board-filters-label {
  color: rgba(234, 234, 224, 0.6) !important;
  font-family: "DMMono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ashby-job-board-reset-filters-label {
  color: rgba(234, 234, 224, 0.8) !important;
  font-weight: 300;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.ashby-job-board-reset-filters-label:hover {
  color: #ffffff !important;
  text-decoration-thickness: 2px;
}

/* Job posting page layout */
.ashby-job-posting-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.ashby-job-posting-heading {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.ashby-job-posting-left-pane {
  background: transparent !important;
  color: rgba(234, 234, 224, 0.9) !important;
}

.ashby-job-posting-left-pane * {
  color: rgba(234, 234, 224, 0.9) !important;
}

.ashby-job-posting-right-pane {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Ensure all text in right pane is visible */
.ashby-job-posting-right-pane * {
  color: #eaeae0 !important;
}

/* Tab navigation */

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  color: rgba(234, 234, 224, 0.6) !important;
  font-family: "DMMono", monospace;
  font-weight: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: transparent !important;
}

.ashby-job-posting-right-pane-overview-tab:hover,
.ashby-job-posting-right-pane-application-tab:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.ashby-job-posting-right-pane-overview-tab[aria-selected="true"],
.ashby-job-posting-right-pane-application-tab[aria-selected="true"] {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Tab content areas */
.ashby-job-posting-right-pane {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #eaeae0 !important;
}

/* Tab panels background */
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  background-color: transparent !important;
}

/* Active tab panel content */
.ashby-job-posting-right-pane [role="tabpanel"] {
  background: transparent !important;
  color: #eaeae0 !important;
}

/* Back button */
.ashby-job-board-back-to-all-jobs-button {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(234, 234, 224, 0.9) !important;
  font-family: "DMMono", monospace;
  font-weight: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.ashby-job-board-back-to-all-jobs-button:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateX(-4px);
}

/* Back button SVG icon */
.ashby-job-board-back-to-all-jobs-button svg {
  width: 1em !important;
  height: 1em !important;
  fill: currentColor !important;
  transition: transform 0.2s ease !important;
}

.ashby-job-board-back-to-all-jobs-button:hover svg {
  transform: translateX(-2px) !important;
}

/* Application form container */
.ashby-application-form-container {
  background: transparent !important;
  padding: 2rem;
}

/* Form sections */
.ashby-application-form-section-container {
  margin-bottom: 2.5rem;
}

.ashby-application-form-section-header {
  margin-bottom: 1.5rem;
}

.ashby-application-form-section-header-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.ashby-application-form-section-header-description {
  color: rgba(234, 234, 224, 0.7) !important;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}

/* Form fields */
.ashby-application-form-field-entry {
  margin-bottom: 1.5rem;
}

.ashby-application-form-question-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ashby-application-form-question-description {
  color: rgba(234, 234, 224, 0.7) !important;
  font-weight: 300;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Form inputs - targeting through Ashby form container */
.ashby-application-form-field-entry input,
.ashby-application-form-field-entry textarea,
.ashby-application-form-field-entry select {
  background: rgba(18, 18, 18, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eaeae0 !important;
  font-family: "Gilroy", sans-serif !important;
  font-weight: 300 !important;
  border-radius: 6px !important;
  padding: 0.875rem 1rem !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(8px);
  width: 100%;
}

.ashby-application-form-field-entry input:focus,
.ashby-application-form-field-entry textarea:focus,
.ashby-application-form-field-entry select:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(18, 18, 18, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05) !important;
}

.ashby-application-form-field-entry input::placeholder,
.ashby-application-form-field-entry textarea::placeholder {
  color: rgba(234, 234, 224, 0.4) !important;
}

/* Submit button */
.ashby-application-form-submit-button {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-family: "DMMono", monospace !important;
  font-weight: normal !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 1rem 2rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(8px);
}

.ashby-application-form-submit-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Autofill pane container */
.ashby-application-form-autofill-pane {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Autofill upload area */
.ashby-application-form-autofill-input-root {
  background: rgba(18, 18, 18, 0.5) !important;
  border: 2px dashed rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.ashby-application-form-autofill-input-root:hover,
.ashby-application-form-autofill-input-root[data-state="drag"] {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(18, 18, 18, 0.7) !important;
}

.ashby-application-form-autofill-input-base-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Autofill icon styling */
.ashby-application-form-autofill-input-icon {
  color: rgba(234, 234, 224, 0.6) !important;
  font-size: 2rem;
}

.ashby-application-form-autofill-input-icon svg {
  fill: rgba(234, 234, 224, 0.6) !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
}

.ashby-application-form-autofill-input-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0.5rem 0 0 0;
}

.ashby-application-form-autofill-input-description {
  color: rgba(234, 234, 224, 0.7) !important;
  font-weight: 300;
  font-size: 0.875rem;
  margin: 0.5rem 0 1rem 0;
  line-height: 1.5;
}

/* Upload button styling */
.ashby-application-form-autofill-pane button,
.ashby-application-form-autofill-uploader button {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-family: "DMMono", monospace !important;
  font-weight: normal !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.ashby-application-form-autofill-pane button:hover,
.ashby-application-form-autofill-uploader button:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Success and error messages */
.ashby-application-form-success-container {
  background: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  color: #22c55e !important;
  border-radius: 8px;
  padding: 1.5rem;
  font-weight: 300;
  margin: 1.5rem 0;
}

.ashby-application-form-failure-container,
.ashby-application-form-blocked-application-container {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border-radius: 8px;
  padding: 1.5rem;
  font-weight: 300;
  margin: 1.5rem 0;
}

.ashby-application-form-autofill-input-form-alert[data-highlight="negative"] {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.ashby-application-form-autofill-input-form-alert[data-highlight="positive"] {
  color: #22c55e !important;
  background: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

/* Text consent description */
.ashby-application-form-texting-consent-description {
  color: rgba(234, 234, 224, 0.6) !important;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Drag state overlay */
.ashby-application-form-autofill-input-drag-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(8px);
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.ashby-application-form-autofill-input-drag-layer[data-state="hidden"] {
  opacity: 0;
  pointer-events: none;
}

.ashby-application-form-autofill-input-drag-layer[data-state="active"] {
  opacity: 1;
}

.ashby-application-form-autofill-input-drag-layer svg {
  fill: #ffffff !important;
  width: 3rem !important;
  height: 3rem !important;
}

.ashby-application-form-autofill-input-drag-layer span {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.125rem;
}

/* Pending/loading state overlay */
.ashby-application-form-autofill-input-pending-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(8px);
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.ashby-application-form-autofill-input-pending-layer[data-state="hidden"] {
  opacity: 0;
  pointer-events: none;
}

.ashby-application-form-autofill-input-pending-layer[data-state="active"] {
  opacity: 1;
}

.ashby-application-form-autofill-input-pending-layer span {
  color: #ffffff !important;
  font-weight: 300;
  font-size: 0.875rem;
}

/* List container background */
.ashby-job-posting-brief-list {
  background: transparent !important;
}

/* Survey form */
.ashby-survey-form-container {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Primary buttons styling (Apply for this Job, etc) */
button[class*="_primary"] {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-family: "DMMono", monospace !important;
  font-weight: normal !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 1.25rem 2.5rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(12px);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

button[class*="_primary"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  ) !important;
}

/* Button SVG icons */
button svg {
  fill: currentColor !important;
  width: 1em !important;
  height: 1em !important;
}

/* Checkbox styling for dark mode */
input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  background: rgba(18, 18, 18, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(18, 18, 18, 0.7) !important;
}

input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

input[type="checkbox"]:checked::after {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: bold !important;
}

/* Radio button styling for dark mode */
input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  background: rgba(18, 18, 18, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

input[type="radio"]:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(18, 18, 18, 0.7) !important;
}

input[type="radio"]:checked {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

input[type="radio"]:checked::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 0.5rem !important;
  height: 0.5rem !important;
  background: #ffffff !important;
  border-radius: 50% !important;
}

/* Headings styling */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff !important;
  font-family: "Gilroy", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* Secondary buttons (Upload File) - matching autofill style */
button[class*="_secondary"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-family: "DMMono", monospace !important;
  font-weight: normal !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

button[class*="_secondary"]:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure both upload areas have consistent appearance */
.ashby-application-form-autofill-input-root {
  background: rgba(18, 18, 18, 0.5) !important;
  border: 2px dashed rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.ashby-application-form-autofill-input-icon {
  fill: rgba(234, 234, 224, 0.6) !important;
}
