body {
  background: #121212;
  color: #e0e0e0;
}

.journal-container {
  max-width: 900px;
  margin: 30px auto;
}

.journal-card {
  background: #1c1c1c;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #2a2a2a;
}

/* HEADER */
.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #2f2f2f;
}

.pair {
  font-size: 16px;
}

.pair-desc {
  display: block;
  font-size: 11px;
  color: #aaa;
}

.label-status {
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 14px;
  letter-spacing: .5px;
}

/* TITULO */
.journal-title {
  padding: 10px 15px;
  border-bottom: 1px solid #2a2a2a;
}

.journal-title h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

/* CHART */
.chart-wrapper {
  padding: 12px 15px;
}

.chart-img {
  border-radius: 4px;
  box-shadow: 0 0 0 1px #333;
}

.chart-meta {
  margin-top: 6px;
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: #aaa;
}

/* NOTAS */
.journal-notes {
  padding: 10px 15px;
  font-size: 13px;
  line-height: 1.4;
  border-top: 1px dashed #2a2a2a;
}

/* FOOTER */
.journal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-top: 1px solid #2a2a2a;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}


/* ===============================
   MOBILE FIX – NO DESKTOP TOUCH
   =============================== */
@media (max-width: 768px) {

  /* contenedor general */
  .journal-container {
    margin: 10px;
  }

  .journal-card {
    border-radius: 10px;
  }

  /* HEADER */
  .journal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }

  .jh-center {
    align-self: flex-start;
  }

  .jh-right {
    font-size: 11px;
    color: #aaa;
  }

  /* TITULO */
  .journal-title {
    padding: 8px 10px;
  }

  .journal-title h4 {
    font-size: 14px;
    line-height: 1.3;
  }

  /* CHART */
  .chart-wrapper {
    padding: 8px 10px;
  }

  .chart-img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
  }

  .chart-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 10px;
  }

  /* NOTAS */
  .journal-notes {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* FOOTER */
  .journal-footer {
    padding: 8px 10px;
  }

  .avatar {
    width: 28px;
    height: 28px;
  }

   .editor-content {
    font-size: 13px;
    line-height: 1.4;
  }

  .editor-content img {
    max-height: 240px;
    object-fit: contain;
  }
}

/* ===============================
   CONTENIDO SUMMERNOTE / EDITOR
   =============================== */

.editor-content {
  max-width: 100%;
  overflow-x: hidden;
}

/* imágenes */
.editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* tablas */
.editor-content table {
  max-width: 100%;
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* videos / iframes */
.editor-content iframe,
.editor-content video {
  max-width: 100%;
  width: 100%;
}

/* textos largos */
.editor-content * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===============================
   LIGHTBOX IMAGENES
   =============================== */

#img-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#img-lightbox.active {
  display: flex;
}

#img-lightbox img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(0,0,0,.8);
}

.lb-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.lb-close:hover {
  opacity: .7;
}


.img-copy-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.img-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  z-index: 5;
}

.img-copy-btn:hover {
  background: rgba(0,0,0,.9);
}
.btn-edit {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  text-decoration: none;
  color: #bbb;
  border: 1px solid #444;
  border-radius: 4px;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-edit:hover {
  color: #fff;
  border-color: #666;
  background: rgba(255,255,255,0.05);
}

.footer-user {
  line-height: 1.3;
}

.user-tag {
  color: #aaa;
}

.footer-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #777;
}

.trade-levels{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.lvl{
  padding:6px 10px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.3px;
  border:1px solid rgba(255,255,255,.08);
  background:#1e1f23;
  color:#ddd;
}

/* ENTRY — neutro */
.lvl.entry{
  background:#20242b;
  color:#d7e3ff;
}

/* STOP LOSS — rojo suave */
.lvl.sl{
  background:#2a1c1c;
  color:#ff9b9b;
}

/* TAKE PROFIT — verde suave */
.lvl.tp{
  background:#1c2a22;
  color:#8cffb2;
}

.trade-levels{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.lvl{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  background:#1e1f23;
  border:1px solid rgba(255,255,255,.08);
  color:#ddd;
}

/* ENTRY */
.lvl.entry{ background:#20242b; color:#d7e3ff; }

/* SL */
.lvl.sl{ background:#2a1c1c; color:#ff9b9b; }

/* TP */
.lvl.tp{ background:#1c2a22; color:#8cffb2; }

/* BOTON COPIAR */
.copy-btn{
  background:none;
  border:none;
  cursor:pointer;
  font-size:14px;
  opacity:.7;
  transition:.2s;
}

.copy-btn:hover{
  opacity:1;
  transform:scale(1.15);
}