/*!
 * Dark Theme Override for thread.css
 * Overrides all light theme colors with dark theme colors
 */

/* Main thread body - Force dark background */
.thread-body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #b0b0b0 !important;
  background-color: #252538 !important;
  background: #252538 !important;
  margin: 0 !important;
  padding: 0.9em !important;
  word-wrap: break-word !important;
  overflow-x: auto !important;
  border: 1px solid #3a3a4e !important;
  border-radius: 8px !important;
}

/* All text elements in thread body */
.thread-body * {
  color: #b0b0b0 !important;
}

/* Headings */
.thread-body h1,
.thread-body h2,
.thread-body h3,
.thread-body h4,
.thread-body h5,
.thread-body h6,
.thread-body .h1,
.thread-body .h2,
.thread-body .h3,
.thread-body .h4,
.thread-body .h5,
.thread-body .h6 {
  color: #e0e0e0 !important;
  font-weight: 500 !important;
}

.thread-body h1 small,
.thread-body h2 small,
.thread-body h3 small,
.thread-body h4 small,
.thread-body h5 small,
.thread-body h6 small {
  color: #888 !important;
}

/* Links */
.thread-body a:not(.button) {
  color: #4a9eff !important;
  text-decoration: none !important;
}

.thread-body a:not(.button):hover,
.thread-body a:not(.button):focus {
  color: #6bb3ff !important;
  text-decoration: underline !important;
}

/* Strong and bold */
.thread-body b,
.thread-body strong {
  color: #e0e0e0 !important;
  font-weight: bold !important;
}

/* HR */
.thread-body hr {
  border-top: 1px solid #3a3a4e !important;
}

/* Blockquote */
.thread-body blockquote {
  border-left: 5px solid #4a9eff !important;
  color: #999 !important;
  background: rgba(74, 158, 255, 0.05) !important;
}

.thread-body blockquote small {
  color: #888 !important;
}

/* Tables */
.thread-body table {
  background-color: transparent !important;
  border-color: #3a3a4e !important;
}

.thread-body table thead > tr > td,
.thread-body table thead > tr > th,
.thread-body table tr > th {
  background-color: #2a2a3e !important;
  color: #e0e0e0 !important;
  font-weight: bold !important;
  border-color: #3a3a4e !important;
}

.thread-body table thead > tr > th,
.thread-body table tbody > tr > th,
.thread-body table tfoot > tr > th,
.thread-body table thead > tr > td,
.thread-body table tbody > tr > td,
.thread-body table tfoot > tr > td {
  border-color: #3a3a4e !important;
  color: #b0b0b0 !important;
  background-color: transparent !important;
}

.thread-body table tbody > tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.thread-body table tbody > tr:hover {
  background-color: rgba(74, 158, 255, 0.1) !important;
}

.thread-body table table {
  background-color: transparent !important;
}

/* Pre and Code */
.thread-body pre {
  background: #1a1a2e !important;
  background-color: #1a1a2e !important;
  color: #e0e0e0 !important;
  border: 1px solid #3a3a4e !important;
  border-radius: 5px !important;
  padding: 0.5em !important;
}

.thread-body code,
.thread-body kbd,
.thread-body samp {
  background: #1a1a2e !important;
  color: #e0e0e0 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* Mark */
.thread-body mark {
  background: #4a9eff !important;
  color: #fff !important;
}

/* Page header */
.thread-body .page-header {
  border-bottom: 1px solid #3a3a4e !important;
}

/* Paragraphs */
.thread-body p {
  color: #b0b0b0 !important;
}

/* Lists */
.thread-body ul,
.thread-body ol {
  color: #b0b0b0 !important;
}

.thread-body li {
  color: #b0b0b0 !important;
}

/* Small text */
.thread-body small {
  color: #888 !important;
}

/* Cite */
.thread-body cite {
  color: #999 !important;
}

/* Address */
.thread-body address {
  color: #b0b0b0 !important;
}

/* Divs and spans */
.thread-body div,
.thread-body span {
  color: inherit !important;
}

/* Images */
.thread-body img {
  border-radius: 4px !important;
}

/* Override any inline styles */
.thread-body [style*="color: #333"],
.thread-body [style*="color: #000"],
.thread-body [style*="color: black"] {
  color: #b0b0b0 !important;
}

.thread-body [style*="background: #fff"],
.thread-body [style*="background: white"],
.thread-body [style*="background-color: #fff"],
.thread-body [style*="background-color: white"],
.thread-body [style*="background-color: #ffffff"] {
  background: #252538 !important;
  background-color: #252538 !important;
}

/* Microsoft Office styles override */
.thread-body p.MsoNormal,
.thread-body li.MsoNormal,
.thread-body div.MsoNormal,
.thread-body p.MsoPlainText,
.thread-body li.MsoPlainText,
.thread-body div.MsoPlainText {
  color: #b0b0b0 !important;
}
