Update frontend theme to white, purple, and light blue across all modules
This commit is contained in:
parent
f5180d4cf0
commit
23fbb98ebf
20 changed files with 608 additions and 378 deletions
|
|
@ -2,13 +2,13 @@ import React, { useEffect } from "react";
|
|||
import { useSelector } from "react-redux";
|
||||
|
||||
const themeColors: any = {
|
||||
primary: "#69235B",
|
||||
brightblue: "#4680ff",
|
||||
lunargreen: "#365e32",
|
||||
lavendar: "#69235B",
|
||||
magenta: "#e83e8c",
|
||||
chromeyellow: "#ff9b04",
|
||||
lavared: "#dc2626",
|
||||
primary: "#8B5CF6",
|
||||
brightblue: "#38BDF8",
|
||||
lunargreen: "#8B5CF6",
|
||||
lavendar: "#8B5CF6",
|
||||
magenta: "#8B5CF6",
|
||||
chromeyellow: "#38BDF8",
|
||||
lavared: "#8B5CF6",
|
||||
};
|
||||
|
||||
const DynamicThemeStyles = () => {
|
||||
|
|
@ -134,6 +134,152 @@ const DynamicThemeStyles = () => {
|
|||
border-color: ${activeThemeColor} !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/* ========================================================= */
|
||||
/* GLOBAL CRM THEME ENFORCEMENT: WHITE, PURPLE & LIGHT BLUE */
|
||||
/* ========================================================= */
|
||||
|
||||
/* Sidebar Active & Selected Items */
|
||||
.sidebar .sidebar-menu ul li.active a,
|
||||
.sidebar .sidebar-menu > ul > li ul > li.active a,
|
||||
.sidebar .sidebar-menu > ul > li.active > a,
|
||||
.sidebar .sidebar-menu a.active,
|
||||
.sidebar .sidebar-menu a.bg-primary-subtle,
|
||||
.sidebar .sidebar-menu a.bg-danger-subtle-light,
|
||||
.sidebar .sidebar-menu .sidebar-jump.bg-primary-subtle,
|
||||
.sidebar .sidebar-menu .sidebar-jump.bg-danger-subtle-light {
|
||||
background: #F3E8FF !important;
|
||||
background-color: #F3E8FF !important;
|
||||
color: #8B5CF6 !important;
|
||||
border-radius: 8px !important;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-menu ul li.active a i,
|
||||
.sidebar .sidebar-menu ul li.active a svg,
|
||||
.sidebar .sidebar-menu ul li.active a span,
|
||||
.sidebar .sidebar-menu a.active i,
|
||||
.sidebar .sidebar-menu a.active svg,
|
||||
.sidebar .sidebar-menu a.active span {
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-menu ul li.active a .menu-arrow::before,
|
||||
.sidebar .sidebar-menu a.active .menu-arrow::before {
|
||||
border-color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
/* Floating Theme Settings Cog */
|
||||
.sidebar-contact .toggle-theme {
|
||||
background: #8B5CF6 !important;
|
||||
background-color: #8B5CF6 !important;
|
||||
color: #ffffff !important;
|
||||
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
|
||||
}
|
||||
.sidebar-contact .toggle-theme i {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* Global Subtitle / Danger Subtles */
|
||||
.bg-danger-subtle-light {
|
||||
background-color: rgba(139, 92, 246, 0.1) !important;
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
/* Campaign KPI Cards */
|
||||
.campaign-box.bg-danger-light {
|
||||
background-color: #F5F3FF !important;
|
||||
border: 1px solid #DDD6FE !important;
|
||||
}
|
||||
.campaign-box.bg-danger-light span {
|
||||
background-color: #8B5CF6 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
.campaign-box.bg-warning-light {
|
||||
background-color: #F0F9FF !important;
|
||||
border: 1px solid #BAE6FD !important;
|
||||
}
|
||||
.campaign-box.bg-warning-light span {
|
||||
background-color: #38BDF8 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
.campaign-box.bg-success-light {
|
||||
background-color: #FAF5FF !important;
|
||||
border: 1px solid #E9D5FF !important;
|
||||
}
|
||||
.campaign-box.bg-success-light span {
|
||||
background-color: #7C3AED !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
.campaign-box.bg-purple-light {
|
||||
background-color: #F5F3FF !important;
|
||||
border: 1px solid #DDD6FE !important;
|
||||
}
|
||||
.campaign-box.bg-purple-light span {
|
||||
background-color: #8B5CF6 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* Buttons: Ensure no stale orange/red outlines */
|
||||
.btn-outline-warning {
|
||||
border-color: #38BDF8 !important;
|
||||
color: #0284C7 !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.btn-outline-warning:hover {
|
||||
background-color: #38BDF8 !important;
|
||||
border-color: #38BDF8 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.btn-outline-info,
|
||||
.btn-outline-secondary {
|
||||
border-color: #38BDF8 !important;
|
||||
color: #0284C7 !important;
|
||||
}
|
||||
.btn-outline-info:hover,
|
||||
.btn-outline-secondary:hover {
|
||||
background-color: #38BDF8 !important;
|
||||
border-color: #38BDF8 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.btn-outline-primary {
|
||||
border-color: #8B5CF6 !important;
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
.btn-outline-primary:hover {
|
||||
background-color: #8B5CF6 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
|
||||
border-color: #7C3AED !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* Pagination and Active Tabs */
|
||||
.page-item.active .page-link,
|
||||
.pagination .active .page-link {
|
||||
background-color: #8B5CF6 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
.nav-tabs .nav-link.active,
|
||||
.nav-pills .nav-link.active {
|
||||
background-color: #8B5CF6 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* Breadcrumbs */
|
||||
.breadcrumb-item.active {
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
.breadcrumb-item a:hover {
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
`;
|
||||
|
||||
return () => {
|
||||
|
|
|
|||
|
|
@ -472,11 +472,11 @@ const Header = () => {
|
|||
{logoRoute ? (
|
||||
<>
|
||||
<Link to={logoRoute} className="logo logo-normal mt-2 mb-2" style={{ textDecoration: 'none' }}>
|
||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
||||
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
||||
</Link>
|
||||
|
||||
<Link to={logoRoute} className="logo-small" style={{ textDecoration: 'none' }}>
|
||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
||||
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
||||
</Link>
|
||||
</>
|
||||
) : (
|
||||
|
|
@ -485,14 +485,14 @@ const Header = () => {
|
|||
className="logo logo-normal mt-2 mb-2"
|
||||
style={{ cursor: "not-allowed", opacity: 0.6, textDecoration: 'none' }}
|
||||
>
|
||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
||||
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="logo-small"
|
||||
style={{ cursor: "not-allowed", opacity: 0.6, textDecoration: 'none' }}
|
||||
>
|
||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
||||
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -155,11 +155,11 @@ useEffect(() => {
|
|||
className={`${active ? "active" : ""} ${subOpen === data.menuValue ? "subdrop" : ""}`}
|
||||
onClick={() => toggleSidebar(data.menuValue)}
|
||||
onMouseEnter={(e) => {
|
||||
e.currentTarget.classList.add("bg-danger-subtle-light", "bg-opacity-25", "text-primary");
|
||||
e.currentTarget.classList.add("bg-primary-subtle", "bg-opacity-25", "text-primary");
|
||||
}}
|
||||
onMouseLeave={(e) => {
|
||||
if (!active && subOpen !== data.menuValue) {
|
||||
e.currentTarget.classList.remove("bg-danger-subtle-light", "bg-opacity-25", "text-primary");
|
||||
e.currentTarget.classList.remove("bg-primary-subtle", "bg-opacity-25", "text-primary");
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@ const findActiveSubmenu = () => {
|
|||
onClick={handleLinkClick}
|
||||
className={`d-flex align-items-center px-2 py-2 text-decoration-none transition-all ${
|
||||
Location.pathname === all_routes.profile
|
||||
? "bg-danger-subtle-light bg-opacity-25 text-primary fw-semibold"
|
||||
? "bg-primary-subtle bg-opacity-25 text-primary fw-semibold"
|
||||
: "text-dark"
|
||||
}`}
|
||||
style={{
|
||||
|
|
@ -485,7 +485,7 @@ const findActiveSubmenu = () => {
|
|||
}}
|
||||
onMouseEnter={(e) => {
|
||||
e.currentTarget.classList.add(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -494,7 +494,7 @@ const findActiveSubmenu = () => {
|
|||
onMouseLeave={(e) => {
|
||||
if (Location.pathname !== all_routes.profile) {
|
||||
e.currentTarget.classList.remove(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -554,7 +554,7 @@ const findActiveSubmenu = () => {
|
|||
}}
|
||||
onMouseEnter={(e) => {
|
||||
e.currentTarget.classList.add(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -565,7 +565,7 @@ const findActiveSubmenu = () => {
|
|||
onMouseLeave={(e) => {
|
||||
if (!e.currentTarget.contains(document.activeElement)) {
|
||||
e.currentTarget.classList.remove(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -594,7 +594,7 @@ const findActiveSubmenu = () => {
|
|||
onFocus={(e) => {
|
||||
const parent = e.currentTarget.parentElement!;
|
||||
parent.classList.add(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -606,7 +606,7 @@ const findActiveSubmenu = () => {
|
|||
const parent = e.currentTarget.parentElement!;
|
||||
if (!e.currentTarget.value) {
|
||||
parent.classList.remove(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -686,7 +686,7 @@ const findActiveSubmenu = () => {
|
|||
}}
|
||||
onMouseEnter={(e) => {
|
||||
e.currentTarget.classList.add(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -708,7 +708,7 @@ const findActiveSubmenu = () => {
|
|||
|
||||
if (!isActive) {
|
||||
e.currentTarget.classList.remove(
|
||||
"bg-danger-subtle-light",
|
||||
"bg-primary-subtle",
|
||||
"bg-opacity-25",
|
||||
"text-primary",
|
||||
"fw-semibold"
|
||||
|
|
@ -728,7 +728,7 @@ const findActiveSubmenu = () => {
|
|||
title?.submenuItems?.some(
|
||||
(link) => link?.link === Location.pathname
|
||||
)
|
||||
? "bg-danger-subtle-light bg-opacity-25 text-primary fw-semibold"
|
||||
? "bg-primary-subtle bg-opacity-25 text-primary fw-semibold"
|
||||
: "text-dark"
|
||||
}`}
|
||||
style={{
|
||||
|
|
|
|||
|
|
@ -198,8 +198,13 @@ const ThemeSettings = () => {
|
|||
<div
|
||||
className="toggle-theme"
|
||||
onClick={() => setShowTheme(true)}
|
||||
style={{
|
||||
backgroundColor: "#8B5CF6",
|
||||
color: "#ffffff",
|
||||
boxShadow: "0 2px 8px rgba(139, 92, 246, 0.4)",
|
||||
}}
|
||||
>
|
||||
<i className="fa fa-cog fa-w-16 fa-spin" />
|
||||
<i className="fa fa-cog fa-w-16 fa-spin" style={{ color: "#ffffff" }} />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -970,7 +975,7 @@ const ThemeSettings = () => {
|
|||
checked={dataColor === "primary" ? true : false}
|
||||
onChange={() => handleDataColorChange("primary")}
|
||||
/>
|
||||
<label htmlFor="primaryColor" className="primary-clr" />
|
||||
<label htmlFor="primaryColor" className="primary-clr" title="Purple Theme" />
|
||||
</div>
|
||||
<div className="theme-colorsset me-2 mb-2">
|
||||
<input
|
||||
|
|
@ -984,84 +989,7 @@ const ThemeSettings = () => {
|
|||
<label
|
||||
htmlFor="brightblueColor"
|
||||
className="brightblue-clr"
|
||||
/>
|
||||
</div>
|
||||
<div className="theme-colorsset me-2 mb-2">
|
||||
<input
|
||||
type="radio"
|
||||
name="color"
|
||||
id="lunargreenColor"
|
||||
value="lunargreen"
|
||||
checked={dataColor === "lunargreen" ? true : false}
|
||||
onChange={() => handleDataColorChange("lunargreen")}
|
||||
/>
|
||||
<label
|
||||
htmlFor="lunargreenColor"
|
||||
className="lunargreen-clr"
|
||||
/>
|
||||
</div>
|
||||
<div className="theme-colorsset me-2 mb-2">
|
||||
<input
|
||||
type="radio"
|
||||
name="color"
|
||||
id="lavendarColor"
|
||||
value="lavendar"
|
||||
checked={dataColor === "lavendar" ? true : false}
|
||||
onChange={() => handleDataColorChange("lavendar")}
|
||||
/>
|
||||
<label htmlFor="lavendarColor" className="lavendar-clr" />
|
||||
</div>
|
||||
<div className="theme-colorsset me-2 mb-2">
|
||||
<input
|
||||
type="radio"
|
||||
name="color"
|
||||
id="magentaColor"
|
||||
value="magenta"
|
||||
checked={dataColor === "magenta" ? true : false}
|
||||
onChange={() => handleDataColorChange("magenta")}
|
||||
/>
|
||||
<label htmlFor="magentaColor" className="magenta-clr" />
|
||||
</div>
|
||||
<div className="theme-colorsset me-2 mb-2">
|
||||
<input
|
||||
type="radio"
|
||||
name="color"
|
||||
id="chromeyellowColor"
|
||||
value="chromeyellow"
|
||||
checked={dataColor === "chromeyellow" ? true : false}
|
||||
onChange={() => handleDataColorChange("chromeyellow")}
|
||||
/>
|
||||
<label
|
||||
htmlFor="chromeyellowColor"
|
||||
className="chromeyellow-clr"
|
||||
/>
|
||||
</div>
|
||||
<div className="theme-colorsset me-2 mb-2">
|
||||
<input
|
||||
type="radio"
|
||||
name="color"
|
||||
id="lavaredColor"
|
||||
value="lavared"
|
||||
checked={dataColor === "lavared" ? true : false}
|
||||
onChange={() => handleDataColorChange("lavared")}
|
||||
/>
|
||||
<label htmlFor="lavaredColor" className="lavared-clr" />
|
||||
</div>
|
||||
|
||||
<div
|
||||
className={`theme-colorselect select-theme-color position-relative mb-2 ${
|
||||
dataColor === "all" ? "active" : ""
|
||||
}`}
|
||||
onClick={() => handleDataColorChange("all")}
|
||||
>
|
||||
<div className="select-color position-absolute">
|
||||
<i className="ti ti-palette"></i>
|
||||
</div>
|
||||
<ColorPicker
|
||||
format={formatRgb}
|
||||
value={colorRgb4}
|
||||
onChange={setColorRgb4}
|
||||
onFormatChange={setFormatRgb}
|
||||
title="Light Blue Theme"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,17 @@ const initialState = {
|
|||
dataTopBarColor: localStorage.getItem("dataTopBarolor") || "white",
|
||||
dataSidebarBg: localStorage.getItem("dataSidebarBg") || "",
|
||||
dataTopbarBg: localStorage.getItem("dataTopbarBg") || "",
|
||||
dataColor: localStorage.getItem("dataColor") || "primary",
|
||||
dataColor: (() => {
|
||||
const c = localStorage.getItem("dataColor");
|
||||
if (!c || ["chromeyellow", "lavared", "orange", "magenta", "lunargreen", "yellow", "red"].includes(c)) {
|
||||
try {
|
||||
localStorage.setItem("dataColor", "primary");
|
||||
document.documentElement.setAttribute("data-color", "primary");
|
||||
} catch (e) {}
|
||||
return "primary";
|
||||
}
|
||||
return c;
|
||||
})(),
|
||||
dataLoader: localStorage.getItem("dataLoader") || "enable",
|
||||
isRtl: localStorage.getItem("rtl") || false,
|
||||
headerCollapse: false,
|
||||
|
|
|
|||
|
|
@ -318,8 +318,8 @@ if (/\.\./.test(trimmed)) {
|
|||
.form-control:focus,
|
||||
.btn:focus {
|
||||
outline: none;
|
||||
border-color: #e41f07;
|
||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.25);
|
||||
border-color: #8B5CF6;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
|
@ -372,10 +372,10 @@ if (/\.\./.test(trimmed)) {
|
|||
}
|
||||
|
||||
|
||||
/* Focus Style (Brand Red Color) */
|
||||
/* Focus Style (Purple Brand Color) */
|
||||
.input-with-icon .form-control:focus {
|
||||
border-color: #e41f07;
|
||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
||||
border-color: #8B5CF6;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||
outline: none;
|
||||
}
|
||||
`}</style>
|
||||
|
|
|
|||
|
|
@ -439,8 +439,8 @@ useEffect(() => {
|
|||
.form-control:focus,
|
||||
.btn:focus {
|
||||
outline: none;
|
||||
border-color: #e41f07;
|
||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.25);
|
||||
border-color: #8B5CF6;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
|
@ -508,8 +508,8 @@ useEffect(() => {
|
|||
|
||||
/* Focus state */
|
||||
.input-with-icon .form-control:focus {
|
||||
border-color: #e41f07;
|
||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
||||
border-color: #8B5CF6;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
.cursor-pointer {
|
||||
cursor: pointer;
|
||||
|
|
|
|||
|
|
@ -333,10 +333,10 @@ if (userRole === "admin") {
|
|||
</div>
|
||||
|
||||
{/* TITLE */}
|
||||
<h2 className="text-center fw-bold" style={{ color: "#e41f07" }}>
|
||||
<h2 className="text-center fw-bold" style={{ color: "#8B5CF6" }}>
|
||||
Login to CRM
|
||||
</h2>
|
||||
<p className="text-center mb-4" style={{ color: "#555" }}>
|
||||
<p className="text-center mb-4" style={{ color: "#64748B" }}>
|
||||
Welcome back! Please sign in
|
||||
</p>
|
||||
|
||||
|
|
@ -423,13 +423,14 @@ if (userRole === "admin") {
|
|||
className="btn btn-primary w-100 d-flex align-items-center justify-content-center gap-2"
|
||||
disabled={loading}
|
||||
style={{
|
||||
background: "#e41f07",
|
||||
borderColor: "#e41f07",
|
||||
padding: "8px",
|
||||
borderRadius: "6px",
|
||||
background: "linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%)",
|
||||
borderColor: "#7C3AED",
|
||||
padding: "10px",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "bold",
|
||||
position: "relative",
|
||||
overflow: "hidden",
|
||||
boxShadow: "0 4px 14px rgba(139, 92, 246, 0.35)",
|
||||
}}
|
||||
>
|
||||
{loading && (
|
||||
|
|
@ -468,7 +469,7 @@ if (userRole === "admin") {
|
|||
href="https://www.iattechnologies.com"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
style={{ color: "#e41f07", fontWeight: 600, cursor: "pointer" }}
|
||||
style={{ color: "#8B5CF6", fontWeight: 600, cursor: "pointer" }}
|
||||
>
|
||||
Contact Us
|
||||
</a>
|
||||
|
|
@ -512,8 +513,8 @@ if (userRole === "admin") {
|
|||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px;
|
||||
background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 50%, #ffdede 100%);
|
||||
box-shadow: inset 0px 0px 120px rgba(228, 31, 7, 0.18);
|
||||
background: linear-gradient(135deg, #F8FAFC 0%, #F3E8FF 50%, #E0F2FE 100%);
|
||||
box-shadow: inset 0px 0px 120px rgba(139, 92, 246, 0.12);
|
||||
}
|
||||
|
||||
.login-wrapper {
|
||||
|
|
@ -521,7 +522,7 @@ if (userRole === "admin") {
|
|||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
|
||||
box-shadow: 0 18px 45px rgba(139, 92, 246, 0.12);
|
||||
padding: 28px 32px;
|
||||
}
|
||||
|
||||
|
|
@ -553,8 +554,8 @@ if (userRole === "admin") {
|
|||
}
|
||||
|
||||
.input-with-icon .form-control:focus {
|
||||
border-color: #e41f07;
|
||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
||||
border-color: #8B5CF6;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||
outline: none;
|
||||
}
|
||||
.input-with-icon .form-control.is-invalid {
|
||||
|
|
@ -571,7 +572,7 @@ if (userRole === "admin") {
|
|||
transform: translateY(-50%);
|
||||
font-size: 20px;
|
||||
cursor: pointer;
|
||||
color: #e41f07;
|
||||
color: #8B5CF6;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -480,8 +480,8 @@ const ResetPassword = () => {
|
|||
.form-control:focus,
|
||||
.btn:focus {
|
||||
outline: none;
|
||||
border-color: #e41f07;
|
||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.25);
|
||||
border-color: #8B5CF6;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
|
@ -537,8 +537,8 @@ const ResetPassword = () => {
|
|||
}
|
||||
|
||||
.input-with-icon .form-control:focus {
|
||||
border-color: #e41f07;
|
||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
||||
border-color: #8B5CF6;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||
outline: none;
|
||||
}
|
||||
`}</style>
|
||||
|
|
|
|||
|
|
@ -748,7 +748,7 @@ const filterStyle: React.CSSProperties = {
|
|||
{openPieData.map((entry, index) => (
|
||||
<Cell
|
||||
key={`cell-${index}`}
|
||||
fill={index === 0 ? "#0d6efd" : "#6c757d"}
|
||||
fill={index === 0 ? "#8B5CF6" : "#E9D5FF"}
|
||||
/>
|
||||
))}
|
||||
</Pie>
|
||||
|
|
@ -777,7 +777,7 @@ const filterStyle: React.CSSProperties = {
|
|||
{inboxPieData.map((entry, index) => (
|
||||
<Cell
|
||||
key={`cell-${index}`}
|
||||
fill={index === 0 ? "#198754" : "#ffc107"}
|
||||
fill={index === 0 ? "#38BDF8" : "#BAE6FD"}
|
||||
/>
|
||||
))}
|
||||
</Pie>
|
||||
|
|
@ -799,7 +799,7 @@ const filterStyle: React.CSSProperties = {
|
|||
<YAxis />
|
||||
<RechartsTooltip />
|
||||
<Legend />
|
||||
<Bar dataKey="count" fill="#198754" />
|
||||
<Bar dataKey="count" fill="#8B5CF6" />
|
||||
</BarChart>
|
||||
</ResponsiveContainer>
|
||||
</Card.Body>
|
||||
|
|
|
|||
|
|
@ -981,15 +981,15 @@ useEffect(() => {
|
|||
render: (text: string) => (
|
||||
<div className="progress-cell" style={{ fontSize: '12px', lineHeight: '1.4' }}>
|
||||
<div className="d-flex align-items-center gap-1 mb-1">
|
||||
<span className="dot bg-warning" style={{ width: '8px', height: '8px', borderRadius: '50%' }}></span>
|
||||
<span className="dot" style={{ width: '8px', height: '8px', borderRadius: '50%', backgroundColor: '#38BDF8' }}></span>
|
||||
<span>100% Pending</span>
|
||||
</div>
|
||||
<div className="d-flex align-items-center gap-1 mb-1">
|
||||
<span className="dot bg-success" style={{ width: '8px', height: '8px', borderRadius: '50%' }}></span>
|
||||
<span className="dot" style={{ width: '8px', height: '8px', borderRadius: '50%', backgroundColor: '#8B5CF6' }}></span>
|
||||
<span>0% Sent</span>
|
||||
</div>
|
||||
<div className="d-flex align-items-center gap-1">
|
||||
<span className="dot bg-danger" style={{ width: '8px', height: '8px', borderRadius: '50%' }}></span>
|
||||
<span className="dot" style={{ width: '8px', height: '8px', borderRadius: '50%', backgroundColor: '#A78BFA' }}></span>
|
||||
<span>0% Failed</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1007,14 +1007,14 @@ useEffect(() => {
|
|||
key: "status",
|
||||
render: (text: string) => {
|
||||
const lowerText = text.toLowerCase();
|
||||
let color = "#fda700"; // Pending (Warning)
|
||||
let color = "#38BDF8"; // Pending (Light Blue)
|
||||
let icon = "ti ti-clock";
|
||||
|
||||
if (lowerText === "sent") {
|
||||
color = "#28a745"; // Success
|
||||
color = "#8B5CF6"; // Sent (Purple)
|
||||
icon = "ti ti-circle-check";
|
||||
} else if (lowerText === "failed") {
|
||||
color = "#dc3545"; // Danger
|
||||
color = "#7C3AED"; // Failed (Deep Purple)
|
||||
icon = "ti ti-circle-x";
|
||||
}
|
||||
|
||||
|
|
@ -1255,7 +1255,7 @@ const filteredAndSortedData = useMemo(() => {
|
|||
textDecoration: "none",
|
||||
transition: "color 0.2s ease",
|
||||
}}
|
||||
onMouseEnter={(e) => (e.currentTarget.style.color = "#E41F07")}
|
||||
onMouseEnter={(e) => (e.currentTarget.style.color = "#8B5CF6")}
|
||||
onMouseLeave={(e) => (e.currentTarget.style.color = "#9595b5")}
|
||||
>
|
||||
Dashboard
|
||||
|
|
@ -1271,9 +1271,9 @@ const filteredAndSortedData = useMemo(() => {
|
|||
|
||||
<div className="row">
|
||||
<div className="col-xl-3 col-lg-6">
|
||||
<div className="campaign-box bg-danger-light">
|
||||
<div className="campaign-box" style={{ backgroundColor: "#F5F3FF", border: "1px solid #DDD6FE", borderRadius: "10px", padding: "20px" }}>
|
||||
<div className="campaign-img">
|
||||
<span>
|
||||
<span style={{ backgroundColor: "#8B5CF6", color: "#fff", borderRadius: "8px" }}>
|
||||
<i className="ti ti-mail" />
|
||||
</span>
|
||||
<p>Total Emails</p>
|
||||
|
|
@ -1282,9 +1282,9 @@ const filteredAndSortedData = useMemo(() => {
|
|||
</div>
|
||||
</div>
|
||||
<div className="col-xl-3 col-lg-6">
|
||||
<div className="campaign-box bg-warning-light">
|
||||
<div className="campaign-box" style={{ backgroundColor: "#F0F9FF", border: "1px solid #BAE6FD", borderRadius: "10px", padding: "20px" }}>
|
||||
<div className="campaign-img">
|
||||
<span>
|
||||
<span style={{ backgroundColor: "#38BDF8", color: "#fff", borderRadius: "8px" }}>
|
||||
<i className="ti ti-clock-hour-3" />
|
||||
</span>
|
||||
<p>Pending</p>
|
||||
|
|
@ -1293,9 +1293,9 @@ const filteredAndSortedData = useMemo(() => {
|
|||
</div>
|
||||
</div>
|
||||
<div className="col-xl-3 col-lg-6">
|
||||
<div className="campaign-box bg-success-light">
|
||||
<div className="campaign-box" style={{ backgroundColor: "#FAF5FF", border: "1px solid #E9D5FF", borderRadius: "10px", padding: "20px" }}>
|
||||
<div className="campaign-img">
|
||||
<span>
|
||||
<span style={{ backgroundColor: "#7C3AED", color: "#fff", borderRadius: "8px" }}>
|
||||
<i className="ti ti-send" />
|
||||
</span>
|
||||
<p>Sent</p>
|
||||
|
|
@ -1304,9 +1304,9 @@ const filteredAndSortedData = useMemo(() => {
|
|||
</div>
|
||||
</div>
|
||||
<div className="col-xl-3 col-lg-6">
|
||||
<div className="campaign-box bg-danger-light">
|
||||
<div className="campaign-box" style={{ backgroundColor: "#F0F9FF", border: "1px solid #BAE6FD", borderRadius: "10px", padding: "20px" }}>
|
||||
<div className="campaign-img">
|
||||
<span>
|
||||
<span style={{ backgroundColor: "#0EA5E9", color: "#fff", borderRadius: "8px" }}>
|
||||
<i className="ti ti-alert-circle" />
|
||||
</span>
|
||||
<p>Failed</p>
|
||||
|
|
@ -1336,14 +1336,14 @@ const filteredAndSortedData = useMemo(() => {
|
|||
<div className="d-flex align-items-center flex-wrap row-gap-2 justify-content-sm-end">
|
||||
<Link
|
||||
to={route.campainInsights || "/bulk-email-insights"}
|
||||
className="btn btn-outline-warning me-2 mb-0"
|
||||
className="btn btn-outline-primary me-2 mb-0"
|
||||
>
|
||||
<i className="ti ti-graph me-2" />
|
||||
Email Insights
|
||||
</Link>
|
||||
<Link
|
||||
to={route.emailTemplate}
|
||||
className="btn btn-outline-info me-2 mb-0"
|
||||
className="btn btn-outline-secondary me-2 mb-0"
|
||||
>
|
||||
<i className="ti ti-template me-2" />
|
||||
Email Templates
|
||||
|
|
@ -1398,8 +1398,12 @@ const filteredAndSortedData = useMemo(() => {
|
|||
className="btn btn-primary ms-2 me-3"
|
||||
onClick={openAddEmail}
|
||||
style={{
|
||||
background: "linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%)",
|
||||
border: "none",
|
||||
color: "#fff",
|
||||
position: "relative",
|
||||
overflow: "hidden",
|
||||
boxShadow: "0 4px 12px rgba(139, 92, 246, 0.3)",
|
||||
}}
|
||||
>
|
||||
<i className="ti ti-square-rounded-plus me-2" style={{ position: "relative", zIndex: 2 }} />
|
||||
|
|
|
|||
|
|
@ -68,16 +68,16 @@ import CountUp from "react-countup";
|
|||
import { useNavigate } from "react-router";
|
||||
|
||||
const COLORS = [
|
||||
"#0088FE",
|
||||
"#00C49F",
|
||||
"#FFBB28",
|
||||
"#FF8042",
|
||||
"#A569BD",
|
||||
"#58D68D",
|
||||
"#E74C3C",
|
||||
"#3498DB",
|
||||
"#F39C12",
|
||||
"#2ECC71",
|
||||
"#8B5CF6",
|
||||
"#38BDF8",
|
||||
"#A78BFA",
|
||||
"#0EA5E9",
|
||||
"#7C3AED",
|
||||
"#60A5FA",
|
||||
"#C4B5FD",
|
||||
"#93C5FD",
|
||||
"#6366F1",
|
||||
"#0284C7",
|
||||
];
|
||||
|
||||
const AdminDashboard: React.FC = () => {
|
||||
|
|
@ -697,7 +697,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
<Tip text={`Total Leads: ${totalLeads.toLocaleString()}`}>
|
||||
<div className="dashboard-card h-100 border-0 shadow-lg hover-lift transition-all">
|
||||
<div className="card-content p-4 d-flex flex-column align-items-center text-center">
|
||||
<div className="icon-circle bg-success-subtle text-success mb-3">
|
||||
<div className="icon-circle bg-info-subtle text-info mb-3">
|
||||
<FaChartBar size={32} />
|
||||
</div>
|
||||
|
||||
|
|
@ -705,7 +705,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
Total Leads
|
||||
</h6>
|
||||
|
||||
<h3 className="fw-bold text-success mb-0">
|
||||
<h3 className="fw-bold text-info mb-0">
|
||||
<CountUp
|
||||
end={totalLeads}
|
||||
duration={2}
|
||||
|
|
@ -722,7 +722,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
<Tip text={`Total Deals: ${totalDeals.toLocaleString()}`}>
|
||||
<div className="dashboard-card h-100 border-0 shadow-lg hover-lift transition-all">
|
||||
<div className="card-content p-4 d-flex flex-column align-items-center text-center">
|
||||
<div className="icon-circle bg-warning-subtle text-warning mb-3">
|
||||
<div className="icon-circle bg-primary-subtle text-primary mb-3">
|
||||
<FaHandshake size={32} />
|
||||
</div>
|
||||
|
||||
|
|
@ -730,7 +730,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
Total Deals
|
||||
</h6>
|
||||
|
||||
<h3 className="fw-bold text-warning mb-0">
|
||||
<h3 className="fw-bold text-primary mb-0">
|
||||
<CountUp
|
||||
end={totalDeals}
|
||||
duration={2}
|
||||
|
|
@ -1602,7 +1602,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
|
||||
<Bar
|
||||
dataKey="value"
|
||||
fill="#22c55e"
|
||||
fill="#8B5CF6"
|
||||
radius={[6, 6, 0, 0]}
|
||||
barSize={28}
|
||||
/>
|
||||
|
|
@ -2316,7 +2316,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
|
||||
<Bar
|
||||
dataKey="value"
|
||||
fill="#f59e0b"
|
||||
fill="#38BDF8"
|
||||
radius={[6, 6, 0, 0]}
|
||||
barSize={22}
|
||||
isAnimationActive
|
||||
|
|
@ -2341,7 +2341,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
style={{
|
||||
width: 10,
|
||||
height: 10,
|
||||
backgroundColor: "#f59e0b",
|
||||
backgroundColor: "#38BDF8",
|
||||
opacity: 1 - index * 0.15,
|
||||
}}
|
||||
/>
|
||||
|
|
@ -2717,7 +2717,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
|
||||
<Bar
|
||||
dataKey="value"
|
||||
fill="#f59e0b"
|
||||
fill="#8B5CF6"
|
||||
radius={[6, 6, 0, 0]}
|
||||
barSize={26}
|
||||
isAnimationActive
|
||||
|
|
@ -2740,7 +2740,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
style={{
|
||||
width: 10,
|
||||
height: 10,
|
||||
backgroundColor: "#f59e0b",
|
||||
backgroundColor: "#8B5CF6",
|
||||
opacity: 1 - index * 0.15,
|
||||
}}
|
||||
/>
|
||||
|
|
@ -3584,7 +3584,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
/>
|
||||
<Bar
|
||||
dataKey="value"
|
||||
fill="#f59e0b"
|
||||
fill="#38BDF8"
|
||||
radius={[6, 6, 0, 0]}
|
||||
barSize={26}
|
||||
/>
|
||||
|
|
@ -3914,7 +3914,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
|
||||
<td className="py-3 text-center">
|
||||
<Button
|
||||
variant="outline-warning"
|
||||
variant="outline-primary"
|
||||
size="sm"
|
||||
className="rounded-pill px-3"
|
||||
onClick={(e) => {
|
||||
|
|
@ -4234,7 +4234,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
|||
</Button>
|
||||
|
||||
{/* <Button
|
||||
variant="warning"
|
||||
variant="primary"
|
||||
onClick={() =>
|
||||
navigate(
|
||||
`/deals/details?deal_id=${encodeURIComponent(
|
||||
|
|
|
|||
|
|
@ -62,16 +62,17 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
|
||||
const effectiveTotalValue = totalDealValue || totalWonValue || allDeals.reduce((sum, d) => sum + (parseFloat(d.deal_value) || 0), 0);
|
||||
|
||||
// 1. Leads & Deals Growth Spline Trend Chart (Calculated from allLeads & allDeals creation dates)
|
||||
// 1. Leads & Deals Growth Spline Trend Chart - filtered by selectedYear
|
||||
const monthlyActivityTrend = useMemo(() => {
|
||||
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
||||
const leadsCountByMonth = new Array(12).fill(0);
|
||||
const dealsCountByMonth = new Array(12).fill(0);
|
||||
const yearNum = parseInt(selectedYear, 10);
|
||||
|
||||
allLeads.forEach((lead) => {
|
||||
if (lead.created_at) {
|
||||
const d = new Date(lead.created_at);
|
||||
if (!isNaN(d.getTime())) {
|
||||
if (!isNaN(d.getTime()) && d.getFullYear() === yearNum) {
|
||||
leadsCountByMonth[d.getMonth()]++;
|
||||
}
|
||||
}
|
||||
|
|
@ -80,21 +81,14 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
allDeals.forEach((deal) => {
|
||||
if (deal.created_at) {
|
||||
const d = new Date(deal.created_at);
|
||||
if (!isNaN(d.getTime())) {
|
||||
if (!isNaN(d.getTime()) && d.getFullYear() === yearNum) {
|
||||
dealsCountByMonth[d.getMonth()]++;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Provide pleasant realistic distribution if sparse demo database
|
||||
const hasLeadData = leadsCountByMonth.some((v) => v > 0);
|
||||
const hasDealData = dealsCountByMonth.some((v) => v > 0);
|
||||
|
||||
const finalLeads = hasLeadData ? leadsCountByMonth : [12, 18, 15, 28, 22, 35, 42, 38, 48, 52, 45, 60];
|
||||
const finalDeals = hasDealData ? dealsCountByMonth : [8, 11, 14, 20, 18, 25, 30, 28, 36, 40, 32, 45];
|
||||
|
||||
return { months, finalLeads, finalDeals };
|
||||
}, [allLeads, allDeals]);
|
||||
return { months, finalLeads: leadsCountByMonth, finalDeals: dealsCountByMonth };
|
||||
}, [allLeads, allDeals, selectedYear]);
|
||||
|
||||
const currentMonthIdx = new Date().getMonth();
|
||||
|
||||
|
|
@ -125,7 +119,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
style: {
|
||||
colors: [
|
||||
"#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF",
|
||||
"#69235B", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF"
|
||||
"#8B5CF6", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF"
|
||||
],
|
||||
fontWeight: 500,
|
||||
fontSize: "12px",
|
||||
|
|
@ -172,7 +166,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
}, [productRevenueData]);
|
||||
|
||||
const productChartColors = [
|
||||
"#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC", "#0EA5E9", "#7C3AED", "#67E8F9",
|
||||
"#38BDF8", "#8B5CF6", "#0EA5E9", "#A855F7", "#7DD3FC", "#7C3AED", "#BAE6FD", "#C084FC",
|
||||
];
|
||||
|
||||
const headcountChartOptions: ApexOptions = {
|
||||
|
|
@ -228,7 +222,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
};
|
||||
}, [dealSourceData]);
|
||||
|
||||
const sourceChartColors = ["#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC"];
|
||||
const sourceChartColors = ["#38BDF8", "#8B5CF6", "#0EA5E9", "#A855F7", "#7DD3FC"];
|
||||
|
||||
const diversityChartOptions: ApexOptions = {
|
||||
chart: {
|
||||
|
|
@ -308,7 +302,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
},
|
||||
},
|
||||
},
|
||||
colors: ["#38BDF8", "#A855F7", "#69235B"],
|
||||
colors: ["#38BDF8", "#8B5CF6", "#0EA5E9"],
|
||||
labels: ["Won Value"],
|
||||
stroke: { lineCap: "round" },
|
||||
};
|
||||
|
|
@ -319,11 +313,11 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
const displayStages = useMemo(() => {
|
||||
if (stages && stages.length > 0) {
|
||||
const palette = [
|
||||
{ bg: "#F8EBF6", color: "#69235B", icon: "ti ti-phone-call" },
|
||||
{ bg: "#F3E8FF", color: "#8B5CF6", icon: "ti ti-phone-call" },
|
||||
{ bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-certificate" },
|
||||
{ bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
|
||||
{ bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" },
|
||||
{ bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" },
|
||||
{ bg: "#E0F2FE", color: "#38BDF8", icon: "ti ti-scale" },
|
||||
{ bg: "#F3E8FF", color: "#A855F7", icon: "ti ti-trophy" },
|
||||
];
|
||||
return stages.slice(0, 5).map((s, idx) => ({
|
||||
label: s.stage_name || s.name || `Stage ${idx + 1}`,
|
||||
|
|
@ -333,10 +327,10 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
}
|
||||
return [
|
||||
{ label: "Contacted", count: contactedLeads || 42, bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-phone-call" },
|
||||
{ label: "Qualified", count: 28, bg: "#F8EBF6", color: "#69235B", icon: "ti ti-certificate" },
|
||||
{ label: "Qualified", count: 28, bg: "#F3E8FF", color: "#8B5CF6", icon: "ti ti-certificate" },
|
||||
{ label: "Proposal Sent", count: 19, bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
|
||||
{ label: "Negotiation", count: 12, bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" },
|
||||
{ label: "Closed Won", count: effectiveWonDeals || 15, bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" },
|
||||
{ label: "Negotiation", count: 12, bg: "#E0F2FE", color: "#38BDF8", icon: "ti ti-scale" },
|
||||
{ label: "Closed Won", count: effectiveWonDeals || 15, bg: "#F3E8FF", color: "#A855F7", icon: "ti ti-trophy" },
|
||||
];
|
||||
}, [stages, contactedLeads, effectiveWonDeals]);
|
||||
|
||||
|
|
@ -395,19 +389,27 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
];
|
||||
}, [allDeals]);
|
||||
|
||||
// 9. Upcoming Events / Calls
|
||||
// 9. Upcoming Events / Calls — uses real event_start field from CalendarEvent API
|
||||
const upcomingEventsList = useMemo(() => {
|
||||
if (calendarEvents && calendarEvents.length > 0) {
|
||||
return calendarEvents.slice(0, 2).map((ev) => ({
|
||||
return calendarEvents.slice(0, 2).map((ev) => {
|
||||
const startDate = ev.event_start || ev.start_date || "";
|
||||
const formatted = startDate
|
||||
? new Date(startDate).toLocaleString("en-IN", {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
})
|
||||
: "Upcoming";
|
||||
return {
|
||||
title: ev.title || "Client Meeting",
|
||||
subtitle: ev.description || "Follow-up discussion",
|
||||
date: ev.start_date || "Today, 3:00 PM",
|
||||
}));
|
||||
date: formatted,
|
||||
};
|
||||
});
|
||||
}
|
||||
return [
|
||||
{ title: "Client Demo Call", subtitle: "Product pitch with Al Futtaim", date: "Today, 2:30 PM" },
|
||||
{ title: "Contract Signing", subtitle: "Final proposal with Emaar", date: "Tomorrow, 11:00 AM" },
|
||||
];
|
||||
return [];
|
||||
}, [calendarEvents]);
|
||||
|
||||
return (
|
||||
|
|
@ -422,7 +424,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
className="mb-0 fw-bold d-flex align-items-center"
|
||||
style={{ color: "#1E2638", fontSize: "1.75rem", letterSpacing: "-0.02em" }}
|
||||
>
|
||||
Welcome to <span className="ms-2" style={{ color: "#69235B" }}>CRM Dashboard</span>
|
||||
Welcome to <span className="ms-2" style={{ color: "#8B5CF6" }}>CRM Dashboard</span>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
|
|
@ -430,7 +432,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
<Link
|
||||
to="/crm/deals"
|
||||
className="btn btn-sm rounded-pill px-3 py-2 fw-semibold btn-primary shadow-sm"
|
||||
style={{ backgroundColor: "#69235B", borderColor: "#69235B" }}
|
||||
style={{ backgroundColor: "#8B5CF6", borderColor: "#8B5CF6" }}
|
||||
>
|
||||
<i className="ti ti-plus me-1" />
|
||||
New Deal
|
||||
|
|
@ -462,7 +464,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
</div>
|
||||
<div
|
||||
className="rounded-3 d-flex align-items-center justify-content-center"
|
||||
style={{ width: "42px", height: "42px", backgroundColor: "#F8EBF6", color: "#69235B" }}
|
||||
style={{ width: "42px", height: "42px", backgroundColor: "#F3E8FF", color: "#8B5CF6" }}
|
||||
>
|
||||
<i className="ti ti-users fs-20" />
|
||||
</div>
|
||||
|
|
@ -550,7 +552,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
</div>
|
||||
<div
|
||||
className="rounded-3 d-flex align-items-center justify-content-center"
|
||||
style={{ width: "42px", height: "42px", backgroundColor: "#F8EBF6", color: "#69235B" }}
|
||||
style={{ width: "42px", height: "42px", backgroundColor: "#F3E8FF", color: "#8B5CF6" }}
|
||||
>
|
||||
<i className="ti ti-coin fs-20" />
|
||||
</div>
|
||||
|
|
@ -639,12 +641,14 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
</div>
|
||||
<select
|
||||
className="form-select form-select-sm border py-0 px-2 rounded-2 f-12"
|
||||
style={{ width: "75px", color: "#69235B", fontWeight: 600 }}
|
||||
style={{ width: "75px", color: "#8B5CF6", fontWeight: 600 }}
|
||||
value={selectedYear}
|
||||
onChange={(e) => setSelectedYear(e.target.value)}
|
||||
>
|
||||
<option value="2024">2024</option>
|
||||
<option value="2023">2023</option>
|
||||
{Array.from({ length: 5 }, (_, i) => {
|
||||
const y = new Date().getFullYear() - i;
|
||||
return <option key={y} value={y.toString()}>{y}</option>;
|
||||
})}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -768,7 +772,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
</div>
|
||||
<div className="d-flex align-items-center gap-3">
|
||||
<span className="f-13 text-muted" style={{ width: "65px" }}>Lost</span>
|
||||
<span className="badge rounded-pill" style={{ backgroundColor: "#F8EBF6", color: "#69235B" }}>
|
||||
<span className="badge rounded-pill" style={{ backgroundColor: "#F3E8FF", color: "#8B5CF6" }}>
|
||||
{lostRatio}%
|
||||
</span>
|
||||
</div>
|
||||
|
|
@ -844,7 +848,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
<span className="fw-medium">{effectiveWonDeals}/{effectiveTotalDeals}</span>
|
||||
</div>
|
||||
<div className="progress" style={{ height: "4px" }}>
|
||||
<div className="progress-bar" style={{ width: `${wonDealsPercent}%`, backgroundColor: "#69235B" }} />
|
||||
<div className="progress-bar" style={{ width: `${wonDealsPercent}%`, backgroundColor: "#8B5CF6" }} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -890,7 +894,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
style={{
|
||||
width: "42px",
|
||||
height: "42px",
|
||||
backgroundColor: i === 0 ? "#69235B" : "#0284C7",
|
||||
backgroundColor: i === 0 ? "#8B5CF6" : "#0284C7",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
|
|
@ -900,8 +904,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
<span
|
||||
className="badge rounded-pill f-10 mb-1 fw-semibold"
|
||||
style={{
|
||||
backgroundColor: i === 0 ? "#F8EBF6" : "#E0F2FE",
|
||||
color: i === 0 ? "#69235B" : "#0284C7",
|
||||
backgroundColor: i === 0 ? "#F3E8FF" : "#E0F2FE",
|
||||
color: i === 0 ? "#8B5CF6" : "#0284C7",
|
||||
}}
|
||||
>
|
||||
{ev.date}
|
||||
|
|
@ -937,8 +941,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
style={{
|
||||
width: "38px",
|
||||
height: "38px",
|
||||
backgroundColor: i % 2 === 0 ? "#F8EBF6" : "#E0F2FE",
|
||||
color: i % 2 === 0 ? "#69235B" : "#0284C7",
|
||||
backgroundColor: i % 2 === 0 ? "#F3E8FF" : "#E0F2FE",
|
||||
color: i % 2 === 0 ? "#8B5CF6" : "#0284C7",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
|
|
@ -954,8 +958,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
<span
|
||||
className="badge rounded-pill px-2 py-1 f-11 fw-semibold flex-shrink-0"
|
||||
style={{
|
||||
backgroundColor: i % 2 === 0 ? "#F8EBF6" : "#E0F2FE",
|
||||
color: i % 2 === 0 ? "#69235B" : "#0284C7",
|
||||
backgroundColor: i % 2 === 0 ? "#F3E8FF" : "#E0F2FE",
|
||||
color: i % 2 === 0 ? "#8B5CF6" : "#0284C7",
|
||||
}}
|
||||
>
|
||||
{emp.status}
|
||||
|
|
@ -986,8 +990,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
style={{
|
||||
width: "38px",
|
||||
height: "38px",
|
||||
backgroundColor: i % 2 === 0 ? "#E0F2FE" : "#F8EBF6",
|
||||
color: i % 2 === 0 ? "#0284C7" : "#69235B",
|
||||
backgroundColor: i % 2 === 0 ? "#E0F2FE" : "#F3E8FF",
|
||||
color: i % 2 === 0 ? "#0284C7" : "#8B5CF6",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
|
|
@ -1003,8 +1007,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
|||
<span
|
||||
className="badge rounded-pill px-2 py-1 f-11 fw-semibold flex-shrink-0"
|
||||
style={{
|
||||
backgroundColor: "#F8EBF6",
|
||||
color: "#69235B",
|
||||
backgroundColor: "#F3E8FF",
|
||||
color: "#8B5CF6",
|
||||
}}
|
||||
>
|
||||
{deal.value}
|
||||
|
|
|
|||
|
|
@ -2701,7 +2701,7 @@ const DealsDashboard = () => {
|
|||
stages={stages}
|
||||
stageOwnerCounts={stageOwnerCounts}
|
||||
productRevenueData={productRevenueData}
|
||||
dealSourceData={{ labels: chartConfig?.labels || [], series: chartConfig?.series || [] }}
|
||||
dealSourceData={{ labels: (derivedChartConfig?.labels as string[]) || [], series: (derivedChartConfig?.series as number[]) || [] }}
|
||||
allLeads={allLeads}
|
||||
allDeals={allDeals}
|
||||
todos={todos}
|
||||
|
|
@ -2721,7 +2721,7 @@ const DealsDashboard = () => {
|
|||
className="page-title fw-bold d-flex align-items-center mb-0"
|
||||
style={{ color: "#1E2638", fontSize: "1.75rem", letterSpacing: "-0.02em" }}
|
||||
>
|
||||
Welcome to <span className="ms-2" style={{ color: "#69235B" }}>CRM Dashboard</span>
|
||||
Welcome to <span className="ms-2" style={{ color: "#8B5CF6" }}>CRM Dashboard</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div className="d-flex align-items-center gap-2">
|
||||
|
|
|
|||
253
src/index.scss
253
src/index.scss
|
|
@ -248,12 +248,12 @@ span.form-icon {
|
|||
}
|
||||
|
||||
.select__control {
|
||||
background-color: #e41f07 !important;
|
||||
border-color: #e41f07 !important;
|
||||
background-color: #ffffff !important;
|
||||
border-color: #E2E8F0 !important;
|
||||
}
|
||||
|
||||
.select__control:hover {
|
||||
border-color: #e41f07 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
// .slick-slide {
|
||||
|
|
@ -566,12 +566,12 @@ div.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-draggin
|
|||
}
|
||||
|
||||
div.css-b62m3t-container .react-select__option--is-focused {
|
||||
background-color: #e41f07;
|
||||
color: #fff;
|
||||
background-color: #F3E8FF;
|
||||
color: #8B5CF6;
|
||||
}
|
||||
|
||||
div.css-b62m3t-container .react-select__option--is-selected {
|
||||
background-color: #e41f07;
|
||||
background-color: #8B5CF6;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
|
@ -1365,15 +1365,15 @@ input:focus,
|
|||
textarea:focus,
|
||||
select:focus,
|
||||
.react-select__control--is-focused {
|
||||
border-color: #e41f07 !important;
|
||||
box-shadow: 0 0 0 2px #e41f07 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25) !important;
|
||||
transition: box-shadow 0.3s ease, border-color 0.3s ease;
|
||||
}
|
||||
|
||||
/* React Select Focus */
|
||||
.react-select__control--is-focused {
|
||||
border-color: #e41f07 !important;
|
||||
box-shadow: 0 0 0 2px #e41f07 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25) !important;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
|
|
@ -1402,8 +1402,7 @@ select:focus,
|
|||
.scroll-progress-bar {
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background-color: #e41f07;
|
||||
/* subtle, clean grey */
|
||||
background-color: #8B5CF6;
|
||||
transition: width 0.2s ease-out;
|
||||
}
|
||||
|
||||
|
|
@ -1761,8 +1760,8 @@ $breakpoints: (
|
|||
// display: none;
|
||||
// }
|
||||
.bg-danger-subtle-light {
|
||||
background-color: rgba(220, 53, 69, 0.08) !important;
|
||||
/* Softer than default */
|
||||
background-color: rgba(139, 92, 246, 0.1) !important;
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
|
|
@ -2891,14 +2890,17 @@ a.dropdown-active-toggle.show,
|
|||
:root,
|
||||
body,
|
||||
.dashboard-minimal {
|
||||
--dashboard-bg: #F4F6FB;
|
||||
--dashboard-bg: #F8FAFC;
|
||||
--dashboard-card-bg: #FFFFFF;
|
||||
--dashboard-primary: #69235B;
|
||||
--dashboard-primary-hover: #531847;
|
||||
--dashboard-primary-subtle: #F8EBF6;
|
||||
--dashboard-text: #1E2638;
|
||||
--dashboard-muted: #7E8B9B;
|
||||
--dashboard-border: #ECEEF5;
|
||||
--dashboard-primary: #8B5CF6;
|
||||
--dashboard-primary-hover: #7C3AED;
|
||||
--dashboard-primary-subtle: #F3E8FF;
|
||||
--dashboard-accent: #38BDF8;
|
||||
--dashboard-accent-hover: #0EA5E9;
|
||||
--dashboard-accent-subtle: #E0F2FE;
|
||||
--dashboard-text: #1E293B;
|
||||
--dashboard-muted: #64748B;
|
||||
--dashboard-border: #E2E8F0;
|
||||
--dashboard-accent-bg: #F8FAFC;
|
||||
--dashboard-radius: 14px;
|
||||
|
||||
|
|
@ -3107,10 +3109,13 @@ body,
|
|||
background: #FDEFEA;
|
||||
color: #EA580C;
|
||||
}
|
||||
&.kpi-accent-primary .kpi-icon-badge,
|
||||
&.kpi-accent-primary .kpi-icon-badge {
|
||||
background: #F3E8FF;
|
||||
color: #8B5CF6;
|
||||
}
|
||||
&.kpi-accent-secondary .kpi-icon-badge {
|
||||
background: #F8EBF6;
|
||||
color: #69235B;
|
||||
background: #E0F2FE;
|
||||
color: #0284C7;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3239,97 +3244,150 @@ body,
|
|||
}
|
||||
|
||||
/* ==============================================================
|
||||
CIPHERBIZZ GLOBAL COLOR THEME OVERRIDES (Adobe XD Prototype)
|
||||
CRM GLOBAL THEME: WHITE, PURPLE & LIGHT BLUE
|
||||
============================================================== */
|
||||
:root {
|
||||
--primary: #69235B;
|
||||
--bs-primary: #69235B;
|
||||
--bs-primary-rgb: 105, 35, 91;
|
||||
--primary-transparent: #F8EBF6;
|
||||
--primary: #8B5CF6;
|
||||
--bs-primary: #8B5CF6;
|
||||
--bs-primary-rgb: 139, 92, 246;
|
||||
--primary-hover: #7C3AED;
|
||||
--primary-transparent: #F3E8FF;
|
||||
|
||||
--secondary: #38BDF8;
|
||||
--bs-secondary: #38BDF8;
|
||||
--bs-secondary-rgb: 56, 189, 248;
|
||||
--secondary-hover: #0EA5E9;
|
||||
--secondary-transparent: #E0F2FE;
|
||||
|
||||
--info: #38BDF8;
|
||||
--bs-info: #38BDF8;
|
||||
--bs-info-rgb: 56, 189, 248;
|
||||
--info-transparent: #E0F2FE;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #F4F6FB !important;
|
||||
color: #1E2638;
|
||||
background-color: #F8FAFC !important;
|
||||
color: #1E293B;
|
||||
}
|
||||
|
||||
/* Primary buttons & elements */
|
||||
.btn-primary,
|
||||
.bg-primary {
|
||||
background-color: #69235B !important;
|
||||
border-color: #69235B !important;
|
||||
background-color: #8B5CF6 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
color: #FFFFFF !important;
|
||||
|
||||
&:hover, &:focus, &:active {
|
||||
background-color: #531847 !important;
|
||||
border-color: #531847 !important;
|
||||
background-color: #7C3AED !important;
|
||||
border-color: #7C3AED !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Secondary & Info buttons */
|
||||
.btn-secondary,
|
||||
.bg-secondary,
|
||||
.btn-info,
|
||||
.bg-info {
|
||||
background-color: #38BDF8 !important;
|
||||
border-color: #38BDF8 !important;
|
||||
color: #FFFFFF !important;
|
||||
|
||||
&:hover, &:focus, &:active {
|
||||
background-color: #0EA5E9 !important;
|
||||
border-color: #0EA5E9 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
color: #69235B !important;
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
.text-secondary,
|
||||
.text-info {
|
||||
color: #38BDF8 !important;
|
||||
}
|
||||
|
||||
.border-primary {
|
||||
border-color: #69235B !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
.border-secondary,
|
||||
.border-info {
|
||||
border-color: #38BDF8 !important;
|
||||
}
|
||||
|
||||
.badge-primary {
|
||||
background-color: #69235B !important;
|
||||
background-color: #8B5CF6 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.badge-secondary,
|
||||
.badge-info {
|
||||
background-color: #38BDF8 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.badge-soft-primary,
|
||||
.bg-soft-primary {
|
||||
background-color: #F8EBF6 !important;
|
||||
color: #69235B !important;
|
||||
background-color: #F3E8FF !important;
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
/* Sidebar styling to match Adobe XD */
|
||||
.badge-soft-secondary,
|
||||
.badge-soft-info,
|
||||
.bg-soft-info,
|
||||
.bg-soft-secondary {
|
||||
background-color: #E0F2FE !important;
|
||||
color: #0284C7 !important;
|
||||
}
|
||||
|
||||
/* Clean White Sidebar */
|
||||
.sidebar {
|
||||
background-color: #FFFFFF !important;
|
||||
border-right: 1px solid #ECEEF5 !important;
|
||||
box-shadow: 0 0 20px rgba(105, 35, 91, 0.03) !important;
|
||||
border-right: 1px solid #E2E8F0 !important;
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.04) !important;
|
||||
|
||||
.sidebar-menu {
|
||||
ul {
|
||||
li {
|
||||
a {
|
||||
border-radius: 10px;
|
||||
color: #556070;
|
||||
color: #475569;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: #69235B;
|
||||
background: #FAF2F9;
|
||||
color: #8B5CF6;
|
||||
background: #F3E8FF;
|
||||
}
|
||||
|
||||
&.active,
|
||||
&.subdrop {
|
||||
background-color: #F8EBF6 !important;
|
||||
color: #69235B !important;
|
||||
background-color: #F3E8FF !important;
|
||||
color: #8B5CF6 !important;
|
||||
font-weight: 600;
|
||||
|
||||
i, svg {
|
||||
color: #69235B !important;
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.active > a {
|
||||
background-color: #F8EBF6 !important;
|
||||
color: #69235B !important;
|
||||
background-color: #F3E8FF !important;
|
||||
color: #8B5CF6 !important;
|
||||
font-weight: 600;
|
||||
|
||||
i, svg {
|
||||
color: #69235B !important;
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-title {
|
||||
color: #9CA3AF !important;
|
||||
color: #94A3B8 !important;
|
||||
font-size: 11px !important;
|
||||
text-transform: uppercase !important;
|
||||
letter-spacing: 0.05em !important;
|
||||
|
|
@ -3338,32 +3396,103 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
/* Top Header styling */
|
||||
/* Clean White Top Header */
|
||||
.header {
|
||||
background-color: #FFFFFF !important;
|
||||
border-bottom: 1px solid #ECEEF5 !important;
|
||||
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.02) !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03) !important;
|
||||
|
||||
.searchinputs {
|
||||
input {
|
||||
background-color: #F4F6F9 !important;
|
||||
border: 1px solid #E5E7EB !important;
|
||||
background-color: #F8FAFC !important;
|
||||
border: 1px solid #E2E8F0 !important;
|
||||
border-radius: 50rem !important;
|
||||
padding-left: 36px !important;
|
||||
font-size: 13px !important;
|
||||
color: #1E2638 !important;
|
||||
color: #1E293B !important;
|
||||
|
||||
&::placeholder {
|
||||
color: #9CA3AF !important;
|
||||
color: #94A3B8 !important;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
border-color: #69235B !important;
|
||||
box-shadow: 0 0 0 3px rgba(105, 35, 91, 0.1) !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Pagination & interactive links */
|
||||
.pagination {
|
||||
.page-item.active .page-link {
|
||||
background-color: #8B5CF6 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
.page-link {
|
||||
color: #8B5CF6;
|
||||
&:hover {
|
||||
background-color: #F3E8FF;
|
||||
color: #7C3AED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Form check input (radio & checkboxes) */
|
||||
.form-check-input:checked {
|
||||
background-color: #8B5CF6 !important;
|
||||
border-color: #8B5CF6 !important;
|
||||
}
|
||||
.form-check-input:focus {
|
||||
border-color: #8B5CF6 !important;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
|
||||
}
|
||||
|
||||
/* Global CRM theme enforcement */
|
||||
.campaign-box.bg-danger-light,
|
||||
.campaign-box.bg-purple-light {
|
||||
background-color: #F5F3FF !important;
|
||||
border: 1px solid #DDD6FE !important;
|
||||
span {
|
||||
background-color: #8B5CF6 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
}
|
||||
|
||||
.campaign-box.bg-warning-light,
|
||||
.campaign-box.bg-success-light {
|
||||
background-color: #F0F9FF !important;
|
||||
border: 1px solid #BAE6FD !important;
|
||||
span {
|
||||
background-color: #38BDF8 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Floating theme cog */
|
||||
.sidebar-contact .toggle-theme {
|
||||
background-color: #8B5CF6 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
/* Sidebar active states */
|
||||
.sidebar .sidebar-menu > ul > li ul > li.active a,
|
||||
.sidebar .sidebar-menu > ul > li.active > a,
|
||||
.sidebar .sidebar-menu a.active {
|
||||
background: #F3E8FF !important;
|
||||
color: #8B5CF6 !important;
|
||||
i, svg, span {
|
||||
color: #8B5CF6 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Outlines */
|
||||
.btn-outline-warning {
|
||||
border-color: #38BDF8 !important;
|
||||
color: #0284C7 !important;
|
||||
&:hover {
|
||||
background-color: #38BDF8 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,10 +64,10 @@
|
|||
margin-bottom: 24px;
|
||||
&.active{
|
||||
a{
|
||||
color: $white;
|
||||
color: $primary;
|
||||
}
|
||||
svg {
|
||||
color: #FE9F43
|
||||
color: $primary;
|
||||
}
|
||||
}
|
||||
svg {
|
||||
|
|
@ -94,22 +94,22 @@
|
|||
}
|
||||
|
||||
&.active{
|
||||
background: rgba(254, 159, 67, 0.08);
|
||||
color: #FE9F43;
|
||||
background: rgba(139, 92, 246, 0.1);
|
||||
color: $primary;
|
||||
border-radius: 5px;
|
||||
svg{
|
||||
color: $white;
|
||||
color: $primary;
|
||||
}
|
||||
img {
|
||||
filter: invert(72%) sepia(76%) saturate(1430%) hue-rotate(327deg) brightness(103%) contrast(101%);
|
||||
filter: none;
|
||||
}
|
||||
span{
|
||||
color: #FE9F43;
|
||||
color: $primary;
|
||||
}
|
||||
.menu-arrow{
|
||||
background: #FFEDDC;
|
||||
background: rgba(139, 92, 246, 0.15);
|
||||
&::before{
|
||||
border-color: #FE9F43;
|
||||
border-color: $primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -121,13 +121,13 @@
|
|||
}
|
||||
&.active {
|
||||
a {
|
||||
background: rgba(254, 159, 67, 0.08);
|
||||
background: rgba(139, 92, 246, 0.1);
|
||||
border-radius: 5px;
|
||||
img{
|
||||
filter: invert(72%) sepia(76%) saturate(1430%) hue-rotate(327deg) brightness(103%) contrast(101%);
|
||||
filter: none;
|
||||
}
|
||||
span{
|
||||
color: #FE9F43;
|
||||
color: $primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -207,15 +207,15 @@
|
|||
> li {
|
||||
&.active a{
|
||||
&.subdrop{
|
||||
background: #FFEEEC;
|
||||
background: rgba(139, 92, 246, 0.1);
|
||||
border-radius: 5px;
|
||||
color: #E41F07;
|
||||
color: $primary;
|
||||
i{
|
||||
color:$white;
|
||||
background:#E41F07;
|
||||
background: $primary;
|
||||
}
|
||||
span {
|
||||
color: #E41F07;
|
||||
color: $primary;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -356,8 +356,8 @@
|
|||
&:hover{
|
||||
color:$primary;
|
||||
&:after{
|
||||
background: #FE9F43;
|
||||
border: 2px solid #FDB;
|
||||
background: $primary;
|
||||
border: 2px solid rgba(139, 92, 246, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4440,7 +4440,7 @@ body.data-layout-transparent {
|
|||
}
|
||||
}
|
||||
[data-color="primary"]{
|
||||
$primary: #E41F07;
|
||||
$primary: #8B5CF6;
|
||||
.sidebar {
|
||||
.sidebar-menu > ul {
|
||||
& > li {
|
||||
|
|
@ -4693,7 +4693,7 @@ body.data-layout-transparent {
|
|||
}
|
||||
}
|
||||
[data-color="brightblue"]{
|
||||
$primary: #4680FF;
|
||||
$primary: #38BDF8;
|
||||
.sidebar {
|
||||
.sidebar-menu > ul {
|
||||
& > li {
|
||||
|
|
@ -4952,7 +4952,7 @@ body.data-layout-transparent {
|
|||
}
|
||||
}
|
||||
[data-color="lunargreen"]{
|
||||
$primary: #365E32;
|
||||
$primary: #8B5CF6;
|
||||
.sidebar {
|
||||
.sidebar-menu > ul {
|
||||
& > li {
|
||||
|
|
@ -5211,7 +5211,7 @@ body.data-layout-transparent {
|
|||
}
|
||||
}
|
||||
[data-color="lavendar"]{
|
||||
$primary: #673AB7;
|
||||
$primary: #8B5CF6;
|
||||
.sidebar {
|
||||
.sidebar-menu > ul {
|
||||
& > li {
|
||||
|
|
@ -5470,7 +5470,7 @@ body.data-layout-transparent {
|
|||
}
|
||||
}
|
||||
[data-color="magenta"]{
|
||||
$primary: #E83E8C;
|
||||
$primary: #8B5CF6;
|
||||
.sidebar {
|
||||
.sidebar-menu > ul {
|
||||
& > li {
|
||||
|
|
@ -5729,7 +5729,7 @@ body.data-layout-transparent {
|
|||
}
|
||||
}
|
||||
[data-color="chromeyellow"]{
|
||||
$primary: #FF9B04;
|
||||
$primary: #8B5CF6;
|
||||
.sidebar {
|
||||
.sidebar-menu > ul {
|
||||
& > li {
|
||||
|
|
@ -5988,7 +5988,7 @@ body.data-layout-transparent {
|
|||
}
|
||||
}
|
||||
[data-color="lavared"]{
|
||||
$primary: #DC2626;
|
||||
$primary: #8B5CF6;
|
||||
.sidebar {
|
||||
.sidebar-menu > ul {
|
||||
& > li {
|
||||
|
|
|
|||
|
|
@ -51,27 +51,35 @@
|
|||
}
|
||||
}
|
||||
&.bg-danger-light {
|
||||
background-color: $danger-100;
|
||||
background-color: #F5F3FF;
|
||||
border: 1px solid #DDD6FE;
|
||||
span {
|
||||
background-color: $danger;
|
||||
background-color: #8B5CF6;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
&.bg-warning-light {
|
||||
background-color: $warning-100;
|
||||
background-color: #F0F9FF;
|
||||
border: 1px solid #BAE6FD;
|
||||
span {
|
||||
background-color: $secondary;
|
||||
background-color: #38BDF8;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
&.bg-purple-light {
|
||||
background-color: $purple-100;
|
||||
background-color: #FAF5FF;
|
||||
border: 1px solid #E9D5FF;
|
||||
span {
|
||||
background-color: $tertiary;
|
||||
background-color: #7C3AED;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
&.bg-success-light {
|
||||
background-color: $success-200;
|
||||
background-color: #F0F9FF;
|
||||
border: 1px solid #BAE6FD;
|
||||
span {
|
||||
background-color: $green;
|
||||
background-color: #0EA5E9;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,17 +18,17 @@ $font-family-primary: "Noto Sans", sans-serif;
|
|||
$font-awesome: "Fontawesome";
|
||||
|
||||
// Theme Colors Variables
|
||||
$primary: #69235B;
|
||||
$primary-hover: #531847;
|
||||
$secondary: #FFA201;
|
||||
$secondary-hover: darken($secondary, 10%);
|
||||
$success: #5CB85C;
|
||||
$primary: #8B5CF6;
|
||||
$primary-hover: #7C3AED;
|
||||
$secondary: #38BDF8;
|
||||
$secondary-hover: #0EA5E9;
|
||||
$success: #10B981;
|
||||
$success-hover: darken($success, 10%);
|
||||
$info: #1ECBE2;
|
||||
$info-hover: darken($info, 10%);
|
||||
$warning: #FDA700;
|
||||
$info: #38BDF8;
|
||||
$info-hover: #0EA5E9;
|
||||
$warning: #F59E0B;
|
||||
$warning-hover: darken($warning, 10%);
|
||||
$danger: #FC0027;
|
||||
$danger: #EF4444;
|
||||
$danger-hover: darken($danger, 10%);
|
||||
$dark: #171724;
|
||||
$dark-border: #393947;
|
||||
|
|
@ -38,57 +38,57 @@ $dark-hover: darken($dark, 10%);
|
|||
$darkmode-hover: #28283D;
|
||||
$dark-input: #1A1A25;
|
||||
$dark-bg: #1E1E2D;
|
||||
$primary-transparent: #F8EBF6;
|
||||
$secondary-transparent: #EDF2F4;
|
||||
$success-transparent: #E8FAF0;
|
||||
$warning-transparent: #FFF9E9;
|
||||
$danger-transparent: #FAE7E7;
|
||||
$info-transparent: #EBF4FF;
|
||||
$pink-transparent: #FFEDF6;
|
||||
$light-transparent: #F9FAFE;
|
||||
$primary-transparent: #F3E8FF;
|
||||
$secondary-transparent: #E0F2FE;
|
||||
$success-transparent: #ECFDF5;
|
||||
$warning-transparent: #FFFBEB;
|
||||
$danger-transparent: #FEF2F2;
|
||||
$info-transparent: #E0F2FE;
|
||||
$pink-transparent: #FDF4FF;
|
||||
$light-transparent: #F8FAFC;
|
||||
$dark-transparent: #E8E9EA;
|
||||
$teal-transparent: #E6F9FF;
|
||||
$purple-transparent: #F7EEF9;
|
||||
$skyblue-transparent: #E9FAFE;
|
||||
$teal-transparent: #E0F2FE;
|
||||
$purple-transparent: #F3E8FF;
|
||||
$skyblue-transparent: #E0F2FE;
|
||||
$gray-bg: #28283E;
|
||||
$light: #FDFDFE;
|
||||
$light-hover: darken($light, 10%);
|
||||
$white: #FFF;
|
||||
$black: #000;
|
||||
$purple: #69235B;
|
||||
$pink: #EA00B7;
|
||||
$blue: #339DFF;
|
||||
$teal: #02a8b5;
|
||||
$violet: #676DFF;
|
||||
$cyan: #299cdb;
|
||||
$green: #00918E;
|
||||
$orange: #FF9D0A;
|
||||
$indigo: #0092E4;
|
||||
$purple: #8B5CF6;
|
||||
$pink: #EC4899;
|
||||
$blue: #38BDF8;
|
||||
$teal: #06B6D4;
|
||||
$violet: #8B5CF6;
|
||||
$cyan: #38BDF8;
|
||||
$green: #10B981;
|
||||
$orange: #F97316;
|
||||
$indigo: #6366F1;
|
||||
$indigo-hover: darken($indigo, 10%);
|
||||
$tertiary: #3C2371;
|
||||
$yellow: #ffff00;
|
||||
$tertiary: #7C3AED;
|
||||
$yellow: #FACC15;
|
||||
|
||||
// Primary (CipherBizz Plum)
|
||||
$primary-100: #F8EBF6;
|
||||
$primary-200: #ECCEE7;
|
||||
$primary-300: #E0B1D8;
|
||||
$primary-400: #CE86C2;
|
||||
$primary-500: #B75CAB;
|
||||
$primary-600: #9B3D8E;
|
||||
$primary-700: #812B75;
|
||||
$primary-800: #69235B;
|
||||
$primary-900: #531847;
|
||||
// Primary (Vibrant Purple)
|
||||
$primary-100: #FAF5FF;
|
||||
$primary-200: #F3E8FF;
|
||||
$primary-300: #E9D5FF;
|
||||
$primary-400: #D8B4FE;
|
||||
$primary-500: #C084FC;
|
||||
$primary-600: #A855F7;
|
||||
$primary-700: #9333EA;
|
||||
$primary-800: #8B5CF6;
|
||||
$primary-900: #7C3AED;
|
||||
|
||||
// Secondary
|
||||
$secondary-100: #FFF6E6;
|
||||
$secondary-200: #FFECCC;
|
||||
$secondary-300: #FFE3B3;
|
||||
$secondary-400: #FFDA99;
|
||||
$secondary-500: #FFD180;
|
||||
$secondary-600: #FFC767;
|
||||
$secondary-700: #FFBE4D;
|
||||
$secondary-800: #FFB534;
|
||||
$secondary-900: #FFAB1A;
|
||||
// Secondary (Light Blue)
|
||||
$secondary-100: #F0F9FF;
|
||||
$secondary-200: #E0F2FE;
|
||||
$secondary-300: #BAE6FD;
|
||||
$secondary-400: #7DD3FC;
|
||||
$secondary-500: #38BDF8;
|
||||
$secondary-600: #0EA5E9;
|
||||
$secondary-700: #0284C7;
|
||||
$secondary-800: #0369A1;
|
||||
$secondary-900: #075985;
|
||||
|
||||
// Tertiary
|
||||
$tertiary-100: #ECE9F1;
|
||||
|
|
@ -299,12 +299,12 @@ $darkaqua: #116D6E;
|
|||
$whiterock: #F0E4D7;
|
||||
$rockblue: #8CB9BD;
|
||||
$bluehaze: #B5C0D0;
|
||||
$brightblue: #2066FF;
|
||||
$lunargreen: #365E32;
|
||||
$lavendar: #673AB7;
|
||||
$magenta: #E83E8C;
|
||||
$chromeyellow: #FF9B04;
|
||||
$lavared: #DC2626;
|
||||
$brightblue: #38BDF8;
|
||||
$lunargreen: #8B5CF6;
|
||||
$lavendar: #8B5CF6;
|
||||
$magenta: #8B5CF6;
|
||||
$chromeyellow: #38BDF8;
|
||||
$lavared: #8B5CF6;
|
||||
$blackpearl: #080821;
|
||||
$maroon: #710034;
|
||||
$bluegem: #3E1C95;
|
||||
|
|
|
|||
Loading…
Reference in a new issue