/* Reshape Online PDF Editor - Core Layout & Styling */

#editor-workspace {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: #F8FAFC;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#editor-viewport {
  position: relative;
  flex: 1;
  overflow: auto;
  background-color: #ECEFF4;
  background-image: radial-gradient(rgba(0, 74, 198, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  user-select: none;
}

/* Page Container & Shadows */
.pdf-page-container {
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: content-box;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: width 0.1s ease-out, height 0.1s ease-out;
}

.pdf-page-canvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 8-Point Selection Handles */
.pdf-handle {
  transition: transform 0.1s ease;
  z-index: 40;
}
.pdf-handle:hover {
  transform: scale(1.3);
  background-color: #004AC6 !important;
}

/* Scene Objects */
.pdf-scene-object {
  box-sizing: border-box;
}

.pdf-scene-object[contenteditable="true"] {
  outline: 2px dashed #004AC6 !important;
  cursor: text !important;
  user-select: text !important;
}

/* RTL Layout Enhancements */
[dir="rtl"] #editor-sidebar-aside {
  border-right: none;
  border-left: 1px solid #E2E8F0;
}

[dir="rtl"] .font-mono {
  direction: ltr;
  display: inline-block;
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
