/**
 * Hero dashboard mockup.
 *
 * A fully self-contained, animated product dashboard used as the homepage
 * hero visual (right column). Every rule is scoped under `.dpdp-dash` so it
 * cannot leak into — or be overridden by — the rest of the theme. The mockup
 * is authored at a fixed design width (1180px) and scaled to fit its column
 * by assets/js/hero-dashboard.js.
 */

.dpdp-dash {
	/* Design tokens — scoped, never touch the theme's :root vars. */
	--dd-blue: #2563eb; --dd-blue-600: #2563eb; --dd-blue-700: #1d4ed8;
	--dd-card-blue: #1d5ad9; --dd-card-blue-2: #1e63e0;
	--dd-ink: #0f172a; --dd-ink-2: #334155; --dd-muted: #64748b; --dd-muted-2: #94a3b8;
	--dd-line: #e5e7eb; --dd-line-2: #eef1f5; --dd-bg: #f7f8fa; --dd-side: #fff; --dd-active: #eef3ff;
	--dd-green: #16a34a; --dd-amber: #d97706; --dd-red: #e11d48;
	--dd-radius: 14px;
	--dd-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
	--dd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Inter", sans-serif;

	position: relative;
	width: 100%;
	/* A touch narrower than the header content area (~1152px) so it reads as
	   framed by the page, matching the hero heading/paragraph column. */
	max-width: 1120px;
	margin: 0 auto;
	overflow: hidden;
	aspect-ratio: 1180 / 812; /* reserves space before JS sets the exact height */
	color: var(--dd-ink);
	font-family: var(--dd-font);
	/* The homepage hero is center-aligned; reset here so dashboard copy stays
	   left-aligned exactly like the standalone dpdp-dashboard.html reference. */
	text-align: left;
}
.dpdp-dash * { box-sizing: border-box; margin: 0; padding: 0; }

/* Fixed-width design stage, scaled to the container by JS. */
.dpdp-dash-stage {
	position: absolute;
	top: 0;
	left: 0;
	width: 1180px;
	transform-origin: top left;
	will-change: transform;
}

