:root {
    --primary: #000000;
    --primary-foreground: #FFFFFF;
    --secondary: #666666;
    --background: #F7F6F3;
    --foreground: #37352F;
    --muted: #6B6B6B;
    --muted-foreground: #9E9E9E;
    --border: #E0E0E0;
  }
  
  body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
      line-height: 1.5;
      color: var(--foreground);
      margin: 0;
      padding: 0;
      background-color: var(--background);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
  }
  
  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      width: 100%;
      box-sizing: border-box;
  }
  
  .notion-style {
      font-size: 16px;
  }
  
  header {
      background-color: #ffffff;
      padding: 10px 0;
      border-bottom: 3px solid var(--primary);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 16px;
  }

  /* Hamburger button */
  .hamburger-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease;
  }

  .hamburger-btn:hover {
      transform: scale(1.1);
  }

  .hamburger-btn .icon {
      width: 24px;
      height: 24px;
  }

  /* Main menu container */
  .main-menu-container {
      visibility: hidden;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1000;
      opacity: 0;
      transition: visibility 0.3s, opacity 0.3s ease;
      display: flex;
  }

  .main-menu-container.active {
      visibility: visible;
      opacity: 1;
  }

  .menu-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
  }

  .menu-content {
    width: 300px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;  /* Add this line to prevent horizontal scroll */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.main-menu-container.active .menu-content {
    transform: translateX(0);
}

  .nav-menu {
      list-style: none;
      padding: 0;
      margin: 0;
  }

  .nav-menu li {
      margin: 0;
      width: 100%;
  }

  .nav-menu a {
      text-decoration: none;
      color: var(--foreground);
      padding: 10px 16px;
      display: block;
      width: 100%;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .nav-menu a:hover {
      background-color: var(--background);
  }

  /* Dropdown styles */
  .dropdown {
      position: relative;
      width: 100%;
  }

  .dropdown .dropbtn {
      width: 100%;
      text-align: left;
      padding: 12px 16px;
      background: none;
      border: none;
      font-size: inherit;
      color: var(--foreground);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
  }

  .dropdown-content {
      display: none;
      padding: 8px 0;
      background-color: #ffffff;
      width: 100%;
      box-sizing: border-box;
      min-width: 0;
  }

  .dropdown-content a {
      display: block;
      padding: 8px 16px;
      text-decoration: none;
      color: var(--foreground);
  }

  .dropdown-content a:hover {
      background-color: rgba(0, 0, 0, 0.05);
  }

  /* Only show dropdown when active class is present */
  .dropdown.active .dropdown-content {
      display: block;
  }

  /* Icons in menu items */
  .icon {
      width: 24px;
      height: 24px;
  }

  .dropbtn .icon {
      width: 20px;
      height: 20px;
  }

  #help-dropbtn .icon {
      width: 12px;
      height: 12px;
      background-color: white;
      border: 1.5px solid black;
      border-radius: 50%;
      padding: 4px;
      box-sizing: content-box;
  }

  /* Section dividers */
  .nav-menu > li.section-divider {
      border-top: 2px solid var(--border);
      margin-top: 8px;
      padding-top: 8px;
  }

  .site-title {
      color: var(--foreground);
      font-size: 1.5em;
      font-weight: 500;
      text-decoration: none;
  }
  
  h1, h2, h3, h4 {
      font-weight: 600;
      margin-top: 1.5em;
      margin-bottom: 0.5em;
  }
  
  h1 {
      font-size: 1.5em;
      margin: 0;
  }
  
  h2 {
      font-size: 1.875em;
      margin-top: 1.5em;
  }
  
  h3 {
      font-size: 1.5em;
      margin-top: 1.2em;
  }
  
  h2 {
      font-size: 1.5em;
      color: var(--muted);
      margin-top: 0.5em;
      margin-bottom: 1.5em;
  }
  
  main {
      flex-grow: 1;
      padding: 20px 0;
  }
  
  footer {
      background-color: var(--background);
      padding: 10px 0;
      border-top: 1px solid var(--border);
      text-align: center;
  }
  
  /* Navigation styles */
  .nav-menu {
      list-style-type: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      width: 100%;
  }
  
  .nav-menu li {
      margin: 0;
      width: 100%;
  }
  
  .nav-menu a {
      text-decoration: none;
      color: var(--foreground);
      font-weight: 500;
  }
  
  .nav-menu a:hover {
      text-decoration: underline;
  }
  
  .dropdown {
      position: relative;
      display: inline-block;
  }
  
  .dropbtn {
      background-color: transparent;
      border: none;
      cursor: pointer;
      padding: 5px;
      display: flex;
      align-items: center;
      color: var(--foreground);
  }
  
  .dropdown-content {
      display: none;
      position: absolute;
      right: 0;
      top: 100%;
      background-color: #ffffff;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 100;
      border-radius: 3px;
      overflow: hidden;
  }
  
  .dropdown:hover .dropdown-content {
      display: none;
  }
  
  .dropdown-content a {
      color: var(--foreground);
      padding: 12px 16px;
      text-decoration: none;
      display: block;
      transition: background-color 0.2s ease;
  }
  
  .dropdown-content a:hover {
      background-color: var(--background);
  }
  
  .icon {
      width: 24px;
      height: 24px;
      fill: var(--foreground);
  }

/* Help icon specific styles */
#help-dropbtn {
    display: none;  /* Hidden by default, shown when authenticated */
    padding: 5px;
    border: none;
    vertical-align: middle;
}

#help-dropbtn .icon {
    width: 12px;
    height: 12px;
    background-color: white;
    border: 1.5px solid black;
    border-radius: 50%;
    padding: 4px;
    transition: all 0.2s ease;
    box-sizing: content-box;
    vertical-align: middle;
}

  /* Header menu */
  .header-menu {
      list-style-type: none;
      padding: 0;
      margin: 0;
      display: flex;
      gap: 20px;
      align-items: center;
  }

  .header-menu li a {
      text-decoration: none;
      color: var(--foreground);
      font-weight: 500;
  }

  nav {
      display: flex;
      align-items: center;
      gap: 20px;
  }

  #protected-menu-items {
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin: 10px 0;
      padding: 10px 0;
      width: 100%;
      box-sizing: border-box;
  }

  /* Header dropdown menu */
  .header-menu .dropdown {
      position: relative;
  }

  .header-menu .dropdown:nth-child(2) {
      display: none;
  }

  .header-menu .dropdown:last-child {
      display: block;
  }

  .authenticated .header-menu .dropdown:nth-child(2) {
      display: block;
  }

  .header-menu .dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      background-color: white;
      min-width: 160px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      z-index: 1100;
      border-radius: 4px;
  }

  .header-menu .dropdown:hover .dropdown-content {
      display: none;
  }

  .header-menu .dropdown-content a {
      color: var(--foreground);
      padding: 12px 16px;
      text-decoration: none;
      display: block;
      font-size: 14px;
      white-space: nowrap;
  }

  .header-menu .dropdown-content a:hover {
      background-color: var(--background);
  }

  .header-menu .dropbtn {
      cursor: pointer;
      padding: 8px 12px;
      border-radius: 4px;
  }

  .header-menu .dropbtn:hover {
      background-color: var(--background);
  }

  /* Menu sections */
  .menu-section {
      border-top: 1px solid var(--border);
      margin-top: 10px;
      padding-top: 10px;
  }

  #protected-menu-items {
      margin: 10px 0;
      padding: 10px 0;
  }

  /* Header menu for authenticated users */
  .authenticated .header-menu .dropdown {
      display: block;
  }

  .header-menu .dropdown {
      display: none;
  }

  /* Ensure dropdown is above other content */
  .header-menu .dropdown-content {
      z-index: 1100;
  }

  /* Menu items spacing */
  .nav-menu > li,
  .nav-menu > div > li {
      margin: 2px 0;
  }

  .nav-menu a {
      padding: 10px 16px;
      transition: background-color 0.2s;
  }

  .nav-menu a:hover {
      background-color: var(--background);
  }

  /* Form styles */
  .form-group {
      margin-bottom: 1.5em;
  }
  
  label {
      display: block;
      margin-bottom: 0.5em;
      font-weight: 500;
  }
  
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
      width: 100%;
      height: 40px;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 3px;
      font-size: 14px;
      line-height: 1.2;
      background-color: #ffffff;
      transition: border-color 0.2s ease-in-out;
      background-image: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      box-sizing: border-box;
  }
  
  textarea {
      height: auto;
      min-height: 40px;
      resize: vertical;
  }
  
  input[type="text"]:focus,
  input[type="number"]:focus,
  input[type="email"]:focus,
  input[type="password"]:focus,
  select:focus,
  textarea:focus {
      outline: none;
      border-color: var(--primary);
  }
  
  .notion-btn {
      display: inline-block;
      padding: 6px 12px;
      background-color: var(--primary);
      color: var(--primary-foreground);
      border: 1px solid var(--primary);
      border-radius: 3px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      text-decoration: none;
      margin-right: 10px;
      margin-bottom: 10px;
  }
  
  .notion-btn:hover {
      background-color: var(--secondary);
      border-color: var(--secondary);
  }
  
  .row {
      display: flex;
      flex-wrap: wrap;
      margin: 0 -10px;
  }
  
  .column {
      flex: 1;
      padding: 0 10px;
      min-width: 200px;
  }
  
  /* Search Tab Styles */
  .icd-search-container,
  .service-search-container {
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
      margin-bottom: 20px;
  }
  
  .icd-search-tabs,
  .service-search-tabs {
      display: flex;
      background-color: var(--background);
      gap: 0;
      border-bottom: 1px solid var(--border);
  }
  
  .icd-search-tab,
  .service-search-tab {
      flex: 1;
      padding: 10px;
      border: none;
      background-color: transparent;
      cursor: pointer;
      transition: background-color 0.2s;
      font-size: 14px;
      border-right: 1px solid var(--border);
  }
  
  .icd-search-tab:last-child,
  .service-search-tab:last-child {
      border-right: none;
  }
  
  .icd-search-tab.active,
  .service-search-tab.active {
      background-color: #ffffff;
      font-weight: bold;
  }
  
  .icd-search-content,
  .service-search-content {
      padding: 20px;
      background-color: #ffffff;
  }
  
  .icd-search-pane,
  .service-search-pane {
      display: none;
  }
  
  .icd-search-pane.active,
  .service-search-pane.active {
      display: block;
  }
  
  .icd-search-pane input,
  .service-search-pane input {
      width: 100%;
      padding: 8px 12px;
      margin-bottom: 10px;
      border: 1px solid var(--border);
      border-radius: 3px;
  }
  
  .search-button {
      padding: 8px 16px;
      background-color: var(--background);
      border: 1px solid var(--border);
      border-radius: 3px;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.2s;
  }
  
  .search-button:hover {
      background-color: var(--border);
  }
  
  .results-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  
  .result-item {
      background-color: #fff;
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 15px 20px;
      box-shadow: rgba(15, 15, 15, 0.1) 0px 1px 2px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
  }
  
  .result-content {
      flex-grow: 1;
      padding-right: 20px;
  }
  
  .result-actions {
      margin-left: 30px;
      white-space: nowrap;
  }
  
  .result-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px;
  }
  
  .result-code {
      font-weight: bold;
      margin-right: 15px;
      display: inline-block;
  }
  
  .result-description {
      margin: 8px 0;
  }
  
  .result-billable {
      font-size: 0.9em;
      text-align: right;
  }
  
  .billable {
      color: #0066ff;
  }
  
  .non-billable {
      color: #ff0000;
  }
  
  #initialization-message {
      text-align: center;
      color: var(--muted);
      margin-bottom: 20px;
  }
  
  /* Search Results Popup */
  .search-results-popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
  }
  
  .search-results-popup.active {
      display: flex;
  }
  
  .search-results-content {
      background-color: white;
      padding: 20px;
      border-radius: 5px;
      max-width: 90%;
      max-height: 80%;
      overflow-y: auto;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
      position: relative;
  }
  
  .close-search-results {
      position: absolute;
      top: 10px;
      right: 10px;
      cursor: pointer;
      font-size: 1.2em;
      font-weight: bold;
  }
  
  #diagnosisResultsList,
  #serviceResultsList {
      margin-top: 10px;
  }
  
  /* File Drop Zone Styles */
  .drop-area {
      border: 2px dashed #ccc;
      border-radius: 8px;
      padding: 20px;
      text-align: center;
      transition: all 0.3s ease;
      background-color: #ffffff;
      cursor: pointer;
      min-height: 200px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 1rem 0;
  }
  
  .drop-area:hover,
  .drop-area.highlight {
      border-color: var(--primary);
      background-color: rgba(0, 0, 0, 0.02);
  }
  
  .drop-area .file-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 10px;
      fill: #ccc;
      transition: fill 0.3s ease;
  }
  
  .drop-area:hover .file-icon,
  .drop-area.highlight .file-icon {
      fill: var(--primary);
  }
  
  .file-name {
      display: block;
      margin-top: 10px;
      font-weight: bold;
  }
  
  /* Table styles */
  .notion-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 20px;
  }
  
  .notion-table th,
  .notion-table td {
      border: 1px solid var(--border);
      padding: 8px;
      text-align: left;
  }
  
  .notion-table th {
      background-color: var(--background);
      font-weight: 600;
  }
  
  /* Validation Table Styles */
  .validation-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 20px;
      font-size: 14px;
  }
  
  .validation-table th,
  .validation-table td {
      border: 1px solid var(--border);
      padding: 8px;
      text-align: left;
  }
  
  .validation-table th {
      background-color: var(--background);
      font-weight: 600;
  }
  
  /* Add max-width for specific columns to control table width */
  .validation-table td:nth-child(3),  /* Service Name column */
  .validation-table td:nth-child(5),  /* Primary Reason column */
  .validation-table td:nth-child(6) { /* Required Documentation column */
      max-width: 250px;
      white-space: normal;
      word-wrap: break-word;
  }
  
  /* Add status-based row colors */
  .validation-table tr.compliant {
      background-color: #f0fff0;
  }
  
  .validation-table tr.non-compliant {
      background-color: #fff0f0;
  }
  
  .validation-table tr.warning {
      background-color: #fffff0;
  }
  
  /* Unstructured Claim Validation Table Styles */
  .unstructured-validation-table tr {
      background-color: #ffffff;
  }
  
  .unstructured-validation-table tr:nth-child(even) {
      background-color: var(--background);
  }
  
  .unstructured-validation-table td:nth-child(3),  /* Service Name column */
  .unstructured-validation-table td:nth-child(5),  /* Primary Reason column */
  .unstructured-validation-table td:nth-child(6) { /* Required Documentation column */
      max-width: 250px;
      white-space: normal;
      word-wrap: break-word;
  }
  
  /* Additional styles */
  ul {
      padding-left: 1.5em;
  }
  
  li {
      margin-bottom: 0.5em;
  }
  
  .cta-container {
      margin-top: 2em;
      padding: 1.5em;
      background-color: var(--background);
      border-radius: 5px;
  }
  
  .cta-container h3 {
      margin-top: 0;
  }
  
  .cta-container .notion-btn {
      margin-top: 1em;
  }
  
  .error {
      color: red;
      font-weight: bold;
  }
  
  .error-details {
      background-color: #ffeeee;
      border: 1px solid #ffcccc;
      padding: 10px;
      margin-top: 10px;
      white-space: pre-wrap;
      word-wrap: break-word;
  }
  
  .auth-container, .profile-container {
      max-width: 400px;
      margin: 2rem auto;
      padding: 2rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .btn {
      display: inline-block;
      padding: 0.5rem 1rem;
      background-color: var(--primary);
      color: var(--primary-foreground);
      text-decoration: none;
      border-radius: 3px;
      border: none;
      cursor: pointer;
  }
  
  .btn:hover {
      background-color: var(--secondary);
  }
  
  .user-info {
      display: flex;
      align-items: center;
      padding: 10px;
  }
  
  .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: var(--primary-foreground);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 16px;
      margin-right: 10px;
  }
  
  .user-details {
      display: flex;
      flex-direction: column;
  }
  
  .user-name {
      font-weight: bold;
      margin: 0;
  }
  
  .user-email {
      font-size: 0.9em;
      color: var(--muted);
      margin: 0;
  }
  
  #user-dropdown {
      min-width: 200px;
  }
  
  #user-dropdown hr {
      margin: 10px 0;
      border: none;
      border-top: 1px solid #eee;
  }
  
  .login-section {
      max-width: 300px;
      margin: 0 auto;
  
  }
  
  #auth-section  {
      margin-bottom: 20px;
  }
  
  #auth-status {
      margin-bottom: 20px;
  }
  
  .content {
      padding: 20px 0;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
      .nav-menu {
          flex-direction: column;
          align-items: flex-start;
      }
  
      .nav-menu li {
          margin-bottom: 5px;
      }
  
      .dropdown-content {
          position: static;
          box-shadow: none;
          border: 1px solid var(--border);
          margin-top: 5px;
      }
  }
  
  /* Accessibility improvements */
  .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
  }
  
  /* Focus styles for keyboard navigation */
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
  }
  
  /* Button loading states */
  .button-with-spinner {
      position: relative;
      min-width: 80px;
  }
  
  .button-with-spinner:disabled {
      background-color: var(--muted);
      border-color: var(--muted);
      cursor: not-allowed;
  }
  
  .button-with-spinner.loading .button-text {
      visibility: hidden;  /* Hide text but maintain button width */
  }
  
  .button-with-spinner.loading::after {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      top: 50%;
      left: 50%;
      margin-left: -10px;
      margin-top: -10px;
      border: 2px solid var(--primary-foreground);
      border-radius: 50%;
      border-right-color: transparent;
      animation: button-spinner 0.75s linear infinite;
  }
  
  @keyframes button-spinner {
      to {
          transform: rotate(360deg);
      }
  }
  
  /* Preserve line breaks for diagnosis text */
  .preserve-linebreaks {
      white-space: pre-wrap;
      word-wrap: break-word;
      line-height: 1.5;
      padding: 1rem;
      background-color: var(--background);
      border-radius: 4px;
  }
  
  /* Update Select button styling */
  .result-item .notion-btn {
      margin: 0;
      min-width: 80px;
      text-align: center;
  }
  
  /* Search Results Layout */
  .search-results-popup .result-item {
      display: grid;
      grid-template-columns: 1fr auto auto;
      grid-template-rows: auto auto auto;
      gap: 10px 15px;
      align-items: start;
      padding: 20px;
  }
  
  .search-results-popup .result-header {
      grid-column: 1 / -1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0;
  }
  
  .search-results-popup .result-description {
      grid-column: 1 / -1;
      margin: 0;
      color: var(--muted);
      font-size: 0.95em;
  }
  
  .search-results-popup .result-item label {
      grid-column: 2;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9em;
      white-space: nowrap;
      justify-self: center;
  }
  
  .search-results-popup .result-item .notion-btn {
      grid-column: 3;
      justify-self: end;
  }
  
  .search-results-popup .result-item input[type="checkbox"] {
      margin: 0;
  }
  
  .search-results-popup .result-item input[type="number"] {
      width: 60px;
      padding: 4px 6px;
      margin: 0;
      text-align: center;
  }
  
  /* Add this style for the template download and upload buttons */
  #templateDownloadLink .notion-btn,
  #uploadForm .notion-btn[type="submit"] {
      height: 36px;
      line-height: 36px;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
  }
  
  /* Autocomplete styles */
  .autocomplete-wrapper {
      position: relative;
      width: 100%;
  }
  
  .payor-autocomplete {
      width: 100%;
      padding: 8px;
      margin-bottom: 8px;
  }
  
  .autocomplete-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      max-height: 300px;
      overflow-y: auto;
      background-color: #ffffff;
      border: 1px solid var(--border);
      border-radius: 4px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      z-index: 1000;
      display: none;
  }
  
  .autocomplete-item {
      padding: 8px 12px;
      transition: all 0.2s ease;
      background-color: #ffffff;
      display: block;
      width: 100%;
      text-align: left;
      border: none;
      cursor: pointer;
  }
  
  .autocomplete-item:hover {
      background-color: #f5f5f5;
      color: var(--primary);
  }
  
  .autocomplete-item.no-results {
      color: #666;
      font-style: italic;
      cursor: default;
      background-color: #ffffff;
  }
  
  .autocomplete-item.no-results:hover {
      background-color: #ffffff;
      cursor: default;
      color: #666;
  }
  
  /* Hide the original select element */
  #payor_id {
      display: none;
  }
  
  .autocomplete-item.clear-selection {
      border-bottom: 1px solid var(--border);
      color: var(--muted);
      font-style: italic;
  }
  
  .autocomplete-item.clear-selection:hover {
      background-color: #fff0f0;  /* Light red background on hover */
      color: #ff0000;  /* Red text on hover */
  }
  
  /* Organization Cards */
  .organizations-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      padding: 20px 0;
  }
  
  .organization-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .organization-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .organization-card h3 {
      margin-top: 0;
      margin-bottom: 15px;
      color: var(--primary);
      font-size: 1.2em;
  }
  
  .organization-card p {
      margin: 8px 0;
      font-size: 0.95em;
  }
  
  .organization-card strong {
      color: var(--secondary);
  }
  
  .organization-actions {
      display: flex;
      gap: 10px;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--border);
  }
  
  .organization-actions .notion-btn {
      flex: 1;
      margin: 0;
      text-align: center;
  }
  
  /* Add these new styles */
  .email-input-container,
  .password-input-container {
      position: relative;
      width: 100%;
  }
  
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="number"] {
      padding: 8px 12px;
      width: 100%;
      box-sizing: border-box;
      border: 1px solid transparent;  /* Remove default border */
      border-radius: 4px;  /* Slightly rounded corners */
  }
  
  input[type="email"]:focus,
  input[type="password"]:focus,
  input[type="text"]:focus,
  input[type="number"]:focus {
      border-color: #000;  /* Black border on focus */
      outline: none;
  }
  
  .email-icon {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
  }
  
  .email-icon svg {
      width: 20px;
      height: 20px;
      color: var(--muted);
  }
  
  .password-input-container {
      position: relative;
      width: 100%;
  }
  
  .password-icon {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
  }
  
  .password-icon svg {
      width: 20px;
      height: 20px;
      color: var(--muted);
  }
  
  input[type="password"] {
      padding-right: 35px; /* Make room for the icon */
  }
  
  /* Remove the problematic commented code and email icon styles */
  .email-icon svg {
      width: 20px;
      height: 20px;
      color: var(--muted);
  }
  
  /* Scope the styles to complete registration form */
  #complete-registration-form .password-input-container {
      position: relative;
      width: 100%;
  }
  
  #complete-registration-form .password-icon {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
  }
  
  #complete-registration-form .password-icon svg {
      width: 20px;
      height: 20px;
      color: var(--muted);
  }
  
  /* Validation Table Styles */
  
  /* Add max-width for specific columns to control table width */
  
  /* Add status-based row colors */
  .validation-table tr.compliant {
      background-color: #f0fff0;
  }
  
  .validation-table tr.non-compliant {
      background-color: #fff0f0;
  }
  
  .validation-table tr.warning {
      background-color: #fffff0;
  }
  
  /* Validation Results Styling */
  .compliance-section {
      padding: 1rem;
      border-radius: 8px;
      margin-bottom: 1.5rem;
      background: var(--background-secondary);
  }
  
  .compliance-section h3 {
      margin-top: 0;
      margin-bottom: 1rem;
      color: var(--text-primary);
  }
  
  .compliance-section.approved {
      border-left: 4px solid var(--success);
  }
  
  .compliance-section.denied {
      border-left: 4px solid var(--error);
  }
  
  .compliance-section.pending {
      border-left: 4px solid var(--warning);
  }
  
  .compliance-section.unknown {
      border-left: 4px solid var(--text-secondary);
  }
  
  .compliance-reason {
      margin-top: 0.5rem;
      line-height: 1.5;
      white-space: pre-line;
  }
  
  .services-section {
      margin-top: 2rem;
  }
  
  .services-section h3 {
      margin-bottom: 1rem;
      color: var(--text-primary);
  }
  
  /* Analysis and Compliance Section Styles */
  .analysis-section {
      background-color: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 4px;
      padding: 1rem;
      margin-bottom: 1.5rem;
  }
  
  .analysis-section h3, .analysis-section h4 {
      color: #2c3e50;
      margin-bottom: 1rem;
  }
  
  .analysis-content {
      font-size: 0.95rem;
      line-height: 1.5;
      color: #495057;
      white-space: pre-line;
  }
  
  .analysis-content p {
      margin-bottom: 0.5rem;
  }
  
  /* Add new styles for clean text layout */
  .info-section {
      padding: 1rem;
  }
  
  .info-section p {
      margin: 0;
      line-height: 2;
  }
  
  .status-badge {
      display: inline;
      padding: 0.25rem 0.75rem;
      border-radius: 4px;
      margin-left: 0.5rem;
  }
  
  .status-active {
      background-color: #dcfce7;
      color: #166534;
  }
  
  .status-expired {
      background-color: #fee2e2;
      color: #991b1b;
  }
  
  /* Subscription page styles */
  .subscription-container {
      max-width: 1200px;
      margin: 3rem auto;
      padding: 0 1rem;
  }
  
  .subscription-container h1 {
      margin-bottom: 1.5rem;
  }
  
  .info-section {
      margin-bottom: 2rem;
  }
  
  .info-section p {
      margin: 0;
      padding: 0.5rem 0;
      line-height: 1.5;
  }
  
  .status-badge {
      display: inline;
      padding: 0.25rem 0.75rem;
      border-radius: 4px;
      margin-left: 0.5rem;
  }
  
  .status-active {
      background-color: #dcfce7;
      color: #166534;
  }
  
  .status-expired {
      background-color: #fee2e2;
      color: #991b1b;
  }
  
  .alert-box {
      background-color: #fff3cd;
      border: 1px solid #ffeeba;
      color: #856404;
      padding: 1rem;
      margin-bottom: 1.5rem;
      border-radius: 4px;
  }
  
  .alert-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  /* Add new styles for subscription page */
  .subscription-page {
      max-width: 800px;
      margin: 32px auto;
      padding: 0 16px;
  }
  
  .subscription-page h1 {
      font-size: 24px;
      margin-bottom: 24px;
  }
  
  .info-section {
      margin-bottom: 24px;
  }
  
  .info-row {
      margin: 16px 0;
      line-height: 1.5;
  }
  
  .status-badge {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 4px;
      margin-left: 8px;
  }
  
  .status-active {
      background-color: #dcfce7;
      color: #166534;
  }
  
  .status-expired {
      background-color: #fee2e2;
      color: #991b1b;
  }
  
  .alert {
      padding: 16px 24px;
      border-radius: 8px;
      margin: 16px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .alert.warning {
      background: rgba(255, 171, 0, 0.1);
      border: 1px solid rgba(255, 171, 0, 0.2);
  }
  
  .alert.info {
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.2);
  }
  
  .button {
      display: inline-block;
      padding: 8px 16px;
      background: #000;
      color: white;
      border-radius: 4px;
      text-decoration: none;
  }
  
  .management-section {
      margin-top: 32px;
  }
  
  .management-section h2 {
      font-size: 18px;
      margin-bottom: 16px;
      color: var(--muted);
  }
  
  /* Review of Systems and Physical Exam styles */
  .ros-item, .exam-item {
      margin: 4px 0;
      padding: 4px 0;
      border-bottom: 1px solid var(--border);
  }
  
  .ros-item:last-child, .exam-item:last-child {
      border-bottom: none;
  }
  
  .ros-item strong, .exam-item strong {
      color: var(--text-secondary);
      min-width: 120px;
      display: inline-block;
  }
  
  /* Protected menu items container */
  #protected-menu-items {
      align-items: center;
      gap: 20px;
      display: flex;
      flex-direction: column;
      width: 100%;
  }

  #protected-menu-items[style*="display: flex"] {
      display: flex !important;
  }

  #protected-menu-items[style*="display: none"] {
      display: none !important;
  }
  
  /* Show protected menu items only when authenticated */
  body.authenticated #protected-menu-items {
      visibility: visible;
  }
  
  /* Hide protected menu items for unauthenticated users */
  body.unauthenticated #protected-menu-items {
      visibility: hidden;
  }

  /* Alert styles */
  .alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
  }

  .alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
  }

  .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
  }

  .alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
  }

  /* Menu Styles */
  .nav-menu {
      list-style: none;
      padding: 0;
      margin: 0;
  }

  .menu-parent {
      margin: 16px 0;
  }

  .menu-title {
      display: block;
      font-weight: 600;
      color: #333;
      padding: 8px 16px;
      font-size: 1.1em;
      border-bottom: 1px solid #eee;
  }

  .submenu {
      list-style: none;
      padding-left: 24px;
      margin: 8px 0;
  }

  .submenu li {
      margin: 8px 0;
  }

  .submenu a {
      color: #666;
      text-decoration: none;
      padding: 6px 12px;
      display: block;
      transition: all 0.2s ease;
  }

  .submenu a:hover {
      color: #333;
      background-color: #f5f5f5;
      border-radius: 4px;
  }

  /* Ensure logout link is visible */
  #logout-link {
      display: block !important;
      color: #dc3545;
  }

  #logout-link:hover {
      background-color: #fff1f1;
  }

  /* Additional menu styles */
  .danger-link {
      color: #dc3545 !important;
  }

  .danger-link:hover {
      background-color: #fff1f1 !important;
  }

  /* Ensure logout link is always visible */
  #logout-link {
      display: block !important;
  }

  /* Add section divider */
  .section-divider {
      border-top: 1px solid var(--border);
      margin-top: 8px;
      padding-top: 8px;
  }

  /* Menu styles */
  .menu-section {
    margin: 16px 0;
  }

  .menu-title {
    font-weight: 600;
    color: var(--foreground);
    padding: 8px 16px;
    font-size: 14px;
  }

  .menu-items {
    list-style: none;
    padding-left: 24px;
    margin: 4px 0;
  }

  .menu-items li {
    margin: 2px 0;
  }

  .menu-items a {
    padding: 6px 16px;
    display: block;
    text-decoration: none;
    color: var(--foreground);
    font-size: 14px;
  }

  .menu-items a:hover {
    background-color: var(--background);
  }

  /* Danger link for logout */
  .danger-link {
    color: #dc3545 !important;
  }

  .danger-link:hover {
    background-color: #fff1f1 !important;
  }

  /* Ensure logout link is always visible */
  #logout-link {
    display: block !important;
  }

  /* User Info Section */
  .user-section {
      padding: 16px;
      margin-bottom: 24px;
      border-bottom: 1px solid var(--border);
  }

  .user-info {
      display: flex;
      align-items: center;
      gap: 12px;
  }

  .user-avatar {
      width: 40px;
      height: 40px;
      background-color: var(--primary);
      color: var(--primary-foreground);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 16px;
  }

  .user-details {
      flex: 1;
  }

  .user-details p {
      margin: 0;
      line-height: 1.4;
  }

  .user-name {
      font-weight: 600;
      color: var(--foreground);
      font-size: 14px;
  }

  .user-email {
      color: var(--muted);
      font-size: 12px;
  }

  .user-role {
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
  }

  /* Menu styles */
  .menu-section {
      margin: 16px 0;
  }

  .menu-title {
      font-weight: 600;
      color: var(--foreground);
      padding: 8px 16px;
      font-size: 14px;
  }

  .menu-items {
      list-style: none;
      padding-left: 24px;
      margin: 4px 0;
  }

  .menu-items li {
      margin: 2px 0;
  }

  .menu-items a {
      padding: 6px 16px;
      display: block;
      text-decoration: none;
      color: var(--foreground);
      font-size: 14px;
  }

  .menu-items a:hover {
      background-color: var(--background);
  }

  /* Danger link for logout */
  .danger-link {
      color: #dc3545 !important;
  }

  .danger-link:hover {
      background-color: #fff1f1 !important;
  }

  /* Navigation menu styles */
  .nav-section {
    font-weight: 600;
    color: var(--foreground);
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 8px;
  }

  .nav-menu li > a {
    padding-left: 32px;
  }

  /* User info styles */
  .user-info {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
  }

  .user-details p {
    margin: 0;
    line-height: 1.4;
  }

  .user-name {
    font-weight: 600;
    color: var(--foreground);
    font-size: 14px;
  }

  .user-email, .user-role {
    color: var(--muted);
    font-size: 12px;
  }

  /* Danger link for logout */
  .danger-link {
    color: #dc3545 !important;
  }

  .danger-link:hover {
    background-color: #fff1f1 !important;
  }

  /* Section divider */
  .section-divider {
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  /* User info styles */
  .user-info {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
  }

  .user-details p {
    margin: 0;
    line-height: 1.4;
  }

  .user-name {
    font-weight: 600;
    color: var(--foreground);
    font-size: 14px;
  }

  .user-email, .user-role {
    color: var(--muted);
    font-size: 12px;
  }

  .nav-section {
    font-weight: 600;
    color: var(--foreground);
    padding: 16px 16px 8px;
    font-size: 14px;
  }

  /* Protected menu items container */
  #protected-menu-items {
    display: none;
  }

  /* Onboarding Page Styles */
  .onboarding-container {
      padding: 40px 20px;
      max-width: 1200px;
      margin: 0 auto;
  }

  .onboarding-title {
      font-size: 2.5rem;
      text-align: center;
      margin-bottom: 0.5rem;
      color: var(--primary);
  }

  .onboarding-subtitle {
      text-align: center;
      color: var(--secondary);
      margin-bottom: 3rem;
      font-size: 1.1rem;
  }

  .onboarding-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      padding: 1rem;
  }

  .onboarding-card {
      background: white;
      border-radius: 12px;
      padding: 2rem;
      text-align: center;
      transition: transform 0.2s;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      position: relative;
  }

  .onboarding-card:hover {
      transform: translateY(-5px);
  }

  .onboarding-card.highlight {
      border: 2px solid #FFD700;
      background: linear-gradient(to bottom right, #ffffff, #fffdf0);
  }

  .card-icon {
      background: var(--background);
      width: 64px;
      height: 64px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
  }

  .card-icon.special {
      background: linear-gradient(135deg, #FFD700, #FFA500);
  }

  .card-icon .material-icons-round {
      font-size: 32px;
      color: var(--primary);
  }

  .card-icon.special .material-icons-round {
      color: white;
  }

  .onboarding-card h2 {
      margin: 0 0 1rem;
      font-size: 1.5rem;
      color: var(--primary);
  }

  .onboarding-card p {
      color: var(--secondary);
      margin-bottom: 1.5rem;
      min-height: 3em;
  }

  .card-button {
      display: inline-block;
      padding: 0.8rem 1.5rem;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 500;
      transition: background-color 0.2s;
      width: 100%;
      box-sizing: border-box;
  }

  .card-button.primary {
      background-color: var(--primary);
      color: var(--primary-foreground);
  }

  .card-button.primary:hover {
      background-color: #333;
  }

  .card-button.special {
      background: linear-gradient(135deg, #FFD700, #FFA500);
      color: #000;
  }

  .card-button.special:hover {
      background: linear-gradient(135deg, #FFE44D, #FFB52E);
  }

  .special-offer {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: #FFD700;
      color: #000;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
  }

  /* Feature Grid Styles */
  .grid-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      padding: 2rem 0;
  }

  .feature-card {
      background: white;
      border-radius: 8px;
      padding: 1.5rem;
      text-align: center;
      transition: transform 0.2s;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      position: relative;
  }

  .feature-card:hover {
      transform: translateY(-5px);
  }

  .feature-card.highlight {
      border: 2px solid var(--primary);
      background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
  }

  .feature-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
      background: var(--background);
  }

  .feature-icon.special {
      background: var(--primary);
  }

  .feature-icon .material-icons-round {
      font-size: 24px;
      color: var(--primary);
  }

  .feature-icon.special .material-icons-round {
      color: var(--primary-foreground);
  }

  .feature-card h3 {
      margin: 0 0 0.75rem;
      color: var(--primary);
  }

  .feature-card p {
      color: var(--secondary);
      margin-bottom: 1.25rem;
      min-height: 3em;
  }

  .feature-tag {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      background: var(--primary);
      color: var(--primary-foreground);
      padding: 0.25rem 0.75rem;
      border-radius: 1rem;
      font-size: 0.8rem;
      font-weight: 500;
  }

  /* Menu arrow icon */
  .menu-arrow {
    font-size: 20px;
    margin-left: 4px;
    transition: transform 0.3s ease;
    vertical-align: middle;
  }

  .dropdown.active .menu-arrow {
    transform: rotate(180deg);
  }

  /* Enhanced nav-section styles */
  .nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
  }

  .nav-section:hover,
  .nav-section:focus {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Enhanced dropdown styles */
  .dropdown-content {
    display: none;
    padding: 8px 0;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  /* Keyboard focus styles */
  .nav-section:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
  }

  .dropdown-content a:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background-color: rgba(0, 0, 0, 0.05);
  }