/* Basic editor styling */
.tiptap-editor {
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 1rem;
  min-height: 300px;
  outline: none;
}

/* LinkedIn-specific editor styling */
.linkedin-post-editor {
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 120px;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
}

.linkedin-post-editor:focus {
  border-color: #0a66c2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.1);
}

/* LinkedIn integrated editor styling */
.linkedin-post-editor-integrated {
  border: none;
  border-radius: 0;
  padding: calc(var(--spacing) * 8);
  padding-top: 0;
  min-height: 120px;
  background-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #000000;
}

.linkedin-post-editor-integrated:focus {
  outline: none;
  box-shadow: none;
}

.linkedin-post-editor-integrated .tiptap {
  outline: none;
}

.linkedin-post-editor-integrated .tiptap:focus {
  outline: none;
}

/* LinkedIn post content styling */
.linkedin-post-content .tiptap p {
  margin: 0 0 1em 0;
}

.linkedin-post-content .tiptap p:last-child {
  margin-bottom: 0;
}

.linkedin-post-content .tiptap ul,
.linkedin-post-content .tiptap ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.linkedin-post-content .tiptap li {
  margin-bottom: 0.25rem;
}

.linkedin-post-content .tiptap a {
  color: #0a66c2;
  text-decoration: none;
}

.linkedin-post-content .tiptap a:hover {
  text-decoration: underline;
}

/* X tweet editor styling */
.x-tweet-editor {
  border: 1px solid #cfd9de;
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 120px;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  color: #0f1419;
}

.x-tweet-editor:focus {
  border-color: #1d9bf0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.1);
}

/* X tweet integrated editor styling */
.x-tweet-editor-integrated {
  border: none;
  border-radius: 0;
  padding: 2px 0 1rem 0;
  min-height: 120px;
  background-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.25;
  color: #0f1419;
}

.x-tweet-editor-integrated:focus {
  outline: none;
  box-shadow: none;
}

.x-tweet-editor-integrated .tiptap {
  outline: none;
}

.x-tweet-editor-integrated .tiptap:focus {
  outline: none;
}

/* X tweet content styling */
.x-tweet-content .tiptap p {
  margin: 0 0 1em 0;
}

.x-tweet-content .tiptap p:last-child {
  margin-bottom: 0;
}

.x-tweet-content .tiptap ul,
.x-tweet-content .tiptap ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.x-tweet-content .tiptap li {
  margin-bottom: 0.25rem;
}

.x-tweet-content .tiptap a {
  color: #1d9bf0;
  text-decoration: none;
}

.x-tweet-content .tiptap a:hover {
  text-decoration: underline;
}

.tiptap-editor:focus{
  outline: none;
  border: 0;
  box-shadow: none;
}

.tiptap:focus,
.tiptap:focus:focus-visible  {
  outline: none;
  border: 0;
  box-shadow: none;
}

/* Save status indicator */
#save-status-indicator {
  transition: opacity 0.3s ease;
}

#save-status-indicator.saving {
  background-color: color-mix(in oklab, var(--color-violet-500) 20%, transparent);
  color: var(--color-violet-600);
}

#save-status-indicator.saved {
  background-color: color-mix(in oklab, var(--color-green-500) 20%, transparent);
  color: var(--color-green-700);  
}

#save-status-indicator.error {
  background-color: color-mix(in oklab, var(--color-red-500) 20%, transparent);
  color: var(--color-red-700);
}

/* Table styling */
.tiptap table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin: 1rem 0;
  overflow: hidden;
}

.tiptap table td,
.tiptap table th {
  border: 2px solid #e2e8f0;
  padding: 0.5rem;
  position: relative;
}

.tiptap table th {
  background-color: #f8fafc;
  font-weight: bold;
}

/* Image styling */
.tiptap img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

/* Blockquote styling */
.tiptap blockquote {
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  font-weight: 400;
  color: #4b5563;
  border-left: 4px solid #8b5cf6;
  margin: 1.5rem 0;
  position: relative;
  max-width: 100%;
}

.tiptap blockquote::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  left: 0.5rem;
  top: -0.5rem;
  color: #8b5cf6;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.tiptap blockquote p:first-of-type {
  margin-top: 0;
}

/* Code block styling */
.tiptap pre {
  background-color: var(--color-gray-700);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  position: relative;
}

.tiptap pre code {
  color: var(--color-gray-100);
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.tiptap code {
  background-color: var(--color-gray-700);
  color: var(--color-gray-100);
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
}

/* Bubble menu styling */
.bubble-menu {
  background-color: #1f2937;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.25rem;
  gap: 0.25rem;
  z-index: 10001;
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  top: -9999px;
  left: -9999px;
}

.bubble-menu.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.bubble-menu-inline {
  display: flex;
}

.bubble-menu-image {
  background-color: #1f2937;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.25rem;
  gap: 0.25rem;
  z-index: 10001;
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  top: -9999px;
  left: -9999px;
  display: flex;
}

.bubble-menu-image.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.bubble-menu-table {
  background-color: #1f2937;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  gap: 0.25rem;
  z-index: 10001;
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  top: -9999px;
  left: -9999px;
  flex-direction: column;
  min-width: 220px;
  display: flex;
}

.bubble-menu-table.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.25rem;
  color: white;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-button.is-active {
  background-color: rgba(255, 255, 255, 0.2);
}

.menu-separator {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 0.25rem;
  align-self: center;
}

.bubble-menu-table .menu-button {
  width: 100%;
  height: auto;
  padding: 0.5rem;
  justify-content: flex-start;
}

.bubble-menu-table .menu-text {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.bubble-menu-table .menu-separator {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0;
} 