/* Browser window */
.dpdp-dash .window {
	width: 100%;
	max-width: 1180px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.05);
	position: relative;
}
.dpdp-dash .chrome { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f2f3f5; border-bottom: 1px solid #e6e8eb; }
.dpdp-dash .dots { display: flex; gap: 8px; }
.dpdp-dash .dots span { width: 12px; height: 12px; border-radius: 50%; }
.dpdp-dash .dots .r { background: #ff5f57; } .dpdp-dash .dots .y { background: #febc2e; } .dpdp-dash .dots .g { background: #28c840; }
.dpdp-dash .chrome-ico { display: flex; gap: 14px; color: #9aa0a6; } .dpdp-dash .chrome-ico svg { width: 18px; height: 18px; }
.dpdp-dash .nav-arrows { display: flex; gap: 16px; color: #b3b8bd; } .dpdp-dash .nav-arrows svg { width: 16px; height: 16px; }
.dpdp-dash .urlbar {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border-radius: 8px;
	padding: 7px 14px; color: #3c4043; font-size: 13px; box-shadow: inset 0 0 0 1px #e6e8eb; max-width: 560px; margin: 0 auto;
}
.dpdp-dash .urlbar svg { width: 13px; height: 13px; color: #9aa0a6; }
.dpdp-dash .urlbar b { font-weight: 400; color: #202124; } .dpdp-dash .urlbar .path { color: #5f6368; }
.dpdp-dash .refresh-ico { margin-left: auto; color: #9aa0a6; }

/* Layout */
.dpdp-dash .app { display: flex; height: 760px; background: var(--dd-bg); position: relative; }
.dpdp-dash .sidebar {
	width: 250px; flex-shrink: 0; background: var(--dd-side); border-right: 1px solid var(--dd-line);
	display: flex; flex-direction: column; padding: 18px 14px 12px;
}
.dpdp-dash .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.dpdp-dash .brand-logo {
	display: block; width: auto; height: auto; max-width: 184px; max-height: 40px;
	object-fit: contain; object-position: left center;
	border: 0; border-radius: 0; padding: 0; background: transparent;
	box-shadow: none; clip-path: none; mask-image: none; overflow: visible;
}
.dpdp-dash .brand-mark {
	width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
	background: linear-gradient(135deg, var(--dd-blue-600), #4f46e5);
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.dpdp-dash .brand-mark svg { width: 20px; height: 20px; }
.dpdp-dash .brand-text { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--dd-ink); }
.dpdp-dash .brand-text b { color: var(--dd-blue-600); font-weight: 800; }
.dpdp-dash .nav { flex: 1; overflow-y: auto; overflow-x: hidden; }
.dpdp-dash .nav::-webkit-scrollbar { width: 6px; } .dpdp-dash .nav::-webkit-scrollbar-thumb { background: #e2e5ea; border-radius: 3px; }
.dpdp-dash .nav-group { margin-bottom: 14px; }
.dpdp-dash .nav-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--dd-muted-2); text-transform: uppercase; padding: 0 10px 7px; }
.dpdp-dash .nav-item {
	display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; cursor: pointer;
	font-size: 14px; color: var(--dd-ink-2); font-weight: 500; transition: .15s; user-select: none; margin-bottom: 2px;
}
.dpdp-dash .nav-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--dd-muted); }
.dpdp-dash .nav-item:hover { background: #f4f6f9; }
.dpdp-dash .nav-item.active { background: var(--dd-active); color: var(--dd-blue-700); font-weight: 600; }
.dpdp-dash .nav-item.active svg { color: var(--dd-blue-700); }
.dpdp-dash .nav-divider { height: 1px; background: var(--dd-line); margin: 8px 6px 12px; }
.dpdp-dash .user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--dd-line); margin-top: 6px; }
.dpdp-dash .user .av {
	width: 36px; height: 36px; border-radius: 50%; background: var(--dd-red); color: #fff; display: flex;
	align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.dpdp-dash .user .meta { flex: 1; line-height: 1.25; } .dpdp-dash .user .meta b { font-size: 13.5px; font-weight: 600; }
.dpdp-dash .user .meta span { font-size: 12px; color: var(--dd-muted); }
.dpdp-dash .user .logout { display: flex; align-items: center; gap: 2px; color: var(--dd-muted); cursor: pointer; }
.dpdp-dash .user .logout svg { width: 17px; height: 17px; }

.dpdp-dash .main { flex: 1; overflow-y: auto; padding: 30px 34px 40px; }
.dpdp-dash .main::-webkit-scrollbar { width: 9px; } .dpdp-dash .main::-webkit-scrollbar-thumb { background: #dce0e6; border-radius: 5px; }
.dpdp-dash .page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.dpdp-dash .page-head h2 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; color: var(--dd-ink); }
.dpdp-dash .page-head p { color: var(--dd-muted); font-size: 14.5px; margin-top: 5px; max-width: 640px; }
.dpdp-dash .btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 9px; font-size: 13.5px;
	font-weight: 600; cursor: pointer; border: 1px solid var(--dd-line); background: #fff; color: var(--dd-ink-2); transition: .15s; white-space: nowrap;
}
.dpdp-dash .btn svg { width: 15px; height: 15px; } .dpdp-dash .btn:hover { background: #f7f8fa; border-color: #d7dbe0; }
.dpdp-dash .btn-primary { background: var(--dd-blue-600); color: #fff; border-color: var(--dd-blue-600); }
.dpdp-dash .btn-primary:hover { background: var(--dd-blue-700); border-color: var(--dd-blue-700); }

.dpdp-dash .kpi-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 22px; }
.dpdp-dash .kpi-right { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.dpdp-dash .big-card {
	background: linear-gradient(150deg, var(--dd-card-blue), var(--dd-card-blue-2)); border-radius: var(--dd-radius);
	padding: 24px 26px; color: #fff; display: flex; flex-direction: column; min-height: 300px; position: relative; overflow: hidden;
	box-shadow: 0 20px 40px -22px rgba(29,90,217,.7);
}
.dpdp-dash .big-card .lbl { font-size: 15px; font-weight: 600; opacity: .95; display: flex; justify-content: space-between; align-items: center; }
.dpdp-dash .big-card .lbl svg { width: 22px; height: 22px; opacity: .9; }
.dpdp-dash .big-card .num { font-size: 66px; font-weight: 700; line-height: 1.1; margin: 16px 0 4px; letter-spacing: -.03em; }
.dpdp-dash .big-card .sub { font-size: 14px; opacity: .9; }
.dpdp-dash .big-card .link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; cursor: pointer; }
.dpdp-dash .big-card .link svg { width: 15px; height: 15px; }
.dpdp-dash .stat {
	background: #fff; border: 1px solid var(--dd-line); border-radius: var(--dd-radius); padding: 18px 20px; box-shadow: var(--dd-shadow);
	display: flex; flex-direction: column; justify-content: center;
}
.dpdp-dash .stat .top { display: flex; align-items: flex-start; justify-content: space-between; }
.dpdp-dash .stat .top .t { font-size: 14px; color: var(--dd-ink-2); font-weight: 600; } .dpdp-dash .stat .top svg { width: 19px; height: 19px; }
.dpdp-dash .stat .num { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 3px; }
.dpdp-dash .stat .sub { font-size: 12.5px; color: var(--dd-muted); }
.dpdp-dash .ico-amber { color: var(--dd-amber); } .dpdp-dash .ico-red { color: var(--dd-red); }
.dpdp-dash .ico-blue { color: var(--dd-blue); } .dpdp-dash .ico-green { color: var(--dd-green); }

.dpdp-dash .panel { background: #fff; border: 1px solid var(--dd-line); border-radius: var(--dd-radius); padding: 24px 26px; box-shadow: var(--dd-shadow); margin-bottom: 20px; }
.dpdp-dash .panel-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; }
.dpdp-dash .panel-title svg { width: 19px; height: 19px; color: var(--dd-ink); }
.dpdp-dash .panel-desc { color: var(--dd-muted); font-size: 14px; margin: 8px 0 20px; }
.dpdp-dash .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 18px; }
.dpdp-dash .field label { display: block; font-size: 13px; font-weight: 600; color: var(--dd-ink-2); margin-bottom: 7px; }
.dpdp-dash .select, .dpdp-dash .input {
	width: 100%; padding: 10px 13px; border: 1px solid var(--dd-line); border-radius: 9px; font-size: 14px;
	font-family: var(--dd-font); color: var(--dd-ink); background: #fff;
}
.dpdp-dash .select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
.dpdp-dash .btn-row { display: flex; gap: 11px; margin-bottom: 20px; flex-wrap: wrap; }
.dpdp-dash .info-box { background: #f8fafc; border: 1px solid var(--dd-line-2); border-radius: 11px; padding: 16px 18px; font-size: 13.5px; line-height: 1.9; color: var(--dd-ink-2); }
.dpdp-dash .info-box b { color: var(--dd-ink); }

.dpdp-dash .table-wrap { background: #fff; border: 1px solid var(--dd-line); border-radius: var(--dd-radius); overflow: hidden; box-shadow: var(--dd-shadow); }
.dpdp-dash table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dpdp-dash thead th {
	text-align: left; padding: 13px 20px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
	color: var(--dd-muted); background: #fafbfc; border-bottom: 1px solid var(--dd-line);
}
.dpdp-dash tbody td { padding: 14px 20px; border-bottom: 1px solid var(--dd-line-2); color: var(--dd-ink-2); }
.dpdp-dash tbody tr:last-child td { border-bottom: none; }
.dpdp-dash tbody tr:hover { background: #fafbfd; }
.dpdp-dash td .strong { font-weight: 600; color: var(--dd-ink); }
.dpdp-dash .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.dpdp-dash .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dpdp-dash .b-green { background: #e7f6ec; color: #15803d; } .dpdp-dash .b-amber { background: #fef3e2; color: #b45309; }
.dpdp-dash .b-red { background: #fce8ec; color: #be123c; } .dpdp-dash .b-blue { background: #e8f0fe; color: #1d4ed8; } .dpdp-dash .b-gray { background: #f1f3f5; color: #475569; }

.dpdp-dash .cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dpdp-dash .mini { background: #fff; border: 1px solid var(--dd-line); border-radius: var(--dd-radius); padding: 20px; box-shadow: var(--dd-shadow); }
.dpdp-dash .mini .ic { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.dpdp-dash .mini .ic svg { width: 21px; height: 21px; }
.dpdp-dash .mini h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.dpdp-dash .mini p { font-size: 13px; color: var(--dd-muted); line-height: 1.5; margin-bottom: 14px; }
.dpdp-dash .mini .foot { display: flex; align-items: center; justify-content: space-between; }
.dpdp-dash .progress { height: 8px; background: #eef1f5; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.dpdp-dash .progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2563eb, #3b82f6); }
.dpdp-dash .section-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dd-muted); margin: 6px 0 14px; }

/* fake cursor */
.dpdp-dash .cursor {
	position: absolute; top: 0; left: 0; width: 24px; height: 24px; z-index: 999; pointer-events: none;
	transition: transform .5s cubic-bezier(.5,.05,.3,1); transform: translate(120px,120px); filter: drop-shadow(0 3px 4px rgba(0,0,0,.28));
}
.dpdp-dash .cursor svg { width: 100%; height: 100%; }

/* tour control */
.dpdp-dash .tour-ctrl {
	position: absolute; bottom: 16px; right: 18px; z-index: 1000; display: flex; gap: 8px; align-items: center;
	background: rgba(15,23,42,.9); backdrop-filter: blur(8px); padding: 8px 10px 8px 14px; border-radius: 30px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
}
.dpdp-dash .tour-ctrl span.status { color: #cbd5e1; font-size: 12.5px; font-weight: 600; }
.dpdp-dash .tour-btn {
	background: var(--dd-blue-600); color: #fff; border: none; border-radius: 20px; padding: 7px 15px; font-size: 12.5px;
	font-weight: 600; cursor: pointer; font-family: var(--dd-font); transition: .15s;
}
.dpdp-dash .tour-btn:hover { background: var(--dd-blue-700); } .dpdp-dash .tour-btn.stop { background: #334155; }
.dpdp-dash .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: dpdpdash-pulse 1.4s infinite; }
@keyframes dpdpdash-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.dpdp-dash .fade-in { animation: dpdpdash-fade .4s ease; }
@keyframes dpdpdash-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
