/* LMS Academy — front-end styles */

.lmsa-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #1c3d5a;
	color: #fff;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
}
.lmsa-btn:hover { background: #16324a; color: #fff; }
.lmsa-btn:disabled { background: #9aa7b1; cursor: default; }
.lmsa-btn-outline { background: transparent; border: 1px solid #1c3d5a; color: #1c3d5a; margin-left: 10px; }
.lmsa-btn-gold { background: #c8a24a; color: #1c3d5a; font-weight: bold; }

/* Catalog grid */
.lmsa-catalog { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.lmsa-cols-1 { grid-template-columns: 1fr; }
.lmsa-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lmsa-cols-4 { grid-template-columns: repeat(4, 1fr); }
.lmsa-card { border: 1px solid #e2e6ea; border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lmsa-card-thumb img { width: 100%; display: block; }
.lmsa-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lmsa-card-body h3 { margin: 0; font-size: 18px; }
.lmsa-card-body h3 a { text-decoration: none; color: #1c3d5a; }
.lmsa-card-excerpt { color: #555; font-size: 14px; margin: 0; }
.lmsa-card-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #777; }
.lmsa-badge { background: #eef1f5; padding: 3px 8px; border-radius: 12px; }

/* Progress bar */
.lmsa-progress-bar { background: #e6e9ed; border-radius: 6px; height: 10px; overflow: hidden; width: 100%; }
.lmsa-progress-fill { background: #2f9e44; height: 100%; transition: width .3s ease; }
.lmsa-progress-label { font-size: 12px; color: #555; margin-left: 8px; }

/* Player layout */
.lmsa-player-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.lmsa-player-body { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.lmsa-lesson-list ol { list-style: none; margin: 0; padding: 0; border: 1px solid #e2e6ea; border-radius: 8px; overflow: hidden; }
.lmsa-lesson-list li { border-bottom: 1px solid #eef1f5; }
.lmsa-lesson-list li:last-child { border-bottom: none; }
.lmsa-lesson-list a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; text-decoration: none; color: #333; font-size: 14px; }
.lmsa-lesson-list li.lmsa-active a { background: #eef4fb; font-weight: bold; }
.lmsa-lesson-list li.lmsa-done .lmsa-lesson-index { background: #2f9e44; color: #fff; }
.lmsa-lesson-index { width: 22px; height: 22px; border-radius: 50%; background: #dfe3e7; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.lmsa-quiz-tab a { border-top: 2px dashed #e2e6ea; }

.lmsa-lesson-content { border: 1px solid #e2e6ea; border-radius: 8px; padding: 30px; min-height: 300px; }
.lmsa-lesson h2 { margin-top: 0; }
.lmsa-lesson-body { margin-bottom: 24px; line-height: 1.7; }

/* Quiz */
.lmsa-question { border: none; border-top: 1px solid #eef1f5; padding: 16px 0; margin: 0; }
.lmsa-question legend { font-weight: bold; padding: 0 0 8px; }
.lmsa-option { display: block; padding: 6px 0; cursor: pointer; }
.lmsa-quiz-result { margin-top: 20px; padding: 16px; border-radius: 6px; }
.lmsa-quiz-result.pass { background: #ebfbee; color: #1a7f37; }
.lmsa-quiz-result.fail { background: #fff0f0; color: #a4262c; }
.lmsa-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.lmsa-notice-success { background: #ebfbee; color: #1a7f37; }

/* Dashboard */
.lmsa-dashboard-table { width: 100%; border-collapse: collapse; }
.lmsa-dashboard-table th, .lmsa-dashboard-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef1f5; font-size: 14px; }
.lmsa-row-overdue { background: #fff8f0; }
.lmsa-overdue-label { color: #a4262c; font-weight: bold; }

.lmsa-locked { text-align: center; padding: 40px; border: 1px dashed #ccc; border-radius: 8px; }

@media (max-width: 782px) {
	.lmsa-player-body { grid-template-columns: 1fr; }
	.lmsa-catalog { grid-template-columns: 1fr !important; }
}
