/* ==========================================================================
   ORBIFY LIFE — DIÁRIO PESSOAL (JOURNAL) SYSTEM
   Aesthetic: Authentic Moleskine / Apple Journal / Editorial Luxury
   Modern, organized, serene, with lined paper, date stamps & warm serif typography.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/* ==========================================================================
   1. MAIN CONTAINER WRAPPER
   ========================================================================== */
.journal-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  min-height: calc(100vh - 60px);
  background: var(--bg-deep, #0a0b0e);
  color: var(--text-main, #f5f5f5);
  box-sizing: border-box;
}

body.dashboard-theme-white .journal-wrapper {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* ==========================================================================
/* ==========================================================================
   2. JOURNAL HEADER TOOLBAR (CLEAN & DIRECT, MATCHING NOTAS)
   ========================================================================== */
.journal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

body.dashboard-theme-white .journal-toolbar {
  background: rgb(252 252 252 / 93%);
  border-color: rgba(0, 0, 0, 0.06);
}

.journal-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.journal-toolbar-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0;
}

body.dashboard-theme-white .journal-toolbar-title {
  color: #0f172a;
}

.journal-count-pill {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

body.dashboard-theme-white .journal-count-pill {
  background: #f1f5f9;
  color: #64748b;
}

/* Barra de Pesquisa Rápida do Diário */
.journal-search-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  min-width: 180px;
}

body.dashboard-theme-white .journal-search-box {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.journal-search-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.journal-search-input {
  border: none;
  background: transparent;
  color: var(--text-bright);
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.journal-search-input::placeholder {
  color: var(--text-muted);
}

body.dashboard-theme-white .journal-search-input {
  color: #0f172a;
}

.journal-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-new-journal-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 400;
  background: rgba(165, 255, 143, 0.16);
  border: 1px solid rgba(165, 255, 143, 0.35);
  color: var(--color-life, #a5ff8f);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-new-journal-entry:hover {
  background: rgba(165, 255, 143, 0.25);
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .btn-new-journal-entry {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

body.dashboard-theme-white .btn-new-journal-entry:hover {
  background: #166534;
}

/* ==========================================================================
   3. MOOD / FEELINGS FILTER TAGS BAR (SUB-HEADER)
   ========================================================================== */
.journal-mood-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  row-gap: 0.55rem;
  padding: 0.1rem 0.15rem 0.45rem 0.15rem;
  margin-bottom: 0.85rem;
}

.journal-mood-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  font-family: inherit;
}

.journal-mood-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-bright, #ffffff);
  transform: translateY(-1px);
}

.journal-mood-filter-pill .mood-pill-emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.journal-mood-filter-pill .mood-pill-label {
  line-height: 1;
}

.journal-mood-filter-pill .mood-pill-count {
  font-size: 0.68rem;
  font-weight: 400;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
  opacity: 0.9;
}

/* Estado Ativo: Todos */
.journal-mood-filter-pill.active[data-mood-filter="all"] {
  background: rgba(165, 255, 143, 0.16);
  border-color: rgba(165, 255, 143, 0.45);
  color: var(--color-life, #a5ff8f);
  font-weight: 400;
  box-shadow: 0 0 16px rgba(165, 255, 143, 0.2);
  transform: translateY(-1px);
}

.journal-mood-filter-pill.active[data-mood-filter="all"] .mood-pill-count {
  background: rgba(165, 255, 143, 0.25);
  color: var(--color-life, #a5ff8f);
}

/* Estado Ativo: Sentimento Específico */
.journal-mood-filter-pill.active:not([data-mood-filter="all"]) {
  background: var(--mood-light, rgba(255, 255, 255, 0.12));
  border-color: var(--mood-color, #a5ff8f);
  color: var(--mood-color, #a5ff8f);
  font-weight: 400;
  box-shadow: 0 0 18px var(--mood-light, rgba(255, 255, 255, 0.1));
  transform: translateY(-1px);
}

.journal-mood-filter-pill.active:not([data-mood-filter="all"]) .mood-pill-count {
  background: rgba(255, 255, 255, 0.15);
  color: currentColor;
}

/* Modo Branco / Claro */
body.dashboard-theme-white .journal-mood-filter-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.dashboard-theme-white .journal-mood-filter-pill:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.dashboard-theme-white .journal-mood-filter-pill .mood-pill-count {
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

body.dashboard-theme-white .journal-mood-filter-pill.active[data-mood-filter="all"] {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.15);
}

body.dashboard-theme-white .journal-mood-filter-pill.active[data-mood-filter="all"] .mood-pill-count {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}

body.dashboard-theme-white .journal-mood-filter-pill.active:not([data-mood-filter="all"]) {
  background: #ffffff;
  border-color: var(--mood-color);
  color: var(--mood-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   4. JOURNAL DESKTOP 2-COLUMN LAYOUT & CALENDAR SIDEBAR
   ========================================================================== */
.journal-desktop-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.journal-main-stream {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.journal-entries-stream {
  width: 100%;
  margin-top: 0.25rem;
}

.journal-calendar-sidebar {
  width: 310px;
  flex-shrink: 0;
  position: sticky;
  top: 1rem;
}

.journal-calendar-sidebar .journal-calendar-card {
  width: 100%;
}

/* Badge indicadora de data selecionada */
.journal-active-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  background: rgba(165, 255, 143, 0.12);
  border: 1px solid rgba(165, 255, 143, 0.3);
  color: var(--color-life, #a5ff8f);
  margin-bottom: 0.65rem;
  width: fit-content;
  animation: fadeInBadge 0.2s ease;
}

@keyframes fadeInBadge {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.journal-active-date-badge strong {
  color: var(--text-bright, #ffffff);
}

.btn-clear-date-filter {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  font-size: 0.75rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: all 0.15s ease;
}

.btn-clear-date-filter:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

body.dashboard-theme-white .journal-active-date-badge {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

body.dashboard-theme-white .journal-active-date-badge strong {
  color: #0f172a;
}

/* Card do Calendário Interativo */
.journal-calendar-card {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  user-select: none;
}

body.dashboard-theme-white .journal-calendar-card {
  background: rgb(252 252 252 / 95%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* Header do Calendário */
.journal-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.journal-cal-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-bright, #ffffff);
  letter-spacing: -0.01em;
}

body.dashboard-theme-white .journal-cal-title {
  color: #0f172a;
}

.journal-cal-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.journal-cal-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.15s ease;
  font-family: inherit;
}

.journal-cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright, #ffffff);
}

.journal-cal-nav-btn.btn-today {
  width: auto;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 400;
}

body.dashboard-theme-white .journal-cal-nav-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

body.dashboard-theme-white .journal-cal-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Dias da Semana (D, S, T, Q, Q, S, S) */
.journal-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted, #64748b);
  padding: 0.15rem 0;
}

body.dashboard-theme-white .journal-cal-weekdays {
  color: #94a3b8;
}

/* Grid de Dias */
.journal-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.journal-cal-day {
  aspect-ratio: 1;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 2px;
  outline: none;
  font-family: inherit;
}

.journal-cal-day:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dashboard-theme-white .journal-cal-day:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.journal-cal-day.other-month {
  opacity: 0.32;
}

.cal-day-num {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  line-height: 1;
}

body.dashboard-theme-white .cal-day-num {
  color: #0f172a;
}

.journal-cal-day.is-today .cal-day-num {
  color: var(--color-life, #a5ff8f);
  font-weight: 500;
}

body.dashboard-theme-white .journal-cal-day.is-today .cal-day-num {
  color: #15803d;
  font-weight: 500;
}

/* Dia Selecionado */
.journal-cal-day.is-selected {
  background: rgba(165, 255, 143, 0.18) !important;
  border-color: var(--color-life, #a5ff8f) !important;
  box-shadow: 0 0 12px rgba(165, 255, 143, 0.25);
}

body.dashboard-theme-white .journal-cal-day.is-selected {
  background: #f0fdf4 !important;
  border-color: #15803d !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
}

/* Indicador de Bolinha (Dot): Verde (Com Diário) vs Vazia (Sem Diário) */
.cal-day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.cal-day-dot.dot-green {
  background: var(--color-life, #a5ff8f);
  border: none;
  box-shadow: 0 0 5px rgba(165, 255, 143, 0.65);
}

.cal-day-dot.dot-hollow {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

body.dashboard-theme-white .cal-day-dot.dot-green {
  background: #15803d;
  box-shadow: 0 0 4px rgba(21, 128, 61, 0.4);
}

body.dashboard-theme-white .cal-day-dot.dot-hollow {
  border: 1px solid #94a3b8;
}

.journal-cal-day:hover .cal-day-dot.dot-green {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(165, 255, 143, 0.85);
}

.journal-cal-day:hover .cal-day-dot.dot-hollow {
  border-color: rgba(255, 255, 255, 0.6);
}

body.dashboard-theme-white .journal-cal-day:hover .cal-day-dot.dot-hollow {
  border-color: #475569;
}

/* Rodapé e Legenda do Calendário */
.journal-cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}

body.dashboard-theme-white .journal-cal-footer {
  border-top-color: #e2e8f0;
  color: #64748b;
}

.journal-cal-legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-cal-reset-selection {
  background: none;
  border: none;
  color: var(--color-life, #a5ff8f);
  font-size: 0.72rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-cal-reset-selection:hover {
  text-decoration: underline;
  background: rgba(165, 255, 143, 0.1);
}

body.dashboard-theme-white .btn-cal-reset-selection {
  color: #15803d;
}

/* ==========================================================================
   5. TIMELINE & MONTH SECTIONS
   ========================================================================== */
.journal-timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.journal-month-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-month-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dashboard-theme-white .journal-month-header {
  border-bottom-color: #e2e8f0;
}

.journal-month-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-bright, #f8fafc);
  letter-spacing: -0.01em;
}

body.dashboard-theme-white .journal-month-title {
  color: #1e293b;
}

.journal-month-count {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted, #64748b);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

body.dashboard-theme-white .journal-month-count {
  background: #e2e8f0;
  color: #475569;
}

/* ==========================================================================
   6. JOURNAL ENTRIES GRID & MOLESKINE CARDS
   ========================================================================== */
.journal-entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.journal-entry-card {
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.journal-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.dashboard-theme-white .journal-entry-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

body.dashboard-theme-white .journal-entry-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Ribbon Bookmark Accent na borda esquerda */
.journal-card-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4.5px;
  background: var(--color-life, #a5ff8f);
  transition: width 0.2s ease;
}

.journal-entry-card:hover .journal-card-ribbon {
  width: 6px;
}

/* Header do Card */
.journal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Carimbo de Data (Moleskine / Day One) */
.journal-date-stamp {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
}

body.dashboard-theme-white .journal-date-stamp {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.journal-date-stamp.is-today {
  border-color: rgba(165, 255, 143, 0.4);
  background: rgba(165, 255, 143, 0.07);
}

body.dashboard-theme-white .journal-date-stamp.is-today {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.date-stamp-day {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-bright, #ffffff);
  line-height: 1;
}

body.dashboard-theme-white .date-stamp-day {
  color: #0f172a;
}

.date-stamp-meta {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.date-stamp-month {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-life, #a5ff8f);
  letter-spacing: 0.05em;
}

body.dashboard-theme-white .date-stamp-month {
  color: #15803d;
}

.date-stamp-weekday {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.15rem;
}

body.dashboard-theme-white .date-stamp-weekday {
  color: #64748b;
}

.date-stamp-today-tag {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--color-life, #a5ff8f);
  color: #0a0b0e;
  letter-spacing: 0.04em;
  margin-left: 0.2rem;
}

body.dashboard-theme-white .date-stamp-today-tag {
  background: #15803d;
  color: #ffffff;
}

.journal-card-mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 400;
  border: 1px solid transparent;
}

/* Ações do Card */
.journal-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-card-action {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright, #ffffff);
}

.btn-card-action.btn-card-star.active {
  color: var(--color-life, #a5ff8f);
  background: rgba(165, 255, 143, 0.15);
  border-color: rgba(165, 255, 143, 0.35);
}

.btn-card-action.btn-card-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

body.dashboard-theme-white .btn-card-action {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

body.dashboard-theme-white .btn-card-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.dashboard-theme-white .btn-card-action.btn-card-star.active {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

body.dashboard-theme-white .btn-card-action.btn-card-delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Título do Card em Lora Serif */
.journal-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text-bright, #f8fafc);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body.dashboard-theme-white .journal-card-title {
  color: #0f172a;
}

/* Corpo do Diário com Linhas Suaves */
.journal-card-body {
  position: relative;
  overflow: hidden;
  max-height: 120px;
}

.journal-card-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
}

body.dashboard-theme-white .journal-card-text {
  color: #475569;
}

/* Rodapé do Card */
.journal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dashboard-theme-white .journal-card-footer {
  border-top-color: #f1f5f9;
}

.journal-card-footer-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}

.journal-card-tags-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.journal-card-tag-pill {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

body.dashboard-theme-white .journal-card-tag-pill {
  background: #f1f5f9;
  color: #64748b;
}

.journal-card-meta-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

/* ==========================================================================
   7. EMPTY STATE (DIÁRIO EM BRANCO)
   ========================================================================== */
.journal-empty-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin: auto;
  max-width: 540px;
}

.journal-empty-book-art {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: rgba(165, 255, 143, 0.1);
  border: 1.5px solid rgba(165, 255, 143, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--color-life, #a5ff8f);
  box-shadow: 0 0 40px rgba(165, 255, 143, 0.12);
  margin-bottom: 1.5rem;
}

body.dashboard-theme-white .journal-empty-book-art {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  box-shadow: 0 4px 20px rgba(21, 128, 61, 0.1);
}

.journal-empty-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  margin: 0 0 0.65rem 0;
  letter-spacing: -0.015em;
}

body.dashboard-theme-white .journal-empty-title {
  color: #0f172a;
}

.journal-empty-subtitle {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 1.5rem 0;
}

body.dashboard-theme-white .journal-empty-subtitle {
  color: #64748b;
}

.journal-empty-prompts-sample {
  margin-bottom: 1.75rem;
}

.sample-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--color-life, #a5ff8f);
  font-size: 0.84rem;
  font-style: italic;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-prompt-pill:hover {
  background: rgba(165, 255, 143, 0.12);
  border-color: var(--color-life, #a5ff8f);
  transform: scale(1.02);
}

body.dashboard-theme-white .sample-prompt-pill {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #15803d;
}

.btn-create-journal-central {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 400;
  background: var(--color-life, #a5ff8f);
  color: #0a0b0e;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(165, 255, 143, 0.3);
  font-family: inherit;
}

.btn-create-journal-central:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 45px rgba(165, 255, 143, 0.45);
}

body.dashboard-theme-white .btn-create-journal-central {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(21, 128, 61, 0.25);
}

body.dashboard-theme-white .btn-create-journal-central:hover {
  background: #166534;
  box-shadow: 0 6px 24px rgba(21, 128, 61, 0.35);
}

/* Sem resultados de busca */
.journal-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.journal-no-results-icon {
  font-size: 2.2rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.85rem;
}

.journal-no-results-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  margin: 0 0 0.35rem 0;
}

body.dashboard-theme-white .journal-no-results-title {
  color: #0f172a;
}

.journal-no-results-sub {
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 1rem 0;
}

.btn-clear-journal-filters {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-bright, #ffffff);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-clear-journal-filters:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.dashboard-theme-white .btn-clear-journal-filters {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   8. IMMERSIVE WRITING MODAL (OPEN LUXURY BOOK / MOLESKINE)
   ========================================================================== */
.journal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.journal-modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.journal-book-modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(165, 255, 143, 0.05);
  animation: journalModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes journalModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

body.dashboard-theme-white .journal-book-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Spine / Book binding line */
.journal-modal-spine {
  width: 12px;
  background: linear-gradient(180deg, #2a2e39 0%, #17181d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

body.dashboard-theme-white .journal-modal-spine {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.journal-modal-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 1.85rem;
  gap: 1.1rem;
}

/* Header do Modal */
.journal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

body.dashboard-theme-white .journal-modal-header {
  border-bottom-color: #e2e8f0;
}

.journal-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.journal-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(165, 255, 143, 0.12);
  color: var(--color-life, #a5ff8f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

body.dashboard-theme-white .journal-modal-icon-badge {
  background: #f0fdf4;
  color: #15803d;
}

.journal-modal-header-titles {
  display: flex;
  flex-direction: column;
}

.journal-modal-header-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  margin: 0;
  letter-spacing: -0.01em;
}

body.dashboard-theme-white .journal-modal-header-title {
  color: #0f172a;
}

.journal-modal-header-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.1rem;
}

.journal-modal-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.journal-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.journal-modal-datetime-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.journal-datetime-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--text-bright, #ffffff);
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  color-scheme: dark;
}

.journal-datetime-input::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

.journal-datetime-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.journal-datetime-input:focus {
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .journal-datetime-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  color-scheme: light;
}

body.dashboard-theme-white .journal-datetime-input::-webkit-calendar-picker-indicator {
  filter: brightness(0) !important;
  -webkit-filter: brightness(0) !important;
  opacity: 0.65;
}

body.dashboard-theme-white .journal-datetime-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.journal-header-btn-star {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.journal-header-btn-star:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-life, #a5ff8f);
}

.journal-header-btn-star.active {
  background: rgba(165, 255, 143, 0.15);
  border-color: rgba(165, 255, 143, 0.35);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .journal-header-btn-star {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.dashboard-theme-white .journal-header-btn-star:hover {
  color: #15803d;
}

body.dashboard-theme-white .journal-header-btn-star.active {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.journal-modal-btn-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.journal-modal-btn-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright, #ffffff);
}

body.dashboard-theme-white .journal-modal-btn-close {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

/* Seções e Labels */
.journal-modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.journal-modal-section-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary, #94a3b8);
  letter-spacing: -0.01em;
}

body.dashboard-theme-white .journal-modal-section-label {
  color: #64748b;
}

/* Menus Suspensos do Modal (Humor e Tags) */
.journal-dropdown-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.journal-dropdown-section[open] {
  border-color: rgba(165, 255, 143, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

body.dashboard-theme-white .journal-dropdown-section {
  border-color: #e2e8f0;
  background: #f8fafc;
}

body.dashboard-theme-white .journal-dropdown-section[open] {
  border-color: #86efac;
  background: #ffffff;
}

.journal-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 0.16s ease;
}

.journal-dropdown-summary::-webkit-details-marker {
  display: none;
}

.journal-dropdown-summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

body.dashboard-theme-white .journal-dropdown-summary:hover {
  background: #f1f5f9;
}

.journal-dropdown-summary-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary, #cbd5e1);
}

body.dashboard-theme-white .journal-dropdown-summary-title {
  color: #475569;
}

.journal-dropdown-icon {
  font-size: 0.88rem;
}

.journal-dropdown-summary-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journal-dropdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
}

body.dashboard-theme-white .journal-dropdown-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.journal-dropdown-arrow {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.journal-dropdown-section[open] .journal-dropdown-arrow {
  transform: rotate(180deg);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .journal-dropdown-section[open] .journal-dropdown-arrow {
  color: #15803d;
}

.journal-dropdown-panel {
  padding: 0.75rem 0.95rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.dashboard-theme-white .journal-dropdown-panel {
  border-top-color: #e2e8f0;
}

/* Seletor de Humor */
.journal-mood-picker-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.journal-mood-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.journal-mood-picker-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.journal-mood-picker-btn.selected {
  background: var(--active-mood-bg, rgba(165, 255, 143, 0.15)) !important;
  border-color: var(--active-mood-color, var(--color-life)) !important;
  color: var(--active-mood-color, var(--color-life)) !important;
  font-weight: 400;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
}

body.dashboard-theme-white .journal-mood-picker-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

/* Card de Inspiração / Prompts no Modal */
.journal-inspiration-card {
  padding: 0.75rem 1rem;
  background: rgba(165, 255, 143, 0.04);
  border: 1px solid rgba(165, 255, 143, 0.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.dashboard-theme-white .journal-inspiration-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.inspiration-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .inspiration-title-wrap {
  color: #15803d;
}

.inspiration-prompt-quote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-bright, #f1f5f9);
  line-height: 1.45;
  margin: 0;
}

body.dashboard-theme-white .inspiration-prompt-quote {
  color: #1e293b;
}

/* Botões de inspiração na linha de baixo */
.inspiration-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.1rem;
}

.btn-inspiration-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.btn-inspiration-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright, #ffffff);
}

.btn-inspiration-action.use {
  background: rgba(165, 255, 143, 0.15);
  border-color: rgba(165, 255, 143, 0.35);
  color: var(--color-life, #a5ff8f);
}

.btn-inspiration-action.use:hover {
  background: var(--color-life, #a5ff8f);
  color: #0a0b0e;
}

body.dashboard-theme-white .btn-inspiration-action {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

body.dashboard-theme-white .btn-inspiration-action.use {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

.inspiration-prompt-quote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-bright, #f1f5f9);
  line-height: 1.4;
  margin: 0;
}

body.dashboard-theme-white .inspiration-prompt-quote {
  color: #1e293b;
}

/* Título da Entrada */
.journal-modal-title-wrap {
  width: 100%;
}

.journal-modal-title-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  outline: none;
  transition: border-color 0.2s ease;
}

.journal-modal-title-input:focus {
  border-bottom-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .journal-modal-title-input {
  color: #0f172a;
  border-bottom-color: #cbd5e1;
}

body.dashboard-theme-white .journal-modal-title-input:focus {
  border-bottom-color: #15803d;
}

/* Corpo do Diário com Folha Pautada (Ruled Paper) */
.journal-modal-body-sheet {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.85rem 1.25rem 0.5rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  cursor: text;
}

.journal-modal-body-sheet:focus-within {
  border-color: rgba(165, 255, 143, 0.35);
  box-shadow: 0 0 20px rgba(165, 255, 143, 0.08);
}

body.dashboard-theme-white .journal-modal-body-sheet {
  background-color: #fafaf9;
  border-color: #e2e8f0;
}

body.dashboard-theme-white .journal-modal-body-sheet:focus-within {
  border-color: rgba(21, 128, 61, 0.35);
  box-shadow: 0 0 20px rgba(21, 128, 61, 0.08);
}

.journal-modal-textarea {
  width: 100%;
  flex: 1;
  min-height: 220px;
  box-sizing: border-box;
  background-color: transparent;
  border: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 32px;
  color: var(--text-main, #f1f5f9);
  resize: vertical;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: text;

  /* Folha pautada de caderno: linhas sincronizadas diretamente com a baseline das letras */
  background-image: linear-gradient(
    to bottom,
    transparent 23px,
    rgba(255, 255, 255, 0.07) 23px,
    rgba(255, 255, 255, 0.07) 24px,
    transparent 24px
  );
  background-size: 100% 32px;
  background-attachment: local;
  background-position: 0 0;
}

body.dashboard-theme-white .journal-modal-textarea {
  color: #1e293b;
  background-image: linear-gradient(
    to bottom,
    transparent 23px,
    rgba(0, 0, 0, 0.08) 23px,
    rgba(0, 0, 0, 0.08) 24px,
    transparent 24px
  );
}

.journal-modal-textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
  line-height: 32px;
}

body.dashboard-theme-white .journal-modal-textarea::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

/* Tags no Modal */
.journal-modal-tags-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journal-tags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.journal-custom-tag-box {
  width: 170px;
}

.journal-custom-tag-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--text-bright, #ffffff);
  font-size: 0.74rem;
  font-family: inherit;
  outline: none;
}

.journal-custom-tag-input:focus {
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .journal-custom-tag-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.journal-tags-pills-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.journal-tag-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.74rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.journal-tag-pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-bright, #ffffff);
}

.journal-tag-pill-btn.selected {
  background: rgba(165, 255, 143, 0.15);
  border-color: var(--color-life, #a5ff8f);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .journal-tag-pill-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

body.dashboard-theme-white .journal-tag-pill-btn.selected {
  background: #f0fdf4;
  border-color: #15803d;
  color: #15803d;
}

/* Footer do Modal */
.journal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  flex-wrap: wrap;
}

body.dashboard-theme-white .journal-modal-footer {
  border-top-color: #e2e8f0;
}

.journal-modal-footer-stats {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
}

.journal-modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.journal-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.journal-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.journal-btn-secondary {
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.journal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright, #ffffff);
}

body.dashboard-theme-white .journal-btn-secondary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.journal-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.35rem;
  border-radius: 10px;
  background: var(--color-life, #a5ff8f);
  color: #0a0b0e;
  border: none;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 18px rgba(165, 255, 143, 0.25);
  font-family: inherit;
}

.journal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(165, 255, 143, 0.4);
}

body.dashboard-theme-white .journal-btn-primary {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.25);
}

body.dashboard-theme-white .journal-btn-primary:hover {
  background: #166534;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .journal-desktop-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .journal-main-stream {
    display: contents;
  }

  .journal-toolbar {
    order: 1;
  }

  .journal-mood-filters-bar {
    order: 2;
  }

  .journal-active-date-badge {
    order: 3;
  }

  .journal-calendar-sidebar {
    order: 4;
    width: 100%;
    position: static;
  }

  .journal-calendar-sidebar .journal-calendar-card {
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    gap: 0.35rem !important;
    border-radius: 14px !important;
  }

  .journal-calendar-sidebar .journal-cal-header {
    padding-bottom: 0.15rem !important;
  }

  .journal-calendar-sidebar .journal-cal-title {
    font-size: 0.84rem !important;
  }

  .journal-calendar-sidebar .journal-cal-nav-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.72rem !important;
  }

  .journal-calendar-sidebar .journal-cal-nav-btn.btn-today {
    width: auto !important;
    padding: 0 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
  }

  .journal-calendar-sidebar .journal-cal-weekdays {
    padding: 0.1rem 0 !important;
    font-size: 0.65rem !important;
  }

  .journal-calendar-sidebar .journal-cal-grid {
    gap: 2px !important;
  }

  .journal-calendar-sidebar .journal-cal-day {
    aspect-ratio: auto !important;
    height: 28px !important;
    min-height: unset !important;
    padding: 1px 0 !important;
    gap: 1.5px !important;
    border-radius: 6px !important;
  }

  .journal-calendar-sidebar .cal-day-num {
    font-size: 0.72rem !important;
    line-height: 1 !important;
  }

  .journal-calendar-sidebar .cal-day-dot {
    width: 4px !important;
    height: 4px !important;
  }

  .journal-calendar-sidebar .journal-cal-footer {
    padding-top: 0.25rem !important;
    font-size: 0.65rem !important;
  }

  .journal-entries-stream {
    order: 5;
    width: 100%;
  }

  .journal-entries-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .journal-wrapper {
    padding: 0.85rem 1rem;
  }

  .journal-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .journal-toolbar-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
  }

  .journal-search-box {
    flex: 1;
    min-width: 0;
  }

  .journal-toolbar-right {
    width: 100%;
  }

  .btn-new-journal-entry {
    width: 100%;
    justify-content: center;
  }

  .journal-entries-grid {
    grid-template-columns: 1fr;
  }

  .journal-modal-backdrop {
    padding: 0 !important;
    inset: 0 !important;
  }

  .journal-book-modal-card {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .journal-modal-spine {
    display: none !important;
  }

  .journal-modal-inner {
    height: 100% !important;
    max-height: 100dvh !important;
    padding: 0.85rem 1rem !important;
    gap: 0.65rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .journal-modal-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    padding-bottom: 0.55rem !important;
    flex-shrink: 0 !important;
  }

  .journal-modal-header-sub {
    display: none !important;
  }

  .journal-modal-header-title {
    font-size: 1.1rem !important;
  }

  .journal-modal-icon-badge {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
  }

  .journal-modal-header-right {
    display: contents !important;
  }

  /* Botão de favoritar e fechar no mesmo local do modal de leitura: bem no canto superior */
  .journal-modal-header-actions {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .journal-header-btn-star,
  .journal-modal-btn-close {
    width: 34px !important;
    height: 34px !important;
  }

  /* Data e hora na linha logo abaixo */
  .journal-modal-datetime-group {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-top: 0.15rem !important;
  }

  .journal-datetime-input {
    flex: 1 !important;
    padding: 0.35rem 0.5rem !important;
    font-size: 0.76rem !important;
  }

  /* Inspiração compacta no mobile: outra pergunta e inserir na linha de baixo */
  .journal-inspiration-card {
    padding: 0.65rem 0.85rem !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }

  .inspiration-title-wrap {
    font-size: 0.7rem !important;
  }

  .inspiration-prompt-quote {
    font-size: 0.85rem !important;
    line-height: 1.38 !important;
  }

  .inspiration-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    width: 100% !important;
    margin-top: 0.1rem !important;
  }

  .btn-inspiration-action {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.38rem 0.6rem !important;
    font-size: 0.72rem !important;
  }

  /* Título no mobile */
  .journal-modal-title-wrap {
    flex-shrink: 0 !important;
  }

  .journal-modal-title-input {
    font-size: 1.25rem !important;
    padding: 0.35rem 0.1rem !important;
  }

  /* Folha pautada do diário no mobile com amplo espaço de escrita */
  .journal-modal-body-sheet {
    flex: 1 0 auto !important;
    min-height: 280px !important;
    padding: 0.75rem 1rem 0.5rem 1rem !important;
    margin: 0.15rem 0 !important;
  }

  .journal-modal-textarea {
    flex: 1 !important;
    min-height: 260px !important;
    font-size: 1.02rem !important;
    line-height: 30px !important;
    background-size: 100% 30px !important;
    resize: none !important;
  }

  /* Footer no mobile */
  .journal-modal-footer {
    padding-top: 0.65rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
  }

  body.dashboard-theme-white .journal-modal-footer {
    border-top-color: #e2e8f0 !important;
  }

  .journal-modal-footer-actions {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }

  .journal-modal-footer-actions button {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.55rem 0.75rem !important;
  }

  .journal-btn-primary {
    flex: 1.6 !important;
  }

  .journal-modal-footer-stats {
    justify-content: center !important;
    font-size: 0.7rem !important;
    opacity: 0.8 !important;
  }
}

/* ==========================================================================
   10. MODAL DE LEITURA (PÁGINA AUTÊNTICA DE CADERNO / DIÁRIO)
   ========================================================================== */
.journal-read-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: journalModalFadeIn 0.22s ease-out;
}

@keyframes journalModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes journalNotebookScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Cartão com design de Caderno de Capa Dura / Moleskine */
.journal-read-notebook-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: 86vh;
  max-height: 860px;
  min-height: 520px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  background: #17181d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: journalNotebookScaleIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dashboard-theme-white .journal-read-notebook-card {
  background: #fbf9f4;
  border-color: #e2d9cd;
  box-shadow: 
    0 25px 60px -15px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Fita Acetinada Marcadora de Página */
.journal-read-ribbon {
  position: absolute;
  top: 0;
  left: 56px;
  width: 22px;
  height: 54px;
  background: var(--color-life, #a5ff8f);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  z-index: 12;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Lombada de Couro com Costura */
.journal-read-spine {
  width: 24px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #101115 0%, #20222a 55%, #131418 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dashboard-theme-white .journal-read-spine {
  background: linear-gradient(90deg, #bfa084 0%, #dbcbba 55%, #bfa084 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.journal-read-spine-stitches {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  border-left: 2px dashed rgba(255, 255, 255, 0.15);
}

body.dashboard-theme-white .journal-read-spine-stitches {
  border-left-color: rgba(90, 60, 30, 0.3);
}

/* Container Principal da Página */
.journal-read-page-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: #17181d;
}

body.dashboard-theme-white .journal-read-page-container {
  background: #fbf9f4;
}

/* Barra Superior de Navegação & Ações */
.journal-read-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  z-index: 5;
  flex-shrink: 0;
}

body.dashboard-theme-white .journal-read-header-bar {
  border-bottom-color: #ebdccc;
  background: rgba(0, 0, 0, 0.015);
}

.journal-read-nav-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 2rem;
}

.journal-read-page-badge {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

body.dashboard-theme-white .journal-read-page-badge {
  color: #64748b;
  background: rgba(0, 0, 0, 0.06);
}

.journal-read-flipper {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-read-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary, #cbd5e1);
  padding: 0.32rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-read-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-read-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.dashboard-theme-white .btn-read-nav {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

body.dashboard-theme-white .btn-read-nav:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

/* Grupo de Ações do Reader */
.journal-read-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-read-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
}

.btn-read-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dashboard-theme-white .btn-read-action {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

body.dashboard-theme-white .btn-read-action:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Botão Destacado: Editar Página */
.btn-read-edit {
  background: rgba(165, 255, 143, 0.12) !important;
  border-color: rgba(165, 255, 143, 0.32) !important;
  color: var(--color-life, #a5ff8f) !important;
  font-weight: 400;
  padding: 0 0.85rem;
  box-shadow: 0 0 14px rgba(165, 255, 143, 0.15);
}

.btn-read-edit:hover {
  background: rgba(165, 255, 143, 0.22) !important;
  box-shadow: 0 0 20px rgba(165, 255, 143, 0.28);
  transform: translateY(-1px);
}

body.dashboard-theme-white .btn-read-edit {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.15);
}

body.dashboard-theme-white .btn-read-edit:hover {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
}

/* Estrela de Favorito */
.btn-read-star {
  width: 34px;
  padding: 0;
}

.btn-read-star.active {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

body.dashboard-theme-white .btn-read-star.active {
  color: #d97706 !important;
  background: #fef3c7 !important;
  border-color: #fcd34d !important;
}

/* Botão Fechar */
.btn-read-close {
  width: 34px;
  padding: 0;
  font-size: 0.95rem;
  border-radius: 8px;
}

.btn-read-close:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Folha de Caderno com Linhas Suaves */
.journal-read-scroll-sheet {
  flex: 1;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body.dashboard-theme-white .journal-read-scroll-sheet {
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.journal-notebook-sheet {
  position: relative;
  min-height: 100%;
  padding: 2.2rem 2.8rem 3rem 3.8rem;
  /* Linhas pautadas autênticas de 34px */
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 33px,
    rgba(255, 255, 255, 0.045) 33px,
    rgba(255, 255, 255, 0.045) 34px
  );
  background-color: #17181d;
}

body.dashboard-theme-white .journal-notebook-sheet {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 33px,
    rgba(74, 107, 130, 0.11) 33px,
    rgba(74, 107, 130, 0.11) 34px
  );
  background-color: #fbf9f4;
}

/* Linha de Margem Vermelha clássica de caderno */
.journal-notebook-margin-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.5rem;
  width: 2px;
  background: rgba(239, 68, 68, 0.28);
  box-shadow: 1px 0 0 rgba(239, 68, 68, 0.12);
  pointer-events: none;
}

body.dashboard-theme-white .journal-notebook-margin-line {
  background: rgba(239, 68, 68, 0.38);
  box-shadow: 1px 0 0 rgba(239, 68, 68, 0.2);
}

.journal-notebook-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

/* Linha de Data & Humor */
.journal-read-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

body.dashboard-theme-white .journal-read-date-row {
  border-bottom-color: #ebdccc;
}

/* Carimbo de Data (Vintage Postmark Stamp) */
.journal-read-stamp {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-left: 3px solid var(--color-life, #a5ff8f);
  padding-left: 0.85rem;
}

body.dashboard-theme-white .journal-read-stamp {
  border-left-color: #15803d;
}

.read-stamp-day {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-bright, #ffffff);
  letter-spacing: -0.03em;
}

body.dashboard-theme-white .read-stamp-day {
  color: #0f172a;
}

.read-stamp-info {
  display: flex;
  flex-direction: column;
}

.read-stamp-month {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .read-stamp-month {
  color: #15803d;
}

.read-stamp-weekday {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.15rem;
}

body.dashboard-theme-white .read-stamp-weekday {
  color: #64748b;
}

.journal-read-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.journal-read-mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dashboard-theme-white .journal-read-mood-pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.journal-read-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
}

body.dashboard-theme-white .journal-read-time-pill {
  background: rgba(0, 0, 0, 0.04);
  color: #64748b;
}

/* Título em Lora Serif */
.journal-read-entry-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  margin: 1.3rem 0 0.85rem 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

body.dashboard-theme-white .journal-read-entry-title {
  color: #0f172a;
}

/* Tags estilo Washi-Tape */
.journal-read-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.journal-read-tag-sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--color-life, #a5ff8f);
  color: var(--text-secondary, #cbd5e1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.01em;
}

body.dashboard-theme-white .journal-read-tag-sticker {
  background: #f1f5f9;
  border-left-color: #10b981;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Destaque de Prompt / Pergunta Reflexiva */
.journal-read-prompt-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 1.1rem 0 1.5rem 0;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  background: rgba(165, 255, 143, 0.08);
  border: 1px solid rgba(165, 255, 143, 0.25);
  border-left: 4px solid var(--color-life, #a5ff8f);
  color: #bbf7d0;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
}

.read-prompt-icon {
  font-size: 1.05rem;
  color: var(--color-life, #a5ff8f);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

body.dashboard-theme-white .journal-read-prompt-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  color: #166534;
}

body.dashboard-theme-white .read-prompt-icon {
  color: #16a34a;
}

/* Corpo de Texto Alinhado às Linhas de 34px */
.journal-read-body-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.06rem;
  line-height: 34px; /* Casamento milimétrico com o repeating gradient de 34px */
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: 0.012em;
  margin-top: 0.5rem;
}

body.dashboard-theme-white .journal-read-body-text {
  color: #1e293b;
}

/* Rodapé do Caderno */
.journal-read-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 11, 14, 0.6);
  z-index: 5;
  flex-shrink: 0;
}

body.dashboard-theme-white .journal-read-footer-bar {
  border-top-color: #ebdccc;
  background: #f7f4ed;
}

.journal-read-footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journal-read-footer-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.journal-read-tip {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.journal-read-tip kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  font-family: inherit;
  font-size: 0.68rem;
  color: var(--text-secondary, #cbd5e1);
}

body.dashboard-theme-white .journal-read-tip kbd {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-read-bottom-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(165, 255, 143, 0.14);
  border: 1px solid rgba(165, 255, 143, 0.35);
  border-radius: 8px;
  color: var(--color-life, #a5ff8f);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-read-bottom-edit:hover {
  background: rgba(165, 255, 143, 0.24);
  transform: translateY(-1px);
}

body.dashboard-theme-white .btn-read-bottom-edit {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

body.dashboard-theme-white .btn-read-bottom-edit:hover {
  background: #dcfce7;
}

/* Adaptações Mobile do Caderno */
@media (max-width: 680px) {
  .journal-read-modal-backdrop {
    padding: 0;
  }

  .journal-read-notebook-card {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .journal-read-spine {
    display: none;
  }

  .journal-read-ribbon {
    left: 20px;
    height: 40px;
  }

  .journal-notebook-margin-line {
    left: 1.25rem;
  }

  .journal-notebook-sheet {
    padding: 1.6rem 1.2rem 2.2rem 2.2rem;
  }

  .journal-read-header-bar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .btn-read-nav span {
    display: none;
  }

  .btn-read-edit span {
    display: none;
  }

  .btn-copy-label {
    display: none;
  }

  .journal-read-tip {
    display: none;
  }

  .journal-read-entry-title {
    font-size: 1.35rem;
  }

  .journal-read-body-text {
    font-size: 0.98rem;
  }
}

