working with login and building inventory

This commit is contained in:
2026-11-12 11:40:31 -07:00
parent d11e5e70c7
commit 0a93925e11
45 changed files with 2389 additions and 77 deletions

View File

@@ -84,6 +84,7 @@ body {
cursor: pointer;
transition: color 0.15s, border-color 0.15s;
}
.tab-mine { margin-left: auto; }
.tab:hover { color: var(--text); }
.tab.active {
color: var(--accent);
@@ -269,8 +270,225 @@ main {
.spec-table th { color: var(--text-dim); font-weight: 600; width: 40%; }
.spec-table td { font-family: ui-monospace, monospace; }
/* Account controls */
.header-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.6rem;
}
.account-bar {
display: flex;
align-items: center;
gap: 0.6rem;
font-size: 0.85rem;
}
.account-bar .who {
color: var(--accent);
font-weight: 700;
letter-spacing: 0.04em;
}
.btn-primary {
background: var(--accent);
color: #04121c;
border: none;
border-radius: 6px;
padding: 0.55rem 1rem;
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-link {
background: none;
border: none;
color: var(--text-dim);
cursor: pointer;
font-size: 0.85rem;
text-decoration: underline;
padding: 0;
}
.btn-link:hover { color: var(--accent); }
/* Card add button */
.card-add {
margin-left: auto;
width: 1.6rem;
height: 1.6rem;
line-height: 1;
font-size: 1rem;
font-weight: 700;
background: var(--bg-panel);
color: var(--accent);
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
}
.card-add:hover { border-color: var(--accent); }
/* Personal inventory view */
.inventory-controls {
max-width: 1200px;
margin: 1rem auto 0;
padding: 0 1.25rem;
display: flex;
gap: 0.6rem;
flex-wrap: wrap;
}
.inventory-controls input,
.inventory-controls select {
background: var(--bg-panel);
border: 1px solid var(--border);
color: var(--text);
border-radius: 6px;
padding: 0.55rem 0.75rem;
font-size: 0.9rem;
}
#inv-search { flex: 2 1 280px; }
#inv-category { flex: 1 1 180px; }
.inventory-controls input:focus,
.inventory-controls select:focus { outline: none; border-color: var(--accent); }
#inventory-view {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 1.25rem 0;
}
.inv-summary {
color: var(--text-dim);
font-size: 0.85rem;
margin: 0.75rem 0 1rem;
}
.inv-table-wrap {
overflow-x: auto;
border: 1px solid var(--border);
border-radius: 10px;
}
.inv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.inv-table th,
.inv-table td {
text-align: left;
padding: 0.65rem 0.8rem;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
.inv-table th {
color: var(--text-dim);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.inv-table tr:last-child td { border-bottom: none; }
.inv-item-name { font-weight: 600; }
.inv-item-sub {
color: var(--text-dim);
font-size: 0.75rem;
font-family: ui-monospace, monospace;
}
.inv-qty {
width: 5rem;
background: var(--bg-panel);
border: 1px solid var(--border);
color: var(--text);
border-radius: 6px;
padding: 0.35rem 0.5rem;
}
.inv-notes {
width: 100%;
min-width: 12rem;
background: var(--bg-panel);
border: 1px solid var(--border);
color: var(--text);
border-radius: 6px;
padding: 0.35rem 0.5rem;
}
.inv-qty:focus, .inv-notes:focus { outline: none; border-color: var(--accent); }
.inv-remove {
background: none;
border: 1px solid var(--border);
color: var(--danger);
border-radius: 6px;
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
cursor: pointer;
}
.inv-remove:hover { border-color: var(--danger); }
.unavailable-note { color: var(--accent-warm); font-size: 0.75rem; }
/* Auth modal */
.modal-narrow { max-width: 400px; }
.auth-form {
display: flex;
flex-direction: column;
gap: 0.8rem;
margin-top: 1rem;
}
.auth-form label {
display: flex;
flex-direction: column;
gap: 0.3rem;
font-size: 0.8rem;
color: var(--text-dim);
}
.auth-form input {
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text);
border-radius: 6px;
padding: 0.55rem 0.75rem;
font-size: 0.95rem;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-error {
color: #fca5a5;
font-size: 0.85rem;
min-height: 1.1rem;
margin: 0;
}
.auth-switch { margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-dim); }
/* Detail modal add row */
.add-row {
display: flex;
align-items: center;
gap: 0.6rem;
margin-top: 1.2rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
font-size: 0.85rem;
color: var(--text-dim);
}
.add-row input {
width: 5rem;
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text);
border-radius: 6px;
padding: 0.5rem 0.6rem;
}
.add-row input:focus { outline: none; border-color: var(--accent); }
/* Toast */
.toast {
position: fixed;
bottom: 1.2rem;
left: 50%;
transform: translateX(-50%);
background: var(--bg-panel);
border: 1px solid var(--accent);
color: var(--text);
padding: 0.6rem 1.1rem;
border-radius: 8px;
font-size: 0.9rem;
z-index: 100;
max-width: calc(100vw - 2rem);
}
.toast.error { border-color: var(--danger); color: #fca5a5; }
@media (max-width: 640px) {
.header-inner { flex-direction: column; align-items: flex-start; }
.header-status { text-align: left; }
.header-right { align-items: flex-start; }
.controls input, .controls select { flex: 1 1 100%; }
.inventory-controls input, .inventory-controls select { flex: 1 1 100%; }
}