@use '../../themes/index' as *;
@use '../../abstracts/index' as *;

/*
  Header component styles
*/
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: var(--secondary-bg);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  z-index: var(--z-header);
  height: var(--header-height);

  .app-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;

    h1 {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--text-primary);
      letter-spacing: 0.2px;
    }

    .app-logo-icon {
      color: var(--primary-color);
    }
  }
}

.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;

  .search-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
  }
}

.search-input {
  background-color: var(--tertiary-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  font-size: 0.9rem;
  transition:
    border-color var(--duration-normal) var(--easing-ease-out),
    background-color var(--duration-normal) var(--easing-ease-out);
  min-width: 220px;

  &:focus {
    border-color: var(--primary-color);
    background-color: var(--secondary-bg);
    outline: none;

    & + .search-icon {
      color: var(--primary-color);
    }
  }

  &::placeholder {
    color: var(--text-muted);
  }
}
