629 lines
14 KiB
CSS
629 lines
14 KiB
CSS
:root {
|
|
--primary: #e2b07e; /* Ciepłe złoto/miedź */
|
|
--bg: #0f0f11;
|
|
--surface: #1c1c1f;
|
|
--surface-light: #2c2c2e;
|
|
--text-main: #ffffff;
|
|
--text-muted: #9a9a9e;
|
|
--success: #4ade80;
|
|
--accent: #f59e0b;
|
|
--radius: 20px;
|
|
}
|
|
|
|
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
background-color: var(--bg);
|
|
color: var(--text-main);
|
|
line-height: 1.6;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* --- LOADER SCREEN --- */
|
|
#loadingScreen {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 100;
|
|
background: var(--bg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
text-align: center;
|
|
transition: opacity 0.5s ease, visibility 0.5s;
|
|
}
|
|
|
|
.loader-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
border: 3px solid var(--surface-light);
|
|
border-top: 3px solid var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.loader-text h2 {
|
|
font-family: 'Playfair Display', serif;
|
|
margin: 0 0 8px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.loader-msg { color: var(--text-muted); font-size: 14px; min-height: 20px; }
|
|
|
|
/* --- MAIN LAYOUT --- */
|
|
.container {
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
padding: 24px 16px 100px;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.logo-text {
|
|
font-family: 'Playfair Display', serif;
|
|
font-size: 28px;
|
|
margin: 0;
|
|
background: linear-gradient(to right, #fff, var(--primary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.table-badge {
|
|
display: inline-block;
|
|
background: var(--surface-light);
|
|
padding: 6px 16px;
|
|
border-radius: 99px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-top: 8px;
|
|
color: var(--primary);
|
|
border: 1px solid rgba(226, 176, 126, 0.2);
|
|
}
|
|
|
|
/* --- STATUS CARD --- */
|
|
.status-card {
|
|
background: var(--surface);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
margin-bottom: 24px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.status-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.status-title {
|
|
font-size: 14px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: var(--text-muted);
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.status-value {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.progress-container {
|
|
height: 8px;
|
|
background: var(--surface-light);
|
|
border-radius: 10px;
|
|
margin: 15px 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: linear-gradient(90deg, var(--primary), var(--accent));
|
|
box-shadow: 0 0 15px rgba(226, 176, 126, 0.4);
|
|
transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* --- ITEMS LIST --- */
|
|
.items-container h3 {
|
|
font-size: 18px;
|
|
margin: 0 0 16px 8px;
|
|
}
|
|
|
|
.item-card {
|
|
background: var(--surface);
|
|
margin-bottom: 12px;
|
|
padding: 16px;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
transition: transform 0.2s;
|
|
border-left: 4px solid var(--surface-light);
|
|
}
|
|
|
|
.item-card.ready { border-left-color: var(--success); }
|
|
.item-card.archived { opacity: 0.82; }
|
|
|
|
.history-section { margin-top: 26px; }
|
|
.history-note {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin: 0 0 12px 8px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.item-info { display: flex; flex-direction: column; }
|
|
.item-name { font-weight: 600; font-size: 16px; }
|
|
.item-meta { font-size: 12px; color: var(--text-muted); }
|
|
|
|
.item-qty {
|
|
background: var(--surface-light);
|
|
padding: 6px 12px;
|
|
border-radius: 10px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* --- EMPTY STATE --- */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
|
|
|
|
/* --- ANIMATIONS --- */
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.hidden { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
|
|
|
|
.meta-footer {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
margin-top: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- ACTION CARD --- */
|
|
.action-card {
|
|
background: var(--surface);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.action-card h3 {
|
|
font-size: 15px;
|
|
margin: 0 0 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn {
|
|
font-family: inherit;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 14px 20px;
|
|
border-radius: 12px;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.action-btn {
|
|
flex-direction: column;
|
|
font-size: 13px;
|
|
line-height: 1.3;
|
|
padding: 14px 8px;
|
|
gap: 6px;
|
|
flex: 1;
|
|
}
|
|
|
|
.action-btn span {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary), var(--accent));
|
|
color: var(--bg);
|
|
box-shadow: 0 4px 15px rgba(226, 176, 126, 0.3);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--surface-light);
|
|
color: var(--primary);
|
|
border: 1px solid rgba(226, 176, 126, 0.2);
|
|
}
|
|
|
|
.btn-secondary:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* --- MODAL DIALOG --- */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 15, 17, 0.85);
|
|
backdrop-filter: blur(8px);
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.3s ease, visibility 0.3s;
|
|
}
|
|
|
|
.modal-overlay.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--surface);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
border-radius: 24px;
|
|
padding: 24px;
|
|
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
transform: translateY(20px) scale(0.95);
|
|
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
}
|
|
|
|
.modal-overlay.active .modal-content {
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
color: var(--primary);
|
|
font-family: 'Playfair Display', serif;
|
|
}
|
|
|
|
.close-btn {
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border: none;
|
|
font-size: 28px;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.step {
|
|
display: none;
|
|
animation: fadeInStep 0.4s ease forwards;
|
|
}
|
|
|
|
.step.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeInStep {
|
|
from { opacity: 0; transform: translateX(10px); }
|
|
to { opacity: 1; transform: translateX(0); }
|
|
}
|
|
|
|
.option-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.option-card {
|
|
background: var(--surface-light);
|
|
border: 1px solid rgba(226, 176, 126, 0.1);
|
|
border-radius: 16px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.option-card:hover {
|
|
background: rgba(226, 176, 126, 0.15);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.option-icon {
|
|
font-size: 32px;
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
}
|
|
|
|
.option-label {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.input-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.input-label {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.input-field {
|
|
width: 100%;
|
|
background: var(--bg);
|
|
border: 1px solid var(--surface-light);
|
|
color: var(--text-main);
|
|
padding: 14px;
|
|
border-radius: 12px;
|
|
font-family: inherit;
|
|
font-size: 16px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input-field:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 2px rgba(226, 176, 126, 0.2);
|
|
}
|
|
|
|
.company-details {
|
|
background: var(--bg);
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
margin-bottom: 24px;
|
|
border: 1px solid var(--surface-light);
|
|
}
|
|
|
|
.company-input {
|
|
width: 100%;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
color: var(--text-main);
|
|
font-family: inherit;
|
|
font-size: 15px;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.company-input:not([readonly]) {
|
|
border-color: var(--surface-light);
|
|
background: var(--surface-light);
|
|
}
|
|
|
|
.company-input:not([readonly]):focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.company-input.muted {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* --- TOAST --- */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(100px);
|
|
background: linear-gradient(135deg, var(--success), #22c55e);
|
|
color: var(--bg);
|
|
padding: 14px 28px;
|
|
border-radius: 30px;
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
|
|
opacity: 0;
|
|
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
z-index: 300;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.toast.active {
|
|
transform: translateX(-50%) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
/* --- KITCHEN ANIMATION --- */
|
|
.kitchen-anim {
|
|
position: relative;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.pan-emoji {
|
|
font-size: 30px;
|
|
z-index: 2;
|
|
animation: panToss 1.5s infinite ease-in-out;
|
|
transform-origin: 70% 70%;
|
|
}
|
|
.fire-emoji {
|
|
position: absolute;
|
|
bottom: -5px;
|
|
left: 5px;
|
|
font-size: 24px;
|
|
z-index: 1;
|
|
animation: fireFlicker 0.4s infinite alternate;
|
|
}
|
|
@keyframes panToss {
|
|
0%, 100% { transform: rotate(0deg) translateY(0); }
|
|
50% { transform: rotate(-20deg) translateY(-8px); }
|
|
}
|
|
@keyframes fireFlicker {
|
|
0% { transform: scale(1) rotate(-3deg); opacity: 0.8; filter: drop-shadow(0 0 5px var(--accent)); }
|
|
100% { transform: scale(1.1) rotate(3deg); opacity: 1; filter: drop-shadow(0 0 10px var(--accent)); }
|
|
}
|
|
/* Wariant 2: Uciekająca Kura */
|
|
.anim-run {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 40px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.anim-run .chicken {
|
|
position: absolute;
|
|
font-size: 24px;
|
|
animation: runLeft 3s infinite linear;
|
|
}
|
|
.anim-run .chef {
|
|
position: absolute;
|
|
font-size: 28px;
|
|
animation: runLeftChef 3s infinite linear;
|
|
}
|
|
@keyframes runLeft {
|
|
0% { transform: translateX(100px); }
|
|
100% { transform: translateX(-40px); }
|
|
}
|
|
@keyframes runLeftChef {
|
|
0% { transform: translateX(140px); }
|
|
100% { transform: translateX(0px); }
|
|
}
|
|
|
|
/* Wariant 3: Kura w garnku */
|
|
.anim-pot {
|
|
position: relative;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
}
|
|
.anim-pot .pot-emoji {
|
|
font-size: 32px;
|
|
z-index: 2;
|
|
}
|
|
.anim-pot .chicken-head {
|
|
position: absolute;
|
|
font-size: 24px;
|
|
bottom: 10px;
|
|
z-index: 1;
|
|
animation: peekaboo 4s infinite ease-in-out;
|
|
}
|
|
@keyframes peekaboo {
|
|
0%, 100%, 80% { transform: translateY(15px); opacity: 0; }
|
|
30%, 50% { transform: translateY(0px); opacity: 1; }
|
|
}
|
|
|
|
/* Wariant 4: Latająca pizza */
|
|
.anim-pizza {
|
|
position: relative;
|
|
width: 50px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.anim-pizza .chef-pizza {
|
|
font-size: 28px;
|
|
z-index: 1;
|
|
}
|
|
.anim-pizza .pizza-emoji {
|
|
position: absolute;
|
|
font-size: 20px;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 2;
|
|
animation: spinPizza 2s infinite ease-in-out;
|
|
}
|
|
@keyframes spinPizza {
|
|
0%, 100% { transform: translateY(0) rotate(0deg); }
|
|
50% { transform: translateY(-15px) rotate(360deg); }
|
|
}
|
|
|
|
/* Wariant 5: Nerwowa świnka */
|
|
.anim-pig {
|
|
position: relative;
|
|
width: 60px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.anim-pig .pig-emoji {
|
|
font-size: 28px;
|
|
animation: nervous 0.2s infinite;
|
|
}
|
|
.anim-pig .sweat-emoji {
|
|
position: absolute;
|
|
font-size: 16px;
|
|
top: 0;
|
|
right: 15px;
|
|
animation: sweatDrop 1s infinite;
|
|
}
|
|
.anim-pig .knife-emoji {
|
|
position: absolute;
|
|
font-size: 20px;
|
|
right: -10px;
|
|
animation: knifeStab 2s infinite ease-in-out;
|
|
}
|
|
@keyframes nervous {
|
|
0%, 100% { transform: translateX(0); }
|
|
50% { transform: translateX(2px); }
|
|
}
|
|
@keyframes sweatDrop {
|
|
0% { transform: translateY(0); opacity: 1; }
|
|
100% { transform: translateY(10px); opacity: 0; }
|
|
}
|
|
@keyframes knifeStab {
|
|
0%, 100% { transform: translateX(10px); opacity: 0; }
|
|
50% { transform: translateX(0px); opacity: 1; }
|
|
}
|