Files
FireworksApp/frontend/src/styles/components/manual-report-structure.css
T

219 lines
12 KiB
CSS

.manual-report__header {
max-width: 42rem;
}
.manual-report { --manual-report-section-gap: 1rem; }
.manual-report__primary {
display: grid;
gap: var(--manual-report-section-gap);
max-width: 36rem;
}
.manual-report__quantity {
padding: 1rem;
border: 1px solid #584891;
border-radius: 1rem;
background: #151932;
}
.manual-report .manual-report__quantity #manual-occurrences {
width: 100%;
min-width: 0;
min-height: 3.75rem;
margin: 0;
padding: 0;
border: 0;
color: #f5f0ff;
font-size: clamp(2.25rem, 8vw, 3.5rem);
font-weight: 850;
text-align: center;
background: transparent;
appearance: textfield;
-moz-appearance: textfield;
}
.manual-report__quantity #manual-occurrences::-webkit-inner-spin-button,
.manual-report__quantity #manual-occurrences::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.manual-report__stepper { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: .5rem; }
.manual-report__stepper button { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; min-height: 0; padding: 0; border: 1px solid #6d54ac; border-radius: 50%; color: #f5f0ff; font: inherit; font-size: 2rem; line-height: 1; background: #302553; cursor: pointer; }
.manual-report__stepper button:disabled { opacity: .4; cursor: default; }
.manual-report .manual-report__primary .manual-direction-panel {
width: 100%;
margin: 0;
border-radius: 1rem;
background: #1a1739;
}
.manual-direction-panel[data-state="measuring"] { border-color: #a27cff; }
.manual-direction-panel[data-state="captured"] { border-color: #68dba1; }
.manual-direction-panel[data-state="unavailable"] { border-color: #d38b7a; }
.manual-direction-panel__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.manual-direction-panel__summary { margin: .35rem 0 .8rem; color: #f5f0ff; font-weight: 700; }
.manual-report .manual-direction-panel__status--accuracy { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .75rem 0; padding: .55rem .75rem; border: 1px solid #5d4d92; border-radius: .7rem; color: #d9cfee; background: #191630; font-size: .85rem; }
.manual-direction-panel__status--accuracy strong { color: #f5edff; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.manual-direction-panel__open, .manual-direction-panel__close { min-height: 2.75rem; border: 1px solid #8d77d2; border-radius: .7rem; color: #e8dcff; font: inherit; font-weight: 750; background: #302553; cursor: pointer; }
.manual-direction-panel__open { padding: .5rem .85rem; }
.manual-direction-panel__close { min-width: 2.75rem; font-size: 1.4rem; }
.manual-report #manual-submit {
width: 100%;
max-width: 36rem;
min-height: 4.5rem;
margin-top: var(--manual-report-section-gap);
}
.manual-report__submit:disabled { cursor: wait; opacity: .72; }
.manual-submission { display: grid; justify-items: center; gap: .5rem; max-width: 36rem; margin-top: 1rem; padding: 1.3rem; border: 1px solid #4caa82; border-radius: 1rem; color: #eafff2; text-align: center; background: #10352e; }
.manual-submission__icon { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: 2px solid #6ce4a8; border-radius: 50%; color: #eafff2; font-size: 2rem; background: #226c51; }
.manual-submission strong { font-size: 1.35rem; }
.manual-submission p { margin: 0; line-height: 1.45; }
.manual-submission__summary { margin-top: .35rem !important; color: #b2e8cf; font-size: .9rem; }
.manual-submission--error { border-color: #d37c6a; color: #fff0e8; background: #3a1c2b; }
.manual-submission--error .manual-submission__icon { border-color: #ffac8c; background: #9b493a; }
.manual-report__submission:empty { display: none; }
.manual-report button:focus-visible, .manual-report input:focus-visible { outline: 3px solid #c9b4ff; outline-offset: 3px; }
.manual-report__supporting {
max-width: 36rem;
margin-top: var(--manual-report-section-gap);
padding-top: 1.25rem;
border-top: 1px solid #584891;
}
.manual-report__supporting h3 {
margin: 0;
color: #d8cffd;
font-size: 1rem;
}
.manual-report__supporting .burst-listener {
width: 100%;
}
:root[data-theme="light"] .manual-report__quantity {
border-color: #d9b4d8;
background: #fff8fb;
}
:root[data-theme="light"] .manual-report__quantity #manual-occurrences { border: 0 !important; color: #321d42 !important; background: transparent !important; }
:root[data-theme="light"] .manual-report__stepper button,
:root[data-theme="light"] .manual-direction-panel__open,
:root[data-theme="light"] .manual-direction-panel__close { color: #321d42; border-color: #b68bb5; background: #ead2eb; }
:root[data-theme="light"] .manual-direction-panel__summary { color: #321d42; }
:root[data-theme="light"] .manual-report .manual-direction-panel__status--accuracy { border-color: #cfaad1; color: #694b68; background: #fff8fb; }
:root[data-theme="light"] .manual-direction-panel__status--accuracy strong { color: #321d42; }
:root[data-theme="light"] .manual-submission { border-color: #54a67b; color: #164d34; background: #e8fff2; }
:root[data-theme="light"] .manual-submission__icon { color: #fff; }
:root[data-theme="light"] .manual-submission__summary { color: #2b6b48; }
:root[data-theme="light"] .manual-submission--error { border-color: #ca7d65; color: #743520; background: #fff0e8; }
:root[data-theme="light"] .manual-report__supporting {
border-color: #d9b4d8;
}
:root[data-theme="light"] .manual-report__supporting h3 {
color: #492846;
}
@media (max-width: 42rem) {
.home-grid { grid-template-columns: minmax(0, 1fr); }
body:not(.dashboard-page) { padding: max(1rem, env(safe-area-inset-top, 0px)) max(.5rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(.5rem, env(safe-area-inset-left, 0px)); }
.home-grid .manual-report, .dashboard-report, .dashboard-report .manual-report { overflow: visible; }
.manual-report { padding: 1.25rem; }
.dashboard-report .manual-report { padding: 0; }
.manual-report__header { padding-right: 2.5rem; }
.manual-report form { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
.manual-report #manual-submit {
position: sticky;
bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
z-index: 10;
box-shadow: 0 .7rem 1.6rem #070a18b3;
}
body:has(#manual-occurrences:focus) .manual-report #manual-submit { position: static; }
.dashboard-intro { margin-bottom: 1rem; }
.dashboard-intro h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
.dashboard-intro p:last-child { margin-top: .75rem; font-size: .95rem; line-height: 1.4; }
.dashboard-section { margin-top: 1rem; }
.dashboard-shell { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
.manual-report__stepper { grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; }
}
@media (max-width: 23.5rem) {
.manual-report { padding: 1rem; }
.manual-report__quantity { padding: .75rem; }
.manual-report__stepper { grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: .25rem; }
.manual-report__stepper button { width: 3rem; height: 3rem; }
}
.manual-report__heading-row { display: flex; align-items: center; gap: .7rem; }
.manual-report__fire { flex: none; font-size: clamp(1.8rem, 5vw, 2.5rem); filter: drop-shadow(0 .2rem .65rem #ff703b88); }
.manual-report__intro, .dashboard-report .manual-report__intro { margin-bottom: .85rem; }
.report-clock {
box-sizing: border-box;
width: 100%;
max-width: 36rem;
margin: 0 0 1rem;
padding: .65rem .95rem .7rem;
border: 1px solid #69539d;
border-radius: .85rem;
background: linear-gradient(115deg, #17162d, #10182c);
box-shadow: inset 0 1px #ffffff0a;
}
.report-clock__label { color: #cbbce5; font-size: .66rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.report-clock__display { display: flex; align-items: end; justify-content: space-between; gap: .75rem; }
.report-clock__time {
display: inline-flex;
align-items: center;
color: #ffbf72;
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
font-size: clamp(2rem, 9vw, 2.45rem);
font-weight: 700;
line-height: 1.1;
letter-spacing: 0;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 .7rem #ff963b55;
white-space: nowrap;
}
.report-clock__time span { display: inline-block; }
.report-clock__time #report-clock-hours, .report-clock__time #report-clock-minutes { width: 2ch; }
.report-clock__colon { width: 1ch; flex: none; margin-inline: -.08em; line-height: 1; text-align: center; transform: translateY(-.06em); animation: report-clock-blink 2s steps(1, end) infinite; }
.report-clock__now { display: inline-flex; align-items: center; gap: .4rem; flex: none; padding: .2rem .45rem; border: 1px solid #93634d; border-radius: 999px; color: #ffd2a2; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.report-clock__dot { width: .4rem; height: .4rem; border-radius: 50%; background: #ffab5d; }
@keyframes report-clock-blink { 50% { opacity: 0; } }
.manual-direction-panel__open { width: 100%; text-align: left; }
.manual-direction-panel--open .manual-compass { width: 100%; margin: .5rem auto 1rem; }
.manual-direction-panel--open .manual-compass__dial { width: min(100%, 12rem); border-color: #8b67d4; background: radial-gradient(circle, #302054 0 20%, #17132d 70%); box-shadow: 0 0 0 .35rem #6640a228, 0 0 2rem #ac6aff35; }
.manual-direction-panel--open .manual-compass__pointer { border-bottom-color: #ff925f; }
.manual-direction-panel--open .manual-compass__heading { font-size: 1.1rem; }
.manual-report__stepper button, .manual-direction-panel__open, .manual-direction-panel__close, .manual-report__submit { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.manual-report__stepper button:not(:disabled):active, .manual-direction-panel__open:active, .manual-report__submit:not(:disabled):active { transform: scale(.97); }
.manual-report__submit:not(:disabled):hover { filter: brightness(1.05); }
.manual-submission--success .manual-submission__icon { animation: manual-confirm .35s ease-out both; }
@keyframes manual-confirm { from { transform: scale(.75); opacity: .3; } to { transform: scale(1); opacity: 1; } }
:root[data-theme="dark"] .home-grid .manual-report,
:root[data-theme="dark"] .dashboard-report { border-color: #7256ab; background: radial-gradient(circle at 88% 5%, #58254a55, transparent 13rem), linear-gradient(155deg, #151326, #0d1022 72%); box-shadow: 0 1rem 3rem #02041399; }
:root[data-theme="dark"] .manual-report__title { color: #fff8f3; }
:root[data-theme="dark"] .manual-report__intro { color: #d6cce4; }
:root[data-theme="dark"] .manual-report__quantity { border-color: #514896; background: linear-gradient(145deg, #19183a, #121834); box-shadow: inset 0 0 0 1px #ffffff08; }
:root[data-theme="dark"] .home-grid .manual-direction-panel,
:root[data-theme="dark"] .dashboard-report .manual-direction-panel { border-color: #59499b; background: linear-gradient(145deg, #211945, #151835); }
:root[data-theme="dark"] .manual-report__supporting { border-color: #493d7d; background: linear-gradient(145deg, #15142f, #10162d); }
:root[data-theme="dark"] .manual-report__stepper button { box-shadow: 0 .25rem .7rem #07041655; }
:root[data-theme="dark"] .manual-report__submit { background: linear-gradient(110deg, #ffc276, #ff7654); box-shadow: 0 .55rem 1.35rem #e2633a4d; }
:root[data-theme="dark"] .manual-direction-panel[data-state="measuring"] { border-color: #a27cff; }
:root[data-theme="dark"] .manual-direction-panel[data-state="captured"] { border-color: #68dba1; }
:root[data-theme="dark"] .manual-direction-panel[data-state="unavailable"] { border-color: #d38b7a; }
:root[data-theme="light"] .report-clock { border-color: #8b6bab; background: linear-gradient(115deg, #221b37, #182039); }
:root[data-theme="light"] .manual-direction-panel--open .manual-compass__dial { background: radial-gradient(circle, #f8ebf8 0 25%, #e8d7e9 75%); }
@media (prefers-reduced-motion: reduce) {
.manual-report__stepper button, .manual-direction-panel__open, .manual-direction-panel__close, .manual-report__submit { transition: none; }
.manual-submission--success .manual-submission__icon { animation: none; }
.report-clock__colon { animation: none; opacity: 1; }
}