/* @import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap'); */

@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/Nunito-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 1000;  /* Variable weights: 200–1000 */
  font-style: normal;
  font-display: swap;  /* Improves loading: shows fallback text until font loads */
}

:root {
  --primary-color: #279b37;
  --primary-color-dark: #279b37;
  --background-color: #FBF8EF;
  --theme-color: #FBF8EF;

  --text-color-success: #0abf53;
  --text-color-confirm: #f48924;
  --text-color-failure: #ff0000;

  --bg-color-success: #a7f3d0;
  --bg-color-confirm: #fed7aa;
  --bg-color-failure: #fecaca;

  --font-family-default: "Nunito", sans-serif;

  --font-size-heading: 1.1rem;
  --font-size-title: 1rem;
  --font-size-label: 0.8rem;
  --font-size-content: 0.6rem;

  --text-color-white: #FBF8EF;
  --text-color-dark: #444444;
  --text-color-grey: #666666;
  --text-color-light-grey: #999999;
  --bg-color-grey: #d7d7d8;
  --bg-color-surface: #e5e5e6;
  --bg-color-light: #f1f3f5;
  --bg-color-white: #ffffff;
  --border-color-light-grey: #f3f1f1;
  --toggle-switch-inactive: #e0e0e0;
  --toggle-switch-active: #279b37;
}

:root.dark {
  --primary-color: #279b37;
  --primary-color-dark: #279b37;
  --background-color: #FBF8EF;
  --theme-color: #FBF8EF;

  --text-color-success: #0abf53;
  --text-color-confirm: #f48924;
  --text-color-failure: #ff0000;

  --bg-color-success: #a7f3d0;
  --bg-color-confirm: #fed7aa;
  --bg-color-failure: #fecaca;

  --text-color-white: #FBF8EF;
  --text-color-dark: #444444;
  --text-color-grey: #666666;
  --text-color-light-grey: #999999;
  --bg-color-grey: #d7d7d8;
  --bg-color-surface: #e5e5e6;
  --bg-color-light: #f1f3f5;
  --bg-color-white: #FBF8EF;
  --border-color-light-grey: #f3f1f1;
  --toggle-switch-inactive: #e0e0e0;
  --toggle-switch-active: #279b37;
}

*, 
*::before, 
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide scrollbars globally while maintaining functionality */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

:host {
  display: block;
  block-size: 100%;
  overflow: hidden;
}

