@charset "UTF-8";
.cover-image-preview {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.5rem;
  display: none;
}
.cover-image-preview.show {
  display: block;
}

.progress-bar {
  width: 0%;
  background-color: #3b82f6;
  height: 0.5rem;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.content-hidden {
  display: none !important;
}

.remove-image-btn {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc2626;
}
.remove-image-btn:hover {
  color: #991b1b;
}
.remove-image-btn.hidden {
  display: none;
}

.wysiwyg-editor {
  min-height: 400px;
  padding: 1.5rem;
  outline: none;
  line-height: 1.6;
  border: none;
  resize: none;
}
.wysiwyg-editor:focus {
  outline: none;
  box-shadow: none;
}

.editable-image {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.375rem;
  display: block;
  cursor: pointer;
}

.editable-image[width] {
  width: var(--image-width, auto);
  max-width: 100%;
  height: auto;
}

.wysiwyg-editor h3 {
  font-size: 0.7em;
  margin-left: 2px;
}

.btn-toolbar {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}
.btn-toolbar i {
  font-size: 1rem;
}
.btn-toolbar:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-toolbar:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn-toolbar:focus {
  outline: none;
  ring: 2px solid #3b82f6;
  ring-offset: 1px;
}
.btn-toolbar.active {
  background-color: #3b82f6;
  color: white;
  border-color: #2563eb;
  transform: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-toolbar.active:hover {
  background-color: #2563eb;
  transform: none;
}
.btn-toolbar.active i {
  color: white;
}

.prose {
  line-height: 1.6;
}
.prose h1, .prose h2, .prose h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: bold;
}
.prose h1 {
  font-size: 1.8em;
}
.prose h2 {
  font-size: 1.5em;
}
.prose h3 {
  font-size: 1.2em;
}
.prose p {
  margin-bottom: 1em;
}
.prose ul, .prose ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}
.prose li {
  margin-bottom: 0.25em;
}
.prose ul {
  list-style-type: disc;
}
.prose ul li {
  list-style-type: disc;
}
.prose ol {
  list-style-type: decimal;
}
.prose ol li {
  list-style-type: decimal;
}
.prose del {
  color: #6b7280;
  text-decoration: line-through;
}
.prose hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 1.5em 0;
}
.prose blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1em;
  margin: 1em 0;
  color: #6b7280;
}
.prose code {
  background: #f3f4f6;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
}
.prose pre {
  background: #f3f4f6;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1em 0;
}
.prose pre code {
  background: none;
  padding: 0;
}

.wysiwyg-editor[data-empty=true]:before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  position: absolute;
  padding: 1.5rem;
}

.editable-image.selected {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.resize-handle {
  user-select: none;
}

.resize-handle-container {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
}
.resize-handle-container .resize-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border: 1px solid white;
  border-radius: 2px;
  pointer-events: all;
  z-index: 1001;
}

.image-resize-container {
  position: relative;
  display: inline-block;
  margin: 1rem 0;
  border: 2px solid transparent;
}
.image-resize-container.selected {
  border-color: #3b82f6;
}

.resize-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border: 1px solid white;
  border-radius: 2px;
  pointer-events: all;
  z-index: 1001;
}

.resize-handle-nw {
  cursor: nw-resize;
  top: -4px;
  left: -4px;
}

