/**
 * PS Curriculum Styles
 * Modern, clean, and responsive design
 */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
  --cos-lms-primary-color: #2563eb;
  --cos-lms-primary-hover: #1d4ed8;
  --cos-lms-primary-active: #1e40af;
  
  --cos-lms-success-color: #059669;
  --cos-lms-success-light: #d1fae5;
  --cos-lms-success-dark: #047857;
  
  --cos-lms-error-color: #dc2626;
  --cos-lms-error-light: #fee2e2;
  
  --cos-lms-gray-50: #f9fafb;
  --cos-lms-gray-100: #f3f4f6;
  --cos-lms-gray-200: #e5e7eb;
  --cos-lms-gray-300: #d1d5db;
  --cos-lms-gray-400: #9ca3af;
  --cos-lms-gray-500: #6b7280;
  --cos-lms-gray-600: #4b5563;
  --cos-lms-gray-700: #374151;
  --cos-lms-gray-800: #1f2937;
  --cos-lms-gray-900: #111827;
  
  --cos-lms-border-radius: 8px;
  --cos-lms-border-radius-sm: 4px;
  --cos-lms-border-radius-lg: 12px;
  
  --cos-lms-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --cos-lms-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --cos-lms-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --cos-lms-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --cos-lms-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --cos-lms-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Modern Curriculum UI (inspired styling) === */
.cos-lms-curriculum {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	margin: 24px 0;
}

.cos-lms-curriculum-inner {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 16px;
}

/* Section title */
.cos-lms-section-title {
	margin: 20px 8px 12px 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #2d6a4f; /* accent */
}

