/**
 * Minimal Swapr sidebar + dashboard CSS starter
 * Save as app-components.css or merge into your theme styles.
 */

.swapr-app-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 100vh;
	background: #0f1115;
	color: #f4f4f4;
}

.swapr-sidebar {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	background: #151922;
	border-right: 1px solid rgba(255,255,255,0.06);
}

.swapr-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.swapr-brand-mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #232938;
	font-weight: 700;
}

.swapr-brand-name {
	font-size: 18px;
	font-weight: 700;
}

.swapr-brand-tag {
	font-size: 12px;
	opacity: 0.7;
}

.swapr-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.swapr-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-radius: 12px;
	color: #f4f4f4;
	text-decoration: none;
	background: transparent;
}

.swapr-nav-link.is-active,
.swapr-nav-link:hover {
	background: #232938;
}

.swapr-nav-badge,
.swapr-badge {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	background: #ffffff;
	color: #111;
}

.swapr-user-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 14px;
	background: #1a1f2b;
}

.swapr-user-avatar {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #2a3142;
	font-weight: 700;
}

.swapr-user-name {
	font-weight: 600;
}

.swapr-user-email {
	font-size: 12px;
	opacity: 0.7;
	word-break: break-all;
}

.swapr-sidebar-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.swapr-sidebar-action {
	color: #c9d1e4;
	font-size: 13px;
	text-decoration: none;
}

.swapr-dashboard {
	padding: 24px;
}

.swapr-page-header,
.swapr-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.swapr-page-title,
.swapr-panel-title {
	margin: 0;
}

.swapr-page-subtitle {
	margin: 6px 0 0;
	opacity: 0.7;
}

.swapr-page-actions {
	display: flex;
	gap: 10px;
}

.swapr-button,
.swapr-text-button {
	cursor: pointer;
	border: 0;
}

.swapr-button {
	padding: 10px 14px;
	border-radius: 12px;
	background: #ffffff;
	color: #111;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.swapr-button-secondary {
	background: #232938;
	color: #fff;
}

.swapr-text-button {
	background: transparent;
	color: #c9d1e4;
}

.swapr-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 20px 0 24px;
}

.swapr-stat-card,
.swapr-panel {
	background: #171b24;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 18px;
	padding: 16px;
}

.swapr-stat-label {
	font-size: 13px;
	opacity: 0.7;
}

.swapr-stat-value {
	margin-top: 8px;
	font-size: 28px;
	font-weight: 700;
}

.swapr-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.swapr-panel-list,
.swapr-card-mini-list,
.swapr-trade-list,
.swapr-public-feed {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 14px;
}

.swapr-card-mini,
.swapr-feed-card,
.swapr-trade-row,
.swapr-notification-item,
.swapr-activity-item {
	display: flex;
	gap: 12px;
	padding: 12px;
	border-radius: 14px;
	background: #202634;
}

.swapr-notification-item {
	width: 100%;
	border: 0;
	text-align: left;
	color: inherit;
}

.swapr-notification-item.is-unread {
	outline: 1px solid rgba(255,255,255,0.18);
}

.swapr-card-mini-image,
.swapr-feed-card-image {
	width: 56px;
	height: 78px;
	object-fit: cover;
	border-radius: 10px;
	background: #2a3142;
}

.swapr-card-mini-image.is-placeholder,
.swapr-feed-card-image.is-placeholder {
	display: block;
}

.swapr-card-mini-title,
.swapr-feed-card-title,
.swapr-trade-partner,
.swapr-notification-title,
.swapr-activity-action {
	font-weight: 600;
}

.swapr-card-mini-meta,
.swapr-feed-card-meta,
.swapr-trade-meta,
.swapr-notification-body,
.swapr-notification-time,
.swapr-activity-meta,
.swapr-activity-time,
.swapr-empty-mini {
	font-size: 13px;
	opacity: 0.72;
}

.swapr-trade-row {
	align-items: center;
	justify-content: space-between;
}

.swapr-status-badge {
	padding: 6px 10px;
	border-radius: 999px;
	background: #2a3142;
	font-size: 12px;
}

@media (max-width: 1100px) {
	.swapr-app-layout {
		grid-template-columns: 1fr;
	}
	.swapr-dashboard-stats,
	.swapr-dashboard-grid {
		grid-template-columns: 1fr;
	}
}
