:root {
    --primary-color: #105b63;
    --secondary-color: #18929d;
    --active-color: #a2dda0;
    --soft-color: #f9fefb;
    --highlight-color: rgba(236, 138, 52, 0.5);
    --highlight-color: #d7f0d7;

    --header-bg-color: #f0f0f0;

 


    --user-logo: url('/images/logo.svg');
    --icon-home: url('/images/home_8.svg');
    --icon-batches: url('/images/lotes3.svg');
    --icon-buscar: url('/images/buscar.svg');
    --icon-down: url('/images/touchscreen.svg');
    --icon-en: url('/images/uk.svg');
    --icon-controles: url('/images/microbiology.svg');
    --icon-database: url('/images/database.svg');
    --icon-notes: url('/images/post-it.svg');
    --icon-strains: url('/images/strains.svg');
    --icon-users: url('/images/lab-technician.svg');
    --icon-versions: url('/images/version.svg');
    --icon-foto: url('/images/gallery.svg');
    --icon-doc: url('/images/folder.svg');
    --icon-trash: url('/images/trash-bin.svg');
    --icon-foto-add: url('/images/add_foto.svg');   /* usado en los botones que abren el modal */
    --icon-doc-add: url('/images/add_doc.svg');     /* usado en los botones que abren el modal */

    --icon-size: 30px;

    --logo-mentabase: url('/images/logo_menta_notext.svg');
}

/* ===== Botones ===== */

/* ===== Logos ===== */

.logo {
    background-image: var(--icon-home);
    width: 15rem;
    height: 15rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.logo-principal {
    background-image: var(--user-logo);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.logo_mentabase {
    background-image: var(--user-logo);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 120px;
    height: 24px;
}

.logo_mentabase-text {
    font-size: 0.5rem;
    line-height: 1rem;
    font-family: 'Press Start 2P', cursive;
}

.headerlogo {
    /* background-image: url('/images/62532015_80h.png'); */
    background-image: url('/images/logoipsum-226.svg');
    width: clamp(60px, 15vw, 142px);
    height: clamp(34px, 10vw, 80px);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

/* ===== Otros ===== */

.alert {
    background-color: rgba(16, 91, 99, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.checkbox-tick:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


/* --- Post-it styles --- */
.postit-wrap{
  display:flex;
  justify-content:center;
}

.postit{
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #fff59d; /* amarillo suave */
  border-radius: 10px;
  padding: 18px 18px 24px 18px;
  box-shadow:
    0 10px 20px rgba(0,0,0,.12),
    0 3px 6px rgba(0,0,0,.08);
  transform: rotate(-1.2deg);                 /* efecto “pegado” */
  transition: transform .15s ease, box-shadow .15s ease;
}
.postit:hover{
  transform: rotate(-0.5deg) translateY(-1px);
  box-shadow:
    0 12px 24px rgba(0,0,0,.16),
    0 4px 8px rgba(0,0,0,.10);
}

/* chincheta */
.postit::before{
  content:"";
  position:absolute;
  top: -8px;
  left: 40px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 40% 40%, #f87171 0 45%, #c2410c 46% 100%);
  border-radius: 50%;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}

/* esquina doblada */
.postit::after{
  content:"";
  position:absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)) no-repeat;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity:.45;
}

/* textarea dentro del post-it */
.postit-textarea{
  width: 100%;
  min-height: 220px;
  background: repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0) 0 28px,
      rgba(0,0,0,.05) 29px
    ), transparent;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.8;
  color: #2c2c2c;
  /* “manuscrita” con fallback seguro; cambia orden si quieres */
  font-family:
    "Bradley Hand", "Marker Felt", "Noteworthy",
    "Segoe Print", "Comic Sans MS", "Comic Sans",
    cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 6px 2px;
  box-shadow: none;
}

/* accesibilidad: foco visible sin romper el look */
.postit-textarea:focus{
  box-shadow: 0 0 0 3px rgba(59,130,246,.3); /* azul suave */
  border-radius: 6px;
}


.postit .postit-textarea{
  font-family:
    "Bradley Hand", "Marker Felt", "Noteworthy",
    "Segoe Print", "Comic Sans MS", "Comic Sans",
    cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Modo oscuro básico (si usas dark:bg) */
@media (prefers-color-scheme: dark){
  .postit{
    background: #f4e06f;
  }
  .postit-textarea{
    color: #1f2937;
  }
}




#contenido-listado-notas {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 12px;
  padding-top: 12px;
  padding-left: .5rem;
  padding-right: .5rem;
}

#contenido-listado-notas .postit-card {
  width: 100%;       /* que ocupe todo el ancho del contenedor */
  max-width: 460px;  /* pero no más de este valor */
}

