/* Custom CSS for SRT Studio - Cho phép tùy biến giao diện linh hoạt */

:root {
  --app-transition-speed: 0.2s;
}

/* Ẩn phần tử Alpine trước khi component khởi tạo để không nháy giao diện */
[x-cloak] {
  display: none !important;
}

/* Hiệu ứng chuyển động mượt */
.fade-enter {
  opacity: 0;
  transform: translateY(4px);
}
.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--app-transition-speed) ease-out, transform var(--app-transition-speed) ease-out;
}

/* Toast container styling */
#app-toast-container {
  pointer-events: none;
}
#app-toast-container > * {
  pointer-events: auto;
}

/* Custom scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(150, 150, 150, 0.3);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 150, 150, 0.5);
}

/* Monospace preview area */
.code-preview-area {
  max-height: 480px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.825rem;
  line-height: 1.6;
}
