/* Lite LMS Plugin Styles */

/* Main wrapper */
.scp-wrap {
	margin: 1rem 0;
}

/* Completion button */
.scp-btn {
	display: flex;
	flex-basis: 33%;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-height: 75px;
	height: 75px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	cursor: default;
	background: #205bc2;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
}

.scp-btn:hover:not(.is-completed):not([disabled]) {
	background: #1B4A9B;
}

.scp-btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.scp-btn.is-completed {
	background: #36875d;
	color: #fff;
}

.scp-state {
	padding: 1rem 2rem;
	font-weight: bold;
	font-size: 16px;
}

/* Progress bar */
.scp-progress {
	margin: .5rem 0 0;
	height: 10px;
	background: #eee;
	border-radius: 999px;
	overflow: hidden;
}

.scp-bar {
	height: 10px;
	width: 0%;
	background: #2271b1;
	transition: width .3s ease;
	border-radius: 999px;
}

/* Lesson list */
.scp-list {
	margin: .75rem 0 0;
	padding-left: 1.1rem;
	list-style: none;
}

.scp-item {
	margin: .5rem 0;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.scp-item.is-completed .scp-item-state {
	color: #4caf50;
}

.scp-item-state {
	display: inline-block;
	width: 1.5rem;
	font-weight: bold;
}

/* View link */
.scp-view-link {
	margin-left: .5rem;
	font-size: .9em;
	text-decoration: none;
	color: #2271b1;
}

.scp-view-link:hover {
	text-decoration: underline;
}

/* Reset link */
.scp-reset-link {
	margin-left: .5rem;
	font-size: .9em;
	text-decoration: none;
	color: #2271b1;
}

.scp-reset-link:hover {
	text-decoration: underline;
}

/* Modal overlay */
.scp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Modal container */
.scp-modal {
	background: #fff;
	border-radius: .5rem;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal header */
.scp-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #ddd;
}

.scp-modal-header h3 {
	margin: 0;
	font-size: 1.25rem;
}

/* Modal close button */
.scp-modal-close {
	background: none;
	border: none;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scp-modal-close:hover {
	color: #000;
}

/* Modal body */
.scp-modal-body {
	padding: 1.5rem;
	overflow-x: auto;
	overflow-y: auto;
	flex: 1;
}

/* Modal lesson list */
.scp-modal-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.scp-modal-list li {
	margin: .75rem 0;
	display: flex;
	align-items: center;
	gap: .75rem;
	white-space: nowrap;
}

.scp-modal-list li .scp-modal-icon {
	font-size: 1.25rem;
	flex-shrink: 0;
}

.scp-modal-list li a {
	color: #2271b1;
	text-decoration: none;
}

.scp-modal-list li a:hover {
	text-decoration: underline;
}

/* Reset Confirmation Modal */
.scp-reset-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scp-reset-modal {
	background: #fff;
	border-radius: .5rem;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scp-reset-modal .scp-modal-body p {
	margin: 0 0 1.5rem;
	color: #333;
	line-height: 1.6;
}

.scp-reset-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.scp-reset-confirm-btn,
.scp-reset-cancel-btn {
	flex: 1;
	min-width: 120px;
	padding: .75rem 1.5rem;
	border: none;
	border-radius: .25rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
}

.scp-reset-confirm-btn {
	background: #205bc2;
	color: #fff;
}

.scp-reset-confirm-btn:hover:not([disabled]) {
	background: #1B4A9B;
}

.scp-reset-confirm-btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.scp-reset-cancel-btn {
	background: #f0f0f1;
	color: #2c3338;
}

.scp-reset-cancel-btn:hover {
	background: #dcdcde;
}

/* Login/Signup Modal */
.scp-login-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scp-login-modal {
	background: #fff;
	border-radius: .5rem;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scp-login-modal .scp-modal-body p {
	margin: 0 0 1.5rem;
	color: #333;
	line-height: 1.6;
}

.scp-login-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.scp-login-btn,
.scp-signup-btn,
.scp-login-cancel-btn {
	flex: 1;
	min-width: 120px;
	padding: .75rem 1.5rem;
	border: none;
	border-radius: .25rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

.scp-login-btn {
	background: #205bc2;
	color: #fff;
}

.scp-login-btn:hover {
	background: #1B4A9B;
	color: #fff;
}

.scp-signup-btn {
	background: #36875d;
	color: #fff;
}

.scp-signup-btn:hover {
	background: #2d6e4c;
	color: #fff;
}

.scp-login-cancel-btn {
	background: #f0f0f1;
	color: #2c3338;
}

.scp-login-cancel-btn:hover {
	background: #dcdcde;
}
