/**
 * Shibhu Matrimony – Frontend Dashboard Styles
 *
 * Self-contained token set (scoped to .sm-dash-wrap) so this stylesheet
 * doesn't depend on single-profile.css being loaded on the same page.
 *
 * @package Modern_Matrimony
 * @since   1.4.0
 */

.sm-dash-wrap {
	--sm-dash-crimson:       #c41e3a;
	--sm-dash-crimson-dark:  #9e1830;
	--sm-dash-crimson-light: #f7e8eb;
	--sm-dash-pink-bg:       #fdeef1;
	--sm-dash-gold:          #b8962e;
	--sm-dash-text-dark:     #1a1a1a;
	--sm-dash-text-mid:      #4a4a4a;
	--sm-dash-text-light:    #7a7a7a;
	--sm-dash-border:        #e8ddd5;
	--sm-dash-border-light:  #f0e8e0;
	--sm-dash-white:         #ffffff;
	--sm-dash-bg:            #faf7f5;
	--sm-dash-radius:        14px;
	--sm-dash-radius-sm:     10px;
	--sm-dash-shadow:        0 2px 16px rgba(26,26,26,0.06);

	max-width: 1360px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	color: var(--sm-dash-text-dark);
}

.sm-dash-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sm-dash-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 24px;
}

.sm-dash-profile-card {
	background: var(--sm-dash-white);
	border: 1px solid var(--sm-dash-border-light);
	border-radius: var(--sm-dash-radius);
	box-shadow: var(--sm-dash-shadow);
	padding: 24px 20px;
	text-align: center;
}

.sm-dash-avatar {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 12px;
	display: block;
}

.sm-dash-avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sm-dash-crimson-light);
	color: var(--sm-dash-crimson);
}

.sm-dash-name {
	margin: 0 0 2px;
	font-weight: 700;
	font-size: 1.05em;
}

.sm-dash-id {
	margin: 0;
	font-size: 0.8em;
	color: var(--sm-dash-text-light);
}

.sm-dash-nav {
	background: var(--sm-dash-white);
	border: 1px solid var(--sm-dash-border-light);
	border-radius: var(--sm-dash-radius);
	box-shadow: var(--sm-dash-shadow);
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sm-dash-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--sm-dash-text-mid);
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
}

.sm-dash-nav-item svg {
	flex-shrink: 0;
	opacity: 0.8;
}

.sm-dash-nav-item:hover {
	background: var(--sm-dash-pink-bg);
	color: var(--sm-dash-crimson);
	text-decoration: none;
}

.sm-dash-nav-item.is-active {
	background: var(--sm-dash-crimson);
	color: #fff;
	cursor: default;
}

.sm-dash-nav-item.is-active svg {
	opacity: 1;
}

.sm-dash-nav-badge {
	margin-left: auto;
	background: var(--sm-dash-crimson);
	color: #fff;
	font-size: 0.72em;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

.sm-dash-nav-item.is-active .sm-dash-nav-badge {
	background: rgba(255,255,255,0.25);
}

.sm-dash-nav-badge--muted {
	background: #e8ddd5;
	color: var(--sm-dash-text-mid);
}

.sm-dash-nav-divider {
	height: 1px;
	background: var(--sm-dash-border-light);
	margin: 6px 4px;
}

/* ============================================================
   Main column
   ============================================================ */
.sm-dash-main {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.sm-dash-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sm-dash-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sm-dash-section-title {
	margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--sm-dash-text-dark);
}

.sm-dash-card {
	background: var(--sm-dash-white);
	border: 1px solid var(--sm-dash-border-light);
	border-radius: var(--sm-dash-radius);
	box-shadow: var(--sm-dash-shadow);
}

.sm-dash-empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--sm-dash-text-light);
	font-size: 0.9em;
}

/* ============================================================
   Welcome banner
   ============================================================ */
.sm-dash-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: linear-gradient(135deg, var(--sm-dash-pink-bg) 0%, #fbe4e9 100%);
	border-radius: var(--sm-dash-radius);
	padding: 26px 32px;
}

