/* --- Tailwind Responsive Breakpoints --- */

/* --- Colors --- */

/*
  Tailwind Default Colors (https://tailwindcss.com/docs/colors):

  Neutral Colors:
  neutral-50:  #fafafa
  neutral-100: #f5f5f5
  neutral-200: #e5e5e5
  neutral-300: #d4d4d4
  neutral-400: #a3a3a3
  neutral-500: #737373
  neutral-600: #525252
  neutral-700: #404040
  neutral-800: #262626
  neutral-900: #171717
  neutral-950: #0a0a0a

  Orange Colors:
  orange-50:   #fff7ed
  orange-100:  #ffedd5
  orange-200:  #fed7aa
  orange-300:  #fdba74
  orange-400:  #fb923c
  orange-500:  #f97316
  orange-600:  #ea580c
  orange-700:  #c2410c
  orange-800:  #9a3412
  orange-900:  #7c2d12
  orange-950:  #431407

  Bone Colors:
  bone-50:   #FCFBFA
  bone-100:  #F8F7F4
  bone-200:  #F4F2ED
  bone-300:  #EFEDE6
  bone-400:  #EBE9E0
*/

/* @import "forms"; */

/* Custom radio button styling */
input[type="radio"][name="interaction_mode"] {
  accent-color: #171717; /* neutral-900 */
}

input[type="radio"][name="interaction_mode"]:checked {
  background-color: #171717;
  border-color: #171717;
}

input[type="radio"][name="interaction_mode"]:focus {
  --tw-ring-color: rgb(23 23 23 / 0.5);
  box-shadow: 0 0 0 2px rgb(23 23 23 / 0.5);
}

/* Custom checkbox styling for consent */
input[type="checkbox"]#consent_confirmed {
  accent-color: #171717; /* neutral-900 */
}

input[type="checkbox"]#consent_confirmed:checked {
  background-color: #171717;
  border-color: #171717;
}

input[type="checkbox"]#consent_confirmed:focus {
  --tw-ring-color: rgb(23 23 23 / 0.5);
  box-shadow: 0 0 0 2px rgb(23 23 23 / 0.5);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  /* font-family: "DM Sans", sans-serif; */
  /* font-family: "Satoshi", sans-serif; */
  font-optical-sizing: auto;
  font-weight: 425;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: -0.015em;
  background-color: #f8f7f4; /* .bg-bone-100 */
}

.content-container {
  margin-left: auto;
  margin-right: auto;
}

/* --- Typography --- */

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.04em;
  /* text-transform: capitalize; */
  /* font-family: "Cabinet Grotesk", sans-serif; */
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.04em;
  /* text-transform: capitalize; */
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.04em;
  /* text-transform: capitalize; */
}

h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.04em;
  /* text-transform: capitalize; */
}

h5 {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.04em;
}

.text-xxs {
  font-size: 9px;
}

.agent-text {
  font-size: 20px; /* Mobile first: text-xl */
  font-weight: 450; /* Corresponds to font-medium */
  line-height: 1.5; /* Adjust as needed, e.g., 28px for text-xl */
  text-align: center;

  margin-right: auto; /* Centering block with max-width */
  margin-left: auto; /* Centering block with max-width */
  color: #171717;
}

.bg-bone-50 {
  background-color: #fcfbfa;
}
.border-bone-50 {
  border-color: #fcfbfa;
}

.bg-bone-100 {
  background-color: #f8f7f4;
}
.border-bone-100 {
  border-color: #f8f7f4;
}

.bg-bone-200 {
  background-color: #f4f2ed;
}
.border-bone-200 {
  border-color: #f4f2ed;
}

.bg-bone-300 {
  background-color: #efede6;
}
.border-bone-300 {
  border-color: #efede6;
}

.bg-bone-400 {
  background-color: #ebe9e0;
}
.border-bone-400 {
  border-color: #ebe9e0;
}

.text-bone-400 {
  color: #ebe9e0;
}

