/* ============================================
   GLOBAL THEME ROOT — USED BY ALL COMPONENTS
============================================ */
:root {
    /* Brand Colors */
    --brand-start: #92d205;  /* Premium Lime Green */
    --brand-end: #30333a;    /* Elegant Charcoal Tone */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    --gradient-diagonal: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    --gradient-vertical: linear-gradient(180deg, var(--brand-start), var(--brand-end));
    --gradient-soft: linear-gradient(135deg, rgba(146,210,5,0.25), rgba(48,51,58,0.25));

    /* Glass UI */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.25);

    /* Typography */
    --text-dark: #1c2434;
    --text-muted: #667085;
}


/* --------------------------------------------------
   SECTION HEADINGS
-------------------------------------------------- */
.dashV2 .customers h5,
.dashV2 .orders h5,
.dashV2 .revenue h5,
.dashV2 .others h5 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.4rem;
    color: var(--text-dark);
}

/* --------------------------------------------------
   GLASSMORPHIC CARD DESIGN
-------------------------------------------------- */
.dashV2 .card {
    position: relative;
    border-radius: 22px !important;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.06),
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);

    transition: 0.3s ease;
}

.dashV2 .card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        0 0 18px rgba(77, 101, 255, 0.25),
        0 0 22px rgba(146, 210, 5, 0.25);
}

/* --------------------------------------------------
   GRADIENT LEFT EDGE
-------------------------------------------------- */
.dashV2 .card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    border-radius: 22px 0 0 22px;
    background: var(--gradient-main);
}

/* --------------------------------------------------
   ICON BLOCK
-------------------------------------------------- */
.dashV2 .widgets-icons-2 {
    width: 64px;
    height: 64px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    color: #fff;

    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.15);

    transition: 0.3s ease;
}

/* Gradient Icon */
.dashV2 .widgets-icons-2.gradient {
    background: var(--gradient-diagonal) !important;
    border: none;
}

.dashV2 .card:hover .widgets-icons-2.gradient {
    transform: scale(1.15) rotate(3deg);
    box-shadow:
        0 0 18px rgba(77, 101, 255, 0.5),
        0 0 22px rgba(146, 210, 5, 0.45);
}

/* --------------------------------------------------
   CARD TEXT
-------------------------------------------------- */
.dashV2 .card p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    margin-bottom: 4px;
}

.dashV2 .card h4 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 768px) {
    .dashV2 .card {
        margin-bottom: 20px;
    }
    .dashV2 .widgets-icons-2 {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }
}


/* --------------------------------------------------------------- */

/* ============================================
   SIDEBAR V2 (Premium Upgrade)
   All styling isolated under .sidebarV2
============================================ */

/* --------------------------------------------
   WRAPPER GLASS STYLE
--------------------------------------------- */
.sidebarV2 .sidebar-wrapper {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        4px 0 20px rgba(0,0,0,0.08),
        inset 0 2px 4px rgba(255,255,255,0.25);

    transition: 0.3s ease;
}

/* --------------------------------------------
   LOGO AREA
--------------------------------------------- */
.sidebarV2 .sidebar-header {
    padding: 22px 22px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebarV2 .toggle-icon i {
    font-size: 26px;
    color: var(--brand-start);
    transition: .3s ease;
}

.sidebarV2 .toggle-icon:hover i {
    transform: translateX(-4px);
}

/* --------------------------------------------
   MAIN MENU ITEMS
--------------------------------------------- */
.sidebarV2 #menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;

    font-size: 16px;
    font-weight: 600;
    color: #4a4a4a;

    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.30);
    transition: 0.25s ease;
}

/* Hover */
.sidebarV2 #menu > li > a:hover {
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateX(4px);
}

/* --------------------------------------------
   ACTIVE MENU (Upgraded Gradient + Glow)
--------------------------------------------- */
.sidebarV2 #menu > li.mm-active > a {
    background: var(--gradient-main);
    color: white !important;
    border: none;

    box-shadow:
        0 6px 18px rgba(77,101,255,0.3),
        0 6px 18px rgba(146,210,5,0.3),
        inset 0 2px 4px rgba(255,255,255,0.4);

    transform: translateX(4px);
}

.sidebarV2 #menu > li.mm-active > a .parent-icon i,
.sidebarV2 #menu > li.mm-active > a .menu-title {
    color: #fff !important;
}

/* --------------------------------------------
   ICONS
--------------------------------------------- */
.sidebarV2 .parent-icon i {
    font-size: 20px;
    color: #777;
    transition: .25s ease;
}

.sidebarV2 #menu > li:hover .parent-icon i {
    color: var(--brand-start);
}

/* --------------------------------------------
   MENU TITLE
--------------------------------------------- */
.sidebarV2 .menu-title {
    font-weight: 600;
    color: #444;
}

/* --------------------------------------------
   EXPAND ARROW STYLE
--------------------------------------------- */
.sidebarV2 #menu > li > a.has-arrow:after {
    border-color: #888 !important;
}

.sidebarV2 #menu > li.mm-active > a.has-arrow:after {
    border-color: #fff !important;
}

/* --------------------------------------------
   SUBMENU STYLE
--------------------------------------------- */
.sidebarV2 #menu ul {
    padding-left: 40px;
    margin-top: 6px;
    margin-bottom: 10px;
}

.sidebarV2 #menu ul li a {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 12px;
    color: #555;
    transition: 0.25s;
}

/* Submenu hover */
.sidebarV2 #menu ul li a:hover {
    background: rgba(0,0,0,0.08);
    color: var(--brand-start);
}

/* ACTIVE SUBMENU ITEM */
.sidebarV2 #menu ul li.mm-active > a {
    background: var(--gradient-main);
    color: #fff !important;

    box-shadow:
        0 4px 14px rgba(77,101,255,0.28),
        0 4px 14px rgba(146,210,5,0.28),
        inset 0 2px 4px rgba(255,255,255,0.25);
}

/* --------------------------------------------
   BADGE STYLE (Upgraded)
--------------------------------------------- */
.sidebarV2 .badgesSm {
    background: var(--gradient-main);
    padding: 3px 9px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    margin-left: 8px;

    box-shadow:
        0 3px 10px rgba(77, 101, 255, 0.3),
        0 3px 10px rgba(146, 210, 5, 0.3);

    font-weight: 600;
}

/* Badge Hover Glow (based on parent li hover) */
.sidebarV2 li:hover .badgesSm {
    transform: scale(1.05);
    box-shadow:
        0 4px 14px rgba(77, 101, 255, 0.4),
        0 4px 14px rgba(146, 210, 5, 0.4);
}
