
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family:
    source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* Login's TOTP setup (common/src/components/TOTPSetup) prints the 32-char
   secret unbroken; let it wrap on a phone instead of widening the page. */
.secret-code {
  overflow-wrap: anywhere;
}

.react-datepicker__input-container input {
  box-sizing: border-box;
  width: 350px;
  max-width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid #ffffff72;
  font-size: 14px;
  background: #161616;
  color: #ecedee;
  font-family: "Inter", sans-serif;
}

/* Hover style */
.react-datepicker__input-container input:hover {
  border-color: #b3b3b3;
  background: #161616 !important;
}

/* Focus style */
.react-datepicker__input-container input:focus {
  outline: none;
  background: #161616 !important;
}

.react-datepicker-popper {
  border-radius: 12px;
  z-index: 2000;
  border-color: #282828 !important;
}

/* Calendar background */
.react-datepicker {
  background: #1a1a1a !important;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.62);
  border-color: #282828 !important;
  font-family: "Inter", sans-serif;
}

.react-datepicker__triangle {
  color: #1a1a1a !important;
  fill: #1a1a1a !important;
  stroke: #282828 !important;
}

/* Header background (lighter gray) */
.react-datepicker__header {
  background: #1a1a1a !important;
  border-bottom: none;
  color: #ecedee !important;
}

/* Optional: Style the current month text */
.react-datepicker__current-month {
  color: #ecedee !important;
  font-weight: 400;
}

.react-datepicker__day-name {
  color: #ecedee !important;
}

.react-datepicker__day:hover {
  background-color: #ffffff14 !important;
}

.react-datepicker__day {
  color: #ecedee !important;
}

.react-datepicker__day--selected,
.react-datepicker__day--keyboard-selected {
  background: #1c91e2 !important;
}

/* Tamagui types overflowX/Y as RN values (no "auto"); scroll only when the
   content outgrows the box instead of always drawing a scrollbar. */
.scroll-x-auto {
  overflow-x: auto;
}

.scroll-y-auto {
  overflow-y: auto;
}

/* Lets an unbroken token ("temperature/humidity") wrap inside a narrow
   column instead of running into the next one. Outranks Tamagui's later
   `:root ._wordWrap-break-word` (0,2,0) on every Text. */
:root .break-anywhere.break-anywhere {
  overflow-wrap: anywhere;
}

/* Sensor Readings packet columns, shown only while each gets >=230px
   (PACKET_COLUMN_MIN in SensorEvents.tsx; narrower, it switches to pills).
   Outranks Tamagui's `:root ._display-flex`. */
:root .packet-columns.packet-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  align-items: start;
  overflow-x: auto;
}

.hideScrollBar {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.hideScrollBar::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
.appear {
    animation-name: opacIncrease;
    animation-duration: 0.5s;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
}
@keyframes opacIncrease {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