.resize-handle-n {
  cursor: n-resize;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.resize-handle-ne {
  cursor: ne-resize;
  top: -4px;
  right: -4px;
}

.resize-handle-e {
  cursor: e-resize;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
}

.resize-handle-se {
  cursor: se-resize;
  bottom: -4px;
  right: -4px;
}

.resize-handle-s {
  cursor: s-resize;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.resize-handle-sw {
  cursor: sw-resize;
  bottom: -4px;
  left: -4px;
}

.resize-handle-w {
  cursor: w-resize;
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-section {
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.hero-section .animated-bg {
  background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #2563eb, #7c3aed);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}
.hero-section .animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3e%3cdefs%3e%3cpattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"%3e%3ccircle cx="20" cy="20" r="1" fill="white" opacity="0.1"/%3e%3ccircle cx="80" cy="40" r="1" fill="white" opacity="0.08"/%3e%3ccircle cx="40" cy="60" r="1" fill="white" opacity="0.12"/%3e%3ccircle cx="90" cy="80" r="1" fill="white" opacity="0.1"/%3e%3ccircle cx="10" cy="90" r="1" fill="white" opacity="0.09"/%3e%3c/pattern%3e%3c/defs%3e%3crect width="100" height="100" fill="url(%23grain)"/%3e%3c/svg%3e');
  animation: float 20s ease-in-out infinite;
}
.hero-section .bg-black {
  z-index: 2;
}
.hero-section .relative.z-10 {
  z-index: 10;
}

video.hero-video {
  object-fit: cover;
  filter: brightness(0.7);
  z-index: 11;
}
@media (max-width: 768px) {
  video.hero-video {
    object-position: center;
    transform: scale(1.1);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}
.btn-toolbar {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}
.btn-toolbar i {
  font-size: 1rem;
}
.btn-toolbar:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-toolbar:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn-toolbar:focus {
  outline: none;
  ring: 2px solid #3b82f6;
  ring-offset: 1px;
}
.btn-toolbar.active {
  background-color: #3b82f6;
  color: white;
  border-color: #2563eb;
  transform: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-toolbar.active:hover {
  background-color: #2563eb;
  transform: none;
}
.btn-toolbar.active i {
  color: white;
}

.prose {
  line-height: 1.6;
}
.prose h1, .prose h2, .prose h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: bold;
}
.prose h1 {
  font-size: 1.8em;
}
.prose h2 {
  font-size: 1.5em;
}
.prose h3 {
  font-size: 1.2em;
}
.prose p {
  margin-bottom: 1em;
}
.prose ul, .prose ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}
.prose li {
  margin-bottom: 0.25em;
}
.prose ul {
  list-style-type: disc;
}
.prose ul li {
  list-style-type: disc;
}
.prose ol {
  list-style-type: decimal;
}
.prose ol li {
  list-style-type: decimal;
}
.prose del {
  color: #6b7280;
  text-decoration: line-through;
}
.prose hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 1.5em 0;
}
.prose blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1em;
  margin: 1em 0;
  color: #6b7280;
}
.prose code {
  background: #f3f4f6;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
}
.prose pre {
  background: #f3f4f6;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1em 0;
}
.prose pre code {
  background: none;
  padding: 0;
}

.wysiwyg-editor[data-empty=true]:before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  position: absolute;
  padding: 1.5rem;
}

.editable-image.selected {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.editable-image[data-image-width] {
  width: attr(data-image-width px);
  max-width: 100%;
  height: auto;
}

.article-image {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.375rem;
  display: block;
}
.article-image[data-image-width] {
  width: attr(data-image-width px);
}

.resize-handle {
  user-select: none;
}

.resize-handle-container {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
}
.resize-handle-container .resize-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border: 1px solid white;
  border-radius: 2px;
  pointer-events: all;
  z-index: 1001;
}

.resize-handle-nw {
  cursor: nw-resize;
}

.resize-handle-n {
  cursor: n-resize;
}

.resize-handle-ne {
  cursor: ne-resize;
}

.resize-handle-e {
  cursor: e-resize;
}

.resize-handle-se {
  cursor: se-resize;
}

.resize-handle-s {
  cursor: s-resize;
}

.resize-handle-sw {
  cursor: sw-resize;
}

.resize-handle-w {
  cursor: w-resize;
}

.progress-bar-container {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 0.5rem;
}
.progress-bar-container .progress-bar {
  background-color: #3b82f6;
  height: 0.5rem;
  border-radius: 9999px;
  width: 0%;
  transition: width 0.3s ease;
}

.cover-image-preview {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.5rem;
}
.cover-image-preview.hidden {
  display: none;
}

.remove-image-btn {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc2626;
}
.remove-image-btn:hover {
  color: #991b1b;
}
.remove-image-btn.hidden {
  display: none;
}

/* Chat specific tweaks leveraging Flowbite and Tailwind */
#messages a {
  word-break: break-all;
}

