/**
 * SunnyLMS Main Frontend Stylesheet
 *
 * @package     SunnyLMS
 * @version     1.0.0
 * @author      sunnywebstudio
 * @link        https://sunnywebstudio.com/
 */

/* ==========================================================================
   1. SINGLE COURSE TEMPLATE STYLES
   ========================================================================== */

/* Container & Base Layout */
.sunnylms-single-course {
	max-width: 1140px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #2c3338;
}

/* Page Header (Title Above All) */
.sunnylms-course-page-header {
	margin-bottom: 30px;
}

.sunnylms-course-title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

/* Row 1: Course Summary Block */
.sunnylms-course-summary {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	margin-bottom: 50px;
	align-items: start;
}

/* Main Gallery: Fixed 260x260px Square */
.sunnylms-course-gallery {
	width: 260px;
	height: 260px;
	flex-shrink: 0;
}

.sunnylms-course-square-img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	display: block;
}

.sunnylms-course-square-placeholder {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	background-color: #f1f5f9;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.sunnylms-course-summary-details {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sunnylms-course-short-desc {
	font-size: 16px;
	line-height: 1.6;
	color: #475569;
	margin: 0;
}

.sunnylms-course-short-desc p {
	margin: 0;
}

.sunnylms-course-categories {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sunnylms-course-category {
	background-color: #f1f5f9;
	color: #0284c7;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.sunnylms-course-price {
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.sunnylms-course-price ins,
.sunnylms-related-price ins {
	text-decoration: none;
	color: #059669;
}

.sunnylms-course-price del,
.sunnylms-related-price del {
	color: #94a3b8;
	font-size: 18px;
}

.sunnylms-button-primary {
	display: inline-block;
	background-color: #2563eb;
	color: #ffffff;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.2s ease;
	text-align: center;
	align-self: start;
}

.sunnylms-button-primary:hover {
	background-color: #1d4ed8;
	color: #ffffff;
}

/* Row 2: Main Content & Curriculum */
.sunnylms-course-details-section {
	border-top: 1px solid #e2e8f0;
	padding-top: 40px;
	margin-bottom: 60px;
}

.sunnylms-course-curriculum h2,
.sunnylms-related-courses h2 {
	font-size: 24px;
	margin-bottom: 20px;
}

.sunnylms-course-curriculum {
	margin-top: 40px;
}

.sunnylms-lessons-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sunnylms-lesson-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.sunnylms-lesson-number {
	font-weight: 700;
	color: #64748b;
}

.sunnylms-lesson-title {
	text-decoration: none;
	color: #1e293b;
	font-weight: 600;
}

.sunnylms-lesson-title:hover {
	color: #2563eb;
}

/* Row 3: Related Courses Grid */
.sunnylms-related-courses {
	border-top: 1px solid #e2e8f0;
	padding-top: 40px;
}

.sunnylms-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.sunnylms-related-card {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Thumbnail Link: Fixed 200x200px Square */
.sunnylms-related-thumb-link {
	display: block;
	width: 200px;
	height: 200px;
	margin: 16px 16px 0 16px;
	flex-shrink: 0;
}

.sunnylms-related-square-img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	display: block;
}

.sunnylms-related-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sunnylms-related-body h3 {
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
}

.sunnylms-related-body h3 a {
	text-decoration: none;
	color: #0f172a;
}

.sunnylms-related-body h3 a:hover {
	color: #2563eb;
}

.sunnylms-related-price {
	font-weight: 700;
	font-size: 15px;
}

/* Single Course Responsive Styles */
@media (max-width: 868px) {
	.sunnylms-course-summary {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.sunnylms-course-gallery {
		width: 100%;
		max-width: 260px;
	}

	.sunnylms-related-grid {
		grid-template-columns: 1fr;
	}

	.sunnylms-related-thumb-link {
		width: 100%;
		max-width: 200px;
		height: auto;
		aspect-ratio: 1 / 1;
	}
}

/*Lessons List Responsive Styles*/

.sunnylms-course-curriculum {
    margin-top: 60px;
}

.sunnylms-lessons-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 15px;
    background: transparent;
}

.sunnylms-lesson-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.sunnylms-lesson-row td {
    padding: 14px 16px;
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.sunnylms-lesson-row td:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.sunnylms-lesson-row td:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.sunnylms-lesson-thumbnail, 
.sunnylms-lesson-thumb-placeholder {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: #edf2f7;
    display: block;
}

.sunnylms-lesson-col-thumb { 
    width: 60px; 
}

.sunnylms-lesson-col-number { 
    width: 50px; 
    font-weight: 600; 
    color: #a0aec0;
    font-size: 20px;
}

.sunnylms-lesson-col-title {
    font-size: 20px;
    width: 100%;
    white-space: normal;
}

.sunnylms-lesson-title-heading {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.sunnylms-lesson-col-action { 
    text-align: right; 
    width: 200px; 
}

.sunnylms-lessons-table .sunnylms-lesson-row .sunnylms-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    border: none;
    margin: 0;
    white-space: nowrap;
}

.sunnylms-lessons-table .sunnylms-lesson-row .sunnylms-button-primary {
    background-color: #2563eb;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.sunnylms-lessons-table .sunnylms-lesson-row .sunnylms-button-primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.sunnylms-lessons-table .sunnylms-lesson-row .sunnylms-button-disabled {
    background-color: #e2e8f0;
    color: #64748b;
    pointer-events: none;
    cursor: default;
}

@media screen and (max-width: 768px) {
    .sunnylms-lessons-table,
    .sunnylms-lessons-table tbody,
    .sunnylms-lessons-table tr.sunnylms-lesson-row,
    .sunnylms-lessons-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }

    .sunnylms-lessons-table {
        border-collapse: collapse;
        border-spacing: 0;
        border: none;
        background: transparent;
    }

    .sunnylms-lesson-row {
        margin-bottom: 15px;
        padding: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
    }

    .sunnylms-lesson-row td {
        padding: 0 0 12px 0;
        border: none !important;
        border-radius: 0 !important;
        text-align: left !important;
    }

    .sunnylms-lesson-row td:last-child {
        padding-bottom: 0;
    }

    .sunnylms-lesson-row td.sunnylms-lesson-col-thumb {
        display: inline-block;
        width: 44px;
        margin-right: 12px;
        vertical-align: middle;
        padding-bottom: 0;
    }

    .sunnylms-lesson-row td.sunnylms-lesson-col-number {
        display: inline-block;
        width: auto;
        vertical-align: middle;
        margin-right: 12px;
        padding-bottom: 0;
    }

    .sunnylms-lesson-row td.sunnylms-lesson-col-title {
        display: block;
        width: 100%;
        margin-top: 12px;
        padding-bottom: 12px;
    }

    .sunnylms-lesson-row td.sunnylms-lesson-col-action {
        display: block;
        width: 100%;
        text-align: left;
        padding-top: 4px;
    }

    .sunnylms-lessons-table .sunnylms-lesson-row .sunnylms-button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   2. COURSES ARCHIVE TEMPLATE STYLES
   ========================================================================== */

/* Courses Archive Grid */
.archive_courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 30px auto;
	max-width: 1200px;
	padding: 0 15px;
}

/* Course Card */
.sunnylms-course-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sunnylms-course-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.sunnylms-card-thumb-link {
	display: block;
	aspect-ratio: 1 / 1;
	background-color: #f1f5f9;
	overflow: hidden;
}

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

.sunnylms-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.sunnylms-card-title {
	font-size: 1.125rem;
	margin: 0 0 10px 0;
}

.sunnylms-card-title a {
	color: #1e293b;
	text-decoration: none;
}

.sunnylms-card-excerpt {
	color: #64748b;
	font-size: 0.875rem;
	line-height: 1.5;
	margin-bottom: 20px;
}

.sunnylms-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* ==========================================================================
   SunnyLMS - Single Lesson Page Styles
   ========================================================================== */

.sunnylms-single-lesson {
	max-width: 1140px;
	margin: 30px auto;
	padding: 0 15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1d2327;
}

/* --- Hero Section --- */
.sunnylms-lesson-hero {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e2e4e7;
}

.sunnylms-lesson-square-thumb {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	background: #f0f0f0;
}

.sunnylms-hero-content {
	flex-grow: 1;
}

.sunnylms-lesson-breadcrumbs {
	margin-bottom: 8px;
	font-size: 14px;
}

.sunnylms-lesson-breadcrumbs a {
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
}

.sunnylms-lesson-breadcrumbs a:hover {
	text-decoration: underline;
}

.sunnylms-lesson-title {
	margin: 0 0 8px 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
}

.sunnylms-demo-badge {
	display: inline-block;
	background: #28a745;
	color: #fff;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

/* --- Group Cards Wrappers --- */
.sunnylms-group-card {
	background: #fff;
	border: 2px solid #dcdcde;
	border-radius: 10px;
	margin-bottom: 35px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sunnylms-group-header {
	background: #f6f7f7;
	padding: 14px 20px;
	border-bottom: 1px solid #dcdcde;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sunnylms-group-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1d2327;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sunnylms-group-body {
	padding: 25px 20px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* Group 1: Materials Accent */
.sunnylms-group-materials {
	border-color: #2271b1;
}

.sunnylms-group-materials .sunnylms-group-header {
	background: #f0f6fc;
	border-bottom-color: #c5d9ed;
}

.sunnylms-group-materials .sunnylms-group-header h2 {
	color: #135e96;
}

/* Group 2: Assessment Accent */
.sunnylms-group-assessment {
	border-color: #685890;
}

.sunnylms-group-assessment .sunnylms-group-header {
	background: #f3f0f8;
	border-bottom-color: #d8d0e6;
}

.sunnylms-group-assessment .sunnylms-group-header h2 {
	color: #4a3c6d;
}

/* --- Inner Sections --- */
.sunnylms-lesson-section h3 {
	margin: 0 0 15px 0;
	font-size: 20px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 8px;
}

/* --- Video Block --- */
.sunnylms-video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #000;
	border-radius: 8px;
}

.sunnylms-video-container iframe,
.sunnylms-video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Downloads Block --- */
.sunnylms-download-box {
	background: #f8f9fa;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sunnylms-button-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #2271b1;
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}

.sunnylms-button-download:hover {
	background: #135e96;
	color: #fff;
}

/* --- Quiz Block --- */
.sunnylms-quiz-info {
	font-style: italic;
	color: #50575e;
	margin-top: -5px;
	margin-bottom: 20px;
}

.sunnylms-quiz-question-block {
	background: #f9f9f9;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 15px;
}

.sunnylms-quiz-question-title {
	margin: 0 0 12px 0;
	font-size: 16px;
	font-weight: 600;
}

.sunnylms-quiz-answers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.sunnylms-quiz-answer-option {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	background: #fff;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	margin: 0;
	text-align: center;
	box-sizing: border-box;
}

.sunnylms-quiz-answer-option:hover {
	background: #f0f4f8;
	border-color: #2271b1;
}

/* Адаптив: перенос в 1 колонку на узких экранах мобильных устройств */
@media (max-width: 768px) {
	.sunnylms-quiz-answers {
		grid-template-columns: 1fr;
	}
}

/* --- Assignment Block --- */
.sunnylms-assignment-notice {
	margin-top: 15px;
	padding: 12px 15px;
	background: #fff8e5;
	border-left: 4px solid #ffb900;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
}

/* --- Global Buttons --- */
.sunnylms-button-primary {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.sunnylms-button-primary:hover {
	background: #135e96;
}

/* --- Assignment Form & Notices --- */
.sunnylms-notice-success {
	background: #d4edda;
	color: #155724;
	padding: 12px;
	border-radius: 4px;
	margin: 15px 0;
	border: 1px solid #c3e6cb;
}

.sunnylms-notice-error {
	background: #f8d7da;
	color: #721c24;
	padding: 12px;
	border-radius: 4px;
	margin: 15px 0;
	border: 1px solid #f5c6cb;
}

.sunnylms-assignment-form {
	margin-top: 15px;
}

.sunnylms-form-group {
	margin-bottom: 15px;
}

.sunnylms-form-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.sunnylms-textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}

.sunnylms-file-input {
	display: block;
	font-size: 14px;
}

/* --- Sections H2 Spacing --- */
.sunnylms-lesson-section h2 {
	margin-top: 50px;
}

.sunnylms-lesson-section:first-child h2 {
	margin-top: 50;
}

/* --- Inner Sections & Headings Spacing --- */
.sunnylms-lesson-section h3 {
	margin: 50px 0 15px 0;
	font-size: 20px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 8px;
}


.sunnylms-group-body .sunnylms-lesson-section:first-child h3 {
	margin-top: 0;
}

/* --- Lesson Bottom Navigation --- */
.sunnylms-lesson-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 50px;
	padding-top: 25px;
	border-top: 2px solid #e2e4e7;
	gap: 15px;
}

.sunnylms-nav-prev,
.sunnylms-nav-next {
	flex: 1;
}

.sunnylms-nav-next {
	text-align: right;
}

.sunnylms-nav-center {
	text-align: center;
}

.sunnylms-nav-link {
	display: inline-block;
	color: #2271b1;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: color 0.2s;
}

.sunnylms-nav-link:hover {
	color: #135e96;
	text-decoration: underline;
}

.sunnylms-nav-course {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	padding: 8px 16px;
	border-radius: 6px;
	color: #1d2327;
}

.sunnylms-nav-course:hover {
	background: #f0f0f1;
	color: #1d2327;
	text-decoration: none;
}

@media (max-width: 768px) {
	.sunnylms-lesson-navigation {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
	.sunnylms-nav-next {
		text-align: center;
	}
}

/* ==========================================================================
   SunnyLMS Authentication Modal Styles
   ========================================================================== */

/* Modal Backdrop Overlay */
.sunnylms-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.65);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

/* Modal Window Card */
.sunnylms-modal-content {
	position: relative;
	background-color: #ffffff;
	width: 100%;
	max-width: 420px;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	text-align: left;
}

/* Close Button */
.sunnylms-modal-close {
	position: absolute;
	top: 15px;
	right: 18px;
	font-size: 24px;
	font-weight: bold;
	color: #888888;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease;
}

.sunnylms-modal-close:hover {
	color: #111111;
}

/* Tab Navigation */
.sunnylms-modal-tabs {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 20px;
}

.sunnylms-tab-btn {
	flex: 1;
	padding: 10px 0;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 15px;
	font-weight: 600;
	color: #666666;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sunnylms-tab-btn.active,
.sunnylms-tab-btn:hover {
	color: #0073aa;
	border-bottom-color: #0073aa;
}

/* Notification Alerts */
.sunnylms-modal-notice {
	padding: 10px 14px;
	margin-bottom: 15px;
	border-radius: 4px;
	font-size: 14px;
}

.sunnylms-modal-notice.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.sunnylms-modal-notice.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

/* Form Fields and Labels */
.sunnylms-modal-form p {
	margin: 0 0 15px 0;
}

.sunnylms-modal-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #333333;
}

.sunnylms-modal-form input[type="text"],
.sunnylms-modal-form input[type="email"],
.sunnylms-modal-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	box-sizing: border-box;
	background-color: #ffffff;
	color: #333333;
}

.sunnylms-modal-form input:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Action Buttons */
.sunnylms-modal-form .sunnylms-button {
	width: 100%;
	padding: 12px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background-color: #0073aa;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 10px;
	transition: background-color 0.2s ease;
}

.sunnylms-modal-form .sunnylms-button:hover {
	background-color: #005177;
}

.sunnylms-modal-form .sunnylms-button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}

/* Base button layout and typography alignment */
.sunnylms-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    font-family: inherit;
    border-radius: 6px;
    border: none;
    margin: 0;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
}