.notice {
  position: absolute;
  bottom: -60px;
  background-color: #171717; /* .bg-neutral-900 */
  color: #ffffff; /* .text-orange-600 */
  border-radius: 16px;
  padding: 10px 16px 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  z-index: 1050;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  width: fit-content;
  transition: bottom 0.3s cubic-bezier(0.68, -0.55, 0.45, 1.3);
}

.notice-show {
  bottom: 28px;
}

.notice-close-icon {
  cursor: pointer;
}
/* --- Button --- */

.btn {
  border-radius: 16px;
  line-height: 16px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  align-self: center;
  justify-self: center;
  font-size: 13px;
}

/* --- Button Icon --- */

.btn.has-icon-left {
  padding-left: 16px;
}

.btn.has-icon-right {
  padding-right: 16px;
}

.btn.just-icon-on-mobile {
  padding-left: 12px;
  padding-right: 12px;
}

.btn.just-icon-btn {
  padding: 12px;
}

.btn.just-icon-on-mobile span {
  /* hide the label */
  display: none;
}

.btn.just-icon-on-desktop svg {
  display: none;
}

.btn-sm-icon {
  padding: 10px;
  border-radius: 12px;
}

/* --- Button Hotkey --- */

.btn.has-hotkey {
  padding: 12px 20px;
}

.btn kbd {
  display: none;
  font-size: 9px;
  font-weight: 550;
  border: 2px solid;
  border-radius: 6px;
  height: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  padding-right: 4px;
}

.btn-primary kbd {
  display: none;
  color: #ffd6a7;
  border: 2px solid #ff8904;
}

.btn-secondary kbd {
  display: none;
  color: #d4d4d4;
  border: 2px solid #737373;
}

.btn-tertiary kbd,
input kbd.tertiary {
  display: none;
  color: #a3a3a3;
  border: 2px solid #e5e5e5;
}

kbd.tertiary {
  display: none;
  font-size: 9px;
  border: 2px solid;
  border-radius: 6px;
  height: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  padding-right: 4px;
  color: #a3a3a3;
  border: 2px solid #e5e5e5;
}

/* .btn-tertiary kbd {
  font-size: 9px;
  color: #a3a3a3;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  height: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  padding-right: 4px; 
} */

.btn-sm {
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 11px;

  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
}

.btn-lg {
  font-size: 15px;
  font-weight: 500;
  border-radius: 16px;
  line-height: 16px;
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
}

.gsi-material-button-icon {
  height: 20px;
  margin-right: 2px;
  min-width: 20px;
  width: 20px;
}

.btn-primary {
  color: rgba(255, 255, 255, 0.9);
  background-color: #ea580c;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
  color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px #fed7aa;
  border: none;
  outline: none;
  scale: 1.0075;
}

.btn-primary:active,
.btn-secondary:active,
.btn-tertiary:active {
  scale: 0.94;
}

