|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
|
|
|
|
|
:root{
|
|
|
|
|
|
--bg: #0b261d;
|
|
|
--bg-2: #123b2d;
|
|
|
--panel: rgba(22, 57, 44, .68);
|
|
|
--panel-solid: #173f31;
|
|
|
--chip: #15392c;
|
|
|
--border: #265b48;
|
|
|
|
|
|
|
|
|
--text: #e9fbf3;
|
|
|
--muted: #b7dcd0;
|
|
|
|
|
|
|
|
|
--accent: #34d399;
|
|
|
--accent-2: #10b981;
|
|
|
--success: #22c55e;
|
|
|
--danger: #ef4444;
|
|
|
--ink-on-accent: #06241b;
|
|
|
|
|
|
|
|
|
--shadow: 0 12px 32px rgba(0,0,0,.35);
|
|
|
}
|
|
|
|
|
|
html, body { height: 100%; }
|
|
|
body{
|
|
|
color-scheme: dark;
|
|
|
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
|
|
|
color: var(--text);
|
|
|
|
|
|
|
|
|
background:
|
|
|
radial-gradient(900px 520px at 8% -6%, rgba(52,211,153,.16), transparent 60%),
|
|
|
radial-gradient(820px 520px at 92% 2%, rgba(20,184,166,.12), transparent 60%),
|
|
|
linear-gradient(180deg, var(--bg), var(--bg-2));
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
|
|
|
header{
|
|
|
position: sticky;
|
|
|
top: 0;
|
|
|
z-index: 10;
|
|
|
background: linear-gradient(180deg, rgba(20,48,38,.78), rgba(20,48,38,.52));
|
|
|
backdrop-filter: blur(10px);
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
box-shadow: 0 8px 28px rgba(0,0,0,.18);
|
|
|
padding: 16px 20px;
|
|
|
}
|
|
|
header h1{ font-size: 1.35rem; letter-spacing: .2px; }
|
|
|
|
|
|
|
|
|
header nav{ margin-top: 8px; display: flex; gap: .75rem; flex-wrap: wrap; }
|
|
|
header nav a{
|
|
|
color: var(--text);
|
|
|
text-decoration: none;
|
|
|
border: 1px solid var(--border);
|
|
|
border-radius: 999px;
|
|
|
font-size: .9rem;
|
|
|
padding: .35rem .7rem;
|
|
|
}
|
|
|
header nav a:hover{ filter: brightness(1.06); }
|
|
|
|
|
|
|
|
|
main{
|
|
|
flex: 1;
|
|
|
padding: 20px;
|
|
|
display: grid;
|
|
|
place-items: start center;
|
|
|
}
|
|
|
#classification-section{
|
|
|
width: 100%;
|
|
|
max-width: 980px;
|
|
|
display: grid;
|
|
|
grid-template-columns: minmax(0,1fr);
|
|
|
gap: 16px;
|
|
|
}
|
|
|
|
|
|
|
|
|
.panel{
|
|
|
background: var(--panel);
|
|
|
border: 1px solid var(--border);
|
|
|
border-radius: 18px;
|
|
|
box-shadow: var(--shadow);
|
|
|
}
|
|
|
@supports (backdrop-filter: blur(8px)){
|
|
|
.panel{ backdrop-filter: blur(12px) saturate(112%); }
|
|
|
}
|
|
|
|
|
|
|
|
|
#webcam-container{
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
max-width: 860px;
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
#camera-feed{
|
|
|
width: 100%;
|
|
|
display: block;
|
|
|
border-radius: 16px;
|
|
|
border: 1px solid var(--border);
|
|
|
background: var(--panel-solid);
|
|
|
aspect-ratio: 16/9;
|
|
|
object-fit: cover;
|
|
|
box-shadow:
|
|
|
inset 0 0 0 1px rgba(255,255,255,.04),
|
|
|
0 10px 28px rgba(0,0,0,.28);
|
|
|
}
|
|
|
|
|
|
|
|
|
#analyze-button{
|
|
|
position: absolute;
|
|
|
bottom: 16px;
|
|
|
right: 16px;
|
|
|
padding: .85rem 1.1rem;
|
|
|
border: none;
|
|
|
border-radius: 12px;
|
|
|
font-weight: 800;
|
|
|
cursor: pointer;
|
|
|
background: linear-gradient(90deg, var(--accent), var(--accent-2));
|
|
|
color: var(--ink-on-accent);
|
|
|
box-shadow:
|
|
|
0 12px 28px rgba(16,185,129,.28),
|
|
|
0 0 0 6px rgba(52,211,153,.12),
|
|
|
0 2px 0 rgba(0,0,0,.24) inset;
|
|
|
transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
|
|
|
}
|
|
|
#analyze-button:hover{ transform: translateY(-1px); filter: brightness(1.05); }
|
|
|
#analyze-button:active{ transform: translateY(0); }
|
|
|
#analyze-button:focus{ outline: 2px solid #94a3b8; outline-offset: 3px; }
|
|
|
#analyze-button:disabled{
|
|
|
opacity:.6; filter:saturate(.6) grayscale(.3); cursor:not-allowed;
|
|
|
}
|
|
|
|
|
|
|
|
|
.controls{
|
|
|
display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.8rem;
|
|
|
}
|
|
|
|
|
|
|
|
|
#start-camera, #upload-photo{
|
|
|
appearance:none;
|
|
|
padding:.75rem 1rem;
|
|
|
border-radius:12px;
|
|
|
font-weight:800;
|
|
|
letter-spacing:.2px;
|
|
|
border:1px solid var(--border);
|
|
|
color:var(--text);
|
|
|
background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
|
|
|
box-shadow: var(--shadow);
|
|
|
cursor:pointer;
|
|
|
transition:transform .12s ease, filter .2s ease, border-color .2s ease;
|
|
|
}
|
|
|
#start-camera:hover, #upload-photo:hover{
|
|
|
transform: translateY(-1px);
|
|
|
filter: brightness(1.07);
|
|
|
}
|
|
|
#start-camera:active, #upload-photo:active{ transform: translateY(0); }
|
|
|
#start-camera:focus, #upload-photo:focus{ outline:2px solid #94a3b8; outline-offset:3px; }
|
|
|
|
|
|
|
|
|
#logs-container{
|
|
|
width: 100%;
|
|
|
max-width: 860px;
|
|
|
margin: 6px auto 0;
|
|
|
padding: 16px;
|
|
|
}
|
|
|
#logs-container.panel{ padding: 18px; }
|
|
|
#logs-container h2{
|
|
|
font-size: 1.15rem;
|
|
|
color: var(--muted);
|
|
|
margin-bottom: 10px;
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
|
|
|
|
|
|
#context-list{
|
|
|
list-style: none;
|
|
|
max-height: 320px;
|
|
|
overflow: auto;
|
|
|
padding: 2px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 10px;
|
|
|
scrollbar-width: thin;
|
|
|
scrollbar-color: var(--border) transparent;
|
|
|
}
|
|
|
#context-list li{
|
|
|
background: var(--chip);
|
|
|
border: 1px solid var(--border);
|
|
|
border-radius: 12px;
|
|
|
padding: 14px 14px 14px 16px;
|
|
|
line-height: 1.35;
|
|
|
color: #ddf7ec;
|
|
|
position: relative;
|
|
|
font-size: 1.08rem;
|
|
|
box-shadow: 0 10px 18px rgba(0,0,0,.18);
|
|
|
}
|
|
|
#context-list li::before{
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
top: 12px;
|
|
|
bottom: 12px;
|
|
|
width: 3px;
|
|
|
border-radius: 2px;
|
|
|
background: linear-gradient(180deg, var(--accent), var(--accent-2));
|
|
|
opacity: .95;
|
|
|
}
|
|
|
|
|
|
|
|
|
.result-label{ font-weight:900; color:#f0fff8; }
|
|
|
.result-confidence{ font-weight:800; color:var(--success); margin-left:.35rem; }
|
|
|
.result-tip{ display:block; margin-top:.25rem; font-size:.98rem; color:var(--muted); }
|
|
|
|
|
|
|
|
|
footer{
|
|
|
border-top: 1px solid var(--border);
|
|
|
background: linear-gradient(180deg, rgba(20,48,38,.52), rgba(20,48,38,.38));
|
|
|
color: var(--muted);
|
|
|
text-align: center;
|
|
|
padding: 12px 16px;
|
|
|
font-size: .9rem;
|
|
|
}
|
|
|
|
|
|
|
|
|
#webcam-container.panel,
|
|
|
#logs-container.panel{
|
|
|
background: var(--panel);
|
|
|
}
|
|
|
|
|
|
|
|
|
@media (max-width: 768px){
|
|
|
header h1{ font-size: 1.1rem; }
|
|
|
#analyze-button{ padding: .75rem 1rem; bottom: 12px; right: 12px; }
|
|
|
#context-list li{ font-size:1.05rem; }
|
|
|
.controls{ gap:.5rem; }
|
|
|
}
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce){
|
|
|
* { transition: none !important; animation: none !important; }
|
|
|
}
|
|
|
|
|
|
|
|
|
header h1.brand{
|
|
|
display:inline-flex;
|
|
|
align-items:center;
|
|
|
gap:.55rem;
|
|
|
line-height:1;
|
|
|
font-weight:900;
|
|
|
letter-spacing:.2px;
|
|
|
font-size: clamp(1.25rem, 1rem + 2vw, 2.15rem);
|
|
|
}
|
|
|
|
|
|
.brand-prim{
|
|
|
position:relative;
|
|
|
display:inline-block;
|
|
|
background:
|
|
|
radial-gradient(120% 180% at 10% 0%, rgba(255,255,255,.18) 0%, transparent 55%),
|
|
|
linear-gradient(90deg, var(--accent), var(--accent-2));
|
|
|
-webkit-background-clip:text;
|
|
|
background-clip:text;
|
|
|
-webkit-text-fill-color:transparent;
|
|
|
text-shadow:
|
|
|
0 0 0.5px rgba(255,255,255,.35),
|
|
|
0 8px 24px rgba(16,185,129,.18),
|
|
|
0 4px 14px rgba(52,211,153,.18);
|
|
|
background-size: 200% 100%, 200% 100%;
|
|
|
animation: brandShine 6s linear infinite;
|
|
|
}
|
|
|
@keyframes brandShine{
|
|
|
0% { background-position: 0% 0%, 0% 0%; }
|
|
|
100% { background-position: 200% 0%, 200% 0%; }
|
|
|
}
|
|
|
|
|
|
.brand-ai{
|
|
|
display:inline-flex;
|
|
|
align-items:center;
|
|
|
justify-content:center;
|
|
|
font-weight:800;
|
|
|
font-size:.72em;
|
|
|
text-transform: uppercase;
|
|
|
letter-spacing:.8px;
|
|
|
padding:.28em .6em .3em;
|
|
|
border-radius:999px;
|
|
|
color: var(--ink-on-accent);
|
|
|
border:1px solid rgba(255,255,255,.18);
|
|
|
background: linear-gradient(90deg, var(--accent), var(--accent-2));
|
|
|
box-shadow:
|
|
|
0 10px 22px rgba(16,185,129,.25),
|
|
|
0 2px 0 rgba(255,255,255,.16) inset;
|
|
|
position:relative;
|
|
|
overflow:hidden;
|
|
|
}
|
|
|
.brand-ai::after{
|
|
|
content:"";
|
|
|
position:absolute; inset:0;
|
|
|
background: linear-gradient( to right, transparent, rgba(255,255,255,.22), transparent );
|
|
|
transform: translateX(-120%) skewX(-18deg);
|
|
|
animation: pillSweep 2.6s ease-in-out infinite 0.2s;
|
|
|
pointer-events:none;
|
|
|
}
|
|
|
@keyframes pillSweep{
|
|
|
50% { transform: translateX(10%) skewX(-18deg); }
|
|
|
100% { transform: translateX(120%) skewX(-18deg); }
|
|
|
}
|
|
|
|
|
|
.brand-leaf{
|
|
|
width: 1.15em; height: 1.15em;
|
|
|
filter: drop-shadow(0 6px 14px rgba(16,185,129,.25))
|
|
|
drop-shadow(0 6px 14px rgba(52,211,153,.2));
|
|
|
transform: translateY(1px);
|
|
|
}
|
|
|
header h1.brand:hover .brand-leaf{
|
|
|
transform: translateY(-1px) rotate(-2deg);
|
|
|
transition: transform .18s ease;
|
|
|
}
|
|
|
@media (prefers-reduced-motion: reduce){
|
|
|
.brand-prim, .brand-ai::after { animation: none !important; }
|
|
|
header h1.brand:hover .brand-leaf{ transform: none !important; }
|
|
|
}
|
|
|
|
|
|
|
|
|
#context-container {
|
|
|
margin-top: 1rem;
|
|
|
padding: 1rem;
|
|
|
border-radius: 14px;
|
|
|
background: linear-gradient(180deg, rgba(28,72,57,.72), rgba(28,72,57,.58));
|
|
|
border: 1px solid var(--border);
|
|
|
box-shadow: inset 0 1px 0 rgba(236,253,245,.05),
|
|
|
0 10px 24px rgba(6,20,14,.38);
|
|
|
color: #eafaf3;
|
|
|
}
|
|
|
#context-container h2 {
|
|
|
font-size: 1.2rem;
|
|
|
margin-bottom: 0.75rem;
|
|
|
color: #c4f5df;
|
|
|
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
|
|
|
}
|
|
|
#context-container .field { margin-bottom: 0.85rem; }
|
|
|
#context-container label {
|
|
|
font-weight: 700;
|
|
|
margin-right: 0.5rem;
|
|
|
color: #dbfff0;
|
|
|
}
|
|
|
|
|
|
|
|
|
#city-input {
|
|
|
padding: 0.55rem 0.7rem;
|
|
|
border-radius: 10px;
|
|
|
border: 1px solid var(--border);
|
|
|
background-color: rgba(24,64,51,.85);
|
|
|
color: #eafaf3;
|
|
|
font-weight: 600;
|
|
|
font-size: 0.95rem;
|
|
|
appearance: none;
|
|
|
outline: none;
|
|
|
transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
|
|
|
}
|
|
|
#city-input option {
|
|
|
background-color: #0f221b;
|
|
|
color: #eafaf3;
|
|
|
}
|
|
|
#city-input:focus {
|
|
|
border-color: rgba(52,211,153,.85);
|
|
|
box-shadow: 0 0 0 4px rgba(52,211,153,.18);
|
|
|
background-color: rgba(26,68,54,.95);
|
|
|
}
|
|
|
|
|
|
|
|
|
#context-container .attrs {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
gap: 0.6rem 1rem;
|
|
|
}
|
|
|
#context-container .attrs label {
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
gap: 0.45rem;
|
|
|
font-weight: 600;
|
|
|
font-size: 0.92rem;
|
|
|
color: #f0fff8;
|
|
|
padding: 0.38rem 0.65rem;
|
|
|
border-radius: 9999px;
|
|
|
background: linear-gradient(180deg, rgba(30,86,68,.72), rgba(30,86,68,.58));
|
|
|
border: 1px solid var(--border);
|
|
|
transition: transform 120ms ease, border-color 160ms ease, background-color 160ms ease;
|
|
|
box-shadow: 0 8px 20px rgba(0,0,0,.18);
|
|
|
}
|
|
|
#context-container .attrs input[type="checkbox"] {
|
|
|
accent-color: var(--accent); width: 16px; height: 16px;
|
|
|
}
|
|
|
#context-container .attrs label:hover {
|
|
|
transform: translateY(-1px);
|
|
|
border-color: rgba(52,211,153,.55);
|
|
|
background: linear-gradient(180deg, rgba(34,94,74,.78), rgba(34,94,74,.62));
|
|
|
}
|
|
|
|