continuous-integration/drone/push Build is passing
Replace placeholder admin pages with the design system, add analytics/customers/categories/inventory/settings, channel pricing and order sources, plus skeleton loaders and clean motion. Co-authored-by: Cursor <cursoragent@cursor.com>
1425 lines
23 KiB
CSS
1425 lines
23 KiB
CSS
/* iLED Admin — K-design (Korean SaaS) tokens & components */
|
|
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
|
|
|
|
:root {
|
|
--bg: #f4f5f7;
|
|
--surface: #ffffff;
|
|
--surface-muted: #f9fafb;
|
|
--text: #111827;
|
|
--text-secondary: #6b7280;
|
|
--text-muted: #9ca3af;
|
|
--border: #e5e7eb;
|
|
--border-strong: #d1d5db;
|
|
--accent: #ffbc39;
|
|
--accent-hover: #f0a820;
|
|
--accent-soft: rgba(255, 188, 57, 0.14);
|
|
--accent-ink: #111827;
|
|
--focus: #ffbc39;
|
|
--success: #059669;
|
|
--success-soft: #ecfdf5;
|
|
--warning: #d97706;
|
|
--warning-soft: #fffbeb;
|
|
--danger: #dc2626;
|
|
--danger-soft: #fef2f2;
|
|
--info: #2563eb;
|
|
--info-soft: #eff6ff;
|
|
--shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 1px 3px rgba(17, 24, 39, 0.06);
|
|
--shadow-md: 0 4px 12px rgba(17, 24, 39, 0.06);
|
|
--radius: 10px;
|
|
--radius-sm: 8px;
|
|
--radius-lg: 14px;
|
|
--nav-width: 240px;
|
|
--topbar-h: 56px;
|
|
--font: "Inter", ui-sans-serif, system-ui, sans-serif;
|
|
--ease: 160ms ease;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 15px;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font);
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
line-height: 1.45;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
color: inherit;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
/* ——— Shell ——— */
|
|
.app {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
inset: 0 auto 0 0;
|
|
width: var(--nav-width);
|
|
background: var(--surface);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 40;
|
|
transition: transform var(--ease);
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
height: var(--topbar-h);
|
|
padding: 0 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.sidebar-brand .mark {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
background: var(--accent);
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 16px 12px 24px;
|
|
}
|
|
|
|
.nav-group {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.nav-group-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
padding: 4px 10px 8px;
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 10px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
transition: background var(--ease), color var(--ease);
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background: var(--surface-muted);
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-link.is-active {
|
|
background: var(--accent-soft);
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-link .ico,
|
|
.nav-link .icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
opacity: 0.72;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-link.is-active .ico,
|
|
.nav-link.is-active .icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Lucide-style stroke icons */
|
|
.ico {
|
|
width: 18px;
|
|
height: 18px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.75;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
flex-shrink: 0;
|
|
display: block;
|
|
}
|
|
|
|
.ico-sm {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.ico-md {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.sidebar-brand .mark {
|
|
color: var(--accent-ink);
|
|
}
|
|
|
|
.sidebar-brand .mark .ico {
|
|
width: 16px;
|
|
height: 16px;
|
|
opacity: 1;
|
|
}
|
|
|
|
.btn .ico {
|
|
width: 15px;
|
|
height: 15px;
|
|
}
|
|
|
|
/* Admin identity */
|
|
.admin-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 3px 10px 3px 3px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.avatar {
|
|
width: 26px;
|
|
height: 26px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
color: var(--accent-ink);
|
|
background: var(--accent);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.avatar-sm {
|
|
width: 22px;
|
|
height: 22px;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.avatar-muted {
|
|
background: #e5e7eb;
|
|
color: #4b5563;
|
|
}
|
|
|
|
.handled-by {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12.5px;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.handled-by .name {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Bulk action bar */
|
|
.bulk-bar {
|
|
display: none;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.bulk-bar.is-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.bulk-bar .count {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.activity-actor {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.sidebar-foot {
|
|
padding: 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.main {
|
|
flex: 1;
|
|
margin-left: var(--nav-width);
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
height: var(--topbar-h);
|
|
background: rgba(255, 255, 255, 0.86);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.topbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.menu-btn {
|
|
display: none;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
border-radius: var(--radius-sm);
|
|
width: 36px;
|
|
height: 36px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.topbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.locale {
|
|
display: flex;
|
|
gap: 2px;
|
|
padding: 3px;
|
|
background: var(--surface-muted);
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.locale button {
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 4px 9px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.locale button.is-active {
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.content {
|
|
padding: 28px 28px 48px;
|
|
max-width: 1280px;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.page-header h1 {
|
|
margin: 0 0 4px;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.page-purpose {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.page-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ——— Overlay (mobile) ——— */
|
|
.sidebar-backdrop {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(17, 24, 39, 0.35);
|
|
z-index: 35;
|
|
}
|
|
|
|
body.nav-open .sidebar-backdrop {
|
|
display: block;
|
|
}
|
|
|
|
/* ——— Surfaces ——— */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.card-pad {
|
|
padding: 18px 20px;
|
|
}
|
|
|
|
.card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 14px 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.card-head h2,
|
|
.card-title {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.grid-2 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.grid-3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.grid-4 {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.grid-4 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
.grid-3 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.grid-4,
|
|
.grid-3,
|
|
.grid-2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ——— KPI / alerts ——— */
|
|
.alert-strip {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.alert-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
transition: border-color var(--ease), background var(--ease);
|
|
}
|
|
|
|
.alert-pill:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.alert-pill .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.alert-pill.warn {
|
|
background: var(--warning-soft);
|
|
border-color: #fde68a;
|
|
}
|
|
|
|
.alert-pill.danger {
|
|
background: var(--danger-soft);
|
|
border-color: #fecaca;
|
|
}
|
|
|
|
.alert-pill.info {
|
|
background: var(--info-soft);
|
|
border-color: #bfdbfe;
|
|
}
|
|
|
|
.alert-pill.ok {
|
|
background: var(--success-soft);
|
|
border-color: #a7f3d0;
|
|
}
|
|
|
|
.kpi {
|
|
padding: 18px 20px;
|
|
}
|
|
|
|
.kpi-label {
|
|
font-size: 12.5px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.kpi-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.kpi-meta {
|
|
margin-top: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.kpi a:hover .kpi-value {
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
/* ——— Buttons ——— */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid transparent;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn:focus-visible,
|
|
.nav-link:focus-visible,
|
|
.input:focus-visible,
|
|
.select:focus-visible,
|
|
.textarea:focus-visible {
|
|
outline: 2px solid var(--focus);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: var(--accent-ink);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--surface);
|
|
border-color: var(--border);
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.btn-ghost:hover {
|
|
background: var(--surface-muted);
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
border-color: #fecaca;
|
|
}
|
|
|
|
.btn-sm {
|
|
height: 30px;
|
|
padding: 0 10px;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.btn-icon {
|
|
width: 36px;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ——— Forms ——— */
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.field label {
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.field-hint {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.input,
|
|
.select,
|
|
.textarea {
|
|
width: 100%;
|
|
height: 38px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface);
|
|
transition: border-color var(--ease), box-shadow var(--ease);
|
|
}
|
|
|
|
.textarea {
|
|
height: auto;
|
|
min-height: 110px;
|
|
padding: 10px 12px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.input:hover,
|
|
.select:hover,
|
|
.textarea:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.input:focus,
|
|
.select:focus,
|
|
.textarea:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
outline: none;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.toolbar .input,
|
|
.toolbar .select {
|
|
width: auto;
|
|
min-width: 160px;
|
|
}
|
|
|
|
.toolbar-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.search-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.search-wrap .input {
|
|
padding-left: 34px;
|
|
min-width: 220px;
|
|
}
|
|
|
|
.search-wrap .search-icon {
|
|
position: absolute;
|
|
left: 11px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* ——— Tabs ——— */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
padding: 4px;
|
|
background: var(--surface-muted);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
width: fit-content;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.tab {
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 7px 14px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tab.is-active {
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.tab-panel {
|
|
display: none;
|
|
}
|
|
|
|
.tab-panel.is-active {
|
|
display: block;
|
|
}
|
|
|
|
/* ——— Table ——— */
|
|
.table-wrap {
|
|
overflow: auto;
|
|
}
|
|
|
|
table.data {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13.5px;
|
|
}
|
|
|
|
table.data th {
|
|
text-align: left;
|
|
font-size: 11.5px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
table.data td {
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
table.data tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
table.data tbody tr {
|
|
transition: background var(--ease);
|
|
}
|
|
|
|
table.data tbody tr:hover {
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
table.data tbody tr.is-selected {
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.cell-muted {
|
|
color: var(--text-secondary);
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.cell-strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.thumb {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
|
|
border: 1px solid var(--border);
|
|
object-fit: cover;
|
|
}
|
|
|
|
.thumb-lg {
|
|
width: 56px;
|
|
height: 56px;
|
|
}
|
|
|
|
.row-product {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.check {
|
|
width: 16px;
|
|
height: 16px;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
/* ——— Badges ——— */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
height: 22px;
|
|
padding: 0 8px;
|
|
border-radius: 999px;
|
|
font-size: 11.5px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-neutral {
|
|
background: #f3f4f6;
|
|
color: #4b5563;
|
|
}
|
|
|
|
.badge-success {
|
|
background: var(--success-soft);
|
|
color: var(--success);
|
|
}
|
|
|
|
.badge-warning {
|
|
background: var(--warning-soft);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.badge-danger {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.badge-info {
|
|
background: var(--info-soft);
|
|
color: var(--info);
|
|
}
|
|
|
|
.badge-accent {
|
|
background: var(--accent-soft);
|
|
color: #92400e;
|
|
}
|
|
|
|
/* ——— Chart (CSS bars) ——— */
|
|
.chart {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 6px;
|
|
height: 140px;
|
|
padding: 8px 4px 0;
|
|
}
|
|
|
|
.chart-bar {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
height: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.chart-bar .bar {
|
|
width: 100%;
|
|
max-width: 28px;
|
|
border-radius: 6px 6px 2px 2px;
|
|
background: var(--accent);
|
|
opacity: 0.85;
|
|
min-height: 4px;
|
|
transition: opacity var(--ease);
|
|
}
|
|
|
|
.chart-bar:hover .bar {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chart-bar .lbl {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ——— Login ——— */
|
|
.login-page {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
background:
|
|
radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-soft), transparent),
|
|
var(--bg);
|
|
}
|
|
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 32px;
|
|
}
|
|
|
|
.login-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
font-weight: 700;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.login-sub {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
margin: 0 0 24px;
|
|
}
|
|
|
|
.stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.form-error {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
font-size: 13px;
|
|
border: 1px solid #fecaca;
|
|
}
|
|
|
|
/* ——— States ——— */
|
|
.state-box {
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.state-box strong {
|
|
display: block;
|
|
color: var(--text);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.skeleton {
|
|
background: linear-gradient(90deg, #f3f4f6 25%, #ebecef 50%, #f3f4f6 75%);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 1.2s infinite;
|
|
border-radius: 6px;
|
|
height: 14px;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
/* ——— Split / detail ——— */
|
|
.split {
|
|
display: grid;
|
|
grid-template-columns: 1.2fr 0.8fr;
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
|
|
.settings-layout {
|
|
grid-template-columns: 220px 1fr;
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.split,
|
|
.settings-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.section-block {
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.section-block:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.section-block h3 {
|
|
margin: 0 0 14px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.timeline {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.timeline li {
|
|
position: relative;
|
|
padding: 0 0 16px 18px;
|
|
border-left: 2px solid var(--border);
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.timeline li:last-child {
|
|
padding-bottom: 0;
|
|
border-left-color: transparent;
|
|
}
|
|
|
|
.timeline li::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: -5px;
|
|
top: 4px;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
border: 2px solid var(--surface);
|
|
}
|
|
|
|
.timeline .t-title {
|
|
font-weight: 600;
|
|
font-size: 13.5px;
|
|
}
|
|
|
|
.timeline .t-meta {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.progress {
|
|
height: 6px;
|
|
background: var(--surface-muted);
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress > span {
|
|
display: block;
|
|
height: 100%;
|
|
background: var(--accent);
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.stars {
|
|
color: var(--accent);
|
|
letter-spacing: 1px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.preview-pane {
|
|
background: var(--surface-muted);
|
|
border: 1px dashed var(--border-strong);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
min-height: 220px;
|
|
}
|
|
|
|
.tree-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.tree-item:hover {
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.tree-item.is-active {
|
|
background: var(--accent-soft);
|
|
border-color: #fde68a;
|
|
}
|
|
|
|
.tree-children {
|
|
margin-left: 22px;
|
|
border-left: 1px solid var(--border);
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.settings-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.settings-nav a {
|
|
padding: 9px 12px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.settings-nav a.is-active,
|
|
.settings-nav a:hover {
|
|
background: var(--surface-muted);
|
|
color: var(--text);
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.pagination-btns {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-flex;
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
background: var(--surface-muted);
|
|
border: 1px solid var(--border);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.gap-8 {
|
|
gap: 8px;
|
|
}
|
|
|
|
.gap-12 {
|
|
gap: 12px;
|
|
}
|
|
|
|
.items-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.mt-16 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.mt-20 {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.mb-16 {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.w-full {
|
|
width: 100%;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Gallery index */
|
|
.gallery {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 48px 24px 80px;
|
|
}
|
|
|
|
.gallery h1 {
|
|
margin: 0 0 8px;
|
|
font-size: 28px;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.gallery-lead {
|
|
color: var(--text-secondary);
|
|
margin: 0 0 32px;
|
|
}
|
|
|
|
.gallery-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.gallery-card {
|
|
display: block;
|
|
padding: 18px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
transition: border-color var(--ease), box-shadow var(--ease);
|
|
}
|
|
|
|
.gallery-card:hover {
|
|
border-color: var(--accent);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.gallery-card .num {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.gallery-card h2 {
|
|
margin: 6px 0 4px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.gallery-card p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.gallery-card .new {
|
|
margin-left: 6px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: #92400e;
|
|
background: var(--accent-soft);
|
|
padding: 2px 6px;
|
|
border-radius: 999px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Mobile */
|
|
@media (max-width: 900px) {
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
body.nav-open .sidebar {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.main {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.menu-btn {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.content {
|
|
padding: 20px 16px 40px;
|
|
}
|
|
|
|
.topbar {
|
|
padding: 0 14px;
|
|
}
|
|
}
|
|
|
|
/* ——— Premium motion ——— */
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.reveal {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
animation: reveal-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
}
|
|
|
|
.reveal-delay-1 { animation-delay: 0.06s; }
|
|
.reveal-delay-2 { animation-delay: 0.12s; }
|
|
.reveal-delay-3 { animation-delay: 0.18s; }
|
|
.reveal-delay-4 { animation-delay: 0.24s; }
|
|
.reveal-delay-5 { animation-delay: 0.3s; }
|
|
|
|
@keyframes reveal-up {
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.card {
|
|
transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.kpi {
|
|
transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--ease);
|
|
}
|
|
|
|
a.kpi:hover,
|
|
.kpi.interactive:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.btn {
|
|
transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), transform 140ms ease;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.nav-link {
|
|
transition: background 180ms ease, color 180ms ease, padding-left 180ms ease;
|
|
}
|
|
|
|
.nav-link.is-active {
|
|
padding-left: 14px;
|
|
}
|
|
|
|
.bulk-bar {
|
|
animation: bulk-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
@keyframes bulk-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-6px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.sidebar {
|
|
transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.sidebar-backdrop {
|
|
animation: fade-in 0.2s ease;
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
table.data tbody tr {
|
|
transition: background 160ms ease;
|
|
}
|
|
|
|
.alert-pill {
|
|
transition: transform 160ms ease, border-color var(--ease), background var(--ease);
|
|
}
|
|
|
|
.alert-pill:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
}
|
|
|
|
.chart-canvas-wrap {
|
|
position: relative;
|
|
height: 200px;
|
|
width: 100%;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.reveal {
|
|
opacity: 1;
|
|
transform: none;
|
|
animation: none;
|
|
}
|
|
}
|