/*
 * 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 "user_dashboard.css";
@import "actiontext.css";

/* Turbo Frame Loading States */
turbo-frame#analysis_result .placeholder {
  display: flex;
}
turbo-frame#analysis_result .loading-indicator {
  display: none;
}

turbo-frame#analysis_result[busy] .placeholder {
  display: none;
}
turbo-frame#analysis_result[busy] .loading-indicator {
  display: flex;
}

/* Custom Utilities */
[data-post-analysis-target~="toggleIcon"] {
  transition: transform 0.3s ease;
}

.rotate-180 {
  transform: rotate(180deg);
}


/* Trix Content Adaptation for Themed Cards */
.creator-insight-content {
  /* Ensure text is readable on dark backgrounds (overriding inherit if issues arise) */
  color: #e5e7eb !important; /* gray-200 */
}

.creator-insight-content pre {
  background-color: rgba(0, 0, 0, 0.4) !important;
  color: #e5e7eb !important;
  padding: 1em;
  border-radius: 0.5em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Override Trix internal elements to respect theme */
.creator-insight-content h1,
.creator-insight-content h2,
.creator-insight-content h3,
.creator-insight-content strong {
  color: inherit !important;
  font-weight: 700;
}

.creator-insight-content a {
  color: inherit !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.creator-insight-content ul, 
.creator-insight-content ol {
  padding-left: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  list-style-position: outside;
}

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

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

.creator-insight-content blockquote {
  border-left: 4px solid currentColor;
  padding-left: 1em;
  margin-left: 0;
  opacity: 0.8;
  font-style: italic;
}


/* Hide file upload button if not needed, or style it */
.trix-button--icon-attach {
  display: none !important; /* Start simple, disable attachments if not configured */
}