body, 
html {
  block-size: 100%;
  inline-size: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: manipulation;
  font-optical-sizing: auto;
  color: var(--text-color-grey);
  background-color: #ffffff;
  font-family: var(--font-family-default) !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Ensure scrolling still works smoothly */
html {
  scroll-behavior: smooth;
}

@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

.root {
  block-size: 100%;
  inline-size: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

a, 
input, 
button, 
textarea {
  outline: none;
}

a {
  text-decoration: none;
  color: var(--text-color-grey);
}

h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

label {
  display: block;
  margin-block-end: 0.4rem;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

input::placeholder {
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0rem 62.5rem inherit inset;
  -webkit-text-fill-color: inherit;
  transition: background-color 5000s ease-in-out 0s;
}

input:-moz-autofill,
input:-moz-autofill:focus {
  background-color: inherit !important;
}

.hidden {
  display: none !important;
}

.btn {
  display: inline-block;
  inline-size: 100%;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 0.0625rem solid transparent;
  padding: 1rem 1rem;
  margin-block-start: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color-grey);
  box-shadow: 0 4px 16px rgba(136, 255, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  color: var(--text-color-white);
  background: linear-gradient(135deg, #279b37 0%, #279b37 100%);
}

.btn-primary:active {
  color: var(--text-color-white);
  background: linear-gradient(135deg, #279b37 0%, #279b37 100%);
}

.btn-cta {
  width: fit-content;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 0;
  padding: 0.8rem 2rem;
  margin-block-start: 1rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

.section-template {
  opacity: 0;
  -webkit-transform: translateX(12.5rem);
  -moz-transform: translateX(12.5rem);
  transform: translateX(12.5rem);
  -webkit-transition: opacity 0.4s ease, transform 0.2s ease;
  -moz-transition: opacity 0.4s ease, transform 0.2s ease;
  transition: opacity 0.4s ease, transform 0.2s ease;
}

.section-template.add-animation {
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  transform: translateX(0);
}

.section-template.remove-animation {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  transform: translateX(0);
}

.main-content {
  position: absolute;
  top: 5rem;
  bottom: 4.375rem;
  left: 0;
  right: 0;
  padding-inline: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background-color: var(--bg-color-white);
}

.main-content-no-bottom-nav {
  block-size: calc(100vh - 4.375rem);
  overflow-y: auto;
  background-color: var(--bg-color-white);
}

/* Flexible Header System */
/* 
Usage Examples:
1. Title only: <header class="page-header header-title-only"><h1 class="header-title">Page Title</h1></header>
2. Title + back: <header class="page-header header-with-back"><button class="back-button">←</button><h1 class="header-title">Page Title</h1></header>
3. Profile header: <header class="page-header header-with-profile"><div class="profile-avatar">...</div><div class="user-info">...</div><button class="notification-bell">...</button></header>
*/
.page-header {
  display: flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: #ffffff;
  color: #333;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  /* border-bottom: 1px solid #e5e7eb; */
  min-height: 4.4rem;
}

/* Header Title Only */
.page-header.header-title-only {
  justify-content: center;
}

.page-header.header-title-only .header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Header with Back Button */
.page-header.header-with-back {
  justify-content: flex-start;
  gap: 1rem;
}

.page-header.header-with-back .back-button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.page-header.header-with-back .back-button svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-header.header-with-back .header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Header with Profile (Avatar + User Info + Notification) */
.page-header.header-with-profile {
  justify-content: space-between;
  gap: 0.4rem;
}

/* Shared Profile Header Components */
.page-header .profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #279b37;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.page-header .avatar-initials {
  font-size: 14px;
  font-weight: 600;
}

.page-header .user-info {
  flex: 1;
  text-align: left;
}

.page-header .user-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.page-header .user-handle {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.2;
}

.page-header .notification-bell {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #6b7280;
  flex-shrink: 0;
}

.page-header .notification-bell svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav {
  /* box-shadow: 0 -0.125rem 0.3125rem rgba(0, 0, 0, 0.1); */
  background-color: inherit;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  block-size: 4.375rem;
  z-index: 10;
  box-sizing: border-box;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    block-size: calc(4.375rem + env(safe-area-inset-bottom));
  }
  
  .main-content {
    bottom: calc(4.375rem + env(safe-area-inset-bottom));
  }
}

.nav-container {
  display: flex;
  justify-content: space-around;
  block-size: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-inline-size: 4rem;
  padding: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  color: var(--text-color-light-grey);
}

.nav-item.active {
  opacity: 1;
  color: var(--text-color-dark);
}

.nav-icon {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  margin-block-end: 0.25rem;
  transition: transform 0.2s ease;
}

.nav-label {
  font-weight: bold;
  transition: all 0.2s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  inline-size: 0;
  block-size: 0.2rem;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-item.active::after {
  /* inline-size: 1.85rem;
  background-color: var(--text-color-dark); */
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  block-size: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.snackbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: .14rem 0;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--text-color-white);
  transform: translateY(100%);
}

.snackbar.show {
  transform: translateY(0);
}

.error-snackbar {
  opacity: 1;
  z-index: 1000;
  background-color: var(--text-color-failure);
}

.success-snackbar {
  opacity: 1;
  z-index: 1000;
  background-color: var(--text-color-success);
}

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  padding: 1.5rem;
  background-color: var(--bg-color-white);
}

.auth-page:not(.auth-page-has-auth-back-button-section) {
  justify-content: center;
}

.auth-page.auth-page-has-auth-back-button-section .auth-form {
  margin-block-start: 2rem;
}

.auth-back-button-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
  z-index: 1;
}



.auth-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background-color: var(--bg-color-white);
}

.auth-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

.auth-form form .auth-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .2rem;
  margin-block-end: 2rem;
}

.auth-form form .auth-title {
  text-align: center;
  font-size: var(--font-size-heading);
  color: var(--text-color-dark);
}

.auth-form form .auth-subtitle {
  text-align: center;
  font-size: var(--font-size-title);
}

.auth-back-button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 3rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin: 1rem 0;
  padding: 0;
  background-color: var(--bg-color-surface);
}

.auth-back-button svg {
  inline-size: 1.5rem;
  block-size: 1.75rem;
}

.auth-input-icon {
  inline-size: 1.0625rem;
  block-size: 1.0625rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.auth-form-group {
  position: relative;
  border-radius: 2rem;
  padding: 0.856rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  border: 0.0925rem solid var(--border-color-light-grey);
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-color-surface);
  transition: all 0.3s ease;
}

.auth-form-group:focus-within {
  box-shadow: 0 0 0 3px #dbeede;
}

.auth-form-group select.auth-input-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.auth-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.98rem 1rem;
  border: 1px dashed var(--text-color-light-grey);
  border-radius: 2rem;
  background: transparent;
  color: var(--text-color-grey);
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-secondary-btn.location-captured {
  border-style: solid;
  border-color: var(--text-color-success);
  color: var(--text-color-success);
  background-color: var(--bg-color-success);
}

.auth-form-group select.auth-input-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 1.25rem;
  margin: 0;
  color: var(--text-color-grey);
}

