/* Career and Salary Comparison Simulator */

/* Main style definitions */
body {
  font-family: "Inter", sans-serif;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Card component */
.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
}

/* Accordion components - Hybrid Approach */
.accordion-button svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}
.accordion-content[data-expanded="true"] {
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease-in-out 0.1s;
}
.accordion-content > div {
  padding: 1rem;
}

/* Range slider styles */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  cursor: pointer;
  border-radius: 50%;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #3b82f6;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

/* Level indicator bars */
.level-bar-container {
  height: 20px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.level-bar {
  height: 100%;
  transition: width 0.3s ease-in-out;
  text-align: right;
  padding-right: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 20px;
}

/* Level colors */
.level-1 {
  background-color: #ef4444;
}
.level-2 {
  background-color: #f97316;
}
.level-3 {
  background-color: #eab308;
}
.level-4 {
  background-color: #84cc16;
}
.level-5 {
  background-color: #22c55e;
}

/* Toggle buttons */
.toggle-btn.active {
  background-color: #3b82f6;
  color: white;
}
.toggle-btn:not(.active) {
  background-color: #e5e7eb;
  color: #4b5563;
}

/* Content styling */
.prose {
  overflow-wrap: break-word;
}
.prose h3 {
  color: #1f2937;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.prose h4 {
  color: #374151;
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}
.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-bottom: 1em;
}
.prose strong {
  color: #111827;
}
.prose pre {
  background-color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  margin: 0.75em 0;
}
.prose pre code {
  display: block;
  line-height: 1.6;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose li ul,
.prose li ol {
  margin-top: 0.5em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.prose th,
.prose td {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose thead th {
  background-color: #f9fafb;
}
.prose tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}

/* Form elements */
input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

/* Screen reader only helper class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .card {
    margin: 0 0.25rem;
  }
  input,
  select {
    font-size: 16px; /* Prevent iOS zoom */
  }
}
