/**
 * Bestage Creator Hub — Dashboard Stylesheet
 * @package BCH\Assets
 */

.bch-dashboard-shell {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	max-width: 1280px;
	margin: 24px auto;
	padding: 0 16px;
	color: var(--bch-text);
}
.bch-dashboard-sidebar {
	background: var(--bch-bg-card);
	border: 1px solid var(--bch-border);
	border-radius: var(--bch-radius-lg);
	padding: 20px;
	height: fit-content;
}
.bch-dashboard-user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bch-dashboard-user img { border-radius: 50%; }
.bch-back-to-bazar { display: block; font-size: 12px; color: var(--bch-text-muted); text-decoration: none; margin-bottom: 16px; }
.bch-back-to-bazar:hover { color: var(--bch-accent); }
.bch-dashboard-nav { display: flex; flex-direction: column; gap: 4px; }
.bch-dashboard-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--bch-radius-sm);
	color: var(--bch-text);
	text-decoration: none;
	font-size: 14px;
	position: relative;
}
.bch-dashboard-nav-item:hover { background: var(--bch-bg-elevated); }
.bch-dashboard-nav-item.is-active { background: var(--bch-primary); color: #fff; }
.bch-nav-badge { margin-left: auto; background: var(--bch-accent); color: #111; border-radius: 20px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.bch-nav-logout { color: var(--bch-text-muted); margin-top: 12px; border-top: 1px solid var(--bch-border); padding-top: 14px; }

.bch-dashboard-content { background: var(--bch-bg-card); border: 1px solid var(--bch-border); border-radius: var(--bch-radius-lg); padding: 28px; }

.bch-stat-cards { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 24px; }
.bch-stat-card { background: var(--bch-bg-elevated); border: 1px solid var(--bch-border); border-radius: var(--bch-radius-md); padding: 18px 22px; min-width: 160px; }
.bch-stat-number { display: block; font-size: 26px; font-weight: 700; color: var(--bch-accent); }
.bch-stat-label { display: block; font-size: 13px; color: var(--bch-text-muted); margin-top: 4px; }

.bch-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bch-profile-mini-card { background: var(--bch-bg-elevated); border: 1px solid var(--bch-border); border-radius: var(--bch-radius-md); padding: 12px; }
.bch-profile-mini-card img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--bch-radius-sm); margin-bottom: 8px; }
.bch-profile-mini-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.bch-status-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--bch-border); }
.bch-status-publish { background: #2e7d32; color: #fff; }
.bch-status-pending { background: var(--bch-accent); color: #111; }
.bch-status-draft { background: var(--bch-border); }

.bch-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.bch-table th, .bch-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bch-border); font-size: 14px; }
.bch-table th { color: var(--bch-text-muted); font-weight: 600; }

.bch-profile-form fieldset { border: 1px solid var(--bch-border); border-radius: var(--bch-radius-md); padding: 16px 20px; margin-bottom: 20px; }
.bch-profile-form legend { padding: 0 8px; color: var(--bch-accent); font-weight: 600; }
.bch-profile-form label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--bch-text-muted); }
.bch-profile-form label.bch-checkbox { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; }
.bch-profile-form input[type="text"],
.bch-profile-form input[type="url"],
.bch-profile-form input[type="email"],
.bch-profile-form input[type="number"],
.bch-profile-form select,
.bch-profile-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	background: var(--bch-bg-elevated);
	color: var(--bch-text);
	border: 1px solid var(--bch-border);
	border-radius: var(--bch-radius-sm);
	padding: 9px 12px;
	font-size: 14px;
}

.bch-mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: 12px; }
.bch-mini-chart-bar { flex: 1; background: var(--bch-primary); border-radius: 3px 3px 0 0; min-height: 2px; }

.bch-follower-list, .bch-thread-list { list-style: none; margin: 0; padding: 0; }
.bch-follower-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bch-border); }
.bch-muted { color: var(--bch-text-muted); font-size: 12px; margin-left: auto; }

.bch-messages-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.bch-thread-item { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--bch-radius-sm); text-decoration: none; color: var(--bch-text); }
.bch-thread-item:hover, .bch-thread-item.is-active { background: var(--bch-bg-elevated); }
.bch-thread-item small { color: var(--bch-text-muted); }
.bch-message { max-width: 70%; padding: 10px 14px; border-radius: var(--bch-radius-md); margin-bottom: 10px; background: var(--bch-bg-elevated); }
.bch-message-mine { margin-left: auto; background: var(--bch-primary); }
.bch-message time { display: block; font-size: 11px; color: var(--bch-text-muted); margin-top: 4px; }

.bch-alert { padding: 12px 16px; border-radius: var(--bch-radius-sm); margin-bottom: 16px; }
.bch-alert-success { background: rgba(46,125,50,0.2); border: 1px solid #2e7d32; }
.bch-alert-error { background: rgba(139,0,0,0.2); border: 1px solid var(--bch-primary); }

.bch-notification-list { list-style: none; margin: 0; padding: 0; }
.bch-notification-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 12px;
	border-bottom: 1px solid var(--bch-border);
	border-radius: var(--bch-radius-sm);
}
.bch-notification-item.is-unread { background: var(--bch-bg-elevated); }
.bch-notification-icon { font-size: 20px; line-height: 1; }
.bch-notification-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bch-notification-body a { color: var(--bch-text); text-decoration: none; }
.bch-notification-body a:hover { color: var(--bch-accent); }
.bch-notification-body time { font-size: 12px; color: var(--bch-text-muted); }

.bch-recommendations-list { list-style: none; margin: 0; padding: 0; }
.bch-recommendations-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid var(--bch-border);
	font-size: 13px;
}
.bch-recommendations-points { color: var(--bch-accent); font-weight: 600; font-size: 12px; }

@media (max-width: 900px) {
	.bch-dashboard-shell, .bch-messages-layout { grid-template-columns: 1fr; }
}
