Sadum1's picture
Update frontend/src/index.css
2cfd1d1 verified
Raw History Blame Contribute Delete
16.7 kB
:root {
--ink: #1b2430;
--ink-soft: #4a5568;
--bg: #f7f8fa;
--panel: #ffffff;
--border: #e2e5e9;
--teal: #2f6f6b;
--teal-dark: #1f4d4a;
--ochre: #b8862e;
--ochre-soft: #f4ead3;
--red: #a13d2c;
--red-soft: #fbe9e5;
--green: #1a7f4e;
--green-soft: #e8f6ee;
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
--font-serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: var(--font-ui);
font-size: 15px;
line-height: 1.5;
}
.app-shell { min-height: 100vh; }
.app-header {
padding: 20px 32px;
background: var(--panel);
border-bottom: 1px solid var(--border);
}
.app-header h1 {
margin: 0;
font-family: var(--font-serif);
font-size: 1.4rem;
}
.app-header p {
margin: 4px 0 0;
color: var(--ink-soft);
font-size: 0.85rem;
}
.app-main {
max-width: 780px;
margin: 0 auto;
padding: 28px 24px 60px;
}
.empty-state { color: var(--ink-soft); text-align: center; padding: 40px 0; }
/* --- List --- */
.list-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.list-header h1 { font-family: var(--font-serif); font-size: 1.3rem; margin: 0; }
.protocol-cards { display: flex; flex-direction: column; gap: 12px; }
.protocol-card {
text-align: left;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
padding: 16px 18px;
cursor: pointer;
font-family: inherit;
}
.protocol-card:hover { border-color: var(--teal); }
.protocol-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.protocol-title { font-weight: 600; font-size: 1rem; }
.protocol-summary { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 4px; }
.protocol-sources { color: var(--ink-soft); font-size: 0.78rem; margin: 0; }
.status-badge {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 3px 9px;
border-radius: 999px;
}
.status-draft { background: var(--ochre-soft); color: var(--ochre); }
.status-locked { background: var(--green-soft); color: var(--green); }
/* --- Form --- */
.protocol-form, .protocol-detail-page { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; }
.protocol-form h2 { font-family: var(--font-serif); margin: 0 0 6px; }
.form-hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 20px; line-height: 1.6; }
.field-label {
display: block;
font-size: 0.8rem;
font-weight: 600;
color: var(--ink-soft);
margin: 14px 0 5px;
}
input[type="text"], textarea {
width: 100%;
border: 1px solid var(--border);
border-radius: 8px;
padding: 9px 12px;
font-size: 0.92rem;
font-family: inherit;
resize: vertical;
}
textarea { min-height: 52px; }
input:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.pico-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0 16px;
margin-top: 4px;
}
.criteria-editor { margin-top: 4px; }
.criteria-list { list-style: none; margin: 6px 0; padding: 0; }
.criteria-list li {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg);
border-radius: 6px;
padding: 6px 10px;
margin-bottom: 5px;
font-size: 0.85rem;
}
.remove-btn {
background: none;
border: none;
color: var(--red);
font-size: 1.1rem;
cursor: pointer;
line-height: 1;
padding: 0 4px;
}
.criteria-add-row { display: flex; gap: 8px; }
.criteria-add-row input { flex: 1; }
.criteria-add-row button {
background: var(--teal);
color: white;
border: none;
border-radius: 8px;
padding: 0 14px;
font-size: 0.85rem;
cursor: pointer;
}
.source-checkboxes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.source-checkbox {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.88rem;
cursor: pointer;
}
.form-error {
background: var(--red-soft);
color: var(--red);
border-radius: 8px;
padding: 9px 13px;
font-size: 0.85rem;
margin-top: 14px;
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 22px;
}
.primary-btn {
background: var(--teal);
color: white;
border: none;
border-radius: 8px;
padding: 9px 18px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
}
.primary-btn:hover { background: var(--teal-dark); }
.primary-btn:disabled { background: #a9c2c0; cursor: not-allowed; }
.secondary-btn {
background: transparent;
border: 1px solid var(--border);
border-radius: 8px;
padding: 9px 18px;
font-size: 0.9rem;
cursor: pointer;
color: var(--ink);
}
.secondary-btn:hover { border-color: var(--ink-soft); }
/* --- Detail --- */
.back-link {
background: none;
border: none;
color: var(--teal);
font-size: 0.85rem;
cursor: pointer;
padding: 0 0 14px;
}
.detail-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 4px;
}
.detail-header h1 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0; }
.locked-note {
color: var(--green);
font-size: 0.82rem;
background: var(--green-soft);
padding: 8px 12px;
border-radius: 8px;
margin: 10px 0 16px;
}
.readout-row { margin-bottom: 14px; }
.readout-label {
display: block;
font-size: 0.75rem;
font-weight: 600;
color: var(--ink-soft);
text-transform: uppercase;
letter-spacing: 0.03em;
margin-bottom: 3px;
}
.readout-row ul { margin: 4px 0 0; padding-left: 18px; }
.readout-row li { font-size: 0.9rem; margin-bottom: 2px; }
@media (max-width: 600px) {
.pico-grid { grid-template-columns: 1fr; }
}
/* --- Phase 2: Search results --- */
.phase2-section {
margin-top: 24px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
.search-results h2 { font-family: var(--font-serif); font-size: 1.1rem; margin: 0 0 4px; }
.search-results code {
background: var(--bg);
padding: 1px 6px;
border-radius: 4px;
font-size: 0.85em;
}
.source-count-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 10px;
margin: 16px 0;
}
.source-count-card {
background: var(--bg);
border-radius: 10px;
padding: 12px 14px;
text-align: center;
}
.source-count-card.unavailable { background: #f3f0e8; }
.source-count-header {
font-size: 0.72rem;
font-weight: 600;
text-transform: uppercase;
color: var(--ink-soft);
margin-bottom: 4px;
}
.source-count-value { font-size: 1.4rem; font-weight: 700; }
.source-count-card.unavailable .source-count-value { color: var(--ochre); font-size: 1rem; }
.source-count-note { font-size: 0.7rem; color: var(--ink-soft); margin: 4px 0 0; line-height: 1.4; }
.prisma-summary {
font-size: 0.9rem;
background: var(--teal);
color: white;
padding: 10px 14px;
border-radius: 8px;
margin-bottom: 18px;
}
.paper-list { display: flex; flex-direction: column; gap: 12px; }
.paper-card {
border: 1px solid var(--border);
border-radius: 10px;
padding: 14px 16px;
}
.paper-title {
font-weight: 600;
font-size: 0.95rem;
color: var(--teal-dark);
text-decoration: none;
}
.paper-title:hover { text-decoration: underline; }
.paper-meta { font-size: 0.8rem; color: var(--ink-soft); margin: 4px 0; }
.paper-abstract { font-size: 0.85rem; margin: 6px 0; line-height: 1.5; }
.paper-found-in { display: flex; gap: 6px; margin-top: 6px; }
.found-in-tag {
font-size: 0.68rem;
font-weight: 600;
background: var(--ochre-soft);
color: var(--ochre);
padding: 2px 7px;
border-radius: 5px;
}
/* --- Phase 3: Screening board --- */
.screening-board {
margin-top: 28px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
.screening-board h2 { font-family: var(--font-serif); font-size: 1.1rem; margin: 0 0 4px; }
.reviewer-input {
width: 220px;
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 12px;
font-size: 0.9rem;
margin-bottom: 18px;
}
.prisma-boxes {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 22px;
overflow-x: auto;
}
.prisma-box {
background: var(--bg);
border-radius: 8px;
padding: 8px 12px;
text-align: center;
min-width: 90px;
}
.prisma-box.excluded { background: var(--red-soft); }
.prisma-box.included { background: var(--green-soft); }
.prisma-box-value { font-size: 1.2rem; font-weight: 700; }
.prisma-box-label { font-size: 0.62rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.02em; }
.prisma-arrow { color: var(--ink-soft); font-size: 0.9rem; }
.paper-screening-list { display: flex; flex-direction: column; gap: 12px; }
.screening-row {
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 16px;
}
.screening-title { font-weight: 600; font-size: 0.9rem; margin: 0 0 3px; }
.screening-actions {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
}
.stage-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.decision-tag {
font-size: 0.82rem;
padding: 6px 10px;
border-radius: 6px;
margin-top: 8px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.decision-tag.excluded { background: var(--red-soft); color: var(--red); }
.decision-tag.included { background: var(--green-soft); color: var(--green); }
.reason-prompt {
display: flex;
gap: 8px;
margin-top: 8px;
}
.reason-prompt input { flex: 1; }
.extraction-summary {
font-size: 0.82rem;
background: var(--teal);
color: white;
padding: 8px 12px;
border-radius: 6px;
margin-top: 8px;
}
.extraction-form {
margin-top: 10px;
padding: 12px;
background: var(--bg);
border-radius: 8px;
}
.extraction-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 8px;
}
.extraction-grid input {
border: 1px solid var(--border);
border-radius: 6px;
padding: 7px 10px;
font-size: 0.85rem;
}
.extraction-form textarea {
width: 100%;
min-height: 50px;
border: 1px solid var(--border);
border-radius: 6px;
padding: 7px 10px;
font-size: 0.85rem;
margin-bottom: 8px;
}
/* --- Phase 4: PRISMA diagram, evidence table, synthesis --- */
.phase4-section {
margin-top: 28px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
.phase4-section h2 { font-family: var(--font-serif); font-size: 1.05rem; margin: 0 0 14px; }
.prisma-diagram {
display: flex;
flex-direction: column;
align-items: stretch;
max-width: 520px;
}
.prisma-node {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 14px;
font-size: 0.82rem;
display: flex;
flex-direction: column;
gap: 2px;
}
.prisma-node strong { font-size: 1.1rem; }
.prisma-node.main { flex: 1; }
.prisma-node.side {
background: var(--red-soft);
color: var(--red);
min-width: 140px;
}
.prisma-node.included { background: var(--green-soft); color: var(--green); }
.prisma-node-sub { font-size: 0.7rem; color: var(--ink-soft); }
.prisma-connector {
width: 2px;
height: 16px;
background: var(--border);
margin-left: 20px;
}
.prisma-row { display: flex; align-items: stretch; gap: 8px; }
.prisma-side-arrow { display: flex; align-items: center; color: var(--ink-soft); }
.evidence-table-wrap { overflow-x: auto; }
.evidence-table {
width: 100%;
border-collapse: collapse;
font-size: 0.82rem;
}
.evidence-table th, .evidence-table td {
border: 1px solid var(--border);
padding: 8px 10px;
text-align: left;
vertical-align: top;
}
.evidence-table th {
background: var(--bg);
font-size: 0.72rem;
text-transform: uppercase;
color: var(--ink-soft);
}
.evidence-study-cell { max-width: 260px; font-weight: 500; }
.synthesis-panel { margin-top: 4px; }
.synthesis-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.synthesis-header h3 { font-family: var(--font-serif); font-size: 1rem; margin: 0; }
.synthesis-text {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 14px 16px;
font-family: var(--font-serif);
font-size: 0.95rem;
line-height: 1.7;
white-space: pre-wrap;
}
.synthesis-citation {
font-size: 0.72rem;
font-weight: 600;
background: var(--ochre-soft);
color: var(--ochre);
padding: 1px 6px;
border-radius: 4px;
margin: 0 1px;
font-family: var(--font-ui);
}
.synthesis-timestamp { font-size: 0.75rem; color: var(--ink-soft); margin-top: 8px; }
/* Add this at the very END of frontend/src/index.css */
.detail-tabs {
display: flex;
gap: 4px;
overflow-x: auto;
margin: 20px 0 0;
border-bottom: 1px solid #e3e7ea;
position: sticky;
top: 0;
z-index: 5;
background: #fff;
}
.detail-tab {
appearance: none;
background: none;
border: 0;
border-bottom: 3px solid transparent;
padding: 12px 18px;
font: inherit;
font-weight: 500;
color: #5b6670;
cursor: pointer;
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 8px;
}
.detail-tab:hover { color: #1c2329; }
.detail-tab[aria-selected="true"] { color: #2d6f6a; border-bottom-color: #2d6f6a; }
.detail-tab:focus-visible { outline: 2px solid #2d6f6a; outline-offset: -2px; border-radius: 4px; }
.detail-tab-count {
font-size: 0.8em;
padding: 1px 8px;
border-radius: 999px;
background: #eef2f3;
color: #5b6670;
}
.detail-tab-panel { padding-top: 20px; }
.detail-tab-panel[hidden] { display: none; }
.detail-tab-empty { padding: 12px 0; }
/* Add this at the very END of frontend/src/index.css */
.ranking-panel {
margin: 0 0 20px;
padding: 16px 18px;
border: 1px solid #d9e3e1;
border-radius: 10px;
background: #f8fbfa;
}
.ranking-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ranking-head h3 { margin: 0; font-size: 1rem; }
.ranking-toggle { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 500; }
.ranking-summary { margin: 8px 0; line-height: 1.5; }
.ranking-subhead { margin: 14px 0 6px; font-weight: 600; font-size: 0.9rem; color: #3d4a52; }
.ranking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ranking-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.ranking-bar { height: 8px; border-radius: 999px; background: #e3ecea; overflow: hidden; }
.ranking-bar span { display: block; height: 100%; background: #2d6f6a; }
.ranking-item-body a { font-weight: 500; }
.ranking-meta { font-size: 0.8rem; color: #5b6670; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.ranking-method { margin-top: 12px; font-size: 0.9rem; }
.ranking-method summary { cursor: pointer; color: #2d6f6a; }
.source-count-card.manual-entered { background: #eaf3f1; }
.source-count-card .manual-btn { margin-top: 10px; }
.manual-search-panel { margin: 16px 0; padding: 16px 18px; border: 1px solid #cfe0dc; border-radius: 10px; background: #f6faf9; }
.manual-search-panel h3 { margin: 0 0 6px; font-size: 1rem; }
.manual-search-panel .manual-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .manual-search-panel .manual-row { grid-template-columns: 1fr; } }
.import-preview { margin: 10px 0; padding: 10px 12px; background: #fff; border: 1px solid #d9e3e1; border-radius: 8px; }
.import-preview ul { margin: 6px 0 0; padding-left: 18px; }
.methods-export { margin-top: 8px; }
.methods-text { width: 100%; min-height: 420px; line-height: 1.55; font-family: inherit; }
.protocol-form select {
width: 100%;
padding: 0.65rem 0.9rem;
font: inherit;
color: inherit;
background: #fff;
border: 1px solid #e2e5ea;
border-radius: 12px;
}
.export-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
}
.export-actions .field-label {
margin: 0 0.5rem 0 0;
}
.export-actions a {
text-decoration: none;
display: inline-block;
}
.review-context {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
}
.review-context-chip {
background: #eef4f2;
color: #2a6f66;
border-radius: 999px;
padding: 0.3rem 0.8rem;
font-size: 0.9rem;
}
.klimisch-line {
margin-top: 0.25rem;
font-size: 0.9rem;
color: #2a6f66;
}
.domain-multiselect {
border: 1px solid #e2e5ea;
border-radius: 12px;
background: #fff;
padding: 0.65rem 0.9rem;
}
.domain-multiselect summary {
cursor: pointer;
}
.domain-multiselect-actions {
display: flex;
gap: 0.75rem;
margin: 0.6rem 0;
}
.domain-multiselect-list {
display: grid;
grid-template-columns: 1fr;
gap: 0.35rem;
max-height: 16rem;
overflow-y: auto;
}