.file-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.file-rating__stars {
  display: flex;
  gap: 0.125rem;
  position: relative;
}
.file-rating__star {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  color: #d1d5db;
  transition: all 0.2s ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.file-rating__star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  transition: all 0.2s ease-in-out;
}
.file-rating__star.active {
  color: #fbbf24;
  transform: scale(1.1);
}
.file-rating__star.user-rating {
  color: #f59e0b;
}
.file-rating__star.user-rating svg {
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}
.file-rating__star.hovering {
  transform: scale(1.15);
}
.file-rating__star.hovering.active {
  color: #f59e0b;
  animation: starPulse 0.3s ease-in-out;
}
.file-rating__star:hover {
  transform: scale(1.2);
}
.file-rating__star:hover:not(.active) {
  color: #fed7aa;
}
.file-rating__star:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}
.file-rating__star:active {
  transform: scale(0.95);
}
.file-rating--readonly .file-rating__star {
  cursor: default;
  pointer-events: none;
}
.file-rating--readonly .file-rating__star:hover {
  transform: none;
}
.file-rating--disabled .file-rating__star {
  cursor: default;
  pointer-events: none;
  opacity: 0.4;
}
.file-rating--disabled .file-rating__star:hover {
  transform: none;
  color: #d1d5db;
}
.file-rating--disabled .file-rating__star:active {
  transform: none;
}
.file-rating--disabled .file-rating__star:focus {
  outline: none;
}
.file-rating--small .file-rating__star {
  width: 1rem;
  height: 1rem;
}
.file-rating--small .file-rating__info {
  font-size: 0.875rem;
}
.file-rating--large .file-rating__star {
  width: 1.5rem;
  height: 1.5rem;
}
.file-rating--large .file-rating__info {
  font-size: 1.125rem;
}
.file-rating__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}
.file-rating__average {
  font-weight: 600;
  color: #374151;
}
.file-rating__count {
  color: #9ca3af;
  font-size: 0.85rem;
}
.file-rating__user-rating {
  color: #059669;
  font-weight: 500;
  font-size: 0.85rem;
}
.file-rating.loading {
  opacity: 0.6;
  pointer-events: none;
}
.file-rating.loading .file-rating__stars {
  position: relative;
}
.file-rating.loading .file-rating__stars::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f4f6;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes starPulse {
  0% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.15);
  }
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@media (max-width: 768px) {
  .file-rating__info {
    font-size: 0.8rem;
  }
  .file-rating__star {
    width: 1.125rem;
    height: 1.125rem;
  }
}
@media (prefers-color-scheme: dark) {
  .file-rating__star {
    color: #4b5563;
  }
  .file-rating__star.active {
    color: #fbbf24;
  }
  .file-rating__star.user-rating {
    color: #f59e0b;
  }
  .file-rating__star:hover:not(.active) {
    color: #92400e;
  }
  .file-rating__info {
    color: #9ca3af;
  }
  .file-rating__average {
    color: #e5e7eb;
  }
  .file-rating__count {
    color: #6b7280;
  }
  .file-rating__user-rating {
    color: #10b981;
  }
}

.rating-stats {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}
.rating-stats__header {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}
.rating-stats__breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rating-stats__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.rating-stats__stars {
  display: flex;
  gap: 0.125rem;
  width: 5rem;
}
.rating-stats__stars .star {
  width: 0.75rem;
  height: 0.75rem;
  color: #d1d5db;
}
.rating-stats__stars .star.filled {
  color: #fbbf24;
}
.rating-stats__bar {
  flex: 1;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 0.25rem;
  overflow: hidden;
}
.rating-stats__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 0.25rem;
  transition: width 0.3s ease-in-out;
}
.rating-stats__count {
  min-width: 2rem;
  text-align: right;
  color: #6b7280;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .rating-stats {
    background: #1f2937;
  }
  .rating-stats__header {
    color: #e5e7eb;
  }
  .rating-stats__bar {
    background: #374151;
  }
  .rating-stats__count {
    color: #9ca3af;
  }
}

.progress-bar {
  @apply h-2 rounded-full bg-slate-100 overflow-hidden;
}
.progress-bar__fill {
  @apply h-full transition-all duration-300;
}
.progress-bar__fill--default {
  @apply bg-gradient-to-r from-indigo-500 to-fuchsia-500;
}
.progress-bar__fill--success {
  @apply bg-blue-600;
}
.progress-bar__fill--warning {
  @apply bg-orange-500;
}
.progress-bar__fill--danger {
  @apply bg-red-500;
}

.progress-info {
  @apply mt-1 text-xs text-slate-500;
}

.upload-progress-bar {
  @apply bg-gray-200 rounded-full h-2;
}
.upload-progress-bar__fill {
  @apply bg-blue-600 h-2 rounded-full transition-all duration-300;
  width: 0%;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Tooltip стили для бейджей типа задачи */
.tooltip-content-v2 {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 8px 12px;
  background-color: #1f2937;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}
.tooltip-content-v2::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}
@media (max-width: 640px) {
  .tooltip-content-v2 {
    font-size: 11px;
    padding: 6px 10px;
    white-space: normal;
    max-width: 200px;
  }
}

.group:hover .tooltip-content-v2,
.hover-tooltip:hover .tooltip-content-v2 {
  visibility: visible;
  opacity: 1;
}

.glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
}

.font-inter {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 220px;
  background-color: #1f2937;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -110px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: opacity 0.3s, visibility 0.3s;
}
.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}
@media (max-width: 768px) {
  .tooltip-content {
    width: 180px;
    margin-left: -90px;
    font-size: 11px;
    bottom: 110%;
  }
}
.tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}
.tooltip:nth-child(n+6) .tooltip-content {
  left: auto;
  right: 0;
  margin-left: 0;
  margin-right: -110px;
}
.tooltip:nth-child(n+6) .tooltip-content::after {
  left: auto;
  right: 50%;
  margin-right: -5px;
  margin-left: 0;
}
@media (max-width: 768px) {
  .tooltip:nth-child(n+6) .tooltip-content {
    margin-right: -90px;
  }
}

/*# sourceMappingURL=app.output.css.map */
