/* /assets/css/cara.css */
:root{
    --app-bg: #0b1020;
    --card: rgba(255,255,255,.06);
    --soft: rgba(255,255,255,.12);
    --soft2: rgba(255,255,255,.18);
  }
  
  .bg-app{
    background: radial-gradient(1200px 600px at 20% -10%, rgba(92,109,255,.18), transparent 60%),
                radial-gradient(900px 500px at 90% 0%, rgba(0,212,255,.10), transparent 60%),
                var(--app-bg);
    color: #fff;
  }
  
  .nav-app{
    background: rgba(11,16,32,.75);
    backdrop-filter: blur(10px);
  }
  
  .card-app{
    background: var(--card);
    border: 1px solid var(--soft);
    border-radius: 18px;
  }
  
  .card-soft{
    background: rgba(255,255,255,.04);
    border: 1px solid var(--soft);
    border-radius: 14px;
  }
  
  .border-soft{
    border-color: var(--soft) !important;
  }
  
  .brand-mark{
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(92,109,255,.9), rgba(0,212,255,.6));
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  
  .brand-mark-sm{
    width: 34px; height: 34px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  
  .chip{
    font-size: .75rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    border: 1px solid var(--soft);
    background: rgba(0,0,0,.18);
    color: rgba(255,255,255,.85);
  }
  
  .chip-ok{
    border-color: rgba(0,212,255,.35);
  }
  
  .table thead th{
    background: rgba(11,16,32,.9);
    backdrop-filter: blur(8px);
  }
  
  .form-control, .form-select{
    border-radius: 14px;
  }
  
  .btn{
    border-radius: 14px;
  }

  /* --- CARA: Sidebar layout --- */
.app-shell{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
  }
  
  .app-sidebar{
    background: rgba(11,16,32,.75);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,.12);
  }
  
  .app-main{
    min-width: 0;
  }
  
  @media (max-width: 991.98px){
    .app-shell{ grid-template-columns: 1fr; }
  }

  /* === MODO OSCURO CARA === */

.bg-app,
.card-app {
  color: #ffffff;
}

/* Títulos dentro de card-app */
.card-app h1,
.card-app h2,
.card-app h3,
.card-app .fw-semibold {
  color: #ffffff;
}

/* Reemplaza text-secondary en modo oscuro */
.card-app .text-secondary {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Mejor contraste para list-group */
.list-group-item {
  color: #ffffff;
  background-color: transparent;
}

/* Chips y pequeños textos */
.card-app .small {
  color: rgba(255, 255, 255, 0.7);
}
/* Métricas grandes en Home */
.card-soft .display-6 {
    color: #ffffff;
    font-weight: 600;
  }

/* =========================================
   Billing banner (Home)
   Oscuro + borde/acentos de color
========================================= */
.billing-banner {
    position: relative;
    overflow: hidden;
  }
  
  /* banda lateral */
  .billing-banner::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(255,255,255,.15);
  }
  
  /* warning: amarillo/rojo */
  .billing-banner--warn{
    border-color: rgba(255, 193, 7, .35) !important; /* amarillo */
    box-shadow: 0 0 0 1px rgba(255, 193, 7, .18) inset;
  }
  .billing-banner--warn::before{
    background: linear-gradient(180deg,
      rgba(255, 193, 7, .95),
      rgba(220, 53, 69, .85)   /* rojo */
    );
  }
  
  /* info: celeste */
  .billing-banner--info{
    border-color: rgba(13, 202, 240, .28) !important;
    box-shadow: 0 0 0 1px rgba(13, 202, 240, .14) inset;
  }
  .billing-banner--info::before{
    background: linear-gradient(180deg,
      rgba(13, 202, 240, .9),
      rgba(13, 110, 253, .75)
    );
  }

  /* --- Followup panel (Result) --- */
