
/* styles.css */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f2f5;
}

.toolbar {
  display: flex;
    flex-direction: column; /* hace filas */
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding:10px;
}

.toolbar-row {
  display: flex;
  gap: 5px;      
        
}

.menu {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hidden {
  display: none;
}

.editor-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.editor {
  background: white;
  min-height: 80vh;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  outline: none;
}

/* Tamaños */
.editor.A4 {
  width: 794px;
  min-height: 1123px;
}

.editor.A3 {
  width: 1123px;
  min-height: 1587px;
}

/* Responsive */
@media (max-width: 900px) {
  .editor {
    width: 100% !important;
  }
}

.dark {
  background: #1e1e1e;
  color: white;
}


#document {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 5px;
}

.page::before {
  content: "";
  display: block;
  height: 20px;
}

.page {
  background: white;
  padding: 96px 72px 96px 72px; /* márgenes tipo documento */
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  box-sizing: border-box;
}

/* Tamaños */
.page.A4 {
  width: 794px;
  height: 1123px;
}

.page.A3 {
  width: 1123px;
  height: 1587px;
}

.tool-btn {
  border: 1px solid #ccc;
  background: white;
  padding: 4px;
  cursor: pointer;
}

.tool-btn:hover {
  background: #f0f0f0;
}

.tool-btn img {
  width: 18px;
  height: 18px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.format {
    position: sticky;
    top: 50px; /* 👈 altura de tu toolbar */
    z-index: 999;
    display:none;
    padding: 1%;
    background-color: #ffffff;
    width: 98%;
    margin: 0 auto 10px auto;
    border-radius: 6px;
    box-shadow: 2px 2px 8px grey;
    border: 1px solid black; 
    text-align: left;
}


.format-section {
    margin-bottom: 10px;
}

.margin-inputs, .other-inputs {

    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.margin-inputs label, .other-inputs label {
    min-width: 80px;
}

.format-buttons {
    text-align: center;
    margin-top: 10px;
}

.format-buttons button {
    padding: 6px 16px;
    margin: 0 10px;
    border-radius: 4px;
    border: 1px solid #333;
    cursor: pointer;
    background-color: #eee;
}



.linkes button {
    padding: 6px 1px;
    margin: 0 3px;
    border-radius: 4px;
    border: 1px solid #333;
    cursor: pointer;
    background-color: #eee;
    font-size: 12px;
}

#document{
    margin-top: 10px; /* espacio desde la parte superior */
    transition: margin-top 0.3s ease;
}



/* Tamaños diferentes */
.page.A3 { width: 29.7cm; height: 42cm; }
.page.A4 { width: 21cm; height: 29.7cm; }
.page.A5 { width: 14.8cm; height: 21cm; }

.page {
    width: 210mm;  /* A4 por defecto */
    min-height: 297mm;
    margin: 0 auto 20px auto;
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    padding: 40px;
    line-height: 20px;
    text-indent: 20px;
}




