initial commit

This commit is contained in:
2026-07-21 09:47:16 +07:00
commit 3973d98bc4
289 changed files with 41430 additions and 0 deletions
+144
View File
@@ -0,0 +1,144 @@
:root { --primary: #6366f1; --primary-dark: #4f46e5; --primary-light: #818cf8; --primary-lighter: #a5b4fc; --primary-lightest: #e0e7ff; --primary-bg: #eef2ff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Poppins", sans-serif; background: #f1f5f9; overflow-x: hidden; }
#sidebar-wrap { position: fixed; top: 12px; left: 12px; bottom: 12px; height: auto; z-index: 50; width: 78px; transition: width .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; overflow: hidden; }
#sidebar-wrap.open { width: 270px; }
#sidebar-header { flex-shrink: 0; background: #f1f5f9; }
#sidebar-footer { flex-shrink: 0; background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%); border-radius: 0 0 16px 16px; }
#sidebar-nav-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%); }
#sidebar-wrap.open #sidebar-nav-wrap { border-radius: 16px 16px 0 0; }
#sidebar-nav { height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
#sidebar-wrap.open #sidebar-nav .mi { margin-right: 20px; }
#sidebar-nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
#sb-track { position: absolute; top: 0; right: 0; height: 100%; width: 16px; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .3s; }
#sidebar-nav-wrap:hover #sb-track { opacity: 1; }
#sb-track.show { opacity: 1; }
#sb-thumb { position: absolute; right: 4px; width: 7px; background: rgba(255,255,255,.25); border-radius: 999px; cursor: pointer !important; pointer-events: auto; transition: background .2s; min-height: 24px; }
#sb-thumb:hover { background: rgba(255,255,255,.4); }
#main { margin-left: 102px; transition: margin-left .35s cubic-bezier(.4,0,.2,1); min-height: 100vh; }
#main.shift { margin-left: 294px; }
@media (max-width: 768px) { #sidebar-wrap { border-radius: 16px; overflow: hidden; transform: translateX(-100%); width: 260px !important; } #sidebar-wrap.open { transform: translateX(0); } #main { margin-left: 0 !important; } #main.shift { margin-left: 0 !important; } }
.section-label { padding: 16px 20px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.5); white-space: nowrap; transition: opacity .2s ease; }
.mi { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 16px; margin: 1px 10px; border-radius: 8px; color: rgba(255,255,255,.85); cursor: pointer; transition: all .2s ease; white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 450; }
.mi::before { content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 3px; height: 0; border-radius: 0 3px 3px 0; background: #94a3b8; transition: height .25s ease; }
.mi:hover { background: rgba(255,255,255,.12); color: #fff; }
.mi:hover::before { height: 18px; }
.mi.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }
.mi.active::before { height: 22px; background: rgba(255,255,255,.5); }
.mi.active .ico svg { stroke: #fff; }
.mi .ico { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mi .ico svg { width: 18px; height: 18px; stroke-width: 1.8; }
.mi .lbl { font-size: 14px; }
#sidebar-wrap:not(.open) .mi .lbl { display: none; }
#sidebar-wrap:not(.open) .mi { justify-content: center; padding: 11px 0; margin: 1px 12px; color: rgba(255,255,255,.7); }
#sidebar-wrap:not(.open) .mi .ico { width: 22px; height: 22px; }
#sidebar-wrap:not(.open) .mi .ico svg { width: 20px; height: 20px; }
#sidebar-wrap:not(.open) .mi::before { display: none; }
#sidebar-wrap:not(.open) .subs { display: none; }
#sidebar-wrap:not(.open) .arr { display: none; }
.subs { overflow: hidden; transition: max-height .3s ease; }
.subs.open { max-height: 300px; }
.subs.closed { max-height: 0; }
.subs .mi { padding-left: 42px; font-size: 13px; color: rgba(255,255,255,.7); }
.subs .mi::before { display: none; }
.subs .mi .ico { width: 4px; height: 4px; min-width: 4px; }
.subs .mi .ico svg { width: 4px; height: 4px; }
.subs .mi:hover { background: rgba(255,255,255,.12); color: #fff; }
.subs .mi.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }
.subs .mi.active .ico svg { stroke: #fff; }
.arr { margin-left: auto; transition: transform .3s ease, opacity .2s; opacity: .5; }
.arr.rot { transform: rotate(180deg); }
.mi:hover .arr { opacity: .6; }
.mi.active .arr { opacity: .6; }
.dt { transition: opacity .2s ease; }
#sidebar-wrap.open .dt { opacity: 1; transition-delay: .15s; }
#sidebar-wrap:not(.open) .dt { opacity: 0; transition-delay: 0s; pointer-events: none; }
.lt { transition: opacity .2s ease; }
#sidebar-wrap.open .lt { opacity: 1; transition-delay: .12s; }
#sidebar-wrap:not(.open) .lt { opacity: 0; transition-delay: 0s; pointer-events: none; }
.chart-container { position: relative; width: 100%; }
.progress-bar { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-bar .fill { height: 100%; border-radius: 999px; transition: width .8s ease; }
.grid-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #64748b; padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.grid-table td { padding: 10px 12px; font-size: 13px; color: #334155; border-bottom: 1px solid #f1f5f9; }
.grid-table tr:hover td { background: #f8fafc; }
.grid-table { width: 100%; border-collapse: collapse; }
.grid-wrap { max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.grid-wrap::-webkit-scrollbar { width: 4px; }
.grid-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-indigo { background: #e0e7ff; color: #3730a3; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-pink { background: #fce7f3; color: #9d174d; }
.badge-cyan { background: #cffafe; color: #155e75; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 600; color: #fff; }
.chip-blue { background: #2563eb; }
.chip-green { background: #10b981; }
.chip-amber { background: #f59e0b; }
.chip-red { background: #e11d48; }
.chip-indigo { background: #6366f1; }
.chip-purple { background: #8b5cf6; }
.chip-pink { background: #ec4899; }
.chip-cyan { background: #06b6d4; }
.chip-orange { background: #f97316; }
.chip-teal { background: #14b8a6; }
.activity-feed { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.activity-feed::-webkit-scrollbar { width: 4px; }
.activity-feed::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade { animation: fadeInUp .5s ease forwards; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }
.anim-delay-4 { animation-delay: .4s; }
.anim-delay-5 { animation-delay: .5s; }
.anim-delay-6 { animation-delay: .6s; }
.card-bg { background: #eef2ff; border-color: #c7d2fe; }
.kpi-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.kpi-card-sm { border-radius: 14px; padding: 18px; color: #fff; position: relative; overflow: hidden; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi-card-sm::after { content: ''; position: absolute; top: -30%; right: -20%; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.kpi-card-sm .kpi-label { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: .75; }
.kpi-card-sm .kpi-value { font-size: 20px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.kpi-card-sm .kpi-delta { font-size: 10px; font-weight: 600; }
.kpi-card-sm .kpi-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); flex-shrink: 0; }
.kpi-card-sm .kpi-icon svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; }
.kpi-b1 { background: #2563eb; } .kpi-b2 { background: #10b981; } .kpi-b3 { background: #ec4899; } .kpi-b4 { background: #8b5cf6; }
.kpi-b5 { background: #f59e0b; } .kpi-b6 { background: #06b6d4; } .kpi-b7 { background: #f97316; } .kpi-b8 { background: #14b8a6; }
.mm-cell { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; transition: background .2s; }
.mm-cell:hover { background: #f8fafc; }
.mm-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mm-icon svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2; }
.mm-title { font-size: 12px; font-weight: 600; color: #334155; line-height: 1.2; }
.mm-sub { font-size: 10px; color: #94a3b8; margin-top: 1px; }
.mm-c1 { background: #2563eb; } .mm-c2 { background: #10b981; } .mm-c3 { background: #ec4899; } .mm-c4 { background: #8b5cf6; }
.mm-c5 { background: #f59e0b; } .mm-c6 { background: #06b6d4; } .mm-c7 { background: #f97316; } .mm-c8 { background: #14b8a6; }
.mm-c9 { background: #6366f1; } .mm-c10 { background: #e11d48; } .mm-c11 { background: #0891b2; } .mm-c12 { background: #7c3aed; }
.mm-c13 { background: #059669; } .mm-c14 { background: #d97706; } .mm-c15 { background: #db2777; } .mm-c16 { background: #0284c7; }
.mm-c17 { background: #65a30d; } .mm-c18 { background: #9333ea; } .mm-c19 { background: #ea580c; } .mm-c20 { background: #0d9488; }
.gi { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gi svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; }
.gc1 { background: #2563eb; } .gc2 { background: #10b981; } .gc3 { background: #ec4899; } .gc4 { background: #8b5cf6; }
.gc5 { background: #f59e0b; } .gc6 { background: #06b6d4; } .gc7 { background: #f97316; } .gc8 { background: #14b8a6; }
.gc9 { background: #6366f1; } .gc10 { background: #e11d48; } .gc11 { background: #0891b2; }
/* Dashboard submenu - smooth collapse/expand (all nesting levels) */
.submenu-group { }
.submenu-head { cursor: pointer; justify-content: space-between; user-select: none; }
.submenu-head .chev { margin-left: auto; font-size: 10px; transition: transform .25s ease; }
.submenu-group.open > .submenu-head .chev { transform: rotate(180deg); }
.submenu-body {
max-height: 0;
padding-left: 20px;
opacity: 0;
overflow: hidden;
transition: max-height .3s ease, opacity .25s ease;
}
.submenu-group.open > .submenu-body {
max-height: 1200px;
opacity: 1;
}
.submenu-body .mi.sub { padding: 7px 16px; font-size: 13px; }