/* Additional Custom Styles */

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

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

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

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Forms */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

#password-strength {
    margin-top: 5px;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.9rem;
}

#password-strength.weak {
    background-color: #f8d7da;
    color: #721c24;
}

#password-strength.medium {
    background-color: #fff3cd;
    color: #856404;
}

#password-strength.strong {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

input.error,
select.error,
textarea.error {
    border-color: #dc3545 !important;
}

#file-name {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #28a745;
}

/* Dashboard */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.recent-lessons {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.recent-lessons h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recent-lessons-list {
    list-style: none;
}

.recent-lessons-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recent-lessons-list li:last-child {
    border-bottom: none;
}

.recent-lessons-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-lessons-list li a:hover {
    color: var(--secondary-color);
}

/* Lessons */
.lesson-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    color: #666;
}

.lesson-breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.lesson-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 30px;
}

.lesson-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.lesson-info-box,
.lesson-navigation,
.lesson-help {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.lesson-info-box h4,
.lesson-navigation h4,
.lesson-help h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.lesson-info-box ul {
    list-style: none;
}

.lesson-info-box ul li {
    margin-bottom: 10px;
    color: #666;
}

.lesson-info-box ul li strong {
    color: var(--text-color);
    min-width: 80px;
    display: inline-block;
}

.lesson-navigation a {
    display: block;
    padding: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lesson-navigation a:hover {
    background: var(--secondary-color);
    color: white;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 5px;
    background: #f8f9fa;
    border-radius: 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: var(--secondary-color);
    color: white;
}

/* Reviews */
.rating-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.rating-stars .star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #ffc107;
}

.reviews-list {
    margin-top: 30px;
}

.review-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    color: var(--primary-color);
}

.review-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.how-it-works .section-title {
    color: white;
}

.how-it-works .section-title:after {
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: white;
    color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-card h3 {
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #999;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: var(--secondary-color);
    color: white;
}

.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .lesson-grid {
        grid-template-columns: 1fr;
    }
    
    .lesson-sidebar {
        position: static;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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