/* Dashboard */
.playcourse-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.dashboard-header {
	margin-bottom: 3rem;
}

.dashboard-header h1 {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

/* Continue Learning */
.dashboard-continue-learning {
	margin-bottom: 3rem;
}

.dashboard-continue-learning h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 1.5rem;
}

.continue-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.continue-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.continue-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.continue-card-thumbnail {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #f3f4f6;
}

.continue-card-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.continue-card-content {
	padding: 1.5rem;
}

.continue-card-content h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 0.5rem 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.continue-card-lesson {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0.5rem 0 1rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.continue-card-lesson i {
	line-height: 1;
	font-size: 0.75rem;
}

.continue-card-progress {
	margin-bottom: 1rem;
}

.progress-bar {
	width: 100%;
	background: #e5e7eb;
	border-radius: 0.25rem;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-bar .progress {
	background: linear-gradient(90deg, var(--pco-primary-color, #7A3FF2), var(--pco-primary-color, #7A3FF2));
	transition: width 0.3s ease;
}

.progress-text {
	font-size: 0.75rem;
	color: #9ca3af;
	margin: 0;
}

.btn-continue {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: var(--pco-primary-color, #7A3FF2);
	color: #fff;
	text-decoration: none;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.2s ease;
}

.btn-continue:hover {
	background: #5B1ED9;
	color: #fff;
	text-decoration: none;
}

.btn-continue i {
	font-size: 0.75rem;
	line-height: 1;
}

/* Dashboard Summary */
.dashboard-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.summary-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 1.5rem;
	text-align: center;
}

.summary-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.summary-value {
	font-size: 1.875rem;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 0.25rem;
}

.summary-label {
	font-size: 0.875rem;
	color: #6b7280;
}

/* Dashboard Content */
.dashboard-content {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
}

.dashboard-main h2 {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin: 2rem 0 1.5rem 0;
}

.dashboard-main h2:first-child {
	margin-top: 0;
}

.active-courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.course-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.course-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.course-info {
	padding: 1rem;
}

.course-info h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 0.75rem 0;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-bar .progress {
	height: 100%;
	background: linear-gradient(90deg, var(--pco-primary-color, #7A3FF2), var(--pco-primary-color, #7A3FF2));
	transition: width 0.3s ease;
}

.course-info p {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0.5rem 0;
}

.course-info .button {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--pco-primary-color, #7A3FF2);
	color: #fff;
	text-decoration: none;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.course-info .button:hover {
	background: #5B1ED9;
}

/* Activity List */
.activity-list {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
}

.activity-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
	border-bottom: none;
}

.activity-icon {
	font-size: 1.5rem;
	min-width: 2rem;
	text-align: center;
}

.activity-content p {
	font-size: 0.875rem;
	color: #1f2937;
	margin: 0;
}

.activity-content small {
	font-size: 0.75rem;
	color: #9ca3af;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.widget {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 1.5rem;
}

.widget h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 1rem 0;
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
	margin-bottom: 0.75rem;
}

.widget li:last-child {
	margin-bottom: 0;
}

.widget a {
	color: var(--pco-primary-color, #7A3FF2);
	text-decoration: none;
	font-size: 0.875rem;
}

.widget a:hover {
	text-decoration: underline;
}

.widget p {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.playcourse-dashboard {
		padding: 1rem;
	}

	.dashboard-header h1 {
		font-size: 1.5rem;
	}

	.continue-cards {
		grid-template-columns: 1fr;
	}

	.dashboard-summary {
		grid-template-columns: repeat(2, 1fr);
	}

	.dashboard-content {
		grid-template-columns: 1fr;
	}

	.active-courses {
		grid-template-columns: 1fr;
	}
}
