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

body{
    margin:0px;
    font-family: "inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    padding-bottom: 100px;

}

div{
    display:flex;
    flex-direction:column;
    box-sizing: border-box;
}

input, form, textarea, select, button {
    box-sizing: border-box;
}

.google-signin-button {
  align-items: center;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #3c4043;
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  font-family: "Roboto", "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  height: 40px;
  justify-content: center;
  letter-spacing: 0.25px;
  padding: 0 12px;
  width: 100%;
}

.google-signin-button:hover {
  background: #f8fafd;
  border-color: #d2e3fc;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.google-signin-button:focus-visible {
  border-color: #4285f4;
  outline: 2px solid rgba(66, 133, 244, 0.35);
  outline-offset: 2px;
}

.google-signin-button__icon {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.container{
    max-width:1000px;
    width:100%;
    margin: 0 auto;

    @media(max-width: 800px){
    	padding: 0px 10px;
    }
}


#search-form {
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 18px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  background-color: #fff;
  border-color: #4CAF50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input::placeholder {
  color: #999;
}

table{
    text-align:center;
    border:1px solid #eee;
    border-radius:4px;
    border-spacing:0px;
}

thead tr{
  background-color:rgb(144, 144, 142);
}

/* Style for odd-numbered rows (e.g., white background) */
tbody tr:nth-child(odd) {
  background-color: #ffffff; /* Or a very light grey */
}

/* Style for even-numbered rows (e.g., light grey background) */
tbody tr:nth-child(even) {
  background-color: #f2f2f2; /* A light grey color */
}

.post {
  padding: 10px 0px;
  border-bottom: 1px solid rgb(228, 228, 231);
}


.posts-index-feed {
  display: flex;
  flex-direction: column;
}

.posts-index-feed__post {
  color: inherit;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.posts-index-feed__post-link {
  align-self: flex-start;
  color: #2563eb;
  font-size: 0.9rem;
  margin: 0 0 18px;
  text-decoration: none;
}

.posts-index-feed__post-link:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.9rem;
}

.site-footer__inner {
  gap: 8px;
}

.site-footer__section {
  gap: 6px;
}

.site-footer__heading {
  color: #374151;
  font-weight: 600;
}

.site-footer__link {
  align-self: flex-start;
  color: #2563eb;
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 100;
}

.query-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  height: 60px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.query-input--placeholder {
  color: #9ca3af;
  background: #fff;
  cursor: text;
}

