/* S.D. Group LMS Plugin Styles */

/* General Course Styles */
.lms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.lms-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.lms-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.lms-course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.lms-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lms-course-card:hover .lms-course-thumbnail img {
    transform: scale(1.1);
}

.lms-course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.lms-course-content {
    padding: 20px;
}

.lms-course-title {
    margin: 0 0 10px;
    font-size: 1.3em;
    color: #333;
}

.lms-course-title a {
    color: inherit;
    text-decoration: none;
}

.lms-course-title a:hover {
    color: #007bff;
}

.lms-course-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: #666;
    font-size: 0.9em;
}

.lms-course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lms-course-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

.lms-enroll-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.lms-enroll-btn:hover {
    background: #0056b3;
}

.lms-enroll-btn.enrolled {
    background: #28a745;
}

.lms-enroll-btn.enrolled:hover {
    background: #1e7e34;
}

/* Single Course Page */
.lms-single-course {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.lms-course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.lms-course-header h1 {
    margin: 0 0 15px;
    font-size: 2.5em;
}

.lms-course-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.lms-course-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lms-course-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.lms-course-main {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lms-course-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.lms-sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lms-price-box {
    text-align: center;
    margin-bottom: 20px;
}

.lms-price {
    font-size: 2.5em;
    color: #007bff;
    font-weight: bold;
}

.lms-curriculum {
    margin-top: 30px;
}

.lms-lesson-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.lms-lesson-item:hover {
    background: #f8f9fa;
}

.lms-lesson-item.completed {
    background: #d4edda;
    border-color: #28a745;
}

.lms-lesson-title {
    font-weight: 600;
    color: #333;
}

.lms-lesson-status {
    color: #28a745;
    font-size: 0.9em;
}

/* Quiz Styles */
.lms-quiz-container {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lms-quiz-question {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.lms-quiz-question h3 {
    margin: 0 0 15px;
    color: #333;
}

.lms-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lms-quiz-option {
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.lms-quiz-option:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

.lms-quiz-option input[type="radio"] {
    margin-right: 10px;
}

.lms-quiz-submit {
    background: #007bff;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.lms-quiz-submit:hover {
    background: #0056b3;
}

.lms-quiz-result {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
}

.lms-quiz-score {
    font-size: 3em;
    color: #007bff;
    font-weight: bold;
    margin: 20px 0;
}

.lms-quiz-passed {
    color: #28a745;
    font-size: 1.5em;
    font-weight: bold;
}

.lms-quiz-failed {
    color: #dc3545;
    font-size: 1.5em;
    font-weight: bold;
}

/* Video Player */
.lms-video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
}

.lms-video-player iframe,
.lms-video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Progress Bar */
.lms-progress-container {
    background: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
}

.lms-progress-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.lms-progress-text {
    text-align: center;
    font-weight: 600;
    color: #28a745;
    margin-top: 5px;
}

/* Buttons */
.lms-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.lms-btn-primary {
    background: #007bff;
    color: white;
}

.lms-btn-primary:hover {
    background: #0056b3;
}

.lms-btn-success {
    background: #28a745;
    color: white;
}

.lms-btn-success:hover {
    background: #1e7e34;
}

.lms-btn-secondary {
    background: #6c757d;
    color: white;
}

.lms-btn-secondary:hover {
    background: #545b62;
}

/* Badges */
.lms-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.lms-badge-beginner {
    background: #d4edda;
    color: #155724;
}

.lms-badge-intermediate {
    background: #fff3cd;
    color: #856404;
}

.lms-badge-advanced {
    background: #f8d7da;
    color: #721c24;
}

/* Loading Spinner */
.lms-loading {
    text-align: center;
    padding: 40px;
}

.lms-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.lms-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.lms-alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.lms-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.lms-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .lms-course-body {
        grid-template-columns: 1fr;
    }
    
    .lms-course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .lms-course-grid {
        grid-template-columns: 1fr;
    }
    
    .lms-course-header {
        padding: 30px 20px;
    }
    
    .lms-course-header h1 {
        font-size: 1.8em;
    }
    
    .lms-course-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .lms-single-course {
        padding: 15px;
    }
}

/* Dashboard Specific Styles */
.lms-dashboard-nav {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.lms-dashboard-nav a {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.lms-dashboard-nav a:hover,
.lms-dashboard-nav a.active {
    background: #007bff;
    color: white;
}

/* Certificate Styles */
.lms-certificate {
    max-width: 800px;
    margin: 40px auto;
    padding: 60px;
    border: 10px solid #007bff;
    background: white;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.lms-certificate-title {
    font-size: 3em;
    color: #007bff;
    margin: 20px 0;
    font-weight: bold;
}

.lms-certificate-text {
    font-size: 1.2em;
    margin: 20px 0;
    line-height: 1.8;
}

.lms-certificate-name {
    font-size: 2em;
    color: #333;
    font-weight: bold;
    margin: 30px 0;
}

.lms-certificate-course {
    font-size: 1.5em;
    color: #007bff;
    font-style: italic;
    margin: 20px 0;
}