.btn-secondary {
  color: rgba(255, 255, 255, 0.9);
  background-color: #171717; /* .text-neutral-900 */
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:focus-visible,
.btn-secondary:active {
  color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px #d4d4d4;
  border: none;
  outline: none;
  scale: 1.01;
}

.btn-tertiary {
  color: #737373; /* text-neutral-500 */
  background-color: #f8f7f4; /* .bg-bone-100 */
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-tertiary:hover,
.btn-tertiary:focus,
.btn-tertiary:focus-visible,
.btn-tertiary:active {
  color: #ea580c; /* text-neutral-900 */
  background-color: #fff7ed; /* .bg-orange-50 */
  scale: 1.01;
}

.btn-danger-primary {
  color: rgba(255, 255, 255, 0.9); /* text-white/90 */
  background-color: #dc2626; /* bg-red-600 */
  transition: all 0.3s ease;
}

.btn-danger-secondary {
  color: #c10007;
  background-color: #fee2e2; /* bg-red-50 */
  transition: all 0.3s ease;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:focus-visible,
.btn-danger:active {
  color: #ffffff; /* text-white */
  background-color: #b91c1c; /* bg-red-700 */
  box-shadow: 0 0 0 3px #ffd7d7; /* shadow-red-400 */
  border: none;
  outline: none;
}

/* Ensure buttons with the .hidden class are actually hidden */
.btn.hidden {
  display: none;
}

/* Start of Selection */
.sidenav-item {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  width: 100%;
  transition: all 0.3s ease;
  margin-bottom: 2px;
}

.sidenav-item:hover {
  background-color: #fcfbfa;
  color: #ea580c;
}

.sidenav-item.active {
  background-color: #ffffff;
  color: #ea580c;
}

/* End of Selection */

/* --- Low Credit Banner --- */

.low-credit-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  overflow: hidden;
}

.low-credit-banner__link {
  display: flex;
  width: 100%;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: background-color 0.15s ease;
}

.low-credit-banner__link:hover {
  background-color: rgba(251, 191, 36, 0.15);
}

.low-credit-banner__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: #fbbf24;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
}

.low-credit-banner__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.low-credit-banner__title {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.2;
}

.low-credit-banner__balance {
  font-size: 11px;
  color: #a16207;
  line-height: 1.3;
}

.low-credit-banner__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #a16207;
}

.low-credit-banner__message {
  padding: 12px;
  background-color: rgba(251, 191, 36, 0.1);
  border-top: 1px solid #fcd34d;
  font-size: 12px;
  color: #92400e;
  line-height: 1.4;
}

/* --- Subnav Header --- */

.subnav-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.subnav-left {
  display: flex;
  flex: 0;
  align-items: center;
  justify-content: flex-start;
}

