/* ============================================
   Learning System Pro - Frontend Styles
   ============================================ */

:root {
    --primary-color: #034cae;
    --secondary-color: #034cae;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

/* ============================================
   General Styles
   ============================================ */

.lsp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lsp-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lsp-section h2 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* ============================================
   Buttons
   ============================================ */

.lsp-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.lsp-btn-primary {
    background: var(--primary-color);
    color: white;
}

.lsp-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lsp-btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.lsp-btn-secondary:hover {
    background: #1976D2;
}

.lsp-btn-danger {
    background: var(--danger-color);
    color: white;
}

.lsp-btn-danger:hover {
    background: #d32f2f;
}

.lsp-btn-disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   Course Cards
   ============================================ */

.lsp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.lsp-course-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lsp-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lsp-course-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.lsp-course-body {
    padding: 20px;
}

.lsp-course-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.lsp-course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.lsp-course-level {
    display: inline-block;
    padding: 3px 10px;
    background: var(--light-gray);
    border-radius: 3px;
    font-size: 12px;
}

.lsp-course-progress {
    margin: 15px 0;
}

.lsp-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.lsp-progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.lsp-progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.lsp-course-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.lsp-course-footer .lsp-btn {
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

/* ============================================
   Lesson View
   ============================================ */

.lsp-lesson-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.lsp-lesson-main {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lsp-lesson-title {
    font-size: 32px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.lsp-video-container {
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

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

.lsp-lesson-content {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin: 30px 0;
}

.lsp-lesson-content p {
    margin-bottom: 15px;
}

.lsp-lesson-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.lsp-lesson-actions .lsp-btn {
    flex: 1;
}

.lsp-lesson-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.lsp-lesson-list-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.lsp-lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lsp-lesson-item {
    padding: 10px;
    margin-bottom: 5px;
    border-left: 3px solid var(--border-color);
    background: var(--light-gray);
    border-radius: 3px;
    transition: var(--transition);
}

.lsp-lesson-item.active {
    background: var(--primary-color);
    color: white;
    border-left-color: var(--primary-color);
}

.lsp-lesson-item.completed {
    border-left-color: #4CAF50;
}

.lsp-lesson-item.completed::before {
    content: "✓ ";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 5px;
}

.lsp-lesson-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f0f0f0;
}

.lsp-lesson-item.locked::after {
    content: " 🔒";
    color: #f44336;
}

.lsp-lesson-item a {
    color: inherit;
    text-decoration: none;
}

.lsp-lesson-item.active a {
    color: white;
}

/* ============================================
   Quiz Styles
   ============================================ */

.lsp-quiz-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lsp-quiz-title {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.lsp-quiz-question {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.lsp-quiz-question-text {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.lsp-quiz-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lsp-quiz-option {
    margin-bottom: 10px;
}

.lsp-quiz-option input[type="radio"],
.lsp-quiz-option input[type="checkbox"] {
    margin-right: 10px;
}

.lsp-quiz-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ============================================
   Certificate Styles
   ============================================ */

.lsp-certificate {
    background: white;
    border: 5px solid var(--primary-color);
    border-radius: 10px;
    padding: 60px;
    text-align: center;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lsp-certificate-header h1 {
    color: var(--dark-gray);
    font-size: 36px;
    margin-bottom: 40px;
    text-decoration: underline;
}

.lsp-certificate-content {
    margin: 40px 0;
    line-height: 2;
}

.lsp-certificate-name {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    margin: 30px 0;
    text-decoration: underline;
}

.lsp-certificate-course {
    font-size: 24px;
    color: var(--dark-gray);
    margin: 30px 0;
}

.lsp-certificate-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #666;
}

/* ============================================
   Loading and Messages
   ============================================ */

.lsp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lsp-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.lsp-message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.lsp-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #f5c6cb;
}

.lsp-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.lsp-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffeaa7;
}

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

@media (max-width: 768px) {
    .lsp-courses-grid {
        grid-template-columns: 1fr;
    }

    .lsp-lesson-container {
        grid-template-columns: 1fr;
    }

    .lsp-lesson-sidebar {
        order: 2;
    }

    .lsp-lesson-main {
        order: 1;
    }

    .lsp-certificate {
        padding: 30px;
    }

    .lsp-certificate h1 {
        font-size: 24px;
    }

    .lsp-certificate-name {
        font-size: 24px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .lsp-btn,
    .lsp-lesson-actions,
    .lsp-lesson-sidebar {
        display: none !important;
    }

    .lsp-certificate {
        box-shadow: none;
        page-break-inside: avoid;
    }
}


.wp-block-list{
    list-style: none;
}

.wp-block-list li{
    position: relative;
    padding-left: 30px;
}

.wp-block-list li:before{
    content: "";
    width: 18px;
    height: 2px;
    background: #034cae;
    position: absolute;
    left: 0;
    top:12px;
}