/* Shared hollow Lucide icons — same stroke language as student panels */

svg.lucide {
  overflow: visible;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: -0.125em;
  display: inline-block;
}

svg.lucide:not([class*="w-"]):not([class*="size-"]) {
  width: 1em;
  height: 1em;
}

svg.lucide:not([class*="h-"]):not([class*="size-"]):not([class*="w-"]) {
  height: 1em;
}

@keyframes portal-icon-spin {
  to { transform: rotate(360deg); }
}

.portal-icon-spin,
svg.lucide.portal-icon-spin {
  animation: portal-icon-spin 1s linear infinite;
}

.nav-item.active svg.lucide,
.mobile-nav-item.active svg.lucide,
.nav-link.active .nav-icon svg.lucide {
  color: inherit;
}

.portal-input-search-icon {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  color: rgb(156 163 175);
}

.portal-input-search-icon svg.lucide {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
  vertical-align: unset;
}

/* Modern inline search field — icon and text share a flex row (no overlap). */
.portal-search-field {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  border: 1px solid rgb(229 231 235);
  border-radius: 0.75rem;
  background: rgb(249 250 251);
  padding: 0.5rem 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.portal-search-field:focus-within {
  border-color: var(--brand-200, #ddd6fe);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #7c3aed) 14%, transparent);
}

.portal-search-field__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: rgb(156 163 175);
  line-height: 0;
}

.portal-search-field__icon svg.lucide {
  width: 1rem;
  height: 1rem;
  display: block;
  vertical-align: unset;
}

.portal-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(17 24 39);
}

.portal-search-field input::placeholder {
  color: rgb(156 163 175);
}

.portal-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

@keyframes portal-skeleton-shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.portal-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 2000px 100%;
  animation: portal-skeleton-shimmer 2s infinite linear;
  border-radius: 0.5rem;
}

.portal-list-loading__spinner {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid color-mix(in srgb, var(--brand, #7c3aed) 18%, transparent);
  border-top-color: var(--brand, #7c3aed);
  border-radius: 50%;
  animation: portal-icon-spin 0.75s linear infinite;
}

.portal-list-loading__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem 1rem;
}

.portal-list-loading__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(107 114 128);
}

.portal-list-loading__rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.portal-list-loading__rows--page {
  max-width: 42rem;
  margin: 0 auto;
}

.portal-list-loading__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-list-loading__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.portal-list-loading__lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-list-loading__line {
  height: 0.75rem;
  border-radius: 999px;
}

.portal-list-loading__stat {
  display: inline-block;
  width: 2.5rem;
  height: 1.75rem;
  border-radius: 0.5rem;
}

.portal-list-loading--cards {
  padding: 0.75rem;
}

.portal-list-loading--page {
  padding: 2rem 1rem;
}