.sm-dash-welcome-text h2 {
	margin: 0 0 6px;
	font-family: Georgia, serif;
	font-size: 1.5em;
	font-weight: 700;
	color: var(--sm-dash-text-dark);
}

.sm-dash-welcome-text h2 em {
	color: var(--sm-dash-crimson);
	font-style: normal;
}

.sm-dash-welcome-text p {
	margin: 0;
	color: var(--sm-dash-text-mid);
	font-size: 0.92em;
}

.sm-dash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	text-decoration: none;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.sm-dash-btn-primary {
	background: var(--sm-dash-crimson);
	color: #fff;
}

.sm-dash-btn-primary:hover {
	background: var(--sm-dash-crimson-dark);
	color: #fff;
	text-decoration: none;
}

.sm-dash-btn-primary:active {
	transform: scale(0.98);
}

/* ============================================================
   Stat cards
   ============================================================ */
.sm-dash-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.sm-dash-stat-card {
	background: var(--sm-dash-white);
	border: 1px solid var(--sm-dash-border-light);
	border-radius: var(--sm-dash-radius);
	box-shadow: var(--sm-dash-shadow);
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sm-dash-stat-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

.sm-dash-stat-icon--views      { background: #fde8ec; color: var(--sm-dash-crimson); }
.sm-dash-stat-icon--interests  { background: #e9f7ee; color: #2e9e5b; }
.sm-dash-stat-icon--shortlist  { background: #fdf3e0; color: var(--sm-dash-gold); }

.sm-dash-stat-value {
	font-size: 1.6em;
	font-weight: 700;
	font-family: Georgia, serif;
	line-height: 1.1;
}

.sm-dash-stat-label {
	font-size: 0.8em;
	color: var(--sm-dash-text-light);
}

/* ============================================================
   Completion card
   ============================================================ */
.sm-dash-completion-card {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 28px;
	align-items: center;
	padding: 26px;
}

.sm-dash-completion-ring {
	--sm-dash-pct: 0;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: conic-gradient(var(--sm-dash-crimson) calc(var(--sm-dash-pct) * 1%), var(--sm-dash-border-light) 0);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	position: relative;
}

.sm-dash-completion-ring::before {
	content: '';
	position: absolute;
	inset: 10px;
	background: var(--sm-dash-white);
	border-radius: 50%;
}

.sm-dash-completion-pct {
	position: relative;
	z-index: 1;
	font-family: Georgia, serif;
	font-weight: 700;
	font-size: 1.15em;
}

.sm-dash-completion-label {
	text-align: center;
	margin: 8px 0 0;
	font-size: 0.78em;
	color: var(--sm-dash-text-light);
}

.sm-dash-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sm-dash-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9em;
}

.sm-dash-checklist li.is-done {
	color: var(--sm-dash-text-dark);
}

.sm-dash-checklist li.is-done svg {
	color: #2e9e5b;
	flex-shrink: 0;
}

.sm-dash-checklist li.is-pending {
	color: var(--sm-dash-text-light);
}

.sm-dash-check-empty {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1.5px solid var(--sm-dash-border);
	flex-shrink: 0;
}

.sm-dash-add-now {
	margin-left: auto;
	color: var(--sm-dash-crimson);
	font-weight: 600;
	font-size: 0.85em;
	text-decoration: none;
}

.sm-dash-add-now:hover {
	text-decoration: underline;
}

/* ============================================================
   Interest rows (received / sent)
   ============================================================ */
.sm-dash-interest-list {
	padding: 6px 20px;
}

.sm-dash-interest-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--sm-dash-border-light);
}

.sm-dash-interest-row:last-child {
	border-bottom: none;
}

.sm-dash-interest-photo {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	display: block;
}

.sm-dash-interest-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sm-dash-interest-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sm-dash-interest-info a {
	font-weight: 700;
	color: var(--sm-dash-text-dark);
	text-decoration: none;
	font-family: Georgia, serif;
}

.sm-dash-interest-info a:hover {
	color: var(--sm-dash-crimson);
}

.sm-dash-interest-meta {
	font-size: 0.8em;
	color: var(--sm-dash-text-light);
}

.sm-dash-interest-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.sm-dash-icon-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--sm-dash-border);
	background: var(--sm-dash-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--sm-dash-text-mid);
	transition: all 0.15s ease;
}

