/* Custom styles for the redesigned interface */
#richEditor {
  padding: 1.5rem;
  min-height: calc(100vh - 280px);
}

#richEditor:empty:before {
  content: attr(placeholder);
  color: #9ca3af;
  font-style: italic;
  pointer-events: none;
}

#richEditor p {
  margin-bottom: 1.25rem;
}

.template-card {
  transition: all 0.2s ease;
}

.template-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toolbar-btn {
  transition: all 0.2s ease;
  color: #374151;
  background-color: #ffffff;
  border-color: #e5e7eb;
}

.toolbar-btn:hover {
  transform: translateY(-1px);
  color: #111827 !important;
  background-color: #eef2ff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.18);
}

.toolbar-btn:hover svg,
.toolbar-btn:focus svg,
.toolbar-btn:active svg {
  color: #111827 !important;
  fill: currentColor;
  opacity: 1;
  visibility: visible;
}

.toolbar-btn:focus {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: 2px;
}

.toolbar-btn:active {
  transform: translateY(0);
  color: #111827 !important;
  background-color: #e0e7ff !important;
}

#richEditor {
  transition: all 0.2s ease;
}

#richEditor:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #richEditor {
    font-size: 16px !important;
    padding: 1rem !important;
    min-height: calc(100vh - 260px);
  }

  .toolbar-btn {
    min-width: 40px;
    min-height: 40px;
  }

  #noteTitle {
    font-size: 16px !important;
  }
}

/* Smooth animations */
.transition-all {
  transition: all 0.2s ease;
}