/* Module list */
.cos-lms-module-list {
	list-style: none;
	margin: 0;
	padding: 0 8px 12px 8px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

/* Module row */
.cos-lms-module-item {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border-radius: 10px;
	padding: 12px 14px;
	transition: all 0.2s ease;
	border-left: 4px solid #e2e8f0;
}

.cos-lms-module-item.cos-lms-completed {
	background: #f0fff4;
	border-left-color: #48bb78;
}

.cos-lms-module-item.cos-lms-pending {
	background: #ffffff;
	border-left-color: #e2e8f0;
}

.cos-lms-module-item:hover {
	background: #edf2f7;
	transform: translateX(3px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Status icon (circle) */
.cos-lms-status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-right: 12px;
	border: 2px solid #a0aec0;
	color: #1a202c;
	background: transparent;
}

.cos-lms-module-item.cos-lms-completed .cos-lms-status-icon {
	border: none;
	background: #48bb78;
	box-shadow: 0 2px 10px rgba(72, 187, 120, 0.25);
	color: #fff;
}

.cos-lms-status-icon .cos-lms-icon-inner {
	font-size: 14px;
	line-height: 1;
}

/* Module link/title */
.cos-lms-module-link {
	flex: 1;
	text-decoration: none;
	color: #2d3748;
}

.cos-lms-module-title {
	/* Inherit theme typography; keep only color tweaks below */
}

/* Mark button (shortcode) */
.cos-lms-mark-wrapper { margin-top: 0px; }

.cos-lms-mark-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border: none;
	padding: 14px 18px;
	border-radius: 12px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	transition: all 0.25s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
	position: relative;
	min-width: 180px;
}

.cos-lms-mark-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.cos-lms-mark-btn.cos-lms-completed,
.cos-lms-mark-btn:disabled {
	background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
	box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
	cursor: not-allowed;
}

.cos-lms-mark-btn .cos-lms-btn-loader { display: none !important; }

/* Feedback pill */
.cos-lms-feedback {
	margin-top: 6px;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 13px;
}
.cos-lms-feedback-success { background: #e6fffa; color: #234e52; }
.cos-lms-feedback-error { background: #fff5f5; color: #742a2a; }

/* Empty state */
.cos-lms-curriculum-empty {
  background: var(--cos-lms-gray-50);
  border: 2px dashed var(--cos-lms-gray-300);
  border-radius: var(--cos-lms-border-radius-lg);
  padding: 2rem;
  text-align: center;
}

.cos-lms-empty-message {
  color: var(--cos-lms-gray-500);
  font-style: italic;
  margin: 0;
}

/* Error state */
.cos-lms-curriculum-error {
  background: var(--cos-lms-error-light);
  border: 1px solid var(--cos-lms-error-color);
  border-radius: var(--cos-lms-border-radius);
  padding: 1rem;
  color: var(--cos-lms-error-color);
  font-weight: 500;
}

/* ============================================
   Mark Module Button Styles
   ============================================ */

.cos-lms-mark-wrapper {
  display: inline-block;
  position: relative;
}

.cos-lms-mark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--cos-lms-border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--cos-lms-transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 2.75rem;
  gap: 0.5rem;
}

.cos-lms-mark-btn:focus-visible {
  outline: 2px solid var(--cos-lms-primary-color);
  outline-offset: 2px;
}
.cos-lms-mark-btn:focus { outline: none; }

.cos-lms-mark-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Button Styles */
.cos-lms-mark-btn.cos-lms-style-default {
  background-color: var(--cos-lms-gray-100);
  color: var(--cos-lms-gray-700);
  border-color: var(--cos-lms-gray-300);
}

.cos-lms-mark-btn.cos-lms-style-default:hover:not(:disabled) {
  background-color: var(--cos-lms-gray-200);
  border-color: var(--cos-lms-gray-400);
}

.cos-lms-mark-btn.cos-lms-style-primary {
  background-color: var(--cos-lms-primary-color);
  color: white;
  border-color: var(--cos-lms-primary-color);
}

.cos-lms-mark-btn.cos-lms-style-primary:hover:not(:disabled) {
  background-color: var(--cos-lms-primary-hover);
  border-color: var(--cos-lms-primary-hover);
}

.cos-lms-mark-btn.cos-lms-style-primary:active:not(:disabled) {
  background-color: var(--cos-lms-primary-active);
  border-color: var(--cos-lms-primary-active);
}

.cos-lms-mark-btn.cos-lms-style-outline {
  background-color: transparent;
  color: var(--cos-lms-primary-color);
  border-color: var(--cos-lms-primary-color);
}

.cos-lms-mark-btn.cos-lms-style-outline:hover:not(:disabled) {
  background-color: var(--cos-lms-primary-color);
  color: white;
}

/* Completed state */
.cos-lms-mark-btn.cos-lms-completed {
  background-color: var(--cos-lms-success-color);
  color: white;
  border-color: var(--cos-lms-success-color);
}

.cos-lms-mark-btn.cos-lms-completed:hover:not(:disabled) {
  background-color: var(--cos-lms-success-dark);
  border-color: var(--cos-lms-success-dark);
}

.cos-lms-mark-btn.cos-lms-style-outline.cos-lms-completed {
  background-color: transparent;
  color: var(--cos-lms-success-color);
  border-color: var(--cos-lms-success-color);
}

.cos-lms-mark-btn.cos-lms-style-outline.cos-lms-completed:hover:not(:disabled) {
  background-color: var(--cos-lms-success-color);
  color: white;
}

/* Loading state */
.cos-lms-mark-btn.cos-lms-loading .cos-lms-btn-text {
  opacity: 0.7;
}

.cos-lms-btn-loader {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: cos-lms-spin 1s linear infinite;
}

.cos-lms-mark-btn.cos-lms-loading .cos-lms-btn-loader {
  display: inline-block;
}

@keyframes cos-lms-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Feedback Messages
   ============================================ */

.cos-lms-feedback {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--cos-lms-border-radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10;
  box-shadow: var(--cos-lms-shadow-md);
  animation: cos-lms-fade-in 0.2s ease-out;
}

.cos-lms-feedback-success {
  background-color: var(--cos-lms-success-color);
  color: white;
}

.cos-lms-feedback-error {
  background-color: var(--cos-lms-error-color);
  color: white;
}

@keyframes cos-lms-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================
   Login Required Message
   ============================================ */

.cos-lms-login-required {
  background: var(--cos-lms-gray-100);
  border: 1px solid var(--cos-lms-gray-300);
  border-radius: var(--cos-lms-border-radius);
  padding: 1rem;
  color: var(--cos-lms-gray-600);
  font-style: italic;
  text-align: center;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
  .cos-lms-curriculum-inner {
    border-radius: var(--cos-lms-border-radius);
  }
  
  .cos-lms-section-title {
    padding: 0.875rem 1rem;
  }
  
  .cos-lms-module-item {
    padding: 0.875rem 1rem;
  }
  
  .cos-lms-status-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
  }
  
  .cos-lms-icon-inner {
    font-size: 1rem;
  }
  
  .cos-lms-mark-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    min-height: 2.5rem;
  }
}

