/* Dashboard */
.dba-dashboard-my-courses {
	padding: 16px 0;
}

.dba-dashboard-my-courses h2 {
	margin: 0 0 16px;
	font-size: 22px;
}

.dba-dashboard-empty {
	color: #6d7175;
}

.dba-dashboard-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e3e5e8;
	border-radius: 6px;
	overflow: hidden;
}

.dba-dashboard-table th,
.dba-dashboard-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #f0f1f2;
	font-size: 14px;
	vertical-align: top;
}

.dba-dashboard-table th {
	background: #f6f7f7;
	font-weight: 600;
}

.dba-dashboard-table tr:last-child td {
	border-bottom: 0;
}

.dba-dashboard-table a {
	color: #2563eb;
	text-decoration: none;
}

.dba-dashboard-table a:hover {
	text-decoration: underline;
}

/* v1.2: Dashboard tab — 即將上課 */
.dba-dashboard-upcoming-page__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dba-dashboard-upcoming-page__item {
	border: 1px solid #e3e5e8;
	border-radius: 10px;
	background: #fff;
}

.dba-dashboard-upcoming-page__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
}

.dba-dashboard-upcoming-page__main {
	flex: 1 1 320px;
	min-width: 0;
}

.dba-dashboard-upcoming-page__course {
	display: inline-block;
	margin-bottom: 8px;
	text-decoration: none;
}

.dba-dashboard-upcoming-page__course:hover {
	text-decoration: underline;
}

.dba-dashboard-upcoming-page__meta-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 14px;
	color: #4b5563;
}

.dba-dashboard-upcoming-page__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.6;
}

.dba-dashboard-upcoming-page__meta-time {
	margin-left: 6px;
	color: #6b7280;
}

.dba-dashboard-upcoming-page__meta--hint {
	color: #047857;
}

.dba-dashboard-upcoming-page__meta--hint-expired {
	color: #b91c1c;
}

.dba-dashboard-upcoming-page__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.dba-dashboard-upcoming-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
}

.dba-dashboard-upcoming-page__empty {
	border: 1px dashed #d1d5db;
	background: #fafafa;
	border-radius: 10px;
}

@media (max-width: 640px) {
	.dba-dashboard-upcoming-page__row {
		flex-direction: column;
	}

	.dba-dashboard-upcoming-page__actions {
		width: 100%;
	}

	.dba-dashboard-upcoming-page__actions .tutor-btn {
		flex: 1 1 auto;
	}
}

.dba-dashboard-upcoming__link,
.dba-dashboard-course-detail__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 13px;
}

.dba-dashboard-course-detail {
	margin-top: 24px;
	margin-bottom: 24px;
}

.dba-dashboard-course-detail__summary {
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 14px;
}

.dba-dashboard-course-detail__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dba-dashboard-course-detail__item {
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f1f2;
}

.dba-dashboard-course-detail__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.dba-dashboard-course-detail__item-title {
	font-weight: 600;
	color: #111827;
}

.dba-dashboard-course-detail__meta {
	margin-top: 6px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

