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;
}*/

body {
    background: linear-gradient(135deg, #0a0e17 0%, #1a2332 100%) !important;
    color: #f8fafc !important;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.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;
}

/* Card Base Styling */
.card {
    background-color: #161d31; /* Deep navy background */
    border: 1px solid #283046;
    border-radius: 1.5rem;
    padding: 1rem;
}

.layout-navbar {
    background: linear-gradient(135deg, #0a0e17 0%, #1a2332 100%) !important;
}
/* Icon Glow Effect */
.icon-glow-container {
    position: relative;
    background: rgba(115, 103, 240, 0.1); /* Light blue tint */
    padding: 20px;
    border-radius: 20px;
    /* This creates the soft glow seen in your image */
    box-shadow: inset 0 0 20px rgba(0, 207, 232, 0.2), 0 0 15px rgba(0, 207, 232, 0.1);
}

    .icon-glow-container i {
        font-size: 2rem;
        color: #00cfe8; /* Cyan/Blue color from image */
    }

/* Typography & Trends */
.text-secondary {
    color: #b4b7bd !important;
}

.trend-text {
    color: #28c76f; /* Green for the 12% increase */
    font-size: 0.85rem;
}

/* Hover Animation */
.card.hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card.hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        border-color: rgba(6, 182, 212, 0.3); /* Optional: highlight border on hover */
    }


/* ============================================================
   UI OVERRIDE: DASHBOARD THEME MATCHING SCREENSHOT
   ============================================================ */

/* 1. Sidebar Background & Border */
.sidebar {
    background-color: #0a101a !important; /* Deep dark blue-black */
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 2. Base Navigation Item Styling */
.nav-item {
    padding: 12px 20px !important;
    margin: 4px 12px !important; /* Spacing from edges like screenshot */
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    color: #cbd5e1 !important; /* Muted text */
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

    /* 3. ACTIVE STATE (The Cyan "Dashboard" Style) */
    /* Assuming 'active' class is added to the current page link */
    .nav-item.active,
    .nav-item:hover {
        background: rgba(6, 182, 212, 0.1) !important; /* Subtle Cyan Glow */
        color: #06b6d4 !important; /* Bright Cyan Text */
    }

    .nav-item.active {
        border-left: 3px solid #06b6d4 !important;
    }

    /* 4. Icon Specifics */
    .nav-item i {
        width: 24px;
        font-size: 1.1rem;
        color: inherit; /* Matches the text color */
    }

/* 5. Submenu Indentation */
.nav-submenu {
    background-color: transparent !important;
}

    .nav-submenu .nav-item {
        padding-left: 52px !important; /* Indent sub-items */
        font-size: 0.9rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Remove border-left from sub-items unless they are active */
    .nav-submenu .nav-item {
        border-left: none !important;
    }

/* 6. Parent Item Adjustments (Manage/Menu) */
.nav-item-parent {
    display: flex;
    align-items: center;
}

    .nav-item-parent .expand-icon {
        font-size: 0.75rem !important;
        color: #64748b;
    }

/* 7. Divider Styling */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 15px 24px !important;
}

/* 8. Logout Item (Red highlight) */
.nav-logout {
    color: #ef4444 !important;
}

    .nav-logout:hover {
        background: rgba(239, 68, 68, 0.1) !important;
    }

/* 9. Header Branding Adjustments */
.sidebar-header {
    padding: 24px !important;
    border-bottom: none !important;
}

.sidebar-title {
    color: #06b6d4 !important; /* Branding Cyan */
    font-size: 1.4rem !important;
    letter-spacing: -0.5px;
}




/*************************************************************/
/* Sidebar Container Background */
#layout-menu {
    background-color: #0a0e17 !important; /* Deep dark navy */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Base Menu Item Styling */
.menu-inner .menu-item .menu-link {
    color: #cbd5e1 !important; /* Muted slate text */
    margin: 0.25rem 0.75rem; /* Floating effect */
    border-radius: 8px !important;
    padding: 0.65rem 1rem;
    transition: all 0.2s ease-in-out;
}

    /* Hover State */
    .menu-inner .menu-item .menu-link:hover {
        background-color: #1a2332 !important;
        color: #f8fafc !important;
    }

/* ACTIVE STATE (The Dashboard Cyan Highlight) */
/* Target the 'active' class usually applied by the router/system */
.menu-inner .menu-item.active > .menu-link {
    background-color: rgba(6, 182, 212, 0.1) !important; /* Cyan tint */
    color: #06b6d4 !important; /* Bright cyan text */
    border-left: 3px solid #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}
.menu-inner .menu-item .logout-link {
    color: #ef4444 !important; /* Muted slate text */
    margin: 0.25rem 0.75rem; /* Floating effect */
    border-radius: 8px !important;
    padding: 0.65rem 1rem;
    transition: all 0.2s ease-in-out;
}

    .menu-inner .menu-item .logout-link:hover {
        color: #e86b6b !important; /* A slightly darker red for the hover state */
        opacity: 0.8;
    }

/* Submenu Styling */
.menu-sub {
    background: transparent !important;
    padding-left: 1.5rem; /* Indent sub-items */
}

    .menu-sub .menu-item .menu-link {
        font-size: 0.9rem;
        color: #94a3b8 !important;
        list-style: none !important;
    }

/* Icons Styling */
.menu-link i {
    font-size: 1.1rem !important;
    width: 1.5rem;
    color: inherit !important; /* Icons follow text color */
}

/* App Brand / Logo Section */
.app-brand {
    padding: 1.5rem !important;
    margin-bottom: 1rem;
}

.app-brand-text {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* Dropdown Arrow Adjustment */
.menu-toggle::after {
    color: #64748b !important;
    font-size: 0.8rem;
}





/* 1. Force remove all list decorations and markers */
#layout-menu ul,
#layout-menu li {
    list-style: none !important;
    list-style-type: none !important;
    text-indent: 0 !important;
}

/* 2. Remove template-specific "dot" pseudo-elements */
.menu-sub .menu-item::before {
    content: none !important;
    display: none !important;
    list-style: none !important;
}

/* 3. Sub-menu Link Alignment (Matching your screenshot) */
.menu-sub .menu-link {
    padding-left: 2rem !important; /* Space for the indent */
    display: flex !important;
    align-items: center !important;
    gap: 12px !important; /* Space between icon and text */
}

    /* 4. Sub-menu Icon styling */
    /* This ensures your Categories, Products, etc. icons look right */
    .menu-sub .menu-link i {
        font-size: 1.1rem !important;
        width: 20px !important;
        text-align: center !important;
    }

/* 5. Active Sub-item Highlight (The rounded box in your image) */
.menu-sub .menu-item.active > .menu-link {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

/* 1. Target ONLY the dots in the sub-menu items and hide them */
.menu-sub > .menu-item::before {
    content: none !important;
    display: none !important;
}

/* 2. Ensure the parent toggle arrow (chevron) remains visible */
.menu-item.active > .menu-link.menu-toggle::after,
.menu-item.open > .menu-link.menu-toggle::after,
.menu-link.menu-toggle::after {
    display: block !important;
    content: "" !important; /* This preserves the chevron icon */
}

/* 3. Adjust sub-menu indentation so icons align with the parent text */
.menu-sub .menu-link {
    padding-left: 2.2rem !important; /* Moves items right to fill the dot's space */
}

/* 4. Vertical spacing between sub-menu items to match your clean image */
.menu-sub .menu-item {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}

    /* 1. Kill the dots on BOTH the list item and the link itself */
    .menu-sub .menu-item::before,
    .menu-sub .menu-item::after,
    .menu-sub .menu-link::before,
    .menu-sub .menu-link::after {
        content: none !important;
        display: none !important;
        background: none !important; /* Some templates use a background-image dot */
    }

/* 2. PROTECT the Toggle Arrow */
/* We must ensure the chevron stays visible on the parent 'Menu' and 'Manage' */
.menu-toggle::after {
    display: block !important;
    content: "" !important;
    /* If the arrow is still missing, your template might use a class like 'ri-arrow-down-s-line' 
       Check if your menu-toggle link has an <i> for the arrow inside it. */
}

/* 3. Perfect Alignment for Sub-items */
/* Since the dot is gone, we shift the link content to the left to align with the parent icon */
.menu-sub .menu-link {
    padding-left: 1rem !important;
    margin-left: 0.75rem !important;
}

    /* 4. Fix Icon Gap */
    .menu-sub .menu-link i {
        margin-right: 12px !important;
        font-size: 1.1rem;
    }


/* Specific styling for the Quick Action cards */
.quick-action-card {
    transition: transform 0.2s ease-in-out, border-color 0.2s;
    cursor: pointer;
}

    .quick-action-card:hover {
        transform: translateY(-5px);
        border-color: rgba(6, 182, 212, 0.3) !important;
    }

/* Replicating the 'Active' blue border from your image */
.border-primary-glow {
    border: 1px solid #7367f0 !important;
    box-shadow: 0 0 10px rgba(115, 103, 240, 0.2);
}

/* Ensure icons align with Materialize/RemixIcon style used in your page */
.bg-label-primary {
    background-color: rgba(115, 103, 240, 0.16) !important;
    color: #7367f0 !important;
}

.bg-label-info {
    background-color: rgba(0, 207, 232, 0.16) !important;
    color: #00cfe8 !important;
}

.bg-label-success {
    background-color: rgba(40, 199, 111, 0.16) !important;
    color: #28c76f !important;
}

.bg-label-warning {
    background-color: rgba(255, 159, 67, 0.16) !important;
    color: #ff9f43 !important;
}

/* Sidebar Flex Layout */
#layout-menu {
    display: flex !important;
    flex-direction: column !important;
}

/* Scrollbar Styling for a clean look */
.menu-inner.overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.menu-inner.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Footer Branding Styles */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: auto;
}

.avatar-dc {
    width: 38px;
    height: 38px;
    background-color: #00a699 !important; /* The Teal Brand Color */
    font-size: 0.8rem;
    flex-shrink: 0;
}

.extra-small {
    font-size: 0.7rem;
    color: #82868b;
}

.shop-footer-item {
    transition: all 0.2s ease;
}

    .shop-footer-item:hover {
        background: rgba(255, 255, 255, 0.04);
    }

.cursor-pointer {
    cursor: pointer;
}

/* Ensure menu sub-items don't cause horizontal scroll */
.menu-sub {
    overflow-x: hidden;
}