/* LifterLMS Dashboard Widgets - Styles */

/* Container Principal */
.llms-dw-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 24px;
	margin: 20px 0;
}

/* Card Base */
.llms-dw-card {
	background: var(--theme-background);
	border: 1px solid #f15b2a;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 2px 8px var(--theme-foreground);
	transition: all 0.3s ease;
}

.llms-dw-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.llms-dw-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f0f0;
}

.llms-dw-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.llms-dw-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #007cba;
	color: white;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-weight: bold;
	font-size: 14px;
}

/* Messages */
.llms-dw-message,
.llms-dw-empty {
	text-align: center;
	color: #666;
	padding: 20px;
	margin: 0;
	font-style: italic;
}

/* Lists */
.llms-dw-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.llms-dw-list-item {
	display: flex;
	align-items: flex-start;
	padding: 16px;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.llms-dw-list-item:last-child {
	border-bottom: none;
}

.llms-dw-list-item:hover {
	background-color: var(--neutral-400);
}

.llms-dw-rank {
	display: none;
}

.llms-dw-activity-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	margin-right: 12px;
	font-size: 16px;
	flex-shrink: 0;
	color: var(--support-500);
}

.llms-dw-content {
	flex: 1;
	min-width: 0;
}

.llms-dw-link {
	display: block;
	color: #007cba;
	text-decoration: none;
	font-weight: 500;
	margin-bottom: 4px;
	word-break: break-word;
	transition: color 0.2s ease;
}

.llms-dw-link:hover {
	color: #0056b3;
	text-decoration: underline;
}

.llms-dw-meta {
	font-size: 13px;
	color: #999;
	margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
	.llms-dw-container {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.llms-dw-list-item {
		padding: 12px;
	}

	.llms-dw-card {
		padding: 16px;
	}

	.llms-dw-card-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.llms-dw-rank,
	.llms-dw-activity-icon {
		width: 28px;
		height: 28px;
		font-size: 14px;
	}
}