body {
    background: radial-gradient(circle at top left, #06122b, #040a1a 70%);
    color: #cfd9e8;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.neon-border {
    position: relative;
    z-index: 0;
    border: none;
    background-clip: padding-box;
    border-radius: inherit;
    overflow: hidden;
}

.neon-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    /* border thickness */
    background: linear-gradient(135deg, #0033ff, #00eaff, #6f00ff);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
    transition: all 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.25);
}

.neon-border:hover::before {
    background: linear-gradient(135deg, #00ccff, #0066ff, #a000ff);
    box-shadow: 0 0 25px rgba(0, 204, 255, 0.35);
    filter: brightness(1.3);
}

textarea.neon-textarea {
    background: rgba(8, 20, 50, 0.75);
    border: 1px solid rgba(61, 143, 197, 0.808);
    color: #cfd9e8;
    padding: 0.75rem;
    resize: vertical;
    transition: all 0.35s ease;
    border-radius: 0.75rem;
    position: relative;
    z-index: 0;
    background-clip: padding-box;
}

textarea.neon-textarea::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(135deg, #0033ff, #00ccff, #a600ff);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
    transition: all 0.5s ease;
}

textarea.neon-textarea:focus {
    outline: none;
    box-shadow: 0 0 22px rgba(0, 204, 255, 0.3);
    background: rgba(8, 20, 50, 0.85);
}

textarea.neon-textarea:focus::before {
    background: linear-gradient(135deg, #00eaff, #0077ff, #8c00ff);
}

aside {
    background: rgba(6, 16, 40, 0.85);
    border-radius: 1rem;
}

aside .nav-link {
    color: #9bb5d4;
    transition: all 0.25s ease;
    border-radius: 0.75rem;
    border: 1px solid transparent;
}

aside .nav-link:hover {
    color: #00e0ff;
    background: rgba(0, 153, 255, 0.1);
    border-image: linear-gradient(90deg, #0077ff, #00ffee) 1;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.25);
}

.card {
    background: rgba(8, 20, 50, 0.75);
    border: 1px solid rgba(0, 153, 255, 0.15);
    border-image: linear-gradient(135deg, #0033ff, #00ccff, #a600ff) 1;
    border-radius: 1.25rem;
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.05);
    transition: all 0.35s ease;
}

.card:hover {
    border-image: linear-gradient(135deg, #00eaff, #0077ff, #8c00ff) 1;
    box-shadow: 0 0 22px rgba(0, 204, 255, 0.2);
    /*transform: translateY(-3px);*/
}

.btn-primary {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border: none;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 204, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #00c6ff, #6f00ff);
    box-shadow: 0 0 22px rgba(0, 204, 255, 0.6);
    transform: scale(1.05);
}

.text-primary i,
.card .fs-3 i {
    color: #00aaff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
    transition: all 0.3s ease;
}

.btn:hover {
    color: #6f00ff;
    text-shadow: 0 0 15px rgba(160, 0, 255, 0.5);
}

h1,
h2,
h3,
h4,
h5 {
    color: #e3f2fd;
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.25);
}

p,
span {
    color: #aebcd2;
}

/* ====== BADGE ====== */
.badge.text-bg-secondary {
    background: rgba(0, 153, 255, 0.25);
    color: #00ccff;
    border-image: linear-gradient(90deg, #00ccff, #6f00ff) 1;
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0033ff, #00c6ff);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00c6ff, #6f00ff);
}

/* === minimal additions just for chat details (re-using existing theme classes) === */
.chat-wrapper {
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.chat-log {
    flex: 1 1 auto;
    overflow: auto;
    padding: 1rem;
}

.chat-msg {
    max-width: 100%;
    padding: .75rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.chat-msg.assistant {
    background: rgba(138, 180, 255, .08);
    border: 1px solid rgba(138, 180, 255, .25);
}

.chat-msg.user {
    background: #0f1530;
    border: 1px solid rgba(255, 255, 255, .06);
    margin-left: auto;
}

.chat-meta {
    font-size: .8rem
}

.chat-input-bar {
    border-top: 1px solid rgba(138, 180, 255, .12);
    background: var(--panel);
}

.upload-area {
    background: rgba(138, 180, 255, .06);
    border: 1px dashed rgba(138, 180, 255, .25);
    border-radius: .75rem;
}

.pill {
    border: 1px solid rgba(138, 180, 255, .25);
    background: rgba(138, 180, 255, .08);
    color: var(--text);
    border-radius: 999px;
    padding: .25rem .5rem;
}

.ss {
    height: 1em;
    width: 1em;
}

.tvs {
    font-size: 0.5em;
}

.oculto {
    display: none;
}

.cIcon {
    width: 36px;
    height: 36px;
    background: rgba(138, 180, 255, .12);
}

.tblSmall{
    font-size: 0.7em;
}

.txtSmall{
    font-size: 0.65em;
}

.imgFact{
    background-color: white;
    border-radius: 10px;
}

.imgFact {
  position: relative;
  cursor: zoom-in;
}

/* Tooltip */
.imgFact::after {
  content: "Click para ampliar";
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Hover state */
.imgFact:hover::after {
  opacity: 1;
}

.imgSvgFact{
    background-color: white;
}

.pSa{
    font-size: 0.5em;
}

#cntArchivos {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    gap: 0.5rem;

    /* Firefox slim scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #bbb #eee;
}

#cntArchivos .pill {
    flex: 0 0 auto;
}

/* Chrome/Safari/Edge slim scrollbar */
#cntArchivos::-webkit-scrollbar {
    height: 4px;
}

#cntArchivos::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
}

#cntArchivos::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

#cntArchivos::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.txtDisclaimer{
        font-size: 0.75em;
}

.noFlechitas::-webkit-outer-spin-button,
.noFlechitas::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.noFlechitas[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.ldr{
    height: 1.2em;
    width: 1.2em;
}

.tblCompacta {
  font-size: 0.75rem;
}

.tblCompacta > :not(caption) > * > * {
  padding: 0.1rem 0.2rem;
  line-height: 1.1;
  vertical-align: middle;
}
.curP:hover{
    cursor: pointer;
}
/* Tight header */
.tblCompacta thead th {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Remove extra row spacing */
.tblCompacta tbody tr {
  margin: 0;
}

/* Optional: tighter borders */
.tblCompacta.table-bordered > :not(caption) > * {
  border-width: 1px;
}
