/* libs/shared-ui/bpm-inline.css */
/* BPM Inline Component - Shared styles for App16, App17, and future apps */

/* ============================================
   BPM INLINE CONTAINER
   ============================================ */

.bpm-inline {
  position: absolute;
  display: none;  /* Controlled by visibility toggle */
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
}

.bpm-inline.visible {
  display: flex;
}

/* ============================================
   BPM CIRCLE (2/3 size: 66px)
   ============================================ */

.bpm-inline .circle {
  width: 66px;
  height: 66px;
  border: 2px solid var(--circle-border, #333);
  border-radius: 50%;
  position: relative;
}

.bpm-inline input {
  font-size: 1.65rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-color, #333);
  font-family: 'Courier New', Courier, monospace;
}

.bpm-inline input:focus {
  outline: none;
}

.bpm-inline .abbr {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color, #333);
  opacity: 0.8;
}

/* ============================================
   SPINNER CONTROLS
   ============================================ */

.bpm-inline .spinner {
  position: absolute;
  right: -35px;  /* Outside circle */
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bpm-inline .spin {
  width: 26px;
  height: 26px;
  border: none;
  background: #333;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpm-inline .spin:hover {
  background: #555;
}

.bpm-inline .spin.up::before,
.bpm-inline .spin.down::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
}

.bpm-inline .spin.up::before {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #eee;
}

.bpm-inline .spin.down::before {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #eee;
}

/* ============================================
   DARK THEME
   ============================================ */

[data-theme="dark"] .bpm-inline .circle {
  border-color: var(--text-color, #eee);
}

[data-theme="dark"] .bpm-inline input,
[data-theme="dark"] .bpm-inline .abbr {
  color: var(--text-color, #eee);
}

[data-theme="dark"] .bpm-inline .spin {
  background: #eee;
}

[data-theme="dark"] .bpm-inline .spin:hover {
  background: #ccc;
}

[data-theme="dark"] .bpm-inline .spin.up::before {
  border-bottom-color: #333;
}

[data-theme="dark"] .bpm-inline .spin.down::before {
  border-top-color: #333;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 360px) {
  .bpm-inline .circle {
    width: 50px;
    height: 50px;
  }

  .bpm-inline input {
    font-size: 1.25rem;
  }

  .bpm-inline .abbr {
    font-size: 0.55rem;
  }

  .bpm-inline .spinner {
    right: -30px;
    width: 22px;
  }

  .bpm-inline .spin {
    width: 22px;
    height: 22px;
  }

  .bpm-inline .spin.up::before {
    border-left-width: 5px;
    border-right-width: 5px;
    border-bottom-width: 6px;
  }

  .bpm-inline .spin.down::before {
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 6px;
  }
}