.chart-widget {
  width: 100%;
  min-width: 0;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.chart-widget__chart {
  width: 100%;
  height: 360px;
  min-height: 280px;
}

.chart-widget__toolbar {
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.chart-widget__chart-type,
.chart-widget__normalize {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  padding: 6px 10px;
}

.chart-widget__chart-type:hover,
.chart-widget__normalize:hover {
  background: #f8fafc;
}

.chart-widget__footer {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
}

.chart-widget__link {
  color: #2563eb;
  text-decoration: none;
}

.chart-widget[data-chart-status]:not([data-chart-status=""])::before {
  content: attr(data-chart-status);
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .chart-widget {
    padding: 8px;
  }

  .chart-widget__chart {
    height: 300px;
    min-height: 260px;
  }
}

/* ===== Question pages (seeded Q&A UX) ===== */
.q-body { margin: 0; background: #fff; color: #0f172a; font-family: "Inter", sans-serif; }

.q-header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.q-header__inner { display: flex; flex-direction: row; align-items: center; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 14px 20px; }
.q-header__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: #0f172a; text-decoration: none; white-space: nowrap; }
.q-header__logo-img { display: block; height: 28px; width: auto; }
.q-header__search { flex: 1; min-width: 0; }
.q-header__nav { margin-left: auto; }
.q-header__auth { padding: 7px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; text-decoration: none; font-size: 14px; }

.q-search { position: relative; display: flex; flex-direction: row; align-items: center; }
.q-search__icon { position: absolute; left: 12px; color: #64748b; pointer-events: none; }
.q-search__input { box-sizing: border-box; flex: 1; min-width: 0; padding: 19px 44px 19px 36px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 14px; background: #f8fafc; }
.q-search__input:focus { outline: 2px solid #bfdbfe; border-color: #2563eb; background: #fff; }
.q-search__ask { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #2563eb; color: #fff; cursor: pointer; }
.q-search__ask:hover { background: #1d4ed8; }

.q-main { padding: 28px 0 48px; }
.q-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.q-footer { border-top: 1px solid #e2e8f0; background: #fff; }
.q-footer__inner { display: flex; flex-direction: row; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; color: #64748b; font-size: 13px; }

/* Feed */
.q-feed__head { margin-bottom: 24px; }
.q-feed__title { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.q-feed__subtitle { margin: 0; color: #64748b; font-size: 15px; }
.q-feed__list { display: grid; gap: 0; }

/* Cards */
.q-card { display: block; padding: 16px 2px; border-bottom: 1px solid #e2e8f0; text-decoration: none; color: inherit; transition: opacity 0.15s ease; }
.q-card:last-child { border-bottom: none; }
.q-card:hover { opacity: 0.75; }
.q-card__head { display: block; }
.q-card__query { display: flex; flex-direction: row; align-items: center; gap: 3px; }
.q-card__search-icon { color: #94a3b8; flex: none; }
.q-card__title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.q-card__excerpt { display: block; margin-top: 5px; color: #475569; font-size: 14px; line-height: 1.6; }
.q-card__arrow { margin-left: auto; color: #94a3b8; font-size: 15px; white-space: nowrap; }
.q-card:hover .q-card__arrow { color: #2563eb; }
.q-card__chart { margin: 12px 0 4px; }
.q-card__meta { display: flex; flex-direction: row; gap: 14px; margin-top: 10px; color: #94a3b8; font-size: 12px; }

/* Question page — chat session */
.q-question__article { background: transparent; border: 0; padding: 0; }
.q-chat__query { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 16px; margin-bottom: 22px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; }
.q-chat__query-text { margin: 0; font-size: 15px; font-weight: 500; }
.q-question__chart-section { margin: 0 0 18px; }
.q-prose { line-height: 1.65; font-size: 15px; }
.q-prose h2 { font-size: 18px; margin: 22px 0 8px; }
.q-prose h3 { font-size: 16px; margin: 18px 0 6px; }
.q-prose p { margin: 10px 0; }
.q-prose ul { padding-left: 20px; }
.q-prose li { margin: 4px 0; }
.q-prose table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.q-prose th, .q-prose td { border: 1px solid #e2e8f0; padding: 6px 10px; text-align: left; }
.q-prose th { background: #f8fafc; }
.q-prose code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; font-size: 13px; }
.q-follow-up { margin-top: 26px; padding-top: 26px; border-top: 1px solid #eef2f7; }
.q-follow-up .q-chat__query-text { font-size: 15px; }

/* Composer */
.q-composer { display: flex; align-items: center; gap: 8px; margin-top: 30px; padding: 7px 7px 7px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.q-composer:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.q-composer__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: inherit; }
.q-composer__send { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; color: #fff; background: #2563eb; border: 0; border-radius: 10px; cursor: pointer; }
.q-composer__send:hover { background: #1d4ed8; }

/* Generating state */
.q-generating { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #64748b; font-size: 15px; }
.q-generating__spinner { width: 16px; height: 16px; border: 2px solid #e2e8f0; border-top-color: #2563eb; border-radius: 50%; animation: q-spin 0.8s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }

/* Chart widget */
.q-chart { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 8px 4px; background: #fff; }
.q-chart__controls { display: flex; flex-direction: row; justify-content: flex-end; gap: 6px; padding: 6px 8px 8px; }
.q-chart__range { padding: 3px 10px; font-size: 12px; font-weight: 600; color: #64748b; background: #f1f5f9; border: 0; border-radius: 999px; cursor: pointer; }
.q-chart__range.is-active { background: #2563eb; color: #fff; }
.q-chart__range:hover:not(.is-active) { background: #e2e8f0; }
