/* ===== DESIGN TOKENS ===== */
.dm-wrapper {
	--dm-primary: #6366f1;
	--dm-text: #111827;
	--dm-muted: #6b7280;
	--dm-bg: #ffffff;
	--dm-soft: #f9fafb;
	--dm-border: #e5e7eb;
	font-family: 'Inter', sans-serif;
}

/* RESET */
.dm-wrapper ul,
.dm-wrapper li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ===== MAIN NAV ===== */
.dm-main-menu {
	display: flex;
	gap: 10px;
	background: var(--dm-bg);
	padding: 0 10px;
	border-bottom: none;
	/* ✅ removed border */
}

/* NAV ITEM */
.dm-main-menu>li>a {
	position: relative;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--dm-text);
	text-decoration: none;
	font-weight: 500;
}

/* ❌ REMOVE UNDERLINE */
.dm-main-menu>li>a::after {
	display: none;
}

/* ===== CARET ===== */
.dm-caret {
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--dm-muted);
	border-bottom: 2px solid var(--dm-muted);
	transform: rotate(45deg);
	margin-top: 0px;
	transition: 0.3s;
}

.dm-main-menu>li:hover .dm-caret {
	transform: rotate(225deg);
	border-color: var(--dm-primary);
}

/* ===== DROPDOWN ===== */
.dm-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 55vw; 
   /*width: 100%; */

  /* CLEAN BACKGROUND */
  background: #ffffff;

  /* SHAPE */
  border-radius: 0px;
  overflow: hidden;

  /* PROFESSIONAL SHADOW (layered) */
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 2px 8px rgba(0,0,0,0.04);

  border: 1px solid #f1f1f1;

  /* ANIMATION */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);

  transition:
    opacity 0.2s ease,
    transform 0.25s ease,
    visibility 0.2s;

  z-index: 9999;
}

.dm-main-menu>li:hover .dm-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ===== LAYOUT ===== */
.dm-container {
	display: flex;
	min-height: 380px;
}

/* ===== LEFT SIDEBAR ===== */
.dm-left {
	width: 260px;
	background: var(--dm-soft);
	padding: 10px 0;
	overflow-y: auto;
	/* ✅ scroll */
	max-height: 400px;
}

/* LEFT ITEMS */
.dm-left li {
	position: relative;
	padding: 12px 18px;
	color: var(--dm-muted);
	cursor: pointer;
	transition: 0.25s;
}

/* ✅ LEFT INDICATOR */
.dm-left li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	height: 0;
	width: 3px;
	background: #e6882a;
	transition: 0.25s;
}

/* HOVER */
.dm-left li:hover {
	background: #fff;
	color: var(--dm-text);
}

.dm-left li:hover::before {
	height: calc(100% - 16px);
}

/* ACTIVE */
.dm-left li.active {
	background: #12b7d3;
	color: #020a20;
	font-weight: 500;
}

.dm-left li.active::before {
	height: calc(100% - 16px);
}

/* ===== RIGHT ===== */
.dm-right {
	flex: 1;
	padding: 30px;
}

/* TAB */
.dm-tab {
	display: none;
}

.dm-tab.active {
	display: block;
}

/* ===== GRID ===== */
.dm-grid {
	display: grid;
	gap: 20px;
}

.dm-col-2 {
	grid-template-columns: repeat(2, 1fr);
}

.dm-col-3 {
	grid-template-columns: repeat(3, 1fr);
}

.dm-col-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ===== CARD ===== */
.dm-card {
	padding: 18px;
	border-radius: 4px;
	/*border: 1px solid var(--dm-border);*/
	background: #ebf3f5;
	position: relative;
	transition: 0.25s;
	
}

.dm-card:hover {
	transform: translateY(-6px);
	border-color: var(--dm-primary);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.dm-card h4 {
	font-size: 15px;
	font-weight: 500;
}

/* ARROW */
.dm-card::after {
	content: "→";
	position: absolute;
	right: 15px;
	top: 15px;
	opacity: 0;
	transition: 0.2s;
}

.dm-card:hover::after {
	opacity: 1;
	transform: translateX(4px);
}

/* ===== MOBILE ===== */
@media (max-width:768px) {
	.dm-main-menu {
		flex-direction: column;
	}

	.dm-main-menu>li {
		border-bottom: 1px solid #eee;
	}

	.dm-main-menu>li>a {
		justify-content: space-between;
	}

	.dm-dropdown {
		position: relative;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		box-shadow: none;
		border: none;
	}

	.dm-main-menu>li.dm-open .dm-dropdown {
		display: block;
	}

	.dm-container {
		flex-direction: column;
	}

	.dm-left {
		width: 100%;
		max-height: 200px;
	}

	.dm-right {
		padding: 15px;
	}

	.dm-grid {
		grid-template-columns: 1fr;
	}
}

/* FORCE REMOVE UNDERLINE */
.dm-main-menu>li>a::after {
	display: none !important;
	content: none !important;
}

/* REMOVE ANY BORDER LINE */
.dm-main-menu {
	border-bottom: none !important;
}

.dm-dropdown {
	border-top: none !important;
}

/* ===== RIGHT PANEL BASE ===== */
.dm-right {
  padding: 24px 28px;
}

/* ===== LIST CONTAINER ===== */
.dm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 600px;
}

/* ===== ITEM ===== */
.dm-list li {
  position: relative;
}

/* LINK */
.dm-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 14px;
  border-radius: 10px;

  text-decoration: none;
  color: #374151;
  font-size: 14.5px;
  line-height: 1.4;

  transition: all 0.25s ease;
}

/* HOVER EFFECT */
.dm-list li a:hover {
  background: #f9fafb;
  color: #111827;
  transform: translateX(6px);
}

/* LEFT ACCENT LINE (PRO TOUCH) */
.dm-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0%;
  background: #6366f1;
  border-radius: 2px;
  transform: translateY(-50%);
  transition: 0.25s ease;
}

.dm-list li a:hover::before {
  height: 60%;
}

/* TEXT */
.dm-text {
  flex: 1;
}

/* ARROW */
.dm-arrow {
  width: 6px;
  height: 6px;
  border-right: 2px solid #9ca3af;
  border-top: 2px solid #9ca3af;
  transform: rotate(45deg);
  transition: 0.25s;
}

/* ARROW HOVER */
.dm-list li a:hover .dm-arrow {
  transform: rotate(45deg) translate(3px, -3px);
  border-color: #111827;
}

/* ===== DIVIDER (SOFT) ===== */
.dm-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: #f1f1f1;
}