Flask API/admin backend, aiogram bot with delivery/pickup FSM flows, monobank payment integration, and a Vite/React Telegram Mini App for menu browsing and cart management.
140 lines
4.1 KiB
CSS
140 lines
4.1 KiB
CSS
:root {
|
|
--bg: #14100e;
|
|
--panel: #1d1712;
|
|
--panel-2: #241b15;
|
|
--border: #33261c;
|
|
--text: #f2e9e0;
|
|
--muted: #b8a99a;
|
|
--accent: #f97316;
|
|
--accent-dark: #c2570a;
|
|
--success: #22c55e;
|
|
--error: #ef4444;
|
|
--radius: 10px;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
|
|
font-size: 15px;
|
|
}
|
|
|
|
a { color: inherit; }
|
|
|
|
.layout { display: flex; min-height: 100vh; }
|
|
|
|
.sidebar {
|
|
width: 220px;
|
|
background: var(--panel);
|
|
border-right: 1px solid var(--border);
|
|
padding: 20px 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.brand {
|
|
font-weight: 800;
|
|
font-size: 20px;
|
|
color: var(--accent);
|
|
padding: 0 8px 20px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.nav a {
|
|
display: block;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius);
|
|
text-decoration: none;
|
|
color: var(--muted);
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav a:hover { background: var(--panel-2); color: var(--text); }
|
|
.nav a.active { background: var(--accent); color: #1b0f00; }
|
|
|
|
.content { flex: 1; padding: 28px 36px; max-width: 1100px; }
|
|
|
|
h1 { font-size: 22px; margin: 0 0 20px; }
|
|
h2 { font-size: 17px; margin: 24px 0 12px; color: var(--muted); }
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
|
|
.stat {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px 20px;
|
|
min-width: 140px;
|
|
}
|
|
.stat .num { font-size: 26px; font-weight: 700; color: var(--accent); }
|
|
.stat .label { color: var(--muted); font-size: 13px; margin-top: 4px; }
|
|
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
|
|
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
|
|
tr:hover td { background: var(--panel-2); }
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
background: var(--accent);
|
|
color: #1b0f00;
|
|
border: none;
|
|
padding: 9px 16px;
|
|
border-radius: var(--radius);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
}
|
|
.btn:hover { background: var(--accent-dark); }
|
|
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
|
|
.btn.danger { background: var(--error); color: #fff; }
|
|
.btn.small { padding: 5px 10px; font-size: 12px; }
|
|
|
|
input[type=text], input[type=number], input[type=password], input[type=file], select, textarea {
|
|
width: 100%;
|
|
padding: 9px 11px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel-2);
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
margin-bottom: 12px;
|
|
}
|
|
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
|
|
.row { display: flex; gap: 16px; }
|
|
.row > div { flex: 1; }
|
|
|
|
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
|
|
.badge.new { background: #3b82f620; color: #60a5fa; }
|
|
.badge.confirmed { background: #f9731620; color: var(--accent); }
|
|
.badge.cooking { background: #eab30820; color: #eab308; }
|
|
.badge.ready { background: #22c55e20; color: var(--success); }
|
|
.badge.completed { background: #22c55e40; color: var(--success); }
|
|
.badge.cancelled { background: #ef444420; color: var(--error); }
|
|
.badge.paid { background: #22c55e20; color: var(--success); }
|
|
.badge.unpaid { background: #ef444420; color: var(--error); }
|
|
|
|
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
|
|
.flash.success { background: #22c55e20; color: var(--success); }
|
|
.flash.error { background: #ef444420; color: var(--error); }
|
|
|
|
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
|
|
.login-box { width: 320px; }
|
|
|
|
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
|
|
|
|
.muted { color: var(--muted); }
|
|
.filters { display: flex; gap: 10px; margin-bottom: 16px; }
|
|
.filters select { width: auto; margin-bottom: 0; }
|
|
.filters a.btn { padding: 9px 14px; }
|