/* ============================================
   Dark Mode Support (optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --cos-lms-gray-50: #1f2937;
    --cos-lms-gray-100: #374151;
    --cos-lms-gray-200: #4b5563;
    --cos-lms-gray-300: #6b7280;
    --cos-lms-gray-400: #9ca3af;
    --cos-lms-gray-500: #d1d5db;
    --cos-lms-gray-600: #e5e7eb;
    --cos-lms-gray-700: #f3f4f6;
    --cos-lms-gray-800: #f9fafb;
    --cos-lms-gray-900: #ffffff;
  }
  
  .cos-lms-curriculum-inner {
    background: var(--cos-lms-gray-800);
    border-color: var(--cos-lms-gray-700);
  }
  
  .cos-lms-module-item.cos-lms-completed {
    background-color: rgba(5, 150, 105, 0.2);
  }
  
  .cos-lms-module-item.cos-lms-completed:hover {
    background-color: rgba(5, 150, 105, 0.3);
  }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cos-lms-curriculum-inner {
    border-width: 2px;
  }
  
  .cos-lms-mark-btn {
    border-width: 2px;
  }
  
  .cos-lms-module-item {
    border-bottom-width: 2px;
  }
}

/* Focus styles for keyboard navigation */
.cos-lms-module-link:focus {
  outline: 2px solid var(--cos-lms-primary-color);
  outline-offset: 2px;
  border-radius: var(--cos-lms-border-radius-sm);
}