.subnav-middle {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.subnav-right {
  display: flex;
  flex: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.subnav {
  display: flex;
  background-color: #f8f7f4; /* .bg-bone-100 */
  border-radius: 16px;
  height: 40px;
  padding: 4px;
  gap: 4px;
}

a.subnav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
  padding: 6px 16px;
  transition: all 0.3s ease;
  border-radius: 12px;
  color: #737373; /* text-neutral-500 */
}

a.subnav-item:hover {
  background-color: #fcfbfa;
  color: #ea580c;
}

/* --- Content Header --- */

.content-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

.header-right {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.header-right .btn {
  align-self: auto;
}

ul.breadcrumb {
  display: none;
}

.capitalize {
  color: #737373; /* text-neutral-500 */
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.capitalize-small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.content-header-item a {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.content-header-item a:hover {
  color: #171717; /* .text-neutral-900 */
  transition: all 0.3s ease;
}

.header-tags {
  display: flex;
  gap: 4px;
  margin-top: -8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-flex; /* Use inline-flex to align text and icon */
  align-items: center; /* Vertically center items */
  color: #d4d4d4; /* text-neutral-500 */
  background-color: #171717; /* text-neutral-900 */
  border-radius: 8px; /* Fully rounded corners for pill shape */
  padding: 6px 8px 6px 10px; /* Vertical and horizontal padding */
  font-size: 9px; /* Slightly smaller font size */
  line-height: 12px; /* Adjust line height for padding */
  white-space: nowrap; /* Prevent tags from wrapping */
  text-transform: uppercase;
  letter-spacing: 1.4px;
  transition: all 0.3s ease;
}

.tag-sm {
  display: inline-flex; /* Use inline-flex to align text and icon */
  align-items: center; /* Vertically center items */
  border-radius: 8px; /* Fully rounded corners for pill shape */
  padding: 3px 5px 3px 5px; /* Vertical and horizontal padding */
  font-size: 9px; /* Slightly smaller font size */
  line-height: 12px; /* Adjust line height for padding */
  white-space: nowrap; /* Prevent tags from wrapping */
  text-transform: uppercase;
  letter-spacing: 1.4px;
  transition: all 0.3s ease;
}

.tag-light {
  background-color: #f8f7f4; /* text-bone-100 */
  color: #737373; /* text-neutral-500 */
  font-weight: 500;
}

.tag-white {
  background-color: #ffffff; /* text-bone-100 */
  color: #737373; /* text-neutral-500 */
  font-weight: 500;
  border: 1px solid #f4f2ed;
}

.client-status-banner {
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  padding: 10px 20px;
  text-align: center;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Main Content --- */

.list {
  > *:nth-child(odd) {
    background-color: #fcfbfa;
  }
}

.list {
  color: #737373; /* text-neutral-500 */
}

.list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 16px 24px 16px;
  border-radius: 16px;
  width: 100%; /* Ensure the list item itself takes full width */
  color: #737373; /* text-neutral-500 */
  /* text-transform: capitalize; */
  transition: all 0.3s ease;
}

.list-item-title {
  color: #171717; /* .text-neutral-900 */
  text-wrap: wrap;
  text-transform: capitalize;
  transition: all 0.3s ease;
  font-weight: 500;
}

.key-value-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.key-value-content span {
  color: #737373; /* text-neutral-500 */
  font-size: 12px;
  display: block;
  padding-bottom: 4px;
}

.project-card {
  background-color: #fcfbfa; /* .bg-bone-50 */
  /* border: 2px solid #F8F7F4; */
  border-radius: 16px;
  padding: 120px 24px 24px 24px;
  transition: all 0.3s ease;
}

.project-card:hover {
  background-color: #fff7ed; /* .bg-orange-50 */
  /* border: 2px solid #fff7ed; */
  transition: all 0.3s ease;
}

.project-card h4 {
  transition: all 0.3s ease;
}

.project-card:hover h4 {
  color: #ea580c; /* .text-orange-600 */
}

/* --- Forms --- */

:root {
  --form-bg-color: #f8f7f4; /* Light beige, similar to image */
  --form-border-color: #f4f2ed; /* Subtle border color */
  --form-focus-border-color: #f97316; /* Orange, similar to Tailwind's orange-500 */
  --form-placeholder-color: #b0b0b0; /* Light gray for placeholder */
  --form-text-color: #262626; /* Dark gray for input text */
  --form-label-color: #1f2937; /* Dark gray for labels (Tailwind gray-800) */
  --form-border-radius: 8px; /* Corresponds to Tailwind's rounded-md (0.5rem * 16px/rem) */
  --form-padding-y: 8px; /* Adjusted for border (0.65rem * 16px/rem) */
  --form-padding-x: 12px; /* Adjusted for border (0.9rem * 16px/rem) */
  --form-text-line-height: 20px; /* Tailwind's leading-tight (1.25rem * 16px/rem) */
}

/* Labels */
label {
  display: block;
  margin-bottom: 8px; /* Reduced margin (0.4rem * 16px/rem = 6.4px, but 8px is used) */
  font-weight: 450; /* Medium weight */
  color: var(--form-label-color);
  font-size: 13px; /* Tailwind's text-sm */
  line-height: 20px; /* Tailwind's leading-tight (1.25rem * 16px/rem) */
}

/* Common styles for text-based inputs, select, textarea */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--form-padding-y) var(--form-padding-x);
  font-size: 13px; /* Base font size */
  line-height: var(
    --form-text-line-height
  ); /* Added to control content height */
  color: var(--form-text-color);
  background-color: var(--form-bg-color);
  border: 2px solid var(--form-border-color);
  border-radius: var(--form-border-radius);
  box-sizing: border-box;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  appearance: none; /* Remove default styling, especially for select */
}

/* Placeholder text style */
input::placeholder,
textarea::placeholder {
  color: var(--form-placeholder-color);
  opacity: 1; /* Ensures placeholder is visible, especially in Firefox */
}

/* Focus styles */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border: 2px solid var(--form-focus-border-color);
  /* Adjust padding to prevent layout shift due to thicker border */
  padding-top: var(--form-padding-y);
  padding-bottom: var(--form-padding-y);
  padding-left: var(--form-padding-x);
  padding-right: var(--form-padding-x);
}

/* Styling for select dropdown arrow (minimal example) */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center; /* 0.75rem * 16px/rem */
  background-size: 1.25em 1.25em;
  padding-right: 40px; /* Make space for the arrow (2.5rem * 16px/rem) */
}

