shreerangss's picture
Make query history tabs more visible
719cbaf
Raw
History Blame Contribute Delete
9.55 kB
.app-shell {
max-width: 1180px;
margin: 0 auto;
padding: 56px 20px 80px;
}
.hero {
margin-bottom: 28px;
}
.eyebrow,
.panel-kicker,
.section-label,
.field-label,
.support-title {
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 0.74rem;
font-weight: 700;
color: var(--muted-strong);
}
.hero h1 {
margin: 10px 0 14px;
font-size: clamp(2.2rem, 4vw, 3.8rem);
line-height: 1.04;
letter-spacing: -0.04em;
max-width: 12ch;
}
.hero-subtitle {
max-width: 720px;
margin: 0;
font-size: 1.02rem;
color: var(--muted);
}
.top-grid {
display: grid;
grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
gap: 20px;
margin-bottom: 20px;
}
.view-switch {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
width: min(420px, 100%);
padding: 7px;
margin: 0 0 28px;
border: 1px solid var(--panel-border);
border-radius: 16px;
background: rgba(255, 255, 255, 0.78);
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}
.panel {
background: var(--panel-bg);
border: 1px solid var(--panel-border);
border-radius: 24px;
box-shadow: var(--panel-shadow);
padding: 24px;
backdrop-filter: blur(12px);
}
.panel-header,
.answer-header,
.source-header,
.claim-card-header,
.claim-sources-header,
.health-summary,
.actions,
.token-row,
.health-grid,
.source-meta {
display: flex;
align-items: center;
}
.panel-header,
.answer-header,
.source-header,
.health-summary {
justify-content: space-between;
gap: 16px;
}
.panel-header h2,
.answer-header h3 {
margin: 6px 0 0;
font-size: 1.2rem;
}
.mode-switch {
display: inline-grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
padding: 6px;
margin: 24px 0;
border-radius: 16px;
background: var(--accent-soft);
}
.mode-button,
.view-button,
.primary-button,
.secondary-button,
.ghost-button {
border: 0;
border-radius: 14px;
font: inherit;
cursor: pointer;
transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.mode-button {
padding: 12px 14px;
background: transparent;
color: var(--muted);
font-weight: 700;
}
.view-button {
padding: 14px 20px;
background: transparent;
color: var(--muted-strong);
font-weight: 700;
}
.mode-button.is-active,
.view-button.is-active {
background: var(--panel-bg);
color: var(--text-color);
box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.field {
display: grid;
gap: 10px;
margin-bottom: 20px;
}
.field-input {
width: 100%;
padding: 14px 16px;
border-radius: 16px;
border: 1px solid var(--input-border);
background: var(--input-bg);
color: var(--text-color);
font: inherit;
outline: none;
transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(27, 83, 157, 0.12);
background: #ffffff;
}
.field-input-file {
padding: 12px;
}
.field-textarea {
min-height: 150px;
resize: vertical;
}
.field-help,
.subtle-copy,
.version-copy,
.empty-sources,
.results-meta {
color: var(--muted);
font-size: 0.92rem;
}
.token-row {
gap: 10px;
}
.token-row .field-input {
flex: 1;
}
.actions {
gap: 12px;
flex-wrap: wrap;
margin-top: 8px;
}
.primary-button,
.secondary-button,
.ghost-button {
padding: 12px 16px;
font-weight: 700;
}
.primary-button {
background: linear-gradient(135deg, #154f8d, #13386b);
color: #ffffff;
box-shadow: 0 12px 28px rgba(19, 56, 107, 0.22);
}
.secondary-button {
background: #eef4fb;
color: var(--text-color);
}
.ghost-button {
background: transparent;
border: 1px solid var(--panel-border);
color: var(--muted-strong);
}
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.mode-button:hover,
.view-button:hover {
transform: translateY(-1px);
}
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.status-panel {
display: grid;
gap: 16px;
align-content: start;
}
.health-card,
.support-card,
.answer-card,
.source-card,
.loading-box,
.empty-state,
.notice {
border-radius: 20px;
}
.health-card,
.support-card,
.answer-card,
.loading-box,
.empty-state,
.notice {
border: 1px solid var(--panel-border);
background: rgba(255, 255, 255, 0.78);
}
.health-card,
.support-card {
padding: 18px;
}
.health-grid {
align-items: stretch;
flex-wrap: wrap;
gap: 12px;
margin-top: 18px;
}
.health-grid > div {
min-width: 132px;
flex: 1 1 132px;
padding: 14px;
border-radius: 16px;
background: var(--accent-soft);
}
.health-grid dt {
margin-bottom: 6px;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
}
.health-grid dd {
margin: 0;
font-weight: 700;
color: var(--text-color);
word-break: break-word;
}
.status-message {
margin: 16px 0 0;
color: var(--danger);
}
.status-pill {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 32px;
padding: 0 12px;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 800;
letter-spacing: 0.02em;
}
.status-healthy,
.status-ok {
background: rgba(13, 148, 103, 0.12);
color: #0f7a57;
}
.status-checking,
.status-no_context {
background: rgba(217, 119, 6, 0.14);
color: #a35404;
}
.status-unhealthy,
.status-error {
background: rgba(220, 38, 38, 0.12);
color: #b42318;
}
.status-supported {
background: rgba(13, 148, 103, 0.12);
color: #0f7a57;
}
.status-weakly_supported {
background: rgba(217, 119, 6, 0.14);
color: #a35404;
}
.status-unsupported {
background: rgba(220, 38, 38, 0.12);
color: #b42318;
}
.results-panel {
display: grid;
gap: 18px;
}
.history-panel,
.history-list {
display: grid;
gap: 16px;
}
.history-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.history-context {
padding: 16px;
border: 1px solid rgba(21, 79, 141, 0.12);
border-radius: 18px;
background: var(--accent-soft);
}
.history-context h3,
.history-context p {
margin: 6px 0 0;
}
.history-row {
display: flex;
justify-content: space-between;
gap: 18px;
width: 100%;
padding: 18px;
border: 1px solid var(--panel-border);
border-radius: 18px;
background: rgba(255, 255, 255, 0.78);
color: var(--text-color);
text-align: left;
cursor: pointer;
font: inherit;
transition: border-color 160ms ease, transform 160ms ease;
}
.history-row:hover {
border-color: rgba(21, 79, 141, 0.32);
transform: translateY(-1px);
}
.history-meta {
display: block;
margin-top: 6px;
color: var(--muted);
font-size: 0.92rem;
}
.history-counts {
min-width: 110px;
color: var(--muted-strong);
font-size: 0.92rem;
font-weight: 700;
text-align: right;
}
.history-query {
padding: 18px;
border: 1px solid var(--panel-border);
border-radius: 18px;
background: rgba(255, 255, 255, 0.78);
}
.history-query-header {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
}
.history-query h3,
.history-query p {
margin: 6px 0 0;
}
.loading-box,
.empty-state,
.notice {
padding: 18px 20px;
}
.loading-box,
.empty-state {
display: flex;
align-items: center;
gap: 12px;
color: var(--muted-strong);
}
.notice-error {
border-color: rgba(220, 38, 38, 0.24);
background: rgba(254, 242, 242, 0.92);
color: #8b1e18;
}
.spinner {
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid rgba(19, 56, 107, 0.16);
border-top-color: #154f8d;
animation: spin 0.8s linear infinite;
}
.answers-grid {
display: grid;
gap: 18px;
}
.answer-card {
padding: 22px;
}
.answer-copy {
margin-top: 18px;
}
.answer-copy p:last-child {
margin: 8px 0 0;
color: var(--text-color);
}
.claim-section,
.source-section {
margin-top: 22px;
}
.claim-list,
.source-list {
display: grid;
gap: 12px;
margin-top: 12px;
}
.claim-card,
.source-card {
padding: 16px;
border: 1px solid rgba(21, 79, 141, 0.12);
background: var(--accent-soft);
}
.claim-card {
border-radius: 20px;
background: rgba(237, 244, 253, 0.92);
}
.claim-card-header,
.claim-sources-header {
justify-content: space-between;
gap: 14px;
}
.claim-text,
.claim-rationale {
margin: 0;
}
.claim-text {
font-weight: 700;
color: var(--text-color);
}
.claim-rationale {
margin-top: 10px;
color: var(--muted-strong);
}
.claim-sources {
margin-top: 16px;
}
.source-meta {
justify-content: flex-start;
gap: 10px;
margin-bottom: 10px;
font-size: 0.9rem;
font-weight: 700;
color: var(--muted-strong);
}
.source-card p {
margin: 0;
color: var(--text-color);
}
.support-title {
margin: 0 0 10px;
}
.support-copy,
.section-label {
margin: 0;
}
.support-copy {
color: var(--muted);
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 980px) {
.top-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
.app-shell {
padding: 36px 16px 60px;
}
.panel {
padding: 20px;
}
.panel-header,
.answer-header,
.history-query-header,
.source-header,
.claim-card-header,
.claim-sources-header,
.health-summary,
.token-row {
align-items: flex-start;
flex-direction: column;
}
.token-row .ghost-button,
.actions button {
width: 100%;
}
.actions {
display: grid;
}
.view-switch {
width: 100%;
}
.history-row {
flex-direction: column;
}
.history-counts {
text-align: left;
}
}