/* SolarPro Academy Frontend Styling */
.solarpro-course-player {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 25px;
  border-radius: 12px;
  max-width: 900px;
  margin: 30px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", Roboto, sans-serif;
}

.solarpro-course-player h2 {
  text-align: center;
  color: #222;
  font-size: 26px;
  margin-bottom: 25px;
}

.solarpro-chapter {
  border: 1px solid #ddd;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.solarpro-chapter h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #222;
}

.solarpro-chapter.locked {
  background: #f8f8f8;
  opacity: 0.6;
}

.solarpro-chapter.unlocked {
  background: #fdfdfd;
}

.solarpro-chapter audio {
  width: 100%;
  margin-top: 10px;
}

.solarpro-chapter .button {
  margin-top: 10px;
}

.solarpro-exam-section {
  margin-top: 30px;
  text-align: center;
}

.solarpro-exam-section .button {
  background-color: #0073aa;
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.solarpro-exam-section .button:hover {
  background-color: #005f8d;
}

.solarpro-login-msg {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  color: #856404;
  margin: 20px 0;
}
.solarpro-course-player {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.solarpro-chapter {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.solarpro-chapter h3 {
  color: #333;
  margin-bottom: 5px;
}

            * { box-sizing: border-box; }
            
            .solarpro-player-wrapper {
                background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
                border-radius: 20px;
                overflow: hidden;
                box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
                max-width: 1200px;
                margin: 30px auto;
            }

            .sp-hero-header {
                background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
                padding: 50px 10;
                color: white;
                position: relative;
                overflow: hidden;
            }

            .sp-hero-header::before {
                content: '';
                position: absolute;
                top: -50%;
                right: -20%;
                width: 400px;
                height: 400px;
                background: rgba(255, 255, 255, 0.1);
                border-radius: 50%;
            }

            .sp-hero-title {
                font-size: 36px;
                font-weight: 800;
                margin: 0 0 16px 0;
                position: relative;
                z-index: 1;
                text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            }

            .sp-hero-desc {
                font-size: 16px;
                line-height: 1.7;
                opacity: 0.95;
                position: relative;
                z-index: 1;
                max-width: 800px;
            }

            .sp-content-area {
                padding: 40px;
            }

            .sp-section-title {
                font-size: 24px;
                font-weight: 700;
                color: #1a1a1a;
                margin: 0 0 30px 0;
                display: flex;
                align-items: center;
                gap: 12px;
            }

            .sp-section-title::before {
                content: '';
                width: 4px;
                height: 28px;
                background: linear-gradient(180deg, #FFA500 0%, #FF8C00 100%);
                border-radius: 2px;
            }

            .sp-chapters-container {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }

            .sp-chapter-card {
                background: white;
                border: 2px solid #e8eaed;
                border-radius: 16px;
                overflow: hidden;
                transition: all 0.3s ease;
            }

            .sp-chapter-card:hover {
                border-color: #FFA500;
                box-shadow: 0 6px 24px rgba(255, 165, 0, 0.15);
            }

            .sp-chapter-card.active {
                border-color: #FFA500;
                box-shadow: 0 8px 30px rgba(255, 165, 0, 0.25);
            }

            .sp-chapter-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 20px 24px;
                cursor: pointer;
                background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
                transition: all 0.3s ease;
            }

            .sp-chapter-header:hover {
                background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
            }

            .sp-chapter-card.active .sp-chapter-header {
                background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
            }

            .sp-chapter-title-wrapper {
                display: flex;
                align-items: center;
                gap: 16px;
                flex: 1;
            }

            .sp-chapter-number {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 48px;
                height: 48px;
                background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
                color: white;
                border-radius: 12px;
                font-weight: 700;
                font-size: 18px;
                flex-shrink: 0;
                box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
            }

            .sp-chapter-title {
                font-size: 18px;
                font-weight: 600;
                color: #1a1a1a;
                margin: 0;
            }

            .sp-chapter-icon {
                color: #FFA500;
                transition: transform 0.3s ease;
                flex-shrink: 0;
            }

            .sp-chapter-card.active .sp-chapter-icon {
                transform: rotate(180deg);
            }

            .sp-chapter-body {
                display: none;
                padding: 30px 24px;
                background: white;
                border-top: 1px solid #f0f0f0;
            }

            .sp-chapter-card.active .sp-chapter-body {
                display: block;
                animation: slideDown 0.3s ease;
            }

            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translateY(-10px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .sp-media-section {
                margin-bottom: 24px;
            }

            .sp-media-label {
                display: flex;
                align-items: center;
                gap: 8px;
                font-weight: 600;
                color: #444;
                margin-bottom: 12px;
                font-size: 15px;
            }

            .sp-audio-player {
                width: 100%;
                border-radius: 12px;
                outline: none;
                height: 48px;
            }

            .sp-audio-player::-webkit-media-controls-panel {
                background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
                border-radius: 12px;
            }

            .sp-pdf-section {
                margin-top: 24px;
                padding-top: 24px;
                border-top: 1px solid #f0f0f0;
            }

            .sp-pdf-toggle {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                padding: 14px 28px;
                background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
                color: white;
                border: none;
                border-radius: 12px;
                font-weight: 600;
                font-size: 15px;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
            }

            .sp-pdf-toggle:hover {
                background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
            }

            .sp-pdf-viewer-wrapper {
                margin-top: 20px;
                display: none;
                border-radius: 16px;
                overflow: hidden;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
                position: relative;
            }

            .sp-pdf-loading {
                text-align: center;
                padding: 60px 20px;
                background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            }

            .sp-loading-spinner {
                width: 50px;
                height: 50px;
                border: 4px solid #f3f3f3;
                border-top: 4px solid #FFA500;
                border-radius: 50%;
                animation: spin 1s linear infinite;
                margin: 0 auto 16px;
            }

            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }

            .sp-loading-text {
                color: #666;
                font-size: 15px;
                font-weight: 500;
            }

            .sp-pdf-iframe {
                width: 100%;
                height: 700px;
                border: none;
                display: none;
                background: white;
            }

            .sp-pdf-error {
                display: none;
                text-align: center;
                padding: 40px 20px;
                background: #ffebee;
                border-radius: 12px;
            }

            .sp-error-text {
                color: #d32f2f;
                font-size: 15px;
                margin-bottom: 16px;
            }

            .sp-retry-btn {
                padding: 10px 20px;
                background: #d32f2f;
                color: white;
                border: none;
                border-radius: 8px;
                cursor: pointer;
                font-weight: 600;
                transition: all 0.3s ease;
            }

            .sp-retry-btn:hover {
                background: #b71c1c;
                transform: scale(1.05);
            }

            @media (max-width: 768px) {
                .sp-hero-header {
                    padding: 30px 24px;
                }
                .sp-hero-title {
                    font-size: 28px;
                }
                .sp-content-area {
                    padding: 24px;
                }
                .sp-chapter-header {
                    padding: 16px;
                }
                .sp-chapter-number {
                    width: 40px;
                    height: 40px;
                    font-size: 16px;
                }
                .sp-chapter-title {
                    font-size: 16px;
                }
                .sp-pdf-iframe {
                    height: 500px;
                }
            }
    


