/* TelccFree — dashboard exercise search (modern mockup UI) */

.telc-dashboard-search-wrap {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .telc-dashboard-search-wrap {
    flex: 0 1 auto;
    max-width: 16rem;
  }

  .telc-dashboard-search-wrap:focus-within {
    max-width: 18rem;
  }
}

/* Dashboard: always show inline field (no mobile icon toggle) */
.telc-dashboard-search-wrap .telc-search-field {
  display: block;
  position: relative;
  width: 100%;
  max-width: 14rem;
  opacity: 1;
  pointer-events: auto;
}

.telc-dashboard-search-wrap .telc-search-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 2rem;
  font-size: 0.8125rem;
}

.telc-dashboard-search-wrap .telc-search-input::-webkit-search-cancel-button {
  display: none;
}

.telc-dashboard-search-wrap .telc-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.375rem;
  height: 1.375rem;
  border: none;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}

.telc-dashboard-search-wrap .telc-search-clear.is-visible {
  display: inline-flex;
}

.telc-dashboard-search-wrap .telc-search-clear:hover {
  background: rgba(148, 163, 184, 0.32);
  color: #334155;
}

body.telc-dashboard-search-active .dashboard-tabs-wrap {
  opacity: 0.72;
}

.telc-dashboard-search-empty {
  display: none;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
  padding: 0 1rem;
}

.telc-dashboard-search-empty.is-visible {
  display: block;
}

html.dark .telc-dashboard-search-wrap .telc-search-input {
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #e2e8f0 !important;
}

html.dark .telc-dashboard-search-wrap .telc-search-input::placeholder {
  color: #94a3b8 !important;
}

html.dark .telc-dashboard-search-wrap .telc-search-input:focus {
  border-color: rgba(244, 143, 177, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.14) !important;
}

html.dark .telc-dashboard-search-wrap .telc-search-field__svg {
  color: #94a3b8 !important;
}

html.dark .telc-dashboard-search-empty {
  color: #94a3b8;
}
