/* Course Features & Search Styles */
.course-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 1px solid #333;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
}

/* Search Results */
.search-results-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    border: 1px solid #00ff41;
    display: none;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.search-results-header h3 {
    color: #00ff41;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-search {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.search-result-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-result-item:hover {
    border-color: #00ff41;
    transform: translateY(-2px);
}

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

.result-header h4 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.module-badge {
    background: #00ff41;
    color: #000;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.result-content p {
    color: #ccc;
    margin: 10px 0;
    line-height: 1.4;
}

.result-commands {
    margin: 10px 0;
    padding: 8px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 5px;
    font-size: 0.8rem;
    color: #00ff41;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.lesson-number {
    color: #888;
    font-size: 0.8rem;
}

.open-lesson {
    color: #00ff41;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #333;
}

.no-results h3 {
    color: #ccc;
    margin-bottom: 10px;
}

/* Progress Bar */
.progress-bar {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    color: #00ff41;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Course Preview Topics */
.preview-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.preview-topics span {
    color: #ccc;
    font-size: 0.85rem;
    padding: 4px 8px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    border-left: 3px solid #00ff41;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}