.auth-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.98rem 1rem;
  border: 1px dashed var(--text-color-light-grey);
  border-radius: 2rem;
  background: transparent;
  color: var(--text-color-grey);
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-secondary-btn.location-captured {
  border-style: solid;
  border-color: var(--text-color-success);
  color: var(--text-color-success);
  background-color: var(--bg-color-success);
}

.auth-form-group input,
.auth-form-group select {
  border: none;
  width: 100%;
  outline: none;
  margin: 0;
  padding: 0;
  color: var(--text-color-grey);
  background-color: inherit;
  font-size: 1rem;
  font-weight: normal;
  font-family: var(--font-family-default);
}

.auth-form-group select {
  cursor: pointer;
  color: var(--text-color-grey);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-family-default);
}

/* Remove default select styling on Firefox */
.auth-form-group select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 var(--text-color-grey);
}

/* Remove default select styling on IE */
.auth-form-group select::-ms-expand {
  display: none;
}

/* Set default option color */
.auth-form-group select option {
  font-family: var(--font-family-default);
  color: var(--text-color-grey);
  background-color: var(--bg-color-white);
}

.auth-form-group select {
  color: var(--text-color-grey);
  background-color: transparent;
  font-size: 1rem;
  font-family: var(--font-family-default);
  width: 100%;
}

.auth-form-group select option {
  color: var(--text-color-grey);
  background-color: var(--bg-color-white);
  padding: 1rem;
  font-size: 1rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
}

/* Mobile-first select styling */
@supports (-webkit-touch-callout: none) {
  .auth-form-group select {
    padding: 0;
  }
  
  .auth-form-group select option {
    font-size: 1.1rem;
    padding: 1rem;
  }
}

/* Override default option appearance */
.auth-form-group select option:checked {
  background: var(--bg-color-surface) linear-gradient(0deg, var(--bg-color-surface) 0%, var(--bg-color-surface) 100%);
  color: var(--primary-color);
  font-weight: 500;
}

.auth-form-group select:focus option:checked {
  background: var(--primary-color) linear-gradient(0deg, var(--primary-color) 0%, var(--primary-color) 100%);
  color: var(--text-color-white);
}

.auth-form-group input[type="date"] {
  cursor: pointer;
}

.auth-form-group input::placeholder {
  font-size: 0.875rem;
  font-weight: normal;
  letter-spacing: 0.02125rem;
}

.auth-form-group input[type="password"] {
  letter-spacing: 0.125rem;
}

.auth-password-input-toggle-icon {
  inline-size: 0.9rem;
  block-size: 0.9rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.auth-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-block: .2rem 1.1rem;
}

.auth-checkbox-container input[type="checkbox"] {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.45rem;
  position: relative;
  cursor: pointer;
  outline: none;
  margin: 0;
  background-color: var(--bg-color-surface);
}

.auth-checkbox-container input[type="checkbox"]:checked {
  border-color: var(--primary-color-dark);
}

