/*
 * app.css — Capacitor native app overrides
 *
 * Selectors are scoped with .is-capacitor (set by general.js via
 * window.Capacitor.isNativePlatform()) for extra specificity safety.
 *
 * Add app-specific adjustments below.
 */

/* ALWAYS USE .is-capacitor AS PREFIX UNTIL THE NEW APP GOES LIVE */


body.is-capacitor {
  padding-top: 50px !important;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.is-capacitor .femna-app-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 9999;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.06);
}

.is-capacitor .femna-app-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9e9e9e;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.is-capacitor .femna-app-nav__item.is-active {
  color: #2c5f6e;
}

.is-capacitor .femna-app-nav__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.is-capacitor .femna-app-nav__label {
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
}


.is-capacitor .femna-app-settings-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
}

.is-capacitor .femna-app-settings-overlay.is-open {
  display: block;
}


.is-capacitor .femna-app-settings-popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  padding: 24px 20px calc(80px + env(safe-area-inset-bottom, 0px));
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.is-capacitor .femna-app-settings-popup.is-open {
  transform: translateY(0);
}


.is-capacitor .femna-settings-section {
  margin-bottom: 28px;
}

.is-capacitor .femna-settings-section__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding: 0;
}


.is-capacitor .femna-settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.is-capacitor .femna-settings-toggle-label {
  font-size: 15px;
  color: #1a1a1a;
  cursor: pointer;
  margin: 0;
}

/* Toggle switch */
.is-capacitor .femna-toggle {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
  cursor: pointer;
}

.is-capacitor .femna-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.is-capacitor .femna-toggle__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 31px;
  transition: background 0.2s ease;
}

.is-capacitor .femna-toggle__slider::before {
  content: '';
  position: absolute;
  width: 27px;
  height: 27px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.is-capacitor .femna-toggle input:checked + .femna-toggle__slider {
  background: #2c5f6e;
}

.is-capacitor .femna-toggle input:checked + .femna-toggle__slider::before {
  transform: translateX(20px);
}


.is-capacitor .femna-settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.is-capacitor .femna-settings-list__item {
  border-bottom: 1px solid #ebebeb;
}

.is-capacitor .femna-settings-list__item:first-child {
  border-top: 1px solid #ebebeb;
}

.is-capacitor .femna-settings-list__item a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: none;
}


.is-capacitor .femna-settings-version {
  text-align: center;
  font-size: 13px;
  color: #9e9e9e;
  margin: 32px 0 0;
}

.is-capacitor .brevo-conversations--side-bottom{
  bottom: 80px !important;
}