/* Document Editor Styles */

/* Page styling */
.document-editor-page {
  background: #f5f5f5;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Center the editor container */
.editor-container-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

/* Remove any white space on the right */
body {
  overflow-x: hidden;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Editor content area */
.editor-content {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #000;
}

.editor-content p {
  margin: 0 0 6pt 0;
}

.editor-content h1 {
  font-size: 24pt;
  font-weight: bold;
  margin: 12pt 0;
}

.editor-content h2 {
  font-size: 18pt;
  font-weight: bold;
  margin: 10pt 0;
}

.editor-content h3 {
  font-size: 14pt;
  font-weight: bold;
  margin: 8pt 0;
}

/* Table styles */
.editor-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10pt 0;
}

.editor-content table td,
.editor-content table th {
  border: 1px solid #000;
  padding: 4pt 8pt;
}

.editor-content table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* List styles */
.editor-content ul,
.editor-content ol {
  margin: 6pt 0;
  padding-left: 24pt;
  list-style-position: outside;
}

.editor-content ul {
  list-style-type: disc;
}

.editor-content ol {
  list-style-type: decimal;
}

.editor-content li {
  margin: 3pt 0;
  display: list-item;
}

/* Nested lists */
.editor-content ul ul {
  list-style-type: circle;
}

.editor-content ul ul ul {
  list-style-type: square;
}

.editor-content ol ol {
  list-style-type: lower-alpha;
}

.editor-content ol ol ol {
  list-style-type: lower-roman;
}

/* Link styles */
.editor-content a {
  color: #0066cc;
  text-decoration: underline;
}

.editor-content a:hover {
  color: #0052a3;
}

/* Image styles */
.editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10pt 0;
}

/* Selection styles */
.editor-content ::selection {
  background-color: #b3d4fc;
}

/* Focus styles */
.editor-content:focus {
  outline: none;
}

/* Placeholder text */
.editor-content:empty:before {
  content: 'Start typing...';
  color: #999;
  font-style: italic;
}

/* Print styles */
@media print {
  .document-editor-page {
    background: white;
  }
  
  .editor-content {
    font-size: 12pt;
  }
}

/* Toolbar button active states */
.toolbar-btn-active {
  background-color: #e5e7eb;
}

/* Menu dropdown animations */
.menu-dropdown {
  animation: slideDown 0.2s ease-out;
}

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

/* Scrollbar styling */
.editor-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.editor-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.editor-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.editor-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .toolbar-btn {
    padding: 6px;
  }
  
  .toolbar-select {
    font-size: 12px;
    padding: 4px;
  }
}