/* Print styles */
@media print {
  .cos-lms-mark-btn {
    display: none;
  }
  
  .cos-lms-curriculum-inner {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .cos-lms-module-item.cos-lms-completed::after {
    content: " ✓";
    font-weight: bold;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
	.cos-lms-module-list { gap: 8px; }
	.cos-lms-mark-btn { min-width: 140px; padding: 0.5rem 1rem; font-size: 14px; }
}

/* === Overrides per user spec (0-8) === */
/* 0) Text color for modules */
.cos-lms-module-title { color: #212121 !important; }
.cos-lms-module-link { color: #212121 !important; }

/* 5) Make curriculum container transparent */
.cos-lms-curriculum-inner { background: transparent !important; box-shadow: none !important; }

/* 2) Remove green left border and 1) remove shadow; new hover effect */
.cos-lms-module-item { border-left: none !important; box-shadow: none !important; background: transparent !important; transition: background-color 0.15s ease, transform 0.15s ease; }
.cos-lms-module-item:hover { background: #f5f5f5 !important; transform: translateX(2px); }

/* 3 & 4) Status icons: custom borders/fill and checkmark */
.cos-lms-status-icon { position: relative; border: 1px solid #212121 !important; background: transparent !important; color: #212121 !important; }
.cos-lms-status-icon .cos-lms-icon-inner { display: none !important; }
/* Non-completed (pending) uses empty center */
.cos-lms-module-item.cos-lms-pending .cos-lms-status-icon { border-color: #212121 !important; background: transparent !important; }
.cos-lms-module-item.cos-lms-pending .cos-lms-status-icon::after { content: '' !important; }
/* Completed: green with white checkmark */
.cos-lms-module-item.cos-lms-completed .cos-lms-status-icon { border-color: #6fcf71 !important; background: #6fcf71 !important; }
.cos-lms-module-item.cos-lms-completed .cos-lms-status-icon::after { content: '\2713'; /* check mark */ color: #ffffff; font-weight: 800; font-size: 12px; }

/* 6) Remove gradients on rows and buttons; 7) Button new neutral style */
.cos-lms-mark-btn { 
	background: #ffffff !important; 
	border: 1px solid #212121 !important; 
	color: #212121 !important; 
	box-shadow: none !important; 
}
.cos-lms-mark-btn:hover { background: #f7f7f7 !important; transform: none !important; }

/* 8) Completed button state: icon + text only, no button look */
.cos-lms-mark-btn.cos-lms-completed { 
	background: transparent !important; 
	border: none !important; 
	color: #6fcf71 !important; 
	box-shadow: none !important; 
	padding-left: 26px !important; 
	position: relative !important; 
	min-width: auto !important; 
	cursor: default !important;
}
.cos-lms-mark-btn.cos-lms-completed::before { 
	content: '';
	position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 18px; height: 18px; border-radius: 50%;
	background: #6fcf71; border: 1px solid #6fcf71;
}
.cos-lms-mark-btn.cos-lms-completed::after { 
	content: '\2713';
	position: absolute; left: 4px; top: 50%; transform: translateY(-56%);
	color:#ffffff; font-weight: 800; font-size: 12px;
}
.cos-lms-mark-btn.cos-lms-completed .cos-lms-btn-text { color: #6fcf71 !important; }

/* Dark mode adjustments for new styles */
@media (prefers-color-scheme: dark) {
	.cos-lms-module-item:hover { background: #101010 !important; }
	.cos-lms-mark-btn { background: #121212 !important; color: #e5e5e5 !important; border-color: #444 !important; }
	.cos-lms-mark-btn:hover { background: #1a1a1a !important; }
	.cos-lms-mark-btn.cos-lms-completed { background: transparent !important; color:#6fcf71 !important; }
	.cos-lms-status-icon { border-color: #cfcfcf !important; color: #cfcfcf !important; }
}

/* === Curriculum tweaks requested === */
/* 1) Module row background #2e2e2e (overrides previous transparent) */
.cos-lms-module-item { background: #2e2e2e !important; }
/* 2) Module name smaller and white */
.cos-lms-module-title { color: #ffffff !important; }
/* 3) Section title larger and #6fcf71 */
.cos-lms-section-title { color: #6fcf71 !important; }
/* 4) Reduce space between module rows */
.cos-lms-module-list { gap: 6px !important; }
/* 5) Reduce space between section title and first row */
.cos-lms-section-title { margin-bottom: 10px !important; margin-top: 16px !important; }

/* 3 & 4 completed earlier: icons; ensure sizes consistent */
.cos-lms-status-icon { width: 22px !important; height: 22px !important; }
.cos-lms-mark-btn.cos-lms-completed::before { width: 18px !important; height: 18px !important; }
.cos-lms-mark-btn.cos-lms-completed::after { left: 3px !important; font-size: 12px !important; }

/* === Two button themes controlled by cos-lms-theme-light / cos-lms-theme-dark === */
/* Base reset */
.cos-lms-mark-btn { border-radius: 20px !important; }
/* Light button */
.cos-lms-mark-btn.cos-lms-theme-light { border: 1px solid #212121 !important; background: #ffffff !important; color: #212121 !important; }
.cos-lms-mark-btn.cos-lms-theme-light:hover { border-color: #ffffff !important; background: #212121 !important; color: #ffffff !important; }
/* Completed state shares same visuals as spec (green circle + text) already defined */

/* Dark button */
.cos-lms-mark-btn.cos-lms-theme-dark { border: 1px solid #ffffff !important; background: #212121 !important; color: #ffffff !important; }
.cos-lms-mark-btn.cos-lms-theme-dark:hover { border-color: #212121 !important; background: #ffffff !important; color: #212121 !important; }
/* Completed uses same look as light's completed */


/* === Further overrides per latest spec === */
/* Curriculum */
/* 2) Module title 18px, weight 400; white */
.cos-lms-module-title { font-size: 17px !important; line-height: 1.4 !important; font-weight: 400 !important; color: #ffffff !important; }
/* Reset default h5 margins for tighter rows */
h5.cos-lms-module-title { margin: 0 !important; }
/* 3) Section title 18px, weight 700; #6fcf71 */
.cos-lms-section-title { font-size: 18px !important; line-height: 1.35 !important; font-weight: 700 !important; color: #6fcf71 !important; }
/* 4) Hover: no color change, subtle motion only */
.cos-lms-module-item:hover { background: #2e2e2e !important; transform: translateX(2px); box-shadow: none !important; }
/* 5) Larger icons */
.cos-lms-status-icon { width: 26px !important; height: 26px !important; }
.cos-lms-mark-btn.cos-lms-completed::before { width: 22px !important; height: 22px !important; }
.cos-lms-mark-btn.cos-lms-completed::after { left: 5px !important; font-size: 14px !important; }

/* Button */
/* 6) Larger button text */
.cos-lms-mark-btn, .cos-lms-mark-btn .cos-lms-btn-text { font-size: 18px !important; }
/* 7) Selected/completed: no dimming, no button look, only icon + text */
.cos-lms-mark-btn:disabled { opacity: 1 !important; }
.cos-lms-mark-btn.cos-lms-completed { background: transparent !important; border: none !important; box-shadow: none !important; }
.cos-lms-mark-btn.cos-lms-completed .cos-lms-btn-text { color: #6fcf71 !important; }

/* Responsive adjustments to keep readable */
@media (max-width: 768px) {
	.cos-lms-module-title { font-size: 16px !important; line-height: 1.4 !important; }
	.cos-lms-section-title { font-size: 16px !important; line-height: 1.4 !important; }
	.cos-lms-status-icon { width: 24px !important; height: 24px !important; }
	.cos-lms-mark-btn, .cos-lms-mark-btn .cos-lms-btn-text { font-size: 16px !important; }
}

/* Pending icon border white */
.cos-lms-module-item.cos-lms-pending .cos-lms-status-icon { border-color: #ffffff !important; }

/* Slightly increased, classy hover animation (no color change, no shadow) */
.cos-lms-module-item { transition: transform 0.2s ease; }
.cos-lms-module-item:hover { transform: translateX(4px) scale(1.01); }

/* Limit hover animation to title only and slow down */
.cos-lms-module-link { position: relative; display: inline-block !important; flex: 0 0 auto !important; }
.cos-lms-module-link::after { transition: transform 0.45s ease !important; }
/* Disable row transform so only title underline animates */
.cos-lms-module-item { transition: none !important; }
.cos-lms-module-item:hover { transform: none !important; }

/* Restore subtle row animation on hover (no color/shadow change) */
.cos-lms-module-item { transition: transform 0.3s ease !important; }
.cos-lms-module-item:hover { transform: translateX(3px) scale(1.01) !important; }

/* Ensure underline animation on title remains */
.cos-lms-module-link { position: relative; display: inline-block !important; }
.cos-lms-module-link::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; background: #ffffff; width: 100%; transform: scaleX(0); transform-origin: left center; transition: transform 0.45s ease; }
.cos-lms-module-item:hover .cos-lms-module-link::after { transform: scaleX(1); }

/* Make entire module row show pointer cursor */
.cos-lms-module-item { cursor: pointer !important; }

/* Completed button icon sizing and spacing to match curriculum */
.cos-lms-mark-btn.cos-lms-completed { padding-left: 38px !important; cursor: default !important; }
.cos-lms-mark-btn.cos-lms-completed::before { width: 26px !important; height: 26px !important; left: 0 !important; top: 50% !important; transform: translateY(-50%) !important; border-radius: 50%; }
.cos-lms-mark-btn.cos-lms-completed::after { left: 6px !important; top: 50% !important; transform: translateY(-56%) !important; font-size: 14px !important; }
/* No hover background or inversion when completed */
.cos-lms-mark-btn.cos-lms-completed:hover { background: transparent !important; border: none !important; color: #6fcf71 !important; box-shadow: none !important; }
.cos-lms-mark-btn.cos-lms-completed.cos-lms-theme-light:hover, .cos-lms-mark-btn.cos-lms-completed.cos-lms-theme-dark:hover { background: transparent !important; border: none !important; color: #6fcf71 !important; }

/* === Progress bar widget === */
.cos-lms-progress-widget { margin: 16px 0; }
.cos-lms-progress-bar {
	width: 100%; height: 12px; border-radius: 6px; background: #ffffff; overflow: hidden; position: relative;
}
.cos-lms-progress-fill {
	height: 100%; width: 0%; background: #6fcf71; border-radius: 6px; transform: translateZ(0);
	animation: cos-lms-progress-grow 0.8s ease forwards;
}
.cos-lms-progress-fill { /* use CSS var for target width */
	animation-name: cos-lms-progress-grow;
}
@keyframes cos-lms-progress-grow {
	from { width: 0%; }
	to { width: var(--w, 0%); }
}
.cos-lms-progress-text { margin: 8px 0 0 0; font-size: 14px; color: #212121; }
@media (prefers-color-scheme: dark) {
	.cos-lms-progress-bar { background: #ffffff; }
	.cos-lms-progress-text { color: #e5e5e5; }
}

/* Progress bar adjustments */
.cos-lms-progress-bar { height: 10px !important; }
.cos-lms-progress-fill { animation-duration: 1.2s !important; }
.cos-lms-progress-text { color: #ffffff !important; }

/* Override progress text margin */
.cos-lms-progress-text { margin: 2px 0 0 0 !important; }

/* Layout refinements per request */
.cos-lms-curriculum-inner { padding: 0 !important; }
.cos-lms-section-title { margin-left: 0 !important; margin-right: 0 !important; }
.cos-lms-module-list { padding-left: 0 !important; padding-right: 0 !important; }

/* Pre-click button text adjustments */
.cos-lms-mark-btn .cos-lms-btn-text { font-weight: 400 !important; font-size: 0.9em !important; }
/* Completed keeps the current (bolder) appearance via color and icon; ensure text not dimmed */
.cos-lms-mark-btn.cos-lms-completed .cos-lms-btn-text { font-weight: 600 !important; }

/* Green theme variant */
.cos-lms-mark-btn.cos-lms-theme-green { border: 1px solid #6fcf71 !important; background: #6fcf71 !important; color: #ffffff !important; }
.cos-lms-mark-btn.cos-lms-theme-green:hover { border: 1px solid #212121 !important; background: #ffffff !important; color: #212121 !important; }
/* Completed: no background/border/hover; show icon + green text only */
.cos-lms-mark-btn.cos-lms-theme-green.cos-lms-completed { background: transparent !important; border: none !important; color: #6fcf71 !important; box-shadow: none !important; cursor: default !important; pointer-events: none !important; transition: none !important; }
.cos-lms-mark-btn.cos-lms-theme-green.cos-lms-completed:hover { background: transparent !important; border: none !important; color: #6fcf71 !important; box-shadow: none !important; }
/* Completed state same as other variants (icon + green text), already handled by .cos-lms-completed rules */

/* === Final overrides: checkmark size and centering === */
/* Curriculum status icon: ensure 26px circle and 13px check, perfectly centered */
.cos-lms-status-icon { width: 26px !important; height: 26px !important; position: relative !important; display: inline-block; }
.cos-lms-module-item.cos-lms-completed .cos-lms-status-icon::after {
  font-size: 13px !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Mobile portrait tweak: slightly reduce spacing under section title */
@media (max-width: 640px) and (orientation: portrait) {
  .cos-lms-section-title { margin-bottom: 5px !important; margin-top: 11px !important; }
}

/* Completed button icon: same 26px circle and 13px check, centered */
.cos-lms-mark-btn.cos-lms-completed { padding-left: 38px !important; }
.cos-lms-mark-btn.cos-lms-completed::before { width: 26px !important; height: 26px !important; left: 0 !important; top: 50% !important; transform: translateY(-50%) !important; }
.cos-lms-mark-btn.cos-lms-completed::after {
  font-size: 13px !important;
  left: 13px !important; /* center of 26px circle */
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

