/* Circular Std Font Faces */
@font-face {
  font-family: 'Circular Std';
  src: local('Circular Std Book'),
       url('/public/fonts/circular-std/CircularStd-Book.woff2') format('woff2'),
       url('/public/fonts/circular-std/CircularStd-Book.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: local('Circular Std Book'),
       url('/public/fonts/circular-std/CircularStd-Book.woff2') format('woff2'),
       url('/public/fonts/circular-std/CircularStd-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: local('Circular Std Medium'),
       url('/public/fonts/circular-std/CircularStd-Medium.woff2') format('woff2'),
       url('/public/fonts/circular-std/CircularStd-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: local('Circular Std Medium'),
       url('/public/fonts/circular-std/CircularStd-Medium.woff2') format('woff2'),
       url('/public/fonts/circular-std/CircularStd-Medium.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: local('Circular Std Bold'),
       url('/public/fonts/circular-std/CircularStd-Bold.woff2') format('woff2'),
       url('/public/fonts/circular-std/CircularStd-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: local('Circular Std Black'),
       url('/public/fonts/circular-std/CircularStd-Black.woff2') format('woff2'),
       url('/public/fonts/circular-std/CircularStd-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "Circular Std", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
}

/* Noise texture */
.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px rgba(15, 23, 42, 0.1); /* Hard shadow */
}

/* Custom scrollbar for inner containers */
.hide-scroll::-webkit-scrollbar {
  display: none;
}

.gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-pattern {
  background-color: #ffffff;
  background-image: radial-gradient(#14b8a6 0.5px, #ffffff 0.5px);
  background-size: 20px 20px;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-blob {
  animation: blob 8s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes blob {
  0%,
  100% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Select input styling to match text inputs */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

select:focus {
  outline: none;
}

/* HTMX Indicator Styles */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Hide icon when spinner is active */
.htmx-request [data-ajax-icon] {
  opacity: 0;
  pointer-events: none;
}

/* Hide chevron icon when request is active */
.htmx-request [data-chevron-icon] {
  opacity: 0;
  pointer-events: none;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-sm {
  padding: 0.125rem 0.625rem;
}

.badge-md {
  padding: 0.25rem 0.75rem;
}

.badge-draft {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-published {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-paused {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-closed {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-cancelled {
  background-color: #fecaca;
  color: #991b1b;
}

.badge-archived {
  background-color: #e2e8f0;
  color: #475569;
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

i {
  font-size: 1.25rem;
}

/* Icon Button Styles */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #475569;
  background-color: transparent;
  border: none;
  border-radius: 0.5rem;
  transition: all 200ms ease;
  cursor: pointer;
}

.icon-button:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.icon-button:focus {
  outline: none;
  ring: 2px;
  ring-color: #0d9488;
  ring-offset: 2px;
}

.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.submit-button {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #0d9488;
  border-radius: 0.75rem;
  transition-property: background-color, color;
  transition-duration: 200ms;
  transition-timing-function: ease;
  outline: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.submit-button:hover {
  background-color: #14b8a6;
}

.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #0d9488;
}

.submit-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #0d9488, 0 0 0 4px #fff;
}

@keyframes grow {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Prevent Flash of Unstyled Content (FOUC) for custom elements */
sheet-panel:not(:defined),
requirements-list:not(:defined),
location-dropdown:not(:defined),
job-status-dropdown:not(:defined) {
  display: none !important;
}
/* Flip Card Styles */
.flip-card {
  perspective: 1000px;
  height: 280px; /* Fixed height for consistency */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flip-card-back {
  transform: rotateY(180deg);
  background-color: white;
}

/* Quill Editor Styles */
#description-editor,
#description-editor .ql-toolbar,
#description-editor .ql-container {
  position: static !important;
  z-index: auto !important;
}

#description-editor {
  resize: vertical;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

#description-editor .ql-toolbar {
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc;
  border-radius: 0.75rem 0.75rem 0 0;
  flex-shrink: 0;
}

#description-editor .ql-container {
  border: none !important;
  font-size: 1rem;
  font-family: inherit;
  height: auto !important;
  flex: 1;
  overflow-y: auto;
}

#description-editor .ql-editor {
  min-height: 120px;
  height: 100%;
  padding: 1rem;
}

#description-editor .ql-editor.ql-blank::before {
  color: #94a3b8;
  font-style: normal;
}

#description-editor:focus-within {
  box-shadow: 0 0 0 2px #0d9488;
}

/* Prose styles for rich text content */
.prose {
  line-height: 1.75;
  color: #334155;
}

.prose p {
  margin-top: 1em;
  margin-bottom: 1em;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #0f172a;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose h1 {
  font-size: 1.5em;
}

.prose h2 {
  font-size: 1.25em;
}

.prose h3 {
  font-size: 1.125em;
}

.prose ul,
.prose ol {
  padding-left: 1.75em;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.375em;
  margin-bottom: 0.375em;
}

.prose li::marker {
  color: #64748b;
}

.prose strong {
  font-weight: 600;
  color: #1e293b;
}

.prose em {
  font-style: italic;
}

.prose u {
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 2px;
}

.prose a {
  color: #0d9488;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: #14b8a6;
}

/* Prose slate variant */
.prose-slate {
  color: #475569;
}

.prose-slate strong {
  color: #1e293b;
}