.auth-checkbox-container input[type="checkbox"]::after {
  content: "";
  position: absolute;
  display: none;
  left: 50%;
  top: 50%;
  width: 0.4rem;
  height: 0.7rem;
  border-width: 0 0.15rem 0.15rem 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-checkbox-container input[type="checkbox"]:checked::after {
  display: block;
}

.auth-checkbox-container label {
  cursor: pointer;
  margin: 0;
  color: var(--text-color-grey);
}

.auth-checkbox-container a {
  cursor: pointer;
  margin: 0;
  color: var(--primary-color);
}

.auth-submit-btn {
  display: inline-block;
  inline-size: 100%;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 0.0625rem solid transparent;
  padding: 1rem 1rem;
  margin-block-start: 1rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

.auth-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.auth-submit-btn:active {
  transform: scale(0.96);
  color: var(--text-color-white);
  background-color: var(--primary-color-dark);
}

.auth-submit-btn .spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .6rem;
  height: .6rem;
  margin-right: 0.6rem;
  animation: auth-submit-btn-container-rotate 2s linear infinite;
}

.auth-submit-btn .spinner div {
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  animation: auth-submit-btn-spinner-fade 1.2s linear infinite;
  background-color: var(--bg-color-white);
}

.auth-submit-btn .spinner div:nth-child(1) {
  animation-delay: -1.1s;
  transform: rotate(0deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(2) {
  animation-delay: -1s;
  transform: rotate(40deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(3) {
  animation-delay: -0.9s;
  transform: rotate(80deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(4) {
  animation-delay: -0.8s;
  transform: rotate(120deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(5) {
  animation-delay: -0.7s;
  transform: rotate(160deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(6) {
  animation-delay: -0.6s;
  transform: rotate(200deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(7) {
  animation-delay: -0.5s;
  transform: rotate(240deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(8) {
  animation-delay: -0.4s;
  transform: rotate(280deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(9) {
  animation-delay: -0.3s;
  transform: rotate(320deg) translateX(0.625rem);
}

@keyframes auth-submit-btn-container-rotate {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

@keyframes auth-submit-btn-spinner-fade {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}

.auth-bottom-links {
  text-align: center;
  display: flex;
  justify-content: space-between;
  margin-block: 1rem 1rem;
  width: 100%;
}

.auth-bottom-links a {
  text-decoration: none;
}

/* OTP Input Styles */
.otp-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 1rem 0;
}

.otp-input {
  width: 100%;
  height: 48px;
  padding: 0;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 0.8rem;
  background-color: var(--bg-color-surface);
  color: var(--text-color-grey);
  -webkit-appearance: none;
  appearance: none;
}

.otp-input:focus {
  outline: none;
  background-color: var(--bg-color-surface);
}

.info-card {
  display: flex;
  gap: 0.75rem;
  background: #f8fcf8;
  border: 1px solid #dbeede;
  border-radius: 13px;
  padding: 1rem;
  margin-top: 1.5rem;
}
.info-card-header {
  flex-shrink: 0;
  color: #6b7280; /* Gray-500 */
}
.info-card-header svg {
  width: 20px;
  height: 20px;
}
.info-card-content {
  font-size: 0.9rem;
  color: #4b5563; /* Gray-600 */
  line-height: 1.5;
}
.info-card-content p {
  margin: 0;
}
.info-card-content p:first-child {
    margin-bottom: 0.25rem;
}
.info-card-content p strong {
  color: #111827; /* Gray-900 */
  font-weight: 500;
}

/* Navigation Drawer Styles */
nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  pointer-events: none;
}

nav-drawer.open {
  pointer-events: all;
}

.nav-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

nav-drawer.open .nav-drawer-backdrop {
  opacity: 1;
}

.nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-color-white);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

nav-drawer.open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer-header {
  padding: 1rem 0.8rem;
  background: linear-gradient(135deg, var(--bg-color-white), var(--bg-color-white));
  color: var(--text-color-dark);
  position: relative;
  flex-shrink: 0;
}

.nav-drawer-header .user-name {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-color-dark);
  line-height: 1.2;
}

.nav-drawer-header .user-handle {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

.nav-drawer-profile .profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  font-weight: bold;
  color: var(--text-color-white);
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-drawer-profile .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-drawer-profile .profile-info {
  margin-top: 0.6rem;
}

.nav-drawer-content {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.nav-drawer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-drawer-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-drawer-footer {
  flex-shrink: 0;
  padding: 1rem 0;
}

@media (max-width: 640px) {
  .nav-drawer {
    width: 70%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .nav-drawer {
    width: 70%;
  }
}



.auth-like-header {
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.auth-like-header .header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
}

.auth-like-header .header-titles {
  flex: 1;
}

.auth-like-header .header-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color-grey);
  margin: 0;
  line-height: 1.2;
}

.auth-like-header .header-subtitle {
  font-size: 1rem;
  color: var(--text-color-grey);
  margin-top: 0.25rem;
}

.back-button {
  background: none;
  border: none;
  padding: 0.25rem;
  margin-top: 0.25rem;
  cursor: pointer;
  color: var(--text-color-grey);
  line-height: 1;
}

.back-button svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Custom Select Modal Styles */
.custom-select-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.custom-select-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.custom-select-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-color-white);
  border-radius: 1rem 1rem 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.custom-select-modal.open {
  transform: translateY(0);
}

.custom-select-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color-light-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color-dark);
}

.custom-select-close {
  padding: 0.5rem;
  color: var(--text-color-grey);
  cursor: pointer;
}

.custom-select-options {
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}

.custom-select-option {
  padding: 1rem;
  color: var(--text-color-grey);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-select-option:active {
  background-color: var(--bg-color-surface);
}

.custom-select-option.selected {
  color: var(--primary-color);
  font-weight: 500;
}

.custom-select-option.selected::after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='#279b37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}




.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.step-navigation {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.step-navigation button {
  margin-top: 0;
}
.step-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.step-indicator {
  width: 2rem;
  height: 0.4rem;
  background-color: var(--bg-color-grey) !important;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
.step-indicator.active {
  background-color: var(--primary-color);
}
.step-navigation .auth-submit-btn {
  width: auto;
  min-width: 120px;
}
.step-navigation .auth-submit-btn.previous {
  background-color: var(--bg-color-grey);
  color: var(--text-color-light-grey);
  opacity: 0.7;
}
.step-navigation .auth-submit-btn.previous:active {
  background-color: var(--bg-color-grey);
  transform: scale(0.96);
}
.no-members-message {
  font-size: 0.875rem;
  color: var(--text-color-grey);
  margin-top: 0.5rem;
  opacity: 0.8;
}