.sm-dash-accept-interest:hover {
	background: #e9f7ee;
	border-color: #2e9e5b;
	color: #2e9e5b;
}

.sm-dash-decline-interest:hover {
	background: var(--sm-dash-crimson-light);
	border-color: var(--sm-dash-crimson);
	color: var(--sm-dash-crimson);
}

.sm-dash-icon-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sm-dash-status-badge {
	flex-shrink: 0;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 4px 10px;
	border-radius: 999px;
}

.sm-dash-status-badge--pending   { background: #fdf3e0; color: var(--sm-dash-gold); }
.sm-dash-status-badge--accepted  { background: #e9f7ee; color: #2e9e5b; }
.sm-dash-status-badge--declined  { background: var(--sm-dash-crimson-light); color: var(--sm-dash-crimson); }

.sm-dash-link-btn {
	background: none;
	border: none;
	color: var(--sm-dash-crimson);
	font-size: 0.82em;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.sm-dash-link-btn:hover {
	text-decoration: underline;
}

/* ============================================================
   Recommended grid
   ============================================================ */
.sm-dash-recommend-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.sm-dash-rec-card {
	position: relative;
	background: var(--sm-dash-white);
	border: 1px solid var(--sm-dash-border-light);
	border-radius: var(--sm-dash-radius-sm);
	box-shadow: var(--sm-dash-shadow);
	overflow: hidden;
	padding-bottom: 10px;
}

.sm-dash-rec-photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: var(--sm-dash-border-light);
}

.sm-dash-rec-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sm-dash-rec-photo .sm-dash-avatar--placeholder {
	width: 100%;
	height: 100%;
}

.sm-dash-shortlist-toggle {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sm-dash-text-light);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sm-dash-shortlist-toggle.is-active {
	background: var(--sm-dash-crimson);
	color: #fff;
}

.sm-dash-rec-name {
	margin: 10px 12px 0;
}

.sm-dash-rec-name a {
	color: var(--sm-dash-text-dark);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9em;
}

.sm-dash-rec-meta {
	margin: 2px 12px 0;
	font-size: 0.78em;
	color: var(--sm-dash-text-light);
}

/* ============================================================
   Activity timeline
   ============================================================ */
.sm-dash-activity-list {
	padding: 14px 20px;
}

.sm-dash-tl-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--sm-dash-border-light);
}

.sm-dash-tl-item:last-child {
	border-bottom: none;
}

.sm-dash-tl-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-top: 6px;
	flex-shrink: 0;
}

.sm-dash-tl--blue   { background: #3b82f6; }
.sm-dash-tl--pink   { background: var(--sm-dash-crimson); }
.sm-dash-tl--amber  { background: var(--sm-dash-gold); }
.sm-dash-tl--green  { background: #2e9e5b; }
.sm-dash-tl--grey   { background: #94a3b8; }

.sm-dash-tl-message {
	margin: 0;
	font-size: 0.88em;
	color: var(--sm-dash-text-mid);
}

.sm-dash-tl-message strong {
	color: var(--sm-dash-text-dark);
}

.sm-dash-tl-time {
	font-size: 0.75em;
	color: var(--sm-dash-text-light);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.sm-dash-layout {
		grid-template-columns: 1fr;
	}

	.sm-dash-sidebar {
		position: static;
	}

	.sm-dash-nav {
		flex-direction: row;
		overflow-x: auto;
	}

	.sm-dash-nav-item {
		white-space: nowrap;
	}

	.sm-dash-nav-divider {
		display: none;
	}

	.sm-dash-completion-card {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.sm-dash-checklist {
		text-align: left;
	}
}

@media (max-width: 560px) {
	.sm-dash-welcome {
		flex-direction: column;
		align-items: flex-start;
	}

	.sm-dash-interest-row {
		flex-wrap: wrap;
	}
}
