/**
 * Live Dashboard Cards styles — Module 8 Professional UI/UX Redesign.
 *
 * Every class name is unchanged from the previous version (no HTML/JS
 * changes needed here). Reduced card height, softer/lighter borders,
 * very subtle gradients, professional shadows, rounded corners, and a
 * more compact chip row — matching the same soft-blue, white, light-grey
 * palette used across the rest of the redesigned Desktop View.
 */

.y2b-dash-wrap {
	margin: 0 0 12px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── TOP SUMMARY CARDS — reduced height, all 5 in one row ── */
.y2b-dash-cards {
	display: grid;
	grid-template-columns: repeat( 5, 1fr );
	gap: 10px;
	margin-bottom: 10px;
}

.y2b-dash-card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1.5px solid;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.05 );
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.y2b-dash-card:hover {
	transform: translateY( -2px );
	box-shadow: 0 6px 16px rgba( 15, 23, 42, 0.1 );
}

.y2b-dash-card-icon {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.y2b-dash-card-icon svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
}

.y2b-dash-card-count {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	margin-right: 6px;
}

.y2b-dash-card-label {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.75;
	white-space: nowrap;
}

/* Total — neutral indigo accent, very subtle gradient */
.y2b-dash-card-total {
	background: linear-gradient( 150deg, #f3f4ff 0%, #fafaff 100% );
	border-color: #a5aef0 !important;
}
.y2b-dash-card-total .y2b-dash-card-icon { background: #4f46e5; color: #fff; }
.y2b-dash-card-total .y2b-dash-card-count,
.y2b-dash-card-total .y2b-dash-card-label { color: #4338ca; }

/* Rent — soft blue */
.y2b-dash-card-rent {
	background: linear-gradient( 150deg, #f2f7ff 0%, #fafcff 100% );
	border-color: #93c1f7 !important;
}
.y2b-dash-card-rent .y2b-dash-card-icon { background: #2563eb; color: #fff; }
.y2b-dash-card-rent .y2b-dash-card-count,
.y2b-dash-card-rent .y2b-dash-card-label { color: #1d4ed8; }

/* Sale — soft green */
.y2b-dash-card-sale {
	background: linear-gradient( 150deg, #f1fbf5 0%, #fafefc 100% );
	border-color: #86dba0 !important;
}
.y2b-dash-card-sale .y2b-dash-card-icon { background: #16a34a; color: #fff; }
.y2b-dash-card-sale .y2b-dash-card-count,
.y2b-dash-card-sale .y2b-dash-card-label { color: #15803d; }

/* Commercial — soft amber */
.y2b-dash-card-commercial {
	background: linear-gradient( 150deg, #fefbf1 0%, #fffdf8 100% );
	border-color: #e8c86b !important;
}
.y2b-dash-card-commercial .y2b-dash-card-icon { background: #ca8a04; color: #fff; }
.y2b-dash-card-commercial .y2b-dash-card-count,
.y2b-dash-card-commercial .y2b-dash-card-label { color: #a16207; }

/* Paying Guest — soft purple */
.y2b-dash-card-pg {
	background: linear-gradient( 150deg, #faf6ff 0%, #fdfaff 100% );
	border-color: #d3a8f5 !important;
}
.y2b-dash-card-pg .y2b-dash-card-icon { background: #9333ea; color: #fff; }
.y2b-dash-card-pg .y2b-dash-card-count,
.y2b-dash-card-pg .y2b-dash-card-label { color: #7e22ce; }

/* Active state: soft ring in each card's own accent colour, no heavy border */
.y2b-dash-card.y2b-dash-active {
	box-shadow: 0 0 0 2px rgba( 37, 99, 235, 0.18 );
}
.y2b-dash-card-total.y2b-dash-active { border-color: #a5b4fc !important; }
.y2b-dash-card-rent.y2b-dash-active { border-color: #93c5fd !important; }
.y2b-dash-card-sale.y2b-dash-active { border-color: #86efac !important; }
.y2b-dash-card-commercial.y2b-dash-active { border-color: #fde68a !important; }
.y2b-dash-card-pg.y2b-dash-active { border-color: #d8b4fe !important; }

/* ── SECOND ROW: BHK / CATEGORY CHIPS — reduced height/padding ── */
.y2b-dash-chips {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 5px;
	padding-bottom: 2px;
}

.y2b-dash-chip {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 4px;
	height: 28px;
	padding: 0 9px;
	border-radius: 16px;
	border: 1.5px solid #94a3b8 !important;
	background: #fff;
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.y2b-dash-chip:hover {
	background: #f8faff;
	border-color: #bfdbfe !important;
	box-shadow: 0 1px 4px rgba( 37, 99, 235, 0.1 );
}

.y2b-dash-chip-count {
	font-weight: 700;
	color: #2563eb;
}

.y2b-dash-chip.y2b-dash-active {
	background: #2563eb;
	border-color: #2563eb !important;
	color: #fff;
}

.y2b-dash-chip.y2b-dash-active .y2b-dash-chip-count {
	color: #fff;
}

/* ── RESPONSIVE ── */
@media ( max-width: 1200px ) {
	.y2b-dash-cards {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media ( max-width: 700px ) {
	.y2b-dash-cards {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 420px ) {
	.y2b-dash-cards {
		grid-template-columns: 1fr;
	}
}
