{% assign topic_classname = topic | split: " " %}

<div class="np-progress-filter-wrapper">
    {% if label %}
      <div class="np-progress-filter-label">{{ label }}</div>
    {% endif %}
    <div class="progress-filter filter-select-wrapper select-wrapper np-button" data-topic="{{ topic_classname | join: '-' | downcase }}">
        <select >
            <option selected disabled hidden>{{ default_option}}</option>
            <option value="a">All Courses</option>
            <option value="n">Not Started</option>
            <option value="i">In Progress</option>
            <option value="c">Completed</option>
        </select>
    </div>
</div>

<style>
  .np-progress-filter-label {
      color: rgba(0, 0, 0, 0.5);
      padding-right: 7px;
      text-transform: none;
      font-weight:500;
      font-size:0.812rem;
  }
  .np-progress-filter-wrapper {
      display: flex;
      justify-content: flex-end;
      align-items: center;
  }
  .filter-select-wrapper {
      position: relative;
      padding:0;
      border: 2px solid  rgba(0, 0, 0, 0.25);
      color: #fff;
      height:auto;
      text-transform: none;
      background: transparent;
      border-radius:0;
  }
  .filter-select-wrapper:hover {
      background:transparent;
      color:#fff;
  }
  .select-items {
      position: absolute;
      background-color: #fff;
      top: 105%;
      left: -2px;
      z-index: 99;
      width: 102%;
      border: 2px solid rgba(0, 0, 0, 0.25);
      border-top:none;
  }
  .select-items div {
      color: #444;
      border-top:none;
      cursor: pointer;
      width:100%;
      padding: 12px 16px;
    }

  .select-items div:hover {  color: #fff; }
  .select-selected {
      width: 100%;
      height: 100%;
      padding: 9px 66px 9px 20px;
      position: relative;
      color:#222;
  }
  .select-selected::after {
      content:"\f078";
      font-family: "Font Awesome 5 Pro";
      position: absolute;
      width:20px;
      height:100%;
      color:rgba(0, 0, 0, 0.5);
      right:10px;
      top:0;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size:1rem;
  }
  .select-selected::before {
      content:"";
      position: absolute;
      width:20px;
      height:100%;
      border-left:2px solid rgba(0, 0, 0, 0.25);
      right:20px;
      top:0;
  }
  .select-selected.select-arrow-active::after { transform: rotate(180deg); }
  .same-as-selected,
  .filter-select-wrapper select,
  .select-hide {
      display: none;
  }
  .mo-filter-wrapper {
      display: flex;
      justify-content: center;
      list-style: none;
      margin: 0;
      padding: 0;
  }
  .select-items div:hover, 
  .same-as-selected {
    background-color: #058ccf;
  }
</style>