/* Primary active state */
.sunnylms-button-primary {
    background-color: #2563eb;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.sunnylms-button-primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

/* Disabled and pending state */
.sunnylms-button-disabled,
button.sunnylms-button:disabled {
    background-color: #e2e8f0;
    color: #64748b;
    pointer-events: none;
    cursor: default;
}

/* Certificate Button Modifier */
.sunnylms-button-certificate {
	background-color: #e53935;
	color: #ffffff;
}

.sunnylms-button-certificate:hover {
	background-color: #c62828;
	color: #ffffff;
}


/* ==========================================================================
   MAIN LESSON ACTION BUTTON (.sunnylms-proceed-btn)
   ========================================================================== */

/* 1. Container Wrapper & Spacing */
#sunnylms-next-action-wrapper {
	margin: 35px 0;
	display: flex;
	justify-content: center;
	width: 100%;
}

.sunnylms-complete-wrapper {
	width: 100%;
	max-width: 420px;
}

/* 2. Base Button Layout (Inherits .sunnylms-button formatting) */
.sunnylms-proceed-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 28px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	font-family: inherit;
	text-align: center;
	text-decoration: none !important;
	border-radius: 6px;
	border: none;
	box-sizing: border-box;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

/* 3. Active State (Primary Accent Button) */
.sunnylms-proceed-btn.sunnylms-state-active {
	background-color: #2563eb;
	color: #ffffff !important;
}

.sunnylms-proceed-btn.sunnylms-state-active:hover {
	background-color: #1d4ed8;
	color: #ffffff !important;
}

/* 4. Disabled State (Locked Action) */
.sunnylms-proceed-btn.sunnylms-state-disabled {
	background-color: #e2e8f0;
	color: #64748b !important;
	pointer-events: none;
	cursor: default;
}

/* ==========================================================================
   SunnyLMS: Certificate Button
   ========================================================================== */

.sunnylms-proceed-btn.sunnylms-certificate-btn {
    background-color: red;
    color: #ffffff;          
    border: 1px solid red;
    transition: all 0.3s ease;
}

.sunnylms-proceed-btn.sunnylms-certificate-btn .sunnylms-btn-text {
    color: #ffffff;
}

.sunnylms-proceed-btn.sunnylms-certificate-btn:hover,
.sunnylms-proceed-btn.sunnylms-certificate-btn:focus {
    background-color: #c82333;
    border-color: #bd2130;
    color: #ffffff;
    text-decoration: none;
}