SmartestHome/pantry-vision/frontend/style.css

193 lines
2.9 KiB
CSS

/* pantry-vision frontend styling (docs/project-plan.md Phase 17). Touch targets are
* deliberately large — this is a kitchen-counter finger interface. */
* {
box-sizing: border-box;
}
html, body {
margin: 0;
height: 100%;
background: #101014;
color: #e8e8ec;
font-family: sans-serif;
overflow: hidden;
}
#tabs {
display: flex;
height: 84px;
background: rgba(16, 16, 20, 0.96);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tab {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
background: transparent;
border: none;
color: #9a9aa6;
font-size: 26px;
}
.tab span {
font-size: 13px;
font-weight: 500;
}
.tab.active {
color: #e8e8ec;
background: rgba(110, 168, 254, 0.16);
}
main {
height: calc(100% - 84px);
overflow-y: auto;
}
.panel {
display: none;
padding: 16px;
}
.panel.active {
display: block;
}
/* --- Scan ------------------------------------------------------------------- */
#scan-camera, #scan-result {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
#camera-preview, #captured-frame {
width: 100%;
max-width: 640px;
border-radius: 12px;
background: #000;
}
.big-btn {
min-height: 64px;
min-width: 200px;
font-size: 18px;
font-weight: 600;
border-radius: 12px;
border: none;
color: #101014;
background: #6ea8fe;
}
.big-btn.secondary {
background: rgba(255, 255, 255, 0.14);
color: #e8e8ec;
}
.big-btn.primary {
background: #6ea8fe;
}
#confirm-form {
width: 100%;
max-width: 640px;
display: flex;
flex-direction: column;
gap: 12px;
}
#confirm-form label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 14px;
color: #9a9aa6;
}
#confirm-form input, #confirm-form select {
min-height: 48px;
font-size: 16px;
padding: 8px 12px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.16);
background: #1a1a20;
color: #e8e8ec;
}
.form-actions {
display: flex;
gap: 12px;
justify-content: center;
}
.hint {
color: #9a9aa6;
font-size: 14px;
}
.error {
color: #ff8080;
font-size: 14px;
}
/* --- Cards (inventory + recipes) --------------------------------------------- */
.card-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.card {
display: flex;
align-items: center;
gap: 12px;
min-height: 56px;
padding: 8px 16px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.06);
}
.card-name {
flex: 1;
font-size: 16px;
font-weight: 500;
}
.card-amount {
color: #9a9aa6;
font-size: 14px;
}
.card-due {
font-size: 14px;
color: #9a9aa6;
min-width: 110px;
text-align: right;
}
.urgent-week {
background: rgba(255, 200, 80, 0.10);
}
.urgent-week .card-due {
color: #ffc850;
}
.urgent-soon {
background: rgba(255, 140, 80, 0.14);
}
.urgent-soon .card-due {
color: #ff8c50;
}
.urgent-expired {
background: rgba(255, 90, 90, 0.16);
}
.urgent-expired .card-due {
color: #ff5a5a;
}