StaySense/src/styles.css

424 lines
6 KiB
CSS

:root {
--bg: #f3f7f6;
--ink: #15232a;
--muted: #4f606b;
--panel: #ffffff;
--line: #d4dfe5;
--green: #007a4d;
--yellow: #b57900;
--red: #b63133;
--brand: #006680;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
font-family: "Avenir Next", "Segoe UI", sans-serif;
color: var(--ink);
background: linear-gradient(160deg, #f7fbfa 0%, #edf3fb 100%);
-webkit-text-size-adjust: 100%;
padding-top: env(safe-area-inset-top);
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
}
.background {
position: fixed;
z-index: -1;
border-radius: 999px;
filter: blur(40px);
opacity: 0.28;
}
.haze-a {
width: 270px;
height: 270px;
background: #54d99c;
top: -40px;
right: 5%;
}
.haze-b {
width: 240px;
height: 240px;
background: #5eb4ef;
bottom: -30px;
left: 3%;
}
.top {
text-align: center;
padding: 24px 16px 8px;
}
.top h1 {
margin: 0;
font-size: clamp(1.9rem, 4vw, 3rem);
}
.top p {
margin: 8px auto;
max-width: 760px;
color: var(--muted);
}
#network-status {
color: var(--brand);
display: block;
}
#data-status {
display: block;
color: #486270;
}
#ios-install-hint {
display: block;
color: #486270;
}
.grid {
max-width: 1120px;
margin: 8px auto 32px;
padding: 0 14px;
display: grid;
gap: 12px;
grid-template-columns: 1fr;
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 14px;
padding: 14px;
box-shadow: 0 8px 30px rgba(19, 45, 56, 0.06);
}
h2,
h3 {
margin: 0 0 10px;
}
.field-grid {
display: grid;
gap: 10px;
grid-template-columns: 1fr;
}
label {
display: grid;
gap: 4px;
color: var(--muted);
font-size: 0.9rem;
}
input,
select,
button {
font: inherit;
}
input,
select {
border: 1px solid var(--line);
border-radius: 10px;
padding: 9px;
background: #fff;
}
.button-row {
margin-top: 10px;
display: grid;
gap: 8px;
}
.search-label {
margin-top: 10px;
}
.search-row {
display: grid;
gap: 8px;
grid-template-columns: 1fr;
}
#search-status {
display: block;
margin-top: 6px;
color: var(--muted);
}
.search-results {
list-style: none;
margin: 8px 0 0;
padding: 0;
border: 1px solid var(--line);
border-radius: 10px;
max-height: 190px;
overflow: auto;
background: #fff;
}
.search-results:empty {
display: none;
}
.search-result-btn {
width: 100%;
text-align: left;
border: 0;
border-bottom: 1px solid var(--line);
background: #fff;
color: var(--ink);
padding: 10px;
cursor: pointer;
}
.search-result-btn:last-child {
border-bottom: 0;
}
.search-result-btn:hover,
.search-result-btn.active {
background: #eef6fb;
}
.map {
margin-top: 8px;
width: 100%;
height: 320px;
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--line);
}
.spot-pin {
width: 16px;
height: 16px;
}
.spot-pin span {
display: block;
width: 16px;
height: 16px;
border-radius: 999px;
border: 2px solid #fff;
background: #1ca4c7;
box-shadow: 0 2px 8px rgba(6, 31, 43, 0.35);
}
.btn {
border: none;
border-radius: 10px;
padding: 10px 12px;
background: linear-gradient(120deg, #006680, #1689a8);
color: #fff;
cursor: pointer;
}
.btn.secondary {
background: linear-gradient(120deg, #4c5e67, #6f8089);
}
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.hint,
.small {
color: var(--muted);
font-size: 0.88rem;
}
.decision {
border: 1px solid var(--line);
border-radius: 12px;
padding: 12px;
}
.score-wrap {
display: flex;
gap: 10px;
align-items: baseline;
}
.score {
font-size: 2.3rem;
font-weight: 700;
}
.ampel {
font-size: 1rem;
padding: 4px 10px;
border-radius: 999px;
color: #fff;
background: #4b5f6b;
}
.ampel.green {
background: var(--green);
}
.ampel.yellow {
background: var(--yellow);
}
.ampel.red {
background: var(--red);
}
.reasons {
margin: 10px 0 0;
padding-left: 18px;
}
.subheading {
margin-top: 12px;
margin-bottom: 6px;
font-size: 0.95rem;
}
.quality-wrap {
margin-top: 8px;
display: flex;
gap: 8px;
align-items: center;
}
.quality-label {
color: var(--muted);
font-size: 0.85rem;
}
.quality-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 72px;
border-radius: 999px;
padding: 3px 10px;
color: #fff;
background: #5f7280;
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.quality-badge.high {
background: var(--green);
}
.quality-badge.medium {
background: var(--yellow);
}
.quality-badge.low {
background: var(--red);
}
.factor-details {
margin: 6px 0 0;
padding-left: 18px;
color: var(--muted);
}
.factor-details li {
margin-bottom: 4px;
}
.spot-context {
margin-top: 8px;
color: var(--muted);
font-size: 0.84rem;
border-top: 1px dashed var(--line);
padding-top: 8px;
}
.signal-grid {
display: grid;
gap: 8px;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-bottom: 6px;
}
.toggle {
display: flex;
align-items: center;
gap: 8px;
}
.legal {
margin: 8px 0;
padding-left: 18px;
}
.legal a {
color: var(--brand);
}
.legal-output {
border: 1px dashed var(--line);
border-radius: 10px;
padding: 10px;
color: var(--muted);
min-height: 42px;
}
.hidden {
display: none;
}
.admin-block {
border: 1px solid var(--line);
border-radius: 10px;
padding: 10px;
margin-top: 10px;
}
.admin-counts {
color: var(--ink);
background: #f7fafc;
border: 1px solid var(--line);
border-radius: 10px;
padding: 8px;
}
.admin-list {
border: 1px solid var(--line);
border-radius: 10px;
max-height: 180px;
overflow: auto;
padding: 8px;
background: #fff;
color: var(--muted);
font-size: 0.88rem;
}
.admin-list-item {
padding: 6px 0;
border-bottom: 1px solid var(--line);
}
.admin-list-item:last-child {
border-bottom: 0;
}
@media (min-width: 920px) {
.grid {
grid-template-columns: 1fr 1.2fr 0.9fr;
}
.field-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.search-row {
grid-template-columns: 1fr auto;
}
}