/* Hide reasoning by default, show only a preview */
.reasoning {
    max-height: 54px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: max-height 0.3s ease;
    background: #d4d4d4;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 18px;
    color:#494949;
    font-size:small
}

/* Add a "click to expand" indicator */
.reasoning::after {
    content: "▼ Click to expand reasoning";
    position: absolute;
    bottom: 2px;
    right: 0px;
    background: #d4d4d4;
    padding: 3px 30px;
    font-size: 12px;
    font-weight:500;
    border-radius:5px;
    color: #000000;
}

.reasoning p{
  margin-top:20px !important;
  padding-left: 20px;
}

.reasoning p::before {
    content: "→";
    position: absolute;
    left: 10px;
}

/* Expanded state */
.reasoning.expanded {
    max-height: none;
}

.reasoning.expanded::after {
    content: "▲ Click to collapse";
}

pre:has(.pxe-markdown-code-inline) {
    background:#dedede;
    border-radius:.5em;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-bottom: 10px;
}

code.pxe-markdown-code-inline{
    background-color:#dedede !important;
    color:black !important;
    font-weight:600 !important;
}



/* ===  Fixing Headers & Organization === */

/*Expander*/
button.w-full.flex.min-h-\[50px\].select-none.items-center.gap-3.p-2.outline-none.justify-between {
    margin-left:5px;
    font-weight: 500;
    justify-content:left;
    margin-bottom:3px
}

/* Expander Box Shadow
*:has(> div > button.w-full.flex.min-h-\[50px\].select-none.items-center.gap-3.p-2.outline-none.justify-between) {
    box-shadow: 2px 2px 8px 2px rgba(0,0,0,0.05);
    border-radius:8px; 
}*/

/*Open Expander*/
*:has(> div > button.w-full.flex.min-h-\[50px\].select-none.items-center.gap-3.p-2.outline-none.justify-between.border-none) {
    margin-bottom:10px;
    box-shadow: 0px 0px 6px 1px rgba(0,0,0,0.11);
    padding-left:20px;
    border-radius:15px; 
}

/*Each AI & expander*/
button.flex.min-h-\[50px\].select-none.items-center.justify-between.gap-3.p-2.outline-none {
    margin-left: 14px;
    margin-top: -5px
}

/*Each Conversation*/
button.flex.min-h-\[48px\].w-full.select-none.items-center.justify-between.gap-3.p-2.pl-\[3\.25rem\].outline-none {
    margin-left: -30px;
    margin-bottom:-12px;
    width:110%;
    font-size:90%
}

/*Conversation holders*/
*:has(> div > button.flex.min-h-\[48px\].w-full.select-none.items-center.justify-between.gap-3.p-2.pl-\[3\.25rem\].outline-none) {
    padding-bottom: 20px;
}

/* See More Button */
button.flex.w-full.items-center.gap-2.rounded-sm.p-2.pl-\[3\.25rem\].outline-none {
    margin-top: 13px;
    font-size:90%;
    margin-left:-30px;
}

/* Rename Tooltip */
div:has(> .w-\[48px\].h-full.flex.items-center.justify-center) .react-tooltip {
    translate: 20% -70%;
} 
input.w-full.outline-none { /* Tool tip input radius was weird*/
    border-radius: 2px !important;
}

button.flex.min-h-\[50px\].select-none.items-center.justify-between.gap-3.p-2.outline-none[style*="background-color: rgba(233, 73, 19, 0.027)"] {
    background-color: #ffeedf !important;
    border-radius:15px;
}


/* =============  Banner ============*/

.fc-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    box-sizing: border-box;
    max-width: 95%;
    background: #f9fafb; 
    color: #111;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font: 600 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    overflow: hidden;
    max-height: var(--fc-banner-h, 200px);
    opacity: 1;
    transition: max-height 300ms ease, opacity 300ms ease, padding 300ms ease, border-color 300ms ease, transform 300ms ease;
  }

  .fc-banner span {
    max-width: 800px;
  }

  .fc-banner__close {
    flex-shrink: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    color: #111;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
  }

  .fc-banner__close:hover,
  .fc-banner__close:focus {
    background: rgba(0, 0, 0, 0.12);
    outline: none;
  }

  .fc-banner.is-hiding {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    transform: translate(-50%, -10px);
  }

/*-----------------EDIT BUTTON-------------------*/
/* Container that triggers hover visibility */
.edit-btn {
  opacity: 0.7; /* or 1 if you want fully visible */
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.edit-btn:hover {
  opacity: 1;
}




  @media (prefers-reduced-motion: reduce) {
    .fc-banner {
      transition: none;
    }
  }