/* Tarjeta de nota tipo post-it */
.postit-card {
   /*   max-width: 480px;   /* o 400px, ajusta a tu gusto */
  margin: 0 auto 12px; /* auto a izquierda/derecha para centrar */
  background: #fff59d; /* amarillo suave */
  border-radius: 8px;
  padding: 14px 14px 20px 14px;
  margin-bottom: 12px;
  box-shadow:
    0 4px 10px rgba(0,0,0,.1),
    0 2px 4px rgba(0,0,0,.06);
  transform: rotate(-0.8deg);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}

.postit-card:hover {
  transform: rotate(-0.2deg) translateY(-2px);
  box-shadow:
    0 6px 14px rgba(0,0,0,.14),
    0 3px 6px rgba(0,0,0,.1);
}

/* chincheta superior */
.postit-card::before {
  content:"";
  position:absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 40% 40%, #f87171 0 45%, #c2410c 46% 100%);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
}

/* Esquina doblada */
.postit-card::after {
  content:"";
  position:absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, rgba(0,0,0,.1), rgba(0,0,0,0));
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity:.45;
}

/* Texto de la nota */
.postit-card .text-sm {
  font-family: "Bradley Hand", "Marker Felt", "Noteworthy",
               "Segoe Print", "Comic Sans MS", "Comic Sans",
               cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}




/* Post-it del modal de confirmación (más compacto) */
.postit-confirm{
  position: relative;
  background: #fff59d;                /* amarillo suave */
  border-radius: 10px;
  padding: 14px 14px 18px 14px;
  box-shadow:
    0 8px 18px rgba(0,0,0,.12),
    0 3px 6px rgba(0,0,0,.08);
  transform: rotate(-0.8deg);
}

/* chincheta */
.postit-confirm::before{
  content:"";
  position:absolute;
  top: -7px;               /* sobresale un pelín */
  left: 26px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 40% 40%, #f87171 0 45%, #c2410c 46% 100%);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
}

/* esquina doblada */
.postit-confirm::after{
  content:"";
  position:absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, rgba(0,0,0,.10), rgba(0,0,0,0));
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity:.45;
}

/* contenido del post-it */
.postit-confirm-text{
  white-space: pre-wrap;   /* respeta saltos de línea */
  font-size: .95rem;
  line-height: 1.6;
  color: #2c2c2c;
  font-family: "Bradley Hand", "Marker Felt", "Noteworthy",
               "Segoe Print", "Comic Sans MS", "Comic Sans",
               cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  max-height: 180px;       /* evita que el modal crezca demasiado */
  overflow-y: auto;
  padding-right: 2px;      /* evita que tape la scrollbar */
}



/* Pie de autor en el post-it */
.postit-card .postit-author {
  font-family: "Bradley Hand", "Marker Felt", "Noteworthy",
               "Segoe Print", "Comic Sans MS", "Comic Sans",
               cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.4;
}


/* Icono mini de autor dentro del post-it (afecta al <svg> ya reemplazado) */
.postit-card .postit-author .icono-autor.feather {
  width: 20px !important;
  height: 20px !important;
  vertical-align: middle;
}

/* Marcas de diff */
/* Opcional: hace que el fondo del añadido “salte” de línea con el texto */
.diff-add {
  background: rgba(34,197,94,.18);
  border-radius: 3px;
  padding: 0 2px;
  /* que el fondo no desaparezca justo antes del \n */
  box-decoration-break: clone; /* soportado en la mayoría de navegadores modernos */
}
.diff-del {
  background: rgba(239,68,68,.15); /* rojo suave */
  text-decoration: line-through;
  opacity: .9;
  border-radius: 3px;
  padding: 0 2px;
}


.diff-line-add { background: rgba(34,197,94,.18); border-radius: 3px; padding: 0 2px; box-decoration-break: clone; }
.diff-line-del { background: rgba(239,68,68,.15); text-decoration: line-through; opacity: .9; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; }


#contenido-versiones-nota {
  padding-top: 12px;      /* espacio para la chincheta */
}


/* Icono tipo “favicon” en línea, estable y sin flex */
.ico-mentabase{
  display:inline-block;
  width:0.9em;           /* escala con el texto */
  height:0.9em;
  background-image: var(--logo-mentabase);
  background-repeat:no-repeat;
  background-size:contain;
  vertical-align:-0.12em; /* ajuste fino vertical */
  margin:0 0.25em;        /* separación mínima a ambos lados */
}