/* Disabled styles */
input:disabled,
textarea:disabled,
select:disabled {
  background-color: #f8f7f4; /* Standard Bootstrap disabled bg */
  color: #737373; /* text-neutral-500 */
  cursor: not-allowed;
  border-color: #f4f2ed;
}

/* Read-only styles (to match the image's last field appearance if it's readonly) */
input[readonly],
textarea[readonly] {
  background-color: var(--form-bg-color); /* Same as normal */
  color: var(--form-text-color);
  /* border-color: var(--form-border-color); /* Keep normal border or make it less prominent if desired */
  /* cursor: default; */
}

/* Wrapper for label and input, helps with spacing */
.form-group {
  margin-bottom: 120px; /* 14px (0.875rem * 16px/rem) */
}

.form-field {
  margin-bottom: 24px; /* 14px (0.875rem * 16px/rem) */
}

input.search-input {
  border-color: #f8f7f4;
  border-radius: 16px;
  padding-left: 34px !important;
}

/* Search input container - responsive width with focus expansion on desktop */
.search-input-container {
  position: relative;
  width: 100%;
  max-width: 260px;
  transition: max-width 0.2s ease-in-out;
}

@media (min-width: 768px) {
  .search-input-container {
    max-width: 200px;
  }

  .search-input-container:focus-within {
    max-width: 100%;
  }
}

/* Phone input styling - intl-tel-input integration */
.phone-input-container {
  position: relative;
}

.phone-input-container .iti {
  width: 100%;
}

.phone-input-container .iti__input {
  width: 100% !important;
  padding: var(--form-padding-y) var(--form-padding-x) !important;
  padding-left: 50px !important; /* Space for country flag */
  padding-right: 90px !important; /* Reduced from 97px to 90px */
  font-size: 13px !important;
  line-height: var(--form-text-line-height) !important;
  color: var(--form-text-color) !important;
  background-color: var(--form-bg-color) !important;
  border: 2px solid var(--form-border-color) !important;
  border-radius: var(--form-border-radius) !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

.phone-input-container .iti__input:focus {
  outline: none !important;
  border: 2px solid var(--form-focus-border-color) !important;
}

.phone-input-container .iti__input::placeholder {
  color: var(--form-placeholder-color) !important;
  opacity: 1 !important;
}

/* Country dropdown styling */
.phone-input-container .iti__country-list {
  border: 1px solid var(--form-border-color);
  border-radius: var(--form-border-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.phone-input-container .iti__selected-country {
  padding: 0 8px;
}

/* Error state styling */
.phone-input-container .iti__input.border-red-300 {
  border-color: #fca5a5 !important;
}

.phone-input-container .iti__input.border-green-300 {
  border-color: #86efac !important;
}

.pagination {
  background-color: #f8f7f4;
  border-radius: 16px;
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.page a {
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #737373; /* text-neutral-500 */
}

.page a:hover {
  color: #ea580c; /* text-orange-600 */
}

.page.current {
  background-color: #ffffff;
  border-radius: 12px;
  color: #ea580c; /* text-orange-600 */
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page.gap {
  background-color: #f8f7f4;
  color: #737373; /* text-neutral-500 */
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.study-guide-content h1,
.study-guide-content h2,
.study-guide-content h3,
.study-guide-content h4,
.study-guide-content h5,
.study-guide-content h6 {
  color: #171717; /* .text-neutral-900 */
  padding-bottom: 4px;
  font-size: 16px;
}

.study-guide-content p {
  padding-bottom: 16px;
}

.study-guide-content:last-child {
  padding-bottom: 0;
}

.content-paragraphs p {
  margin-bottom: 8px;
}

.question-prompt p {
  line-height: 16px;
  margin-bottom: 4px;
}

.simple_format p {
  margin-bottom: 8px;
}

.block-prompt p {
  margin-bottom: 8px;
}

/* Message content - comprehensive markdown styling */
.message-content {
  line-height: 1.6;
  color: #404040; /* text-neutral-700 */
}

.message-content p {
  margin-bottom: 16px;
  color: #737373; /* text-neutral-500 */
}

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

/* Headings */
.message-content h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 16px;
  margin-top: 24px;
  color: #171717; /* text-neutral-900 */
}

.message-content h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 12px;
  margin-top: 20px;
  color: #171717; /* text-neutral-900 */
}

.message-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 12px;
  margin-top: 16px;
  color: #171717; /* text-neutral-900 */
}

.message-content h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  margin-bottom: 8px;
  margin-top: 16px;
  color: #171717; /* text-neutral-900 */
}

.message-content h5,
.message-content h6 {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 8px;
  margin-top: 12px;
  color: #171717; /* text-neutral-900 */
}

/* Lists */
.message-content ul,
.message-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.message-content li {
  margin-bottom: 8px;
  color: #737373; /* text-neutral-500 */
}

.message-content li:last-child {
  margin-bottom: 0;
}

.message-content ul li {
  list-style-type: disc;
}

.message-content ol li {
  list-style-type: decimal;
}

.message-content ul ul,
.message-content ol ol,
.message-content ul ol,
.message-content ol ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Code */
.message-content code {
  background-color: #f8f7f4; /* bg-bone-100 */
  color: #dc2626; /* text-red-600 */
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 12px;
}

.message-content pre {
  background-color: #f8f7f4; /* bg-bone-100 */
  border: 1px solid #f4f2ed; /* border-bone-200 */
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}

.message-content pre code {
  background: none;
  color: #171717; /* text-neutral-900 */
  padding: 0;
  border-radius: 0;
}

/* Blockquotes */
.message-content blockquote {
  border-left: 4px solid #ea580c; /* border-orange-600 */
  padding-left: 16px;
  margin: 16px 0;
  color: #525252; /* text-neutral-600 */
  font-style: italic;
}

.message-content blockquote p {
  margin-bottom: 8px;
}

/* Links */
.message-content a {
  color: #ea580c; /* text-orange-600 */
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.message-content a:hover {
  color: #c2410c; /* text-orange-700 */
}

/* Tables */
.message-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

.message-content th,
.message-content td {
  border: 1px solid #f4f2ed; /* border-bone-200 */
  padding: 8px 12px;
  text-align: left;
}

.message-content th {
  background-color: #f8f7f4; /* bg-bone-100 */
  font-weight: 600;
  color: #171717; /* text-neutral-900 */
}

.message-content td {
  color: #404040; /* text-neutral-700 */
}

/* Horizontal rule */
.message-content hr {
  border: none;
  height: 1px;
  background-color: #f4f2ed; /* bg-bone-200 */
  margin: 24px 0;
}

/* Strong and emphasis */
.message-content strong {
  font-weight: 600;
  color: #171717; /* text-neutral-900 */
}

.message-content em {
  font-style: italic;
}

/* Images */
.message-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

/* Nested lists styling */
.message-content ul ul,
.message-content ol ol {
  padding-left: 20px;
}

/* First element margin reset */
.message-content > *:first-child {
  margin-top: 0;
}

/* Last element margin reset */
.message-content > *:last-child {
  margin-bottom: 0;
}

.analysis-summary p {
  margin-bottom: 12px;
}

/* --- Responsive Styles --- */

/* Small screens (sm) */
@media (min-width: 640px) {
  /* Add sm styles here */

  .list-item-title {
    color: #171717; /* .text-neutral-900 */
    text-wrap: wrap;
    text-transform: capitalize;
    transition: all 0.3s ease;
    font-size: 13px;
    line-height: 20px;
    font-weight: 450;
  }

  .btn.has-hotkey {
    padding: 10px 16px 10px 20px;
  }

  .btn kbd {
    display: inline-flex;
  }

  .btn.just-icon-on-mobile {
    padding-left: 16px;
    padding-right: 20px;
  }

  .btn.just-icon-on-mobile span {
    display: inline; /* show the label */
  }
}

/* Medium screens (md) */
@media (min-width: 768px) {
  /* Add md styles here */

  h1 {
    font-size: 40px;
    line-height: 48px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  h3 {
    font-size: 24px;
    line-height: 32px;
  }

  h4 {
    font-size: 18px;
    line-height: 26px;
  }

  h5 {
    font-size: 16px;
    line-height: 24px;
  }

  ul.breadcrumb {
    display: flex;
    align-items: center;
    color: #737373; /* text-neutral-500 */
    gap: 8px; /* This gap will now be between the li (including its ::after) and the next li */
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    line-height: 12px;
    margin-bottom: 16px;
    padding-left: 0; /* Remove default ul padding */
    list-style: none; /* Remove default list bullets */
  }

  /* Add the separator after each list item except the last one */
  ul.breadcrumb li:not(:last-child)::after {
    content: "//";
    color: #737373; /* text-neutral-500 */
    margin-left: 8px;
    color: inherit;
    position: relative;
    top: -1px;
    text-decoration: none;
    pointer-events: none;
  }

  ul.breadcrumb li a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
  }

  ul.breadcrumb li a:hover {
    color: #ea580c; /* .text-orange-600 */
  }

  .agent-text {
    font-size: 24px; /* md:text-2xl */
    line-height: 1.5; /* Adjust as needed, e.g., 32px for text-2xl */
  }

  .list-item {
    flex-direction: row;
    align-items: center;
    /* height: 80px; */
    /* justify-content: space-between;  */
    /* padding: 8px 8px; */
    padding: 20px 28px 20px 20px;
    border-radius: 16px;
    width: 100%; /* Ensure the list item itself takes full width */
    /* height: 80px; */
    color: #737373; /* text-neutral-500 */
    transition: all 0.3s ease;
  }

  .list-item:hover {
    background-color: #fff7ed; /* .bg-bone-100 */
    color: #ea580c; /* .text-orange-600 */
  }

  .list-item:hover .list-item-title {
    color: #ea580c; /* .text-orange-600 */
  }

  .subnav-left {
    flex: 1;
  }

  .subnav-right {
    flex: 1;
  }
}

/* Large screens (lg) */
@media (min-width: 1024px) {
  /* Add lg styles here */

  .agent-text {
    font-size: 32px; /* lg:text-3xl */
    line-height: 48px;
    letter-spacing: -0.035em;
    /* padding remains md:px-6 as per original example, or adjust if needed */
  }

  .content-container {
    max-width: 820px;
  }
}

/* Extra large screens (xl) */
@media (min-width: 1280px) {
  /* Add xl styles here */
}

/* Double extra large screens (2xl) */
@media (min-width: 1536px) {
  /* Add 2xl styles here */
  .content-container {
    max-width: 1000px;
  }
}

/* Sortable Styles */
.sortable-ghost {
  opacity: 0.4;
}

.sortable-chosen {
  /* outline: 2px solid #ea580c;
  outline-offset: 2px; */
}

.sortable-drag {
  transform: rotate(5deg);
}

/* Drag handle styles */
.drag-handle {
  transition: all 0.2s ease;
  padding: 8px;
  background-color: #f8f7f4;
  border-radius: 12px;
  cursor: grab;
  cursor: -webkit-grab;
  cursor: -moz-grab;
  color: #737373;
}

.drag-handle:hover {
  color: #ea580c; /* .text-orange-600 */
}

/* AI Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  margin-left: 2px;
}

.typing-indicator span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #9ca3af; /* text-neutral-200 */
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Fade-in animation for content transitions */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced block type selection cards */
.block-type-card {
  transition: all 0.2s ease-in-out;
  transform: translateY(0);
}

.block-type-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.block-type-card.selected {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hide textarea resize handle while keeping functionality */
textarea {
  resize: vertical;
}

textarea::-webkit-resizer {
  display: none;
}

/* Reusable Chat Sidebar Layout */
.content-with-chat {
  display: flex;
  height: calc(100vh - 120px); /* Adjust 120px based on your header height */
  overflow: hidden;
}

.main-content-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-content-container.chat-active {
  max-width: none;
  margin: 0;
  width: 60%;
}

.chat-sidebar {
  width: 0;
  background-color: #ffffff;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

/* .chat-sidebar.show {
  width: 40vw;
  opacity: 1;
  pointer-events: auto;
} */

.chat-sidebar-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
  border: 2px solid #f4f2ed;
  border-radius: 16px;
}

.chat-messages {
  flex: 1;

  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-input-area {
  flex-shrink: 0;
  padding-top: 16px;
}

/* Legacy class names for backward compatibility */
.page-details-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-details-container.chat-active {
  max-width: none;
  margin: 0;
  width: 60%;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.interview-chat-container {
  width: 0;
  background-color: #ffffff;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: fixed;
  top: 0;
  right: 0;
  height: calc(100vh - 62px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  margin: 32px 32px 32px 0px;
}

.interview-chat-container.show {
  width: 28vw;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-with-chat {
    flex-direction: column;
    height: auto;
  }

  .main-content-container.chat-active,
  .page-details-container.chat-active {
    width: 100%;
  }

  .chat-sidebar.show,
  .interview-chat-container.show {
    width: 100vw;
    height: 60vh;

    position: fixed;
    bottom: 0;
    top: auto;
  }
}

/* Shimmer text effect for loading states */

/* For heading text with neutral-900 base color */
.shimmer-text-900 {
  background: linear-gradient(
    90deg,
    #171717 0%,
    /* neutral-900 - darkest */ #171717 20%,
    /* neutral-900 - stay dark */ #f4f2ed 40%,
    /* bone-200 - warm light */ #f4f2ed 60%,
    /* bone-200 - warm light */ #171717 80%,
    /* neutral-900 - darkest */ #171717 100% /* neutral-900 - darkest */
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  /* Ensure shimmer works on mobile webkit browsers */
  -webkit-animation: shimmer 4s linear infinite;
}

/* For body text with neutral-500 base color */
.shimmer-text-500 {
  background: linear-gradient(
    90deg,
    #737373 0%,
    /* neutral-500 - base */ #737373 20%,
    /* neutral-500 - base */ #e5e5e5 40%,
    /* neutral-200 - lighter */ #e5e5e5 60%,
    /* neutral-200 - lighter */ #737373 80%,
    /* neutral-500 - base */ #737373 100% /* neutral-500 - base */
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  /* Ensure shimmer works on mobile webkit browsers */
  -webkit-animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Webkit-specific keyframes for mobile Safari */
@-webkit-keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #efede6; /* bone-300 */
  transition: background-color 0.3s ease;
  border-radius: 12px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px; /* 32px - 8px (4px padding top and bottom) */
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 8px;
}

input:checked + .toggle-slider {
  background-color: #ffedd5;
}

input:checked + .toggle-slider:before {
  transform: translateX(
    22px
  ); /* Moves from 4px to 28px (56px - 24px toggle - 4px padding) */
  background-color: #ea580c; /* orange-600 */
}

/* Remove default browser focus outline */
input:focus + .toggle-slider {
  outline: none;
}

.toggle-slider:focus {
  outline: none;
}

/* ===================================================================== */
/* --- Sidebar --- */
/* ===================================================================== */

/* Desktop sidebar base styles */
@media (min-width: 1024px) {
  .sidebar {
    width: 18rem; /* w-72 = 288px = 18rem */
    flex-shrink: 0;
  }
}