.followup-card{
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
  }
  
  .followup-title{
    color: rgba(255,255,255,.92);
  }
  
  .text-soft{
    color: rgba(255,255,255,.74) !important;
  }
  
  .text-softer{
    color: rgba(255,255,255,.62) !important;
  }
  
  .followup-compact .form-label{
    color: rgba(255,255,255,.82);
    font-size: .85rem;
    margin-bottom: .35rem;
  }
  
  .followup-compact .form-control,
  .followup-compact .form-select{
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
  }
  
  .followup-compact .form-control::placeholder{
    color: rgba(255,255,255,.45);
  }
  
  .followup-compact textarea{
    min-height: 72px; /* menos alto */
    resize: vertical;
  }
  
  .followup-toggle{
    cursor: pointer;
    user-select: none;
  }
  
  .followup-summary-badge{
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.78);
  }

  /* Copiloto CARA - mejor presencia + legibilidad */
#improvementsPanel .card.card-soft{
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
  }
  
  #improvementsPanel .h6,
  #improvementsPanel .fw-semibold{
    color: rgba(255,255,255,.92) !important;
  }
  
  #improvementsPanel .text-secondary,
  #improvementsPanel .small.text-secondary{
    color: rgba(255,255,255,.70) !important;
  }
  
  #improvementsPanel pre,
  #improvementsPanel .small{
    color: rgba(255,255,255,.78);
  }

  /* ✅ Legibilidad global en tema oscuro */
.bg-app .text-secondary{
    color: rgba(255,255,255,.72) !important;
  }
  
  .bg-app .text-white-50{
    color: rgba(255,255,255,.62) !important;
  }
  
  .bg-app .form-text,
  .bg-app .small.text-secondary{
    color: rgba(255,255,255,.68) !important;
  }
  
  .bg-app .chip{
    color: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.12);
  }

  /* ✅ Legibilidad global en modo oscuro */
.bg-app .text-secondary{
    color: rgba(255,255,255,.72) !important;
  }
  .bg-app .small.text-secondary,
  .bg-app .form-text{
    color: rgba(255,255,255,.68) !important;
  }
  .bg-app .text-white-50{
    color: rgba(255,255,255,.62) !important;
  }
  
  /* Copiloto CARA: que se vea pro y legible */
  #improvementsPanel .card.card-soft{
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
  }
  
  #improvementsPanel .h6,
  #improvementsPanel .fw-semibold{
    color: rgba(255,255,255,.92) !important;
  }
  
  #improvementsPanel .text-secondary,
  #improvementsPanel .small.text-secondary{
    color: rgba(255,255,255,.70) !important;
  }
  
  #improvementsPanel pre,
  #improvementsPanel .small{
    color: rgba(255,255,255,.78);
  }

  .followup-chevron {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    transition: transform 0.2s ease;
  }

  /* === FOLLOWUP VISUAL FIX === */

.followup-card {
    background: #1a2233;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #f1f5ff; /* texto principal claro */
  }
  
  .followup-title {
    color: #ffffff;
    font-size: 0.95rem;
  }
  
  .followup-card .form-label {
    color: #cfd8ff;
    font-weight: 500;
  }
  
  .followup-card .form-control,
  .followup-card .form-select {
    background: #111827;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
  }
  
  .followup-card .form-control::placeholder {
    color: rgba(255,255,255,0.4);
  }
  
  .followup-card .text-soft {
    color: rgba(255,255,255,0.75);
  }
  
  .followup-card .text-softer {
    color: rgba(255,255,255,0.55);
  }
  
  /* Estados visuales */
  
  .badge-open {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
  }
  
  .badge-progress {
    background: rgba(13,110,253,0.15);
    color: #4da3ff;
  }
  
  .badge-done {
    background: rgba(25,135,84,0.15);
    color: #2ecc71;
  }
  
  .badge-closed {
    background: rgba(220,53,69,0.15);
    color: #ff6b6b;
  }

  /* =========================
   FLAGS (Resultado) - Success más "real" en dark theme
   ========================= */
#resultFlags .alert{
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.90);
  }
  
  /* OK (success) */
  #resultFlags .alert-success{
    background: rgba(25, 135, 84, .22) !important;   /* verde bootstrap con alpha */
    border-color: rgba(25, 135, 84, .45) !important;
    color: rgba(255,255,255,.92) !important;
  }
  
  /* Ajusta el texto secundario dentro del success para que no quede gris apagado */
  #resultFlags .alert-success .text-secondary{
    color: rgba(255,255,255,.78) !important;
  }