initial commit

This commit is contained in:
2026-07-21 10:00:08 +07:00
commit 7344144e20
282 changed files with 41294 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #334155; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #334155; color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; width: 100%; }
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(51,65,85,0.2); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #334155; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; border: 1.5px solid #e2e8f0; transition: all 0.2s; cursor: pointer; width: 100%; }
.btn-outline:hover { border-color: #334155; background: #f8fafc; }
.input-field { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.875rem; color: #334155; background: #fff; transition: border-color 0.2s; outline: none; font-family: "Poppins", sans-serif; }
.input-field:focus { border-color: #334155; box-shadow: 0 0 0 3px rgba(51,65,85,0.1); }
.input-field::placeholder { color: #94a3b8; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #475569; margin-bottom: 0.375rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.divider span { font-size: 0.75rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-link { color: #334155; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.auth-link:hover { color: #1e293b; text-decoration: underline; }
.text-link { color: #64748b; font-size: 0.8125rem; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.text-link:hover { color: #334155; text-decoration: underline; }
.checkbox-custom { width: 1rem; height: 1rem; border: 1.5px solid #cbd5e1; border-radius: 0.25rem; cursor: pointer; accent-color: #334155; }
.input-field.error { border-color: #ef4444; }
.input-field.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.tenant-card { cursor: pointer; transition: all 0.2s; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
.tenant-card:hover { border-color: #334155; box-shadow: 0 4px 12px rgba(51,65,85,0.1); transform: translateY(-2px); }
.tenant-card.selected { border-color: #334155; background: #f8fafc; }
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
+58
View File
@@ -0,0 +1,58 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #1e293b; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #2563eb; color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; width: 100%; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #2563eb; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; border: 1.5px solid #bfdbfe; transition: all 0.2s; cursor: pointer; width: 100%; }
.btn-outline:hover { border-color: #3b82f6; background: #eff6ff; }
.input-field { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.875rem; color: #1e293b; background: #fff; transition: border-color 0.2s; outline: none; font-family: "Poppins", sans-serif; }
.input-field:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.input-field::placeholder { color: #94a3b8; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #475569; margin-bottom: 0.375rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.divider span { font-size: 0.75rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-link { color: #2563eb; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.auth-link:hover { color: #1d4ed8; text-decoration: underline; }
.text-link { color: #64748b; font-size: 0.8125rem; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.text-link:hover { color: #2563eb; text-decoration: underline; }
.checkbox-custom { width: 1rem; height: 1rem; border: 1.5px solid #cbd5e1; border-radius: 0.25rem; cursor: pointer; accent-color: #2563eb; }
.input-field.error { border-color: #ef4444; }
.input-field.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.tenant-card { cursor: pointer; transition: all 0.2s; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
.tenant-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.1); transform: translateY(-2px); }
.tenant-card.selected { border-color: #2563eb; background: #eff6ff; }
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
+116
View File
@@ -0,0 +1,116 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #1e293b; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #2563eb; color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; width: 100%; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #2563eb; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; border: 1.5px solid #bfdbfe; transition: all 0.2s; cursor: pointer; width: 100%; }
.btn-outline:hover { border-color: #3b82f6; background: #eff6ff; }
.input-field { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.875rem; color: #1e293b; background: #fff; transition: border-color 0.2s; outline: none; font-family: "Poppins", sans-serif; }
.input-field:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.input-field::placeholder { color: #94a3b8; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #475569; margin-bottom: 0.375rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.divider span { font-size: 0.75rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-link { color: #2563eb; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.auth-link:hover { color: #1d4ed8; text-decoration: underline; }
.text-link { color: #64748b; font-size: 0.8125rem; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.text-link:hover { color: #2563eb; text-decoration: underline; }
.checkbox-custom { width: 1rem; height: 1rem; border: 1.5px solid #cbd5e1; border-radius: 0.25rem; cursor: pointer; accent-color: #2563eb; }
.input-field.error { border-color: #ef4444; }
.input-field.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.bg-card-glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); }
.bg-card-glass:hover { border-color: rgba(255,255,255,0.25); }
.check-icon { background: rgba(255,255,255,0.15); }
.tenant-card { cursor: pointer; transition: all 0.2s; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
.tenant-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.1); transform: translateY(-2px); }
.tenant-card.selected { border-color: #2563eb; background: #eff6ff; }
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }
.btn-primary-inverse { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #ffffff; color: #2563eb; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; text-decoration: none; }
.btn-primary-inverse:hover { background: #f8fafc; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.bg-gradient-to-br .form-label {
display: block; font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 0.375rem;
}
.bg-gradient-to-br .auth-link {
color: #93c5fd; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.bg-gradient-to-br .auth-link:hover {
color: #ffffff; text-decoration: underline;
}
.bg-gradient-to-br .text-link {
color: rgba(255,255,255,0.6); font-size: 0.8125rem; text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.bg-gradient-to-br .text-link:hover {
color: #ffffff; text-decoration: underline;
}
.bg-gradient-to-br .btn-primary {
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #ffffff; color: #2563eb; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; width: 100%;
}
.bg-gradient-to-br .btn-primary:hover {
background: #f8fafc; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.bg-gradient-to-br .btn-primary:disabled {
opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none;
}
.bg-gradient-to-br .btn-outline {
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #ffffff; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; border: 1.5px solid rgba(255,255,255,0.3); transition: all 0.2s; cursor: pointer; width: 100%;
}
.bg-gradient-to-br .btn-outline:hover {
border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1);
}
.bg-gradient-to-br .input-field {
width: 100%; padding: 0.75rem 1rem; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 0.5rem; font-size: 0.875rem; color: #ffffff; background: rgba(255,255,255,0.1); transition: border-color 0.2s; outline: none; backdrop-filter: blur(4px);
}
.bg-gradient-to-br .input-field:focus {
border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.bg-gradient-to-br .input-field::placeholder {
color: rgba(255,255,255,0.5);
}
.bg-gradient-to-br .input-field.error {
border-color: #fca5a5;
}
.bg-gradient-to-br .input-field.error:focus {
box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}
.bg-gradient-to-br .checkbox-custom {
width: 1rem; height: 1rem; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 0.25rem; cursor: pointer; accent-color: #93c5fd;
}
+117
View File
@@ -0,0 +1,117 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #1e293b; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #2563eb; color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 9999px; transition: all 0.2s; cursor: pointer; border: none; width: 100%; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #2563eb; font-size: 0.875rem; font-weight: 500; border-radius: 9999px; border: 1.5px solid #bfdbfe; transition: all 0.2s; cursor: pointer; width: 100%; }
.btn-outline:hover { border-color: #3b82f6; background: #eff6ff; }
.input-field { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 1rem; font-size: 0.875rem; color: #1e293b; background: #fff; transition: border-color 0.2s; outline: none; font-family: "Poppins", sans-serif; }
.input-field:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.input-field::placeholder { color: #94a3b8; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #475569; margin-bottom: 0.375rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.divider span { font-size: 0.75rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-link { color: #2563eb; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.auth-link:hover { color: #1d4ed8; text-decoration: underline; }
.text-link { color: #64748b; font-size: 0.8125rem; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.text-link:hover { color: #2563eb; text-decoration: underline; }
.checkbox-custom { width: 1rem; height: 1rem; border: 1.5px solid #cbd5e1; border-radius: 0.5rem; cursor: pointer; accent-color: #2563eb; }
.input-field.error { border-color: #ef4444; }
.input-field.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.bg-card-glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); border-radius: 1rem; }
.bg-card-glass:hover { border-color: rgba(255,255,255,0.25); }
.check-icon { background: rgba(255,255,255,0.15); border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.tenant-card { cursor: pointer; transition: all 0.2s; border: 1px solid #e2e8f0; border-radius: 1rem; }
.tenant-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.1); transform: translateY(-2px); }
.tenant-card.selected { border-color: #2563eb; background: #eff6ff; }
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
/* === OVERRIDES for blue gradient background pages (forgotpassword4, resetpassword4) === */
.bg-gradient-to-br .form-label {
display: block; font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 0.375rem;
}
.bg-gradient-to-br .auth-link {
color: #93c5fd; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.bg-gradient-to-br .auth-link:hover {
color: #ffffff; text-decoration: underline;
}
.bg-gradient-to-br .text-link {
color: rgba(255,255,255,0.6); font-size: 0.8125rem; text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.bg-gradient-to-br .text-link:hover {
color: #ffffff; text-decoration: underline;
}
.bg-gradient-to-br .btn-primary {
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #ffffff; color: #2563eb; font-size: 0.875rem; font-weight: 600; border-radius: 9999px; transition: all 0.2s; cursor: pointer; border: none; width: 100%;
}
.bg-gradient-to-br .btn-primary:hover {
background: #f8fafc; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.bg-gradient-to-br .btn-primary:disabled {
opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none;
}
.bg-gradient-to-br .btn-outline {
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #ffffff; font-size: 0.875rem; font-weight: 500; border-radius: 9999px; border: 1.5px solid rgba(255,255,255,0.3); transition: all 0.2s; cursor: pointer; width: 100%;
}
.bg-gradient-to-br .btn-outline:hover {
border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1);
}
.bg-gradient-to-br .input-field {
width: 100%; padding: 0.75rem 1.25rem; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 1rem; font-size: 0.875rem; color: #ffffff; background: rgba(255,255,255,0.1); transition: border-color 0.2s; outline: none; backdrop-filter: blur(4px);
}
.bg-gradient-to-br .input-field:focus {
border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.bg-gradient-to-br .input-field::placeholder {
color: rgba(255,255,255,0.5);
}
.bg-gradient-to-br .input-field.error {
border-color: #fca5a5;
}
.bg-gradient-to-br .input-field.error:focus {
box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}
.bg-gradient-to-br .checkbox-custom {
width: 1rem; height: 1rem; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 0.5rem; cursor: pointer; accent-color: #93c5fd;
}
+64
View File
@@ -0,0 +1,64 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #f8fafc; color: #1e293b; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #2563eb; color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 0; transition: all 0.2s; cursor: pointer; border: none; width: 100%; }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 2px 8px rgba(37,99,235,0.2); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #2563eb; font-size: 0.875rem; font-weight: 500; border-radius: 0; border: 1.5px solid #bfdbfe; transition: all 0.2s; cursor: pointer; width: 100%; }
.btn-outline:hover { border-color: #3b82f6; background: #eff6ff; }
.input-field { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 0; font-size: 0.875rem; color: #1e293b; background: #fff; transition: border-color 0.2s; outline: none; font-family: "Poppins", sans-serif; }
.input-field:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.input-field::placeholder { color: #94a3b8; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #475569; margin-bottom: 0.375rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.divider span { font-size: 0.75rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-link { color: #2563eb; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.auth-link:hover { color: #1d4ed8; text-decoration: underline; }
.text-link { color: #64748b; font-size: 0.8125rem; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.text-link:hover { color: #2563eb; text-decoration: underline; }
.checkbox-custom { width: 1rem; height: 1rem; border: 1.5px solid #cbd5e1; border-radius: 0; cursor: pointer; accent-color: #2563eb; }
.feature-box { padding: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0; }
.input-field.error { border-color: #ef4444; }
.input-field.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.box-card { border: 1px solid #e2e8f0; background: #ffffff; transition: border-color 0.2s, box-shadow 0.2s; }
.box-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37,99,235,0.08); }
.tenant-card { cursor: pointer; transition: all 0.2s; border: 1px solid #e2e8f0; background: #ffffff; }
.tenant-card:hover { border-color: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,0.1); }
.tenant-card.selected { border-color: #2563eb; background: #f8fafc; }
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; box-shadow: none; }
+22
View File
@@ -0,0 +1,22 @@
/* Cards Page Specific Styles */
.ck-card { transition: all .25s ease; }
.ck-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.1); cursor: pointer; }
.ck-avatar-stack { display: flex; }
.ck-avatar-stack .ck-avatar-item { width: 28px; height: 28px; border-radius: 9999px; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; margin-right: -8px; }
.ck-avatar-stack .ck-avatar-item:last-child { margin-right: 0; }
.ck-star-rating svg { width: 14px; height: 14px; }
.ck-dropdown { display: none; position: absolute; right: 0; top: 100%; margin-top: 4px; min-width: 180px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 25px rgba(0,0,0,.08); z-index: 40; padding: 6px; }
.ck-dropdown.open { display: block; }
.ck-dropdown a { display: block; padding: 8px 12px; font-size: 13px; color: #334155; border-radius: 6px; transition: background .15s; }
.ck-dropdown a:hover { background: #f1f5f9; }
.ck-img-placeholder { height: 180px; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); display: flex; align-items: center; justify-content: center; }
.ck-chart-placeholder { height: 180px; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ck-chart-placeholder .ck-bar-set { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.ck-chart-placeholder .ck-bar { width: 24px; border-radius: 4px 4px 0 0; background: #3b82f6; opacity: .3; }
.ck-chart-placeholder .ck-bar:nth-child(1) { height: 60px; }
.ck-chart-placeholder .ck-bar:nth-child(2) { height: 90px; }
.ck-chart-placeholder .ck-bar:nth-child(3) { height: 50px; }
.ck-chart-placeholder .ck-bar:nth-child(4) { height: 110px; }
.ck-chart-placeholder .ck-bar:nth-child(5) { height: 70px; }
.ck-chart-placeholder .ck-bar:nth-child(6) { height: 100px; }
.ck-chart-placeholder .ck-bar:nth-child(7) { height: 45px; }
+25
View File
@@ -0,0 +1,25 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #334155; }
.nav-link { position: relative; color: #64748b; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; cursor: pointer; text-decoration: none; }
.nav-link:hover { color: #334155; }
.nav-link.active { color: #334155; font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #334155; border-radius: 1px; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #334155; color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(51,65,85,0.2); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: transparent; color: #334155; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; border: 1.5px solid #e2e8f0; transition: all 0.2s; cursor: pointer; }
.btn-outline:hover { border-color: #334155; background: #f8fafc; }
.tech-card { padding: 1.5rem; background: #ffffff; border: 1px solid #f1f5f9; border-radius: 0.75rem; transition: all 0.25s; cursor: default; }
.tech-card:hover { border-color: #e2e8f0; box-shadow: 0 4px 16px rgba(0,0,0,0.04); transform: translateY(-2px); }
.tech-card .ico { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem; background: #f8fafc; color: #64748b; margin-bottom: 0.75rem; }
.tech-card .ico svg { width: 1.25rem; height: 1.25rem; }
.feature-icon { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; background: #f8fafc; color: #334155; flex-shrink: 0; }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.footer-link { color: #94a3b8; font-size: 0.8125rem; transition: color 0.2s; cursor: pointer; text-decoration: none; }
.footer-link:hover { color: #ffffff; }
.gradient-text { background: linear-gradient(135deg, #334155 0%, #64748b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9999px; font-size: 0.8125rem; color: #64748b; font-weight: 500; }
#fab-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: #334155; color: #fff; border: none; border-radius: 9999px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.25s; opacity: 0; visibility: hidden; transform: translateY(10px); }
#fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#fab-top:hover { background: #1e293b; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
#fab-top svg { width: 1.25rem; height: 1.25rem; }
+25
View File
@@ -0,0 +1,25 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #1e293b; }
.nav-link { position: relative; color: #64748b; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; cursor: pointer; text-decoration: none; }
.nav-link:hover { color: #2563eb; }
.nav-link.active { color: #2563eb; font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #3b82f6; border-radius: 1px; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #2563eb; color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: transparent; color: #2563eb; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; border: 1.5px solid #bfdbfe; transition: all 0.2s; cursor: pointer; }
.btn-outline:hover { border-color: #3b82f6; background: #eff6ff; }
.tech-card { padding: 1.5rem; background: #ffffff; border: 1px solid #f1f5f9; border-radius: 0.75rem; transition: all 0.25s; cursor: default; }
.tech-card:hover { border-color: #bfdbfe; box-shadow: 0 4px 16px rgba(37,99,235,0.06); transform: translateY(-2px); }
.tech-card .ico { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem; background: #eff6ff; color: #3b82f6; margin-bottom: 0.75rem; }
.tech-card .ico svg { width: 1.25rem; height: 1.25rem; }
.feature-icon { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; background: #eff6ff; color: #3b82f6; flex-shrink: 0; }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.footer-link { color: #94a3b8; font-size: 0.8125rem; transition: color 0.2s; cursor: pointer; text-decoration: none; }
.footer-link:hover { color: #ffffff; }
.gradient-text { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 1rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9999px; font-size: 0.8125rem; color: #2563eb; font-weight: 500; }
#fab-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: #2563eb; color: #fff; border: none; border-radius: 9999px; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.3); transition: all 0.25s; opacity: 0; visibility: hidden; transform: translateY(10px); }
#fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#fab-top:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
#fab-top svg { width: 1.25rem; height: 1.25rem; }
+24
View File
@@ -0,0 +1,24 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #1e293b; }
.nav-link { position: relative; color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.nav-link:hover { color: #ffffff; }
.nav-link.active { color: #ffffff; font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.6); border-radius: 1px; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #ffffff; color: #2563eb; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary:hover { background: #eff6ff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: transparent; color: #ffffff; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; border: 1.5px solid rgba(255,255,255,0.3); transition: all 0.2s; cursor: pointer; }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); }
.tech-card { padding: 1.5rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 0.75rem; transition: all 0.25s; cursor: default; }
.tech-card:hover { border-color: #bfdbfe; box-shadow: 0 4px 16px rgba(37,99,235,0.06); transform: translateY(-2px); }
.tech-card .ico { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem; background: #eff6ff; color: #3b82f6; margin-bottom: 0.75rem; }
.tech-card .ico svg { width: 1.25rem; height: 1.25rem; }
.feature-icon { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; background: #eff6ff; color: #3b82f6; flex-shrink: 0; }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.footer-link { color: #94a3b8; font-size: 0.8125rem; transition: color 0.2s; cursor: pointer; text-decoration: none; }
.footer-link:hover { color: #ffffff; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 1rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: 9999px; font-size: 0.8125rem; color: rgba(255,255,255,0.9); font-weight: 500; }
#fab-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: #2563eb; color: #fff; border: none; border-radius: 9999px; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.3); transition: all 0.25s; opacity: 0; visibility: hidden; transform: translateY(10px); }
#fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#fab-top:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
#fab-top svg { width: 1.25rem; height: 1.25rem; }
+24
View File
@@ -0,0 +1,24 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #ffffff; color: #1e293b; }
.nav-link { position: relative; color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.nav-link:hover { color: #ffffff; }
.nav-link.active { color: #ffffff; font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.6); border-radius: 1px; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #ffffff; color: #2563eb; font-size: 0.875rem; font-weight: 600; border-radius: 9999px; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary:hover { background: #eff6ff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: transparent; color: #ffffff; font-size: 0.875rem; font-weight: 600; border-radius: 9999px; border: 1.5px solid rgba(255,255,255,0.3); transition: all 0.2s; cursor: pointer; }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); }
.tech-card { padding: 1.5rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 1rem; transition: all 0.25s; cursor: default; }
.tech-card:hover { border-color: #bfdbfe; box-shadow: 0 4px 20px rgba(37,99,235,0.08); transform: translateY(-2px); }
.tech-card .ico { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: #eff6ff; color: #3b82f6; margin-bottom: 0.75rem; }
.tech-card .ico svg { width: 1.25rem; height: 1.25rem; }
.feature-icon { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: #eff6ff; color: #3b82f6; flex-shrink: 0; }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.footer-link { color: #94a3b8; font-size: 0.8125rem; transition: color 0.2s; cursor: pointer; text-decoration: none; }
.footer-link:hover { color: #ffffff; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 1rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: 9999px; font-size: 0.8125rem; color: rgba(255,255,255,0.9); font-weight: 500; }
#fab-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: #2563eb; color: #fff; border: none; border-radius: 9999px; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.3); transition: all 0.25s; opacity: 0; visibility: hidden; transform: translateY(10px); }
#fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#fab-top:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
#fab-top svg { width: 1.25rem; height: 1.25rem; }
+25
View File
@@ -0,0 +1,25 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #f8fafc; color: #1e293b; }
.nav-link { color: #64748b; font-size: 0.875rem; font-weight: 500; transition: all 0.15s; cursor: pointer; text-decoration: none; }
.nav-link:hover { color: #2563eb; }
.nav-link.active { color: #2563eb; font-weight: 600; background: #eff6ff; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: #2563eb; color: #fff; font-size: 0.875rem; font-weight: 600; transition: all 0.15s; cursor: pointer; border: none; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: transparent; color: #2563eb; font-size: 0.875rem; font-weight: 600; border: 1.5px solid #bfdbfe; transition: all 0.15s; cursor: pointer; }
.btn-outline:hover { border-color: #3b82f6; background: #eff6ff; }
.tech-card { padding: 1.5rem; background: #ffffff; border: 1px solid #e2e8f0; transition: all 0.2s; cursor: default; }
.tech-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37,99,235,0.08); }
.tech-card .ico { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: #eff6ff; color: #3b82f6; margin-bottom: 0.75rem; }
.tech-card .ico svg { width: 1.25rem; height: 1.25rem; }
.feature-icon { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: #eff6ff; color: #3b82f6; flex-shrink: 0; }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.footer-link { color: #94a3b8; font-size: 0.8125rem; transition: color 0.15s; cursor: pointer; text-decoration: none; }
.footer-link:hover { color: #ffffff; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 1rem; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 0.8125rem; color: #2563eb; font-weight: 500; }
#fab-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: #2563eb; color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.3); transition: all 0.25s; opacity: 0; visibility: hidden; transform: translateY(10px); }
#fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#fab-top:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
#fab-top svg { width: 1.25rem; height: 1.25rem; }
.box-shadow-hover { transition: box-shadow 0.2s; }
.box-shadow-hover:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
+11
View File
@@ -0,0 +1,11 @@
/* Pickers Page Specific Styles */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
opacity: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
height: 100%;
cursor: pointer;
}
+31
View File
@@ -0,0 +1,31 @@
html {
font-size: 14px;
}
@media (min-width: 768px) {
html {
font-size: 16px;
}
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px;
}
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
color: var(--bs-secondary-color);
text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
text-align: start;
}
+135
View File
@@ -0,0 +1,135 @@
:root { --primary: #3b82f6; --primary-dark: #2563eb; --primary-light: #60a5fa; --primary-lighter: #93c5fd; --primary-lightest: #dbeafe; --primary-bg: #eff6ff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Poppins", sans-serif; background: #f1f5f9; overflow-x: hidden; }
#sidebar-wrap { position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; width: 78px; transition: width .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-right: 1px solid #e2e8f0; }
#sidebar-wrap.open { width: 270px; }
#sidebar-header { flex-shrink: 0; }
#sidebar-footer { flex-shrink: 0; }
#sidebar-nav-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; }
#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(148,163,184,.3); border-radius: 999px; cursor: pointer !important; pointer-events: auto; transition: background .2s; min-height: 24px; }
#sb-thumb:hover { background: rgba(148,163,184,.5); }
#main { margin-left: 78px; transition: margin-left .35s cubic-bezier(.4,0,.2,1); min-height: 100vh; }
#main.shift { margin-left: 270px; }
@media (max-width: 768px) { #sidebar-wrap { 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: #94a3b8; 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: #64748b; 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(0,0,0,.04); color: #334155; }
.mi:hover::before { height: 18px; }
.mi.active { background: rgba(0,0,0,.04); color: #334155; font-weight: 600; }
.mi.active::before { height: 22px; background: #334155; }
.mi.active .ico svg { stroke: #334155; }
.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; }
#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) .arr { display: none; }
.submenu-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.submenu-group.open > .submenu-body { max-height: 1200px; }
.submenu-body .mi.sub { padding: 7px 16px; font-size: 13px; }
.arr { margin-left: auto; transition: transform .3s ease, opacity .2s; opacity: .35; }
.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: .38s; }
#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: #eff6ff; border-color: #bfdbfe; }
.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; }
+135
View File
@@ -0,0 +1,135 @@
:root { --primary: #3b82f6; --primary-dark: #2563eb; --primary-light: #60a5fa; --primary-lighter: #93c5fd; --primary-lightest: #dbeafe; --primary-bg: #eff6ff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Poppins", sans-serif; background: #f1f5f9; overflow-x: hidden; }
#sidebar-wrap { position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; width: 78px; transition: width .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-right: 1px solid #e2e8f0; }
#sidebar-wrap.open { width: 270px; }
#sidebar-header { flex-shrink: 0; }
#sidebar-footer { flex-shrink: 0; }
#sidebar-nav-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; }
#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(148,163,184,.3); border-radius: 999px; cursor: pointer !important; pointer-events: auto; transition: background .2s; min-height: 24px; }
#sb-thumb:hover { background: rgba(148,163,184,.5); }
#main { margin-left: 78px; transition: margin-left .35s cubic-bezier(.4,0,.2,1); min-height: 100vh; }
#main.shift { margin-left: 270px; }
@media (max-width: 768px) { #sidebar-wrap { 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: #94a3b8; 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: #64748b; 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(0,0,0,.04); color: #334155; }
.mi:hover::before { height: 18px; }
.mi.active { background: rgba(59,130,246,.1); color: #2563eb; font-weight: 600; }
.mi.active::before { height: 22px; background: #3b82f6; }
.mi.active .ico svg { stroke: #2563eb; }
.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; }
#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) .arr { display: none; }
.submenu-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.submenu-group.open > .submenu-body { max-height: 1200px; }
.submenu-body .mi.sub { padding: 7px 16px; font-size: 13px; }
.arr { margin-left: auto; transition: transform .3s ease, opacity .2s; opacity: .35; }
.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: #eff6ff; border-color: #bfdbfe; }
.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; }
+135
View File
@@ -0,0 +1,135 @@
: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: 0; left: 0; height: 100vh; z-index: 50; width: 78px; transition: width .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%); border-right: 1px solid #e2e8f0; }
#sidebar-wrap.open { width: 270px; }
#sidebar-header { flex-shrink: 0; background: #fff; border-bottom: 1px solid #e2e8f0; }
#sidebar-footer { flex-shrink: 0; }
#sidebar-nav-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; }
#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: 78px; transition: margin-left .35s cubic-bezier(.4,0,.2,1); min-height: 100vh; }
#main.shift { margin-left: 270px; }
@media (max-width: 768px) { #sidebar-wrap { 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) .arr { display: none; }
.submenu-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.submenu-group.open > .submenu-body { max-height: 1200px; }
.submenu-body .mi.sub { padding: 7px 16px; font-size: 13px; }
.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; }
+136
View File
@@ -0,0 +1,136 @@
: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) .arr { display: none; }
.submenu-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.submenu-group.open > .submenu-body { max-height: 1200px; }
.submenu-body .mi.sub { padding: 7px 16px; font-size: 13px; }
.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; }
+142
View File
@@ -0,0 +1,142 @@
:root { --primary: #3b82f6; --primary-dark: #2563eb; --primary-light: #60a5fa; --primary-lighter: #93c5fd; --primary-lightest: #dbeafe; --primary-bg: #eff6ff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Poppins", sans-serif; background: #f1f5f9; overflow-x: hidden; }
#sidebar-wrap { position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; width: 78px; transition: width .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; background: #f1f5f9; border-right: 1px solid #e2e8f0; }
#sidebar-wrap.open { width: 270px; }
#sidebar-header { flex-shrink: 0; background: #fff; }
#sidebar-footer { flex-shrink: 0; }
#sidebar-nav-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; }
#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(148,163,184,.3); border-radius: 999px; cursor: pointer !important; pointer-events: auto; transition: background .2s; min-height: 24px; }
#sb-thumb:hover { background: rgba(148,163,184,.5); }
#main { margin-left: 78px; transition: margin-left .35s cubic-bezier(.4,0,.2,1); min-height: 100vh; }
#main.shift { margin-left: 270px; }
@media (max-width: 768px) { #sidebar-wrap { transform: translateX(-100%); width: 260px !important; } #sidebar-wrap.open { transform: translateX(0); } #main { margin-left: 0 !important; } #main.shift { margin-left: 0 !important; } }
.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; }
.section-label { padding: 16px 20px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; white-space: nowrap; transition: opacity .2s ease; }
.mi { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 16px; margin: 1px 10px; color: #64748b; 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; background: #94a3b8; transition: height .25s ease; }
.mi:hover { background: rgba(0,0,0,.04); color: #334155; }
.mi:hover::before { height: 18px; }
.mi.active { background: rgba(59,130,246,.1); color: #2563eb; font-weight: 600; }
.mi.active::before { height: 22px; background: #3b82f6; }
.mi.active .ico svg { stroke: #2563eb; }
.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; }
#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: #94a3b8; }
.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(0,0,0,.04); color: #475569; }
.subs .mi.active { background: rgba(59,130,246,.1); color: #2563eb; font-weight: 600; }
.subs .mi.active .ico svg { stroke: #2563eb; }
.arr { margin-left: auto; transition: transform .3s ease, opacity .2s; opacity: .35; }
.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: #eff6ff; border-color: #bfdbfe; }
.kpi-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.kpi-card-sm { 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; }
+28
View File
@@ -0,0 +1,28 @@
/* Tabs Page Specific Styles */
.tp-underline { transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.tp-underline::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2.5px; border-radius:2px 2px 0 0; background:transparent; transition:all 0.3s cubic-bezier(0.4,0,0.2,1); }
.tp-underline.active::after { background:#6366f1; }
.tp-underline:hover::after { background:#a5b4fc; }
.tp-pill { transition:all 0.25s cubic-bezier(0.4,0,0.2,1); }
.tp-pill.active { background:#6366f1; color:white; box-shadow:0 2px 8px rgba(99,102,241,0.35); }
.tp-pill:not(.active):hover { background:#eef2ff; color:#4f46e5; }
.tp-vertical { transition:all 0.25s cubic-bezier(0.4,0,0.2,1); }
.tp-vertical.active { background:#eef2ff; color:#4f46e5; }
.tp-vertical:not(.active):hover { background:#f9fafb; color:#4f46e5; }
.tp-card { transition:all 0.25s cubic-bezier(0.4,0,0.2,1); }
.tp-card.active { background:#eef2ff; border-color:#6366f1; }
.tp-card:not(.active):hover { background:#f9fafb; border-color:#e5e7eb; }
.tp-content { animation:tpFadeIn 0.25s ease-out; }
@keyframes tpFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.tp-fade { animation:tpAnimFade 0.5s ease-out both; }
@keyframes tpAnimFade { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.tp-delay-1 { animation-delay:0.1s; }
.tp-delay-2 { animation-delay:0.2s; }
.tp-delay-3 { animation-delay:0.3s; }
.tp-delay-4 { animation-delay:0.4s; }
.tp-delay-5 { animation-delay:0.5s; }
.tp-skeleton { background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%); background-size:200% 100%; animation:tpShimmer 1.5s infinite; border-radius:6px; }
.dark .tp-skeleton { background:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.1) 50%,rgba(255,255,255,0.06) 75%); background-size:200% 100%; }
@keyframes tpShimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
.tp-panel-enter { animation:tpPanelSlideIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes tpPanelSlideIn { from { opacity:0; transform:translateY(12px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

+7
View File
@@ -0,0 +1,7 @@
document.addEventListener('DOMContentLoaded', function () {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Revenue', data: [1.8, 2.1, 1.9, 2.2, 2.4, 2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Target', data: [1.4, 1.6, 1.5, 1.7, 1.8, 1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Website', 'Referral', 'Social', 'Email', 'Others'], datasets: [{ data: [42, 22, 15, 12, 9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Calls', 'Emails', 'Meetings', 'Total'], datasets: [{ label: 'Activity', data: [245, 450, 89, 784], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => v.toLocaleString() } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+7
View File
@@ -0,0 +1,7 @@
document.addEventListener('DOMContentLoaded', function () {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Revenue', data: [1.8, 2.1, 1.9, 2.2, 2.4, 2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Maintenance', data: [1.4, 1.6, 1.5, 1.7, 1.8, 1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Production', 'Utilities', 'Infrastructure', 'Transport', 'Facilities'], datasets: [{ data: [42, 22, 15, 12, 9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['PM', 'CM', 'Inspection', 'Total'], datasets: [{ label: 'Activity', data: [142, 86, 312, 540], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => v } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+7
View File
@@ -0,0 +1,7 @@
document.addEventListener('DOMContentLoaded', function () {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Revenue', data: [1.8, 2.1, 1.9, 2.2, 2.4, 2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Expenses', data: [1.4, 1.6, 1.5, 1.7, 1.8, 1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Payroll', 'Operations', 'Marketing', 'R&D', 'Others'], datasets: [{ data: [42, 22, 15, 12, 9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Operating', 'Investing', 'Financing', 'Net Change'], datasets: [{ label: 'Cash Flow', data: [3.2, -1.1, -0.8, 1.3], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+7
View File
@@ -0,0 +1,7 @@
document.addEventListener('DOMContentLoaded', function () {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Revenue', data: [1.8, 2.1, 1.9, 2.2, 2.4, 2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'New Hires', data: [1.4, 1.6, 1.5, 1.7, 1.8, 1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Engineering', 'Marketing', 'Sales', 'Operations', 'HR & Finance'], datasets: [{ data: [42, 22, 15, 12, 9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Active', 'On Leave', 'Probation', 'Contract End'], datasets: [{ label: 'Status', data: [89.2, 5.5, 4.2, 1.1], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+7
View File
@@ -0,0 +1,7 @@
document.addEventListener('DOMContentLoaded', function () {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Revenue', data: [1.8, 2.1, 1.9, 2.2, 2.4, 2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Resolved', data: [1.4, 1.6, 1.5, 1.7, 1.8, 1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Hardware', 'Software', 'Network', 'Security', 'Other'], datasets: [{ data: [28, 32, 18, 12, 10], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Critical', 'High', 'Medium', 'Total'], datasets: [{ label: 'Priority', data: [8, 14, 18, 40], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+7
View File
@@ -0,0 +1,7 @@
document.addEventListener('DOMContentLoaded', function () {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Revenue', data: [1.8, 2.1, 1.9, 2.2, 2.4, 2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Target', data: [1.4, 1.6, 1.5, 1.7, 1.8, 1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Website', 'Referral', 'Social', 'Email', 'Others'], datasets: [{ data: [42, 22, 15, 12, 9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Calls', 'Emails', 'Meetings', 'Total'], datasets: [{ label: 'Activity', data: [245, 450, 89, 784], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => v.toLocaleString() } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+7
View File
@@ -0,0 +1,7 @@
document.addEventListener('DOMContentLoaded', function() {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan','Feb','Mar','Apr','May','Jun'], datasets: [{ label: 'Scheduled', data: [1.8,2.1,1.9,2.2,2.4,2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Unfilled', data: [1.4,1.6,1.5,1.7,1.8,1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => v + 'K' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Morning','Afternoon','Night','Weekend','Others'], datasets: [{ data: [42,22,15,12,9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Clock In','Clock Out','Breaks','Total'], datasets: [{ label: 'Activity', data: [245, 450, 89, 784], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 } } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+50
View File
@@ -0,0 +1,50 @@
(function() {
const nav = document.getElementById('sidebar-nav');
const wrap = document.getElementById('sidebar-nav-wrap');
const track = document.getElementById('sb-track');
const thumb = document.getElementById('sb-thumb');
if (!nav || !track || !thumb || !wrap) return;
let isDragging = false;
function show() { track.style.opacity = '1'; }
function hide() { if (!isDragging) track.style.opacity = '0'; }
function update() {
const sh = nav.scrollHeight, ch = nav.clientHeight;
if (sh <= ch) { track.style.display = 'none'; return; }
track.style.display = 'block'; track.style.opacity = '1';
const st = nav.scrollTop, th = Math.max((ch / sh) * ch, 24);
const maxTop = ch - th, ratio = sh > ch ? st / (sh - ch) : 0;
thumb.style.height = th + 'px'; thumb.style.top = (ratio * maxTop) + 'px';
}
const observer = new MutationObserver(function() {
update(); setTimeout(function() {
update();
if (nav.scrollHeight > nav.clientHeight) { track.style.display = 'block'; track.style.opacity = '1'; }
}, 350);
});
observer.observe(nav, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });
nav.addEventListener('scroll', update); window.addEventListener('resize', update);
wrap.addEventListener('mouseenter', function() { show(); update(); });
wrap.addEventListener('mouseleave', hide);
thumb.addEventListener('mousedown', function(e) {
e.preventDefault(); isDragging = true; track.style.opacity = '1';
document.body.style.cursor = 'pointer'; document.body.style.userSelect = 'none';
function onMove(ev) {
if (!isDragging) return;
const rect = track.getBoundingClientRect();
nav.scrollTop = ((ev.clientY - rect.top) / rect.height) * (nav.scrollHeight - nav.clientHeight);
}
function onUp() {
isDragging = false; document.body.style.cursor = ''; document.body.style.userSelect = '';
document.removeEventListener('mousemove', onMove); document.removeEventListener('mouseup', onUp);
}
document.addEventListener('mousemove', onMove); document.addEventListener('mouseup', onUp);
});
update(); setTimeout(update, 300);
})();
document.addEventListener('DOMContentLoaded', function() {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan','Feb','Mar','Apr','May','Jun'], datasets: [{ label: 'Revenue', data: [1.8,2.1,1.9,2.2,2.4,2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Budget', data: [1.4,1.6,1.5,1.7,1.8,1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Direct Raw','Indirect','Logistics','IT','Others'], datasets: [{ data: [42,22,15,12,9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['PR Created','PO Issued','Deliveries','Total'], datasets: [{ label: 'Procurement', data: [423, 186, 52, 661], backgroundColor: ['#10b981', '#10b981', '#10b981', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 } } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+50
View File
@@ -0,0 +1,50 @@
(function() {
const nav = document.getElementById('sidebar-nav');
const wrap = document.getElementById('sidebar-nav-wrap');
const track = document.getElementById('sb-track');
const thumb = document.getElementById('sb-thumb');
if (!nav || !track || !thumb || !wrap) return;
let isDragging = false;
function show() { track.style.opacity = '1'; }
function hide() { if (!isDragging) track.style.opacity = '0'; }
function update() {
const sh = nav.scrollHeight, ch = nav.clientHeight;
if (sh <= ch) { track.style.display = 'none'; return; }
track.style.display = 'block'; track.style.opacity = '1';
const st = nav.scrollTop, th = Math.max((ch / sh) * ch, 24);
const maxTop = ch - th, ratio = sh > ch ? st / (sh - ch) : 0;
thumb.style.height = th + 'px'; thumb.style.top = (ratio * maxTop) + 'px';
}
const observer = new MutationObserver(function() {
update(); setTimeout(function() {
update();
if (nav.scrollHeight > nav.clientHeight) { track.style.display = 'block'; track.style.opacity = '1'; }
}, 350);
});
observer.observe(nav, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });
nav.addEventListener('scroll', update); window.addEventListener('resize', update);
wrap.addEventListener('mouseenter', function() { show(); update(); });
wrap.addEventListener('mouseleave', hide);
thumb.addEventListener('mousedown', function(e) {
e.preventDefault(); isDragging = true; track.style.opacity = '1';
document.body.style.cursor = 'pointer'; document.body.style.userSelect = 'none';
function onMove(ev) {
if (!isDragging) return;
const rect = track.getBoundingClientRect();
nav.scrollTop = ((ev.clientY - rect.top) / rect.height) * (nav.scrollHeight - nav.clientHeight);
}
function onUp() {
isDragging = false; document.body.style.cursor = ''; document.body.style.userSelect = '';
document.removeEventListener('mousemove', onMove); document.removeEventListener('mouseup', onUp);
}
document.addEventListener('mousemove', onMove); document.addEventListener('mouseup', onUp);
});
update(); setTimeout(update, 300);
})();
document.addEventListener('DOMContentLoaded', function() {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan','Feb','Mar','Apr','May','Jun'], datasets: [{ label: 'Revenue', data: [1.8,2.1,1.9,2.2,2.4,2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Target', data: [1.4,1.6,1.5,1.7,1.8,1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Website','Referral','Social','Email','Others'], datasets: [{ data: [42,22,15,12,9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Calls','Emails','Meetings','Total'], datasets: [{ label: 'Activity', data: [245, 450, 89, 784], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => v.toLocaleString() } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+50
View File
@@ -0,0 +1,50 @@
(function() {
const nav = document.getElementById('sidebar-nav');
const wrap = document.getElementById('sidebar-nav-wrap');
const track = document.getElementById('sb-track');
const thumb = document.getElementById('sb-thumb');
if (!nav || !track || !thumb || !wrap) return;
let isDragging = false;
function show() { track.style.opacity = '1'; }
function hide() { if (!isDragging) track.style.opacity = '0'; }
function update() {
const sh = nav.scrollHeight, ch = nav.clientHeight;
if (sh <= ch) { track.style.display = 'none'; return; }
track.style.display = 'block'; track.style.opacity = '1';
const st = nav.scrollTop, th = Math.max((ch / sh) * ch, 24);
const maxTop = ch - th, ratio = sh > ch ? st / (sh - ch) : 0;
thumb.style.height = th + 'px'; thumb.style.top = (ratio * maxTop) + 'px';
}
const observer = new MutationObserver(function() {
update(); setTimeout(function() {
update();
if (nav.scrollHeight > nav.clientHeight) { track.style.display = 'block'; track.style.opacity = '1'; }
}, 350);
});
observer.observe(nav, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });
nav.addEventListener('scroll', update); window.addEventListener('resize', update);
wrap.addEventListener('mouseenter', function() { show(); update(); });
wrap.addEventListener('mouseleave', hide);
thumb.addEventListener('mousedown', function(e) {
e.preventDefault(); isDragging = true; track.style.opacity = '1';
document.body.style.cursor = 'pointer'; document.body.style.userSelect = 'none';
function onMove(ev) {
if (!isDragging) return;
const rect = track.getBoundingClientRect();
nav.scrollTop = ((ev.clientY - rect.top) / rect.height) * (nav.scrollHeight - nav.clientHeight);
}
function onUp() {
isDragging = false; document.body.style.cursor = ''; document.body.style.userSelect = '';
document.removeEventListener('mousemove', onMove); document.removeEventListener('mouseup', onUp);
}
document.addEventListener('mousemove', onMove); document.addEventListener('mouseup', onUp);
});
update(); setTimeout(update, 300);
})();
document.addEventListener('DOMContentLoaded', function() {
const grayText = '#94a3b8';
const plRevenue = '#2563eb', plExpenses = '#f97316';
new Chart(document.getElementById('plChart'), { type: 'bar', data: { labels: ['Jan','Feb','Mar','Apr','May','Jun'], datasets: [{ label: 'Revenue', data: [1.8,2.1,1.9,2.2,2.4,2.0], backgroundColor: plRevenue, borderRadius: 4, barPercentage: 0.4 }, { label: 'Outgoing', data: [1.4,1.6,1.5,1.7,1.8,1.5], backgroundColor: plExpenses, borderRadius: 4, barPercentage: 0.4 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => '$' + v + 'M' } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
new Chart(document.getElementById('expenseChart'), { type: 'doughnut', data: { labels: ['Racking','Bulk','Overflow','Cold','Others'], datasets: [{ data: [42,22,15,12,9], backgroundColor: ['#2563eb', '#f97316', '#ec4899', '#8b5cf6', '#06b6d4'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, cutout: '72%', plugins: { legend: { display: false } } } });
new Chart(document.getElementById('cashflowChart'), { type: 'bar', data: { labels: ['Goods Receive','Deliveries','Adjustments','Total'], datasets: [{ label: 'Activity', data: [450, 320, 180, 950], backgroundColor: ['#10b981', '#e11d48', '#e11d48', '#6366f1'], borderRadius: 4, barPercentage: 0.5 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false } }, scales: { y: { beginAtZero: true, grid: { color: '#f1f5f9' }, ticks: { color: grayText, font: { size: 10 }, callback: v => v } }, x: { grid: { display: false }, ticks: { color: grayText, font: { size: 9 } } } } } });
});
+215
View File
@@ -0,0 +1,215 @@
document.addEventListener('DOMContentLoaded', function () {
const selectAll = document.getElementById('select-all-invoices');
const invoiceChecks = document.querySelectorAll('.invoice-checkbox');
const bulkToolbar = document.getElementById('bulk-toolbar');
const selectedCount = document.getElementById('selected-count');
if (selectAll && invoiceChecks.length) {
function updateBulkToolbar() {
const checked = document.querySelectorAll('.invoice-checkbox:checked');
const count = checked.length;
if (count > 0) {
bulkToolbar.classList.remove('hidden');
bulkToolbar.classList.add('flex');
selectedCount.textContent = count + ' selected';
invoiceChecks.forEach(function (cb) { cb.closest('tr').classList.toggle('bg-blue-50/40', cb.checked); });
} else {
bulkToolbar.classList.add('hidden');
bulkToolbar.classList.remove('flex');
selectedCount.textContent = '0 selected';
invoiceChecks.forEach(function (cb) { cb.closest('tr').classList.remove('bg-blue-50/40'); });
}
}
selectAll.addEventListener('change', function () {
invoiceChecks.forEach(function (cb) { cb.checked = selectAll.checked; });
updateBulkToolbar();
});
invoiceChecks.forEach(function (cb) {
cb.addEventListener('change', function () {
var allChecked = true;
invoiceChecks.forEach(function (c) { if (!c.checked) allChecked = false; });
selectAll.checked = allChecked;
updateBulkToolbar();
});
});
}
var expandBtns = document.querySelectorAll('.expand-btn');
expandBtns.forEach(function (btn) {
btn.addEventListener('click', function () {
var row = this.closest('tr');
var detailRow = row.nextElementSibling;
var icon = this.querySelector('.expand-icon');
if (detailRow && detailRow.classList.contains('expand-detail')) {
detailRow.classList.toggle('hidden');
if (detailRow.classList.contains('hidden')) { icon.style.transform = 'rotate(0deg)'; }
else { icon.style.transform = 'rotate(90deg)'; }
}
});
});
(function () {
var searchInput = document.getElementById('product-search');
var catSelect = document.getElementById('product-category');
var tbody = document.getElementById('product-tbody');
var infoEl = document.getElementById('product-info');
if (!searchInput || !catSelect || !tbody || !infoEl) return;
var productRows = Array.prototype.slice.call(tbody.querySelectorAll('tr'));
function filterProducts() {
var q = searchInput.value.toLowerCase().trim();
var cat = catSelect.value;
var visible = 0;
var lowStock = 0;
productRows.forEach(function (tr) {
var cells = tr.querySelectorAll('td');
if (cells.length < 5) return;
var sku = cells[0].textContent.toLowerCase();
var name = cells[1].textContent.toLowerCase();
var category = cells[2].textContent.trim();
var stockText = cells[3].textContent.trim();
var stockNum = parseInt(stockText.replace(/[^0-9-]/g, '')) || 0;
var matchSearch = q === '' || sku.indexOf(q) !== -1 || name.indexOf(q) !== -1;
var matchCat = cat === '' || category === cat;
if (matchSearch && matchCat) {
tr.style.display = '';
visible++;
if (stockNum > 0 && stockNum < 100) lowStock++;
} else {
tr.style.display = 'none';
}
});
infoEl.innerHTML = 'Showing <b class="text-gray-600">' + visible + '</b> of <b class="text-gray-600">' + productRows.length + '</b> products';
var lowEl = infoEl.parentElement.querySelector('.text-amber-600');
if (lowEl) lowEl.textContent = lowStock;
}
searchInput.addEventListener('input', filterProducts);
catSelect.addEventListener('change', filterProducts);
})();
(function () {
var tbody = document.getElementById('transactions-tbody');
var infoEl = document.getElementById('transactions-info');
var pageBtnsEl = document.getElementById('transactions-page-btns');
if (!tbody || !infoEl || !pageBtnsEl) return;
var perPage = 10;
var totalEntries = 120;
var totalPages = Math.ceil(totalEntries / perPage);
var currentPage = 1;
var accounts = [
'PT. MegaCorp - 001-234-5678', 'TechDistrib Inc. - 002-987-6543',
'CloudHost Ltd. - 003-456-7890', 'OfficePro Supply - 004-567-8901',
'MegaNetwork Corp - 005-678-9012', 'Consulting Plus - 006-789-0123',
'DataSys Solutions - 007-890-1234', 'GreenEnergy Corp - 008-901-2345',
'SmartBuild Ltd. - 009-012-3456', 'MediCare Supplies - 010-123-4567',
'AquaPure Systems - 011-234-5678', 'FinServe Global - 012-345-6789',
'LogiTrack Inc. - 013-456-7890', 'BioHealth Labs - 014-567-8901',
'EduPrime Academy - 015-678-9012'
];
var methods = ['Wire Transfer', 'Bank Transfer', 'Credit Card', 'ACH Transfer', 'Digital Wallet'];
var statuses = [
{ label: 'Success', chip: 'chip-green' },
{ label: 'Pending', chip: 'chip-amber' },
{ label: 'Processed', chip: 'chip-blue' },
{ label: 'Failed', chip: 'chip-red' }
];
function rand(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }
function pick(arr) { return arr[rand(0, arr.length - 1)]; }
var allData = [];
for (var i = 1; i <= totalEntries; i++) {
var amount = rand(500, 50000) + rand(0, 99) / 100;
allData.push({
id: 'TRX-2026-' + String(i).padStart(3, '0'),
from: pick(accounts),
to: pick(accounts),
nominal: '$' + amount.toFixed(2),
status: pick(statuses),
method: pick(methods)
});
}
var originalData = [
{ id: 'TRX-2026-001', from: 'PT. MegaCorp - 001-234-5678', to: 'TechDistrib Inc. - 002-987-6543', nominal: '$24,500.00', status: { label: 'Success', chip: 'chip-green' }, method: 'Wire Transfer' },
{ id: 'TRX-2026-002', from: 'CloudHost Ltd. - 003-456-7890', to: 'PT. MegaCorp - 001-234-5678', nominal: '$12,800.00', status: { label: 'Pending', chip: 'chip-amber' }, method: 'Bank Transfer' },
{ id: 'TRX-2026-003', from: 'OfficePro Supply - 004-567-8901', to: 'PT. MegaCorp - 001-234-5678', nominal: '$6,200.00', status: { label: 'Processed', chip: 'chip-blue' }, method: 'Credit Card' },
{ id: 'TRX-2026-004', from: 'PT. MegaCorp - 001-234-5678', to: 'MegaNetwork Corp - 005-678-9012', nominal: '$32,000.00', status: { label: 'Failed', chip: 'chip-red' }, method: 'Wire Transfer' },
{ id: 'TRX-2026-005', from: 'Consulting Plus - 006-789-0123', to: 'PT. MegaCorp - 001-234-5678', nominal: '$18,000.00', status: { label: 'Success', chip: 'chip-green' }, method: 'Bank Transfer' },
{ id: 'TRX-2026-006', from: 'DataSys Solutions - 007-890-1234', to: 'PT. MegaCorp - 001-234-5678', nominal: '$45,200.00', status: { label: 'Pending', chip: 'chip-amber' }, method: 'ACH Transfer' },
{ id: 'TRX-2026-007', from: 'PT. MegaCorp - 001-234-5678', to: 'GreenEnergy Corp - 008-901-2345', nominal: '$28,900.00', status: { label: 'Processed', chip: 'chip-blue' }, method: 'Wire Transfer' },
{ id: 'TRX-2026-008', from: 'SmartBuild Ltd. - 009-012-3456', to: 'PT. MegaCorp - 001-234-5678', nominal: '$8,750.00', status: { label: 'Failed', chip: 'chip-red' }, method: 'Credit Card' },
{ id: 'TRX-2026-009', from: 'PT. MegaCorp - 001-234-5678', to: 'MediCare Supplies - 010-123-4567', nominal: '$19,300.00', status: { label: 'Success', chip: 'chip-green' }, method: 'Bank Transfer' },
{ id: 'TRX-2026-010', from: 'AquaPure Systems - 011-234-5678', to: 'PT. MegaCorp - 001-234-5678', nominal: '$11,400.00', status: { label: 'Pending', chip: 'chip-amber' }, method: 'ACH Transfer' }
];
for (var idx = 0; idx < originalData.length; idx++) {
allData[idx] = originalData[idx];
}
function renderPage(page) {
var start = (page - 1) * perPage;
var end = Math.min(start + perPage, totalEntries);
var html = '';
for (var i = start; i < end; i++) {
var d = allData[i];
html += '<tr class="bg-white hover:bg-gray-50/50 transition">' +
'<td class="px-4 py-3 text-sm text-gray-700 font-mono font-medium">' + d.id + '</td>' +
'<td class="px-4 py-3 text-sm text-gray-600">' + d.from + '</td>' +
'<td class="px-4 py-3 text-sm text-gray-600">' + d.to + '</td>' +
'<td class="px-4 py-3 text-sm text-gray-700 text-right font-mono">' + d.nominal + '</td>' +
'<td class="px-4 py-3 text-center"><span class="chip ' + d.status.chip + '">' + d.status.label + '</span></td>' +
'<td class="px-4 py-3 text-sm text-gray-600">' + d.method + '</td></tr>';
}
tbody.innerHTML = html;
infoEl.innerHTML = 'Showing <b class="text-gray-600">' + (start + 1) + '</b> to <b class="text-gray-600">' + end + '</b> of <b class="text-gray-600">' + totalEntries + '</b> entries';
var btnsHtml = '';
var prevDisabled = page === 1;
btnsHtml += '<button class="px-3 py-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-500 hover:bg-gray-50 transition' + (prevDisabled ? ' cursor-not-allowed opacity-50' : '') + '" data-page="prev"' + (prevDisabled ? ' disabled' : '') + '>Previous</button>';
var maxVisible = 7;
var startPage, endPage;
if (totalPages <= maxVisible) {
startPage = 1;
endPage = totalPages;
} else {
var half = Math.floor(maxVisible / 2);
if (page <= half + 1) {
startPage = 1;
endPage = maxVisible;
} else if (page >= totalPages - half) {
startPage = totalPages - maxVisible + 1;
endPage = totalPages;
} else {
startPage = page - half;
endPage = page + half;
}
}
if (startPage > 1) {
btnsHtml += '<button class="px-3 py-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-700 hover:bg-gray-50 transition" data-page="1">1</button>';
if (startPage > 2) {
btnsHtml += '<span class="px-1 text-gray-400">...</span>';
}
}
for (var p = startPage; p <= endPage; p++) {
var isActive = p === page;
btnsHtml += '<button class="px-3 py-1.5 text-xs font-medium rounded-lg border' +
(isActive ? ' bg-blue-600 text-white border-blue-600' : ' border-gray-200 bg-white text-gray-700 hover:bg-gray-50 transition') +
'" data-page="' + p + '">' + p + '</button>';
}
if (endPage < totalPages) {
if (endPage < totalPages - 1) {
btnsHtml += '<span class="px-1 text-gray-400">...</span>';
}
btnsHtml += '<button class="px-3 py-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-700 hover:bg-gray-50 transition" data-page="' + totalPages + '">' + totalPages + '</button>';
}
var nextDisabled = page === totalPages;
btnsHtml += '<button class="px-3 py-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-500 hover:bg-gray-50 transition' + (nextDisabled ? ' cursor-not-allowed opacity-50' : '') + '" data-page="next"' + (nextDisabled ? ' disabled' : '') + '>Next</button>';
pageBtnsEl.innerHTML = btnsHtml;
var btns = pageBtnsEl.querySelectorAll('button:not([disabled])');
btns.forEach(function (btn) {
btn.addEventListener('click', function () {
var target = this.getAttribute('data-page');
var newPage = page;
if (target === 'prev') newPage = page - 1;
else if (target === 'next') newPage = page + 1;
else newPage = parseInt(target);
if (newPage >= 1 && newPage <= totalPages) {
currentPage = newPage;
renderPage(currentPage);
}
});
});
}
renderPage(1);
})();
});
+12
View File
@@ -0,0 +1,12 @@
function initScrollSpy() {
const observer = new IntersectionObserver(function (entries) {
entries.forEach(function (e) {
if (e.isIntersecting) {
document.querySelectorAll('.nav-link').forEach(function (l) { l.classList.remove('active'); });
var el = document.querySelector('.nav-link[href="#' + e.target.id + '"]');
if (el) el.classList.add('active');
}
});
}, { rootMargin: '-80px 0px -50% 0px' });
document.querySelectorAll('section[id]').forEach(function (s) { observer.observe(s); });
}
+99
View File
@@ -0,0 +1,99 @@
(function () {
const nav = document.getElementById('sidebar-nav');
const wrap = document.getElementById('sidebar-nav-wrap');
const track = document.getElementById('sb-track');
const thumb = document.getElementById('sb-thumb');
if (!nav || !track || !thumb || !wrap) return;
let isDragging = false;
function show() { track.style.opacity = '1'; }
function hide() { if (!isDragging) track.style.opacity = '0'; }
function update() {
const sh = nav.scrollHeight, ch = nav.clientHeight;
if (sh <= ch) { track.style.display = 'none'; return; }
track.style.display = 'block'; track.style.opacity = '1';
const st = nav.scrollTop, th = Math.max((ch / sh) * ch, 24);
const maxTop = ch - th, ratio = sh > ch ? st / (sh - ch) : 0;
thumb.style.height = th + 'px'; thumb.style.top = (ratio * maxTop) + 'px';
}
const observer = new MutationObserver(function () {
update(); setTimeout(function () {
update();
if (nav.scrollHeight > nav.clientHeight) { track.style.display = 'block'; track.style.opacity = '1'; }
}, 350);
});
observer.observe(nav, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });
nav.addEventListener('scroll', update); window.addEventListener('resize', update);
wrap.addEventListener('mouseenter', function () { show(); update(); });
wrap.addEventListener('mouseleave', hide);
thumb.addEventListener('mousedown', function (e) {
e.preventDefault(); isDragging = true; track.style.opacity = '1';
document.body.style.cursor = 'pointer'; document.body.style.userSelect = 'none';
function onMove(ev) {
if (!isDragging) return;
const rect = track.getBoundingClientRect();
nav.scrollTop = ((ev.clientY - rect.top) / rect.height) * (nav.scrollHeight - nav.clientHeight);
}
function onUp() {
isDragging = false; document.body.style.cursor = ''; document.body.style.userSelect = '';
document.removeEventListener('mousemove', onMove); document.removeEventListener('mouseup', onUp);
}
document.addEventListener('mousemove', onMove); document.addEventListener('mouseup', onUp);
});
update(); setTimeout(update, 300);
nav.querySelectorAll('.submenu-group:not(.open) > .submenu-body').forEach(function (b) {
b.style.maxHeight = '0px';
});
function setBodyHeight(group) {
const body = group.querySelector(':scope > .submenu-body');
if (!body) return;
if (group.classList.contains('open')) {
body.style.maxHeight = body.scrollHeight + 'px';
} else {
body.style.maxHeight = '0px';
}
}
nav.addEventListener('transitionend', function (e) {
if (!e.target.classList || !e.target.classList.contains('submenu-body')) return;
if (e.propertyName !== 'max-height') return;
if (e.target.style.maxHeight !== '0px') {
e.target.style.maxHeight = 'none';
}
});
nav.addEventListener('click', function (e) {
const head = e.target.closest('.submenu-head');
if (!head) return;
const group = head.parentElement;
if (group && group.classList.contains('submenu-group')) {
group.classList.toggle('open');
setBodyHeight(group);
update();
}
});
function activateCurrent() {
const currentPage = window.location.pathname; // includes leading slash, matches href="/..."
if (!currentPage) return;
const activeLink = nav.querySelector('a[href="' + currentPage + '"]');
if (!activeLink) return;
activeLink.classList.add('active');
let node = activeLink.parentElement;
while (node && node !== nav) {
if (node.classList && node.classList.contains('submenu-group')) {
node.classList.add('open');
setBodyHeight(node);
}
node = node.parentElement;
}
update();
requestAnimationFrame(function () { activeLink.scrollIntoView({ block: 'nearest' }); });
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', activateCurrent);
} else {
activateCurrent();
}
})();
+4
View File
@@ -0,0 +1,4 @@
// Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
// for details on configuring this project to bundle and minify static web assets.
// Write your JavaScript code.
+15
View File
@@ -0,0 +1,15 @@
function switchTab(group, tabId) {
const tablist = document.getElementById('tablist' + group); if (!tablist) return;
const tabs = tablist.querySelectorAll('[role="tab"]');
tabs.forEach(t => { const isTarget = t.getAttribute('aria-controls') === 'panel' + group + '-' + tabId; t.setAttribute('aria-selected', isTarget ? 'true' : 'false'); t.classList.toggle('active', isTarget); });
const panels = tablist.closest('.bg-white') ? tablist.closest('.bg-white').querySelectorAll('[role="tabpanel"]') : tablist.parentElement.parentElement.querySelectorAll('[role="tabpanel"]');
panels.forEach(p => p.classList.toggle('hidden', p.id !== 'panel' + group + '-' + tabId));
}
function switchTabAnimated(group, tabId, btn) {
const tablist = document.getElementById('tablist' + group); if (!tablist) return;
const tabs = tablist.querySelectorAll('[role="tab"]');
tabs.forEach(t => { t.setAttribute('aria-selected', 'false'); t.style.background = ''; t.style.border = ''; t.style.color = ''; });
btn.setAttribute('aria-selected', 'true'); btn.style.background = 'white'; btn.style.border = '1px solid #e5e7eb'; btn.style.borderBottom = '1px solid white'; btn.style.color = '#1e293b';
const panels = tablist.parentElement.parentElement.querySelectorAll('[role="tabpanel"]');
panels.forEach(p => { const isTarget = p.id === 'panel' + group + '-' + tabId; if (isTarget) { p.classList.remove('hidden'); p.classList.add('tp-panel-enter'); const si = p.querySelectorAll('.stagger-item'); si.forEach((it, i) => { it.style.animation = 'none'; it.offsetHeight; it.style.animation = ''; }); } else { p.classList.add('hidden'); p.classList.remove('tp-panel-enter'); } });
}