/*
 * 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.
 */

/* JSON List Renderer Styles */
.json-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.json-list-nested {
  margin: 5px 0;
  padding-left: 20px;
}

.json-list-item {
  margin-bottom: 5px;
}

.json-array {
  margin: 0;
  padding-left: 0;
}

.json-array-nested {
  margin: 5px 0;
  padding-left: 20px;
}

.json-array-item {
  margin-bottom: 5px;
}

.json-key {
  font-weight: 600;
}

.json-value {
  color: inherit;
}

/* Reply Bubble Pattern */
.reply-bubble-pattern {
  background-image: radial-gradient(
    circle at 2px 2px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 0
  );
  background-size: 20px 20px;
}

/* Toggle Switch Styles - Using Tailwind peer classes now */

/* Widget-specific styles */
.widget-font-family {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.widget-avatar-border {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.widget-button-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-box-sizing {
  box-sizing: border-box;
}

/* Line Clamp Utilities for Text Truncation */
.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;
}
