/* Copyright 2025 Renofy Ltd. All rights reserved. */
/**
Info Bar Component
 *
 * Header bar displaying action icons and job status.
 * Left side: Save (tradesperson only), Share icons
 * Right side: Job status badge
 * Mobile-only component
 */

/* Base container */
.info-bar {
  top: 0;
  z-index: 100;
  background: var(--color-white);
}

.info-bar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  max-width: 100vw;
}

/* Left side - Action icons (Save, Share) */
.info-bar__left {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Right side - Job status badge */
.info-bar__right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Action buttons (Save, Share) */
.info-bar__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 28px;
  padding: 0 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-text-primary);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

/* Desktop styles - show but hide status badge */
@media (min-width: 821px) {
  .info-bar {
    background: transparent;
    margin-bottom: 1rem;
  }

  .info-bar__content {
    max-width: none;
    padding: 0.25rem 0 0 0;
  }

  .info-bar__right {
    display: none; /* Hide status badge on desktop */
  }

  .info-bar__icon-btn:hover {
    background-color: var(--color-bg-surface);
  }
}
