/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Import app theme styles */
/* @import "./app_theme.css"; - temporarily disabled due to 404 error */

/* Markdown content styling for AI Activity */
.markdown-content {
  color: #e5e7eb; /* text-gray-200 */
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: #ffffff; /* text-white */
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-content h1 { font-size: 1.25rem; }
.markdown-content h2 { font-size: 1.125rem; }
.markdown-content h3 { font-size: 1rem; }
.markdown-content h4 { font-size: 0.875rem; }

.markdown-content p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.markdown-content strong {
  color: #ffffff; /* text-white */
  font-weight: 600;
}

.markdown-content em {
  font-style: italic;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.markdown-content li {
  margin-bottom: 0.25rem;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content blockquote {
  border-left: 4px solid #8b5cf6; /* border-purple-500 */
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 0.75rem;
  font-style: italic;
  color: #d1d5db; /* text-gray-300 */
}

.markdown-content code {
  background-color: #374151; /* bg-gray-700 */
  color: #fbbf24; /* text-yellow-400 */
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
}

.markdown-content pre {
  background-color: #374151; /* bg-gray-700 */
  color: #e5e7eb; /* text-gray-200 */
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.markdown-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.markdown-content a {
  color: #8b5cf6; /* text-purple-400 */
  text-decoration: underline;
}

.markdown-content a:hover {
  color: #a78bfa; /* text-purple-300 */
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid #4b5563; /* border-gray-600 */
  padding: 0.5rem;
  text-align: left;
}

.markdown-content th {
  background-color: #374151; /* bg-gray-700 */
  font-weight: 600;
}

/* Special styling for checkmarks and emojis */
.markdown-content .checkmark {
  color: #22c55e; /* text-green-500 */
}

/* Ensure proper spacing for markdown elements */
.markdown-content p:last-child {
  margin-bottom: 0;
}

.markdown-content ul:last-child,
.markdown-content ol:last-child {
  margin-bottom: 0;
}

/* Editor Preview Device Styles */
.desktop-preview {
  width: 100%;
  height: 100%;
  background: white;
  position: relative;
}

.tablet-preview {
  width: 768px;
  height: 100%;
  background: white;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.mobile-preview {
  width: 375px;
  height: 667px;
  background: white;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 8px solid #1f2937;
}

/* Add a notch for mobile preview */
.mobile-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #1f2937;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

/* Adjust iframe positioning for mobile to account for notch */
.mobile-preview iframe {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: calc(100% - 20px);
  border: none;
}

/* Ensure tablet and desktop iframes fill their containers */
.tablet-preview iframe,
.desktop-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Animation for device switching */
@keyframes deviceSwitch {
  0% {
    opacity: 0.8;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.mobile-preview,
.tablet-preview,
.desktop-preview {
  animation: deviceSwitch 0.3s ease-out;
}

/* Chat loading dots animation */
.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.thinking-dots .dot {
  width: 8px;
  height: 8px;
  background-color: #8b5cf6;
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.thinking-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Custom gray-750 for hover states */
.hover\:bg-gray-750:hover {
  background-color: #2d3748;
}



