/* ================================================
   FUNDO DA PÁGINA (TROQUE PELO QUE VOCÊ QUISER)
   ================================================ */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;

  /*  imagem de fundo */
   
  background: url('assets/img/background/tumblr_ncy3l63iwx1rpmwhjo4_640.jpg');
  background-size: 200px 200px; /* controla o tamanho do bloco */
  background-repeat: repeat;    /* repete em mosaico */
  
}

/* ================================================
   JANELA
   ================================================ */
.word-window {
  width: 700px;
  max-width: 95vw;
  height: 520px;
  max-height: 90vh;
  background: #fff;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 13px;
  color: #1c1c1c;
}

/* ── Barra de título ── */
.title-bar {
  background: linear-gradient(180deg, #5d9ce8 0%, #2f6fc4 45%, #1f55a3 100%);
  color: #fff;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 6px;
  flex-shrink: 0;
}
.title-bar-left { display: flex; align-items: center; }
.word-logo {
  background: #1b3f7a;
  border: 1px solid #0e2a57;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-right: 8px;
}
.title-bar-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.title-bar-buttons { display: flex; gap: 2px; }
.win-btn {
  width: 26px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 2px;
  cursor: pointer;
}
.win-btn:hover { background: rgba(255,255,255,0.25); }
.win-btn.close:hover { background: #d33; }

/* ── Abas do ribbon (Arquivo, Página Inicial, Inserir...) ── */
.ribbon-tabs {
  background: #eef3fb;
  border-bottom: 1px solid #c4d3ea;
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
  font-size: 12px;
}
.tab {
  padding: 6px 10px;
  color: #1f4e8c;
  cursor: pointer;
}
.tab.file-tab {
  background: #1f55a3;
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
}
.tab.active {
  background: #fff;
  font-weight: 700;
  border-top: 2px solid #2f6fc4;
  border-left: 1px solid #c4d3ea;
  border-right: 1px solid #c4d3ea;
}
.help-icon {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #aac1e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #1f4e8c;
}

/* ── Conteúdo do ribbon ── */
.ribbon {
  background: #f5f8fd;
  border-bottom: 1px solid #c4d3ea;
  display: flex;
  align-items: stretch;
  padding: 6px 8px;
  gap: 10px;
  flex-shrink: 0;
  overflow: hidden;
}
.ribbon-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 8px;
  border-right: 1px solid #d7e2f2;
  min-width: 70px;
}
.ribbon-group:last-child { border-right: none; }
.group-label {
  font-size: 10px;
  color: #4a6189;
  text-align: center;
  margin-top: 4px;
}

.paste-icon {
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.paste-icon span { font-size: 10px; }

.mini-icons {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 2px;
  margin-top: 4px;
  color: #2a2a2a;
}

.font-row { display: flex; gap: 4px; margin-bottom: 3px; }
.fake-select {
  background: #fff;
  border: 1px solid #c4d3ea;
  border-radius: 2px;
  padding: 1px 6px;
  font-size: 11px;
  color: #2a2a2a;
}
.fake-select.size { width: 30px; text-align: center; }
.icon-row {
  display: flex;
  gap: 7px;
  font-size: 13px;
  align-items: center;
}

.para-row {
  display: flex;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 2px;
  color: #2a2a2a;
}

.styles-preview { display: flex; gap: 4px; }
.style-box {
  background: #fff;
  border: 1px solid #c4d3ea;
  font-size: 9px;
  padding: 6px 5px;
  border-radius: 2px;
}

.editing-group { font-size: 10px; gap: 2px; color: #2a2a2a; }
.editing-group div:not(.group-label) { margin-bottom: 3px; }

/* ── Abas de documentos abertos ── */
.doc-tabs {
  background: #dde7f7;
  display: flex;
  border-bottom: 1px solid #c4d3ea;
  flex-shrink: 0;
  font-size: 11px;
}
.doc-tab {
  padding: 5px 12px;
  border-right: 1px solid #c4d3ea;
  color: #355d96;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.doc-tab.active {
  background: #fff;
  font-weight: 700;
  color: #1c1c1c;
}
.doc-tab .x { font-size: 10px; opacity: 0.6; }

/* ================================================
   ÁREA QUE ROLA — só esta parte tem overflow
   ================================================ */
.page-area {
  flex: 1;
  background: #d9dde2;
  overflow-y: auto;
  padding: 24px 0;
}
.page {
  background: #fff;
  width: 80%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  min-height: 700px; /* força a página a ser "alta" como um documento real */
  line-height: 1.6;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #1c1c1c;
}
.page p { margin: 0 0 14px; }

/* ── Barra de status ── */
.status-bar {
  background: #2f6fc4;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  padding: 3px 10px;
  flex-shrink: 0;
}
.status-fill { flex: 1; }
.view-icons { letter-spacing: 4px; }
.zoom {
  display: flex;
  align-items: center;
  gap: 6px;
}
.zoom-btn {
  cursor: pointer;
  width: 14px;
  text-align: center;
}
.zoom-track {
  width: 70px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  position: relative;
}
.zoom-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 45%;
  background: #fff;
  border-radius: 2px;
}
.zoom-pct { width: 36px; }

/* ================================================
   VITRINE DE POSTERS (dentro da página branca)
   ================================================ */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.series-poster {
  cursor: pointer;
  text-align: center;
}
.series-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border: 1px solid #c4c4c4;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.series-poster:hover img {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
}
.series-poster p {
  font-size: 11px;
  margin: 5px 0 0;
  color: #1c1c1c;
}

/* ================================================
   CAIXA DE ANOTAÇÕES (modal ao clicar no poster)
   ================================================ */
.notes-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.notes-modal-overlay.active { display: flex; }

.notes-modal {
  background: #fff;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.notes-modal-title-bar {
  background: linear-gradient(180deg, #5d9ce8 0%, #2f6fc4 45%, #1f55a3 100%);
  color: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.notes-modal-close {
  cursor: pointer;
  font-size: 13px;
  opacity: 0.85;
}
.notes-modal-close:hover { opacity: 1; }

.notes-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}
.note-entry {
  border-bottom: 1px dashed #ccc;
  padding: 10px 0;
}
.note-entry:last-child { border-bottom: none; }
.note-entry-label {
  font-weight: 700;
  font-size: 12px;
  color: #1f55a3;
  margin: 0 0 4px;
}
.note-entry-text {
  font-size: 13px;
  color: #2a2a2a;
  line-height: 1.5;
  margin: 0;
}
.notes-empty {
  font-size: 13px;
  color: #777;
  font-style: italic;
}
/* ================================================
   BOTÃO VOLTAR PRA PÁGINA INICIAL
   ================================================ */
.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  background: linear-gradient(180deg, #5d9ce8 0%, #2f6fc4 45%, #1f55a3 100%);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  z-index: 3000;
  transition: transform 0.15s, box-shadow 0.15s;
}
.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.45);
}