/* Use Urbanist from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-size: 14px;
  --text-h1: 32px;
  --text-h2: 17px;
  --text-h3: 16px;
  --text-h4: 15px;
  --text-base: 16px;
  --text-label: 12px;
  --font-urbanist: 'Urbanist', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --background: rgba(255, 255, 255, 1.00);
  --foreground: rgba(26, 26, 26, 1.00);
  --card: rgba(0, 0, 0, 0);
  --card-foreground: rgba(26, 26, 26, 1.00);
  --primary: #7653FD;
  --primary-foreground: rgba(255, 255, 255, 1.00);
  --muted: rgba(204, 204, 204, 1.00);
  --muted-foreground: rgba(128, 128, 128, 1.00);
  --border: rgba(230, 230, 230, 1.00);
  --input-background: rgba(0, 0, 0, 0);
  --ring: #7653FD;
  --kc-color: #7653FD;
  --error: #ED1010;
  --radius: 10px;
  --radius-button: 10px;
  --radius-card: 10px;
  --elevation-sm: 0px 8px 10px 0px rgba(82, 82, 82, 0.25);
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-normal: 400;
  --Primary-900: #1A1A1A;
  --Primary-900: ##e6e6e6;
  --Raisin: #231F20;
  --confirmed: #46b381;
  --pending: #f4c455;
  --cancelled: #df635d;
  --kc-tab-bar-height: 64px;
  --kc-safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --kc-native-ios-tab-overlay: 96px;
  --kc-keyboard-offset: 0px;
}

html,
body {
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-urbanist);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-shell {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  display: block;
  align-items: initial;
  justify-content: initial;
  overflow: hidden;
}

body.app-shell .kc-shell {
  height: 100dvh;
}

body.app-shell .kc-main-column {
  min-height: 0;
  padding-bottom: calc(var(--kc-tab-bar-height) + var(--kc-safe-area-bottom));
}

body.app-shell .kc-main-scroll {
  min-height: 0;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: calc(var(--kc-tab-bar-height) + var(--kc-safe-area-bottom) + 12px);
  transition: opacity 140ms ease;
}

body.app-shell.native-shell .kc-main-column {
  padding-bottom: 0;
}

body.app-shell.native-shell .kc-main-scroll {
  scroll-padding-bottom: 16px;
}

/* iOS native tab bar floats over content; reserve tappable space at list bottoms. */
body.app-shell.native-ios-shell .kc-main-scroll {
  padding-bottom: calc(var(--kc-native-ios-tab-overlay) + var(--kc-safe-area-bottom));
  scroll-padding-bottom: calc(var(--kc-native-ios-tab-overlay) + var(--kc-safe-area-bottom) + 12px);
}

/* Native shells use OS navigation bars; suppress duplicated in-view web headers. */
body.app-shell.native-shell .tab-header,
body.app-shell.native-shell .person-edit-header,
body.app-shell.native-shell .proficiency-header,
body.app-shell.native-shell .country-picker-header,
body.app-shell.native-shell .notes-header,
body.app-shell.native-shell .actions-header {
  display: none !important;
}

.kc-mobile-tabbar {
  height: calc(var(--kc-tab-bar-height) + var(--kc-safe-area-bottom));
  padding-bottom: var(--kc-safe-area-bottom);
  transition: transform 180ms ease;
}

body.app-shell .tab-header a,
body.app-shell .tab-header button,
body.app-shell .actions-close,
body.app-shell .person-edit-back,
body.app-shell .list-action,
body.app-shell .kc-install-btn,
body.app-shell .kc-install-dismiss {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.app-shell .actions-item,
body.app-shell .list-row,
body.app-shell .person-row,
body.app-shell .product-row,
body.app-shell .contact-channel-item {
  min-height: 44px;
}

body.app-shell .actions-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (min-width: 768px) {
  body.app-shell .kc-main-column {
    padding-bottom: 0;
  }
}

body.app-shell.pwa-loading .kc-main-scroll {
  opacity: 0.7;
}

body.app-shell.keyboard-open .kc-mobile-tabbar {
  transform: translateY(calc(100% + var(--kc-safe-area-bottom)));
}

body.app-shell.keyboard-open .kc-main-column {
  padding-bottom: 0;
}

body.app-shell.keyboard-open .kc-main-scroll {
  scroll-padding-bottom: calc(var(--kc-keyboard-offset) + 16px);
}

/* Native shells should use the full viewport between OS chrome surfaces. */
body.app-shell.native-ios-shell .kc-main-column,
body.app-shell.native-ios-shell .kc-main-scroll,
body.app-shell.native-ios-shell .person-edit-modal {
  padding-top: 0;
}

body.app-shell.native-ios-shell .kc-main-scroll {
  scroll-padding-top: 0;
}

.kc-offline-banner,
.kc-slow-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  z-index: 60;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.18);
}

.kc-offline-banner {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  background: #b91c1c;
  color: #fff;
}

.kc-slow-toast {
  bottom: calc(var(--kc-tab-bar-height) + var(--kc-safe-area-bottom) + 96px);
  background: #1a1a1a;
  color: #fff;
}

.kc-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--kc-tab-bar-height) + var(--kc-safe-area-bottom) + 14px);
  z-index: 60;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.18);
  padding: 12px;
}

.kc-install-text {
  margin: 0;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.kc-install-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.kc-install-btn,
.kc-install-dismiss {
  appearance: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid transparent;
}

.kc-install-btn {
  background: var(--primary);
  color: #fff;
}

.kc-install-dismiss {
  background: #f3f4f6;
  color: #1f2937;
}

.kc-ios-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(17, 24, 39, 0.45);
  align-items: end;
  padding: 12px;
  padding-bottom: calc(12px + var(--kc-safe-area-bottom));
}

.kc-ios-install-sheet:not(.hidden) {
  display: grid;
}

.kc-ios-install-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(26, 26, 26, 0.22);
}

.kc-ios-install-title {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.kc-ios-install-copy {
  margin: 8px 0 14px;
  color: #374151;
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .kc-offline-banner,
  .kc-slow-toast,
  .kc-install-banner {
    left: auto;
    right: 16px;
    width: min(360px, calc(100vw - 32px));
  }

  .kc-slow-toast,
  .kc-install-banner {
    bottom: 16px;
  }

  .kc-slow-toast {
    bottom: 104px;
  }

  .kc-ios-install-sheet {
    align-items: center;
    justify-items: center;
  }

  .kc-ios-install-card {
    width: min(420px, calc(100vw - 32px));
  }
}



.login-container {
  width: 100%;
  max-width: 400px;
  padding: 16px;
}

.login-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--elevation-sm);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  font-size: var(--text-h1);
  font-weight: 900;
  line-height: 1.0;
  color: var(--foreground);
  margin: 0 0 8px 0;
  width: 100%;
  text-align: left;
}

.login-title--staging {
  color: #7653FD;
}

.login-title--localhost {
  color: #0066EE;
}

.login-subtitle {
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted-foreground);
  margin: 0;
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  font-size: var(--text-label);
  font-weight: 700;
  line-height: 1.4;
  color: var(--foreground);
  display: block;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background-color: var(--input-background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  accent-color: var(--primary);
}

.checkbox-label {
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  color: var(--foreground);
  cursor: pointer;
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: var(--primary);
  opacity: 0.8;
}

.login-button {
  width: 100%;
  height: 48px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-button);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 24px;
}

.login-button:hover {
  background-color: var(--primary);
  opacity: 0.9;
}

.signup-section {
  text-align: center;
}

.signup-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 0;
}

.signup-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.signup-link:hover {
  color: var(--primary);
  opacity: 0.8;
}

/* Language Selector */
.language-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.language-button {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-button:hover {
  background-color: rgba(118, 83, 253, 0.1);
}

.language-flag {
  width: 30px;
  height: 30px;
  clip-path: circle(50%);
  flex-shrink: 0;
  display: block;
}

/* Language Selector Box for Registration */
.language-selector-box {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background-color: var(--input-background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.language-selector-box:hover {
  border-color: var(--ring);
}

.language-selector-box:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}

.language-selector-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.language-flag-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.language-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--foreground);
}

.language-code {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.language-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--elevation-sm);
  min-width: 160px;
  z-index: 1000;
  margin-bottom: 8px;
}

.language-dropdown.hidden {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 10px;
  margin: 4px;
}

.language-option:hover {
  background-color: var(--Primary-50, #F5F5F5);
}

.language-option span {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--foreground);
}




/* Full-screen gradient background */
.fullscreen {
  min-height: 100vh;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #7653FD 0%, #FF7C9B 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Logo sizing and centering */
.logo {
  max-width: 256px;
  max-height: 256px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}



.logout-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.logout-btn:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logout-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}


.text-left img {
  width: 24px;
  height: 24px;
  margin: 0 auto;
}

.mobile-tab {
  width: 390px;
}

img.mobile-btn {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}

.mobile-btn {
  width: 78px;
  color: #999;
  font-family: Urbanist;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  /* 16.8px */
  text-align: center;
}

/* Mobile Tab Bar */
.mobile-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* iOS safe area */
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  /* Adjust height as needed */
  box-sizing: border-box;
}

.mobile-tabs .mobile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  min-height: 44px;
  color: #999;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}

.mobile-tabs .mobile-btn.active {
  color: var(--primary);
}

.mobile-tabs .mobile-btn img {
  width: 24px;
  height: 24px;
  margin: 0;
}

main {
  flex-grow: 1;
}

/* Ensure main content doesn't get hidden behind tab bar */
body.mobile-layout main {
  width: 390px;
  padding-bottom: 60px;
  /* Match tab bar height */
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.tab-header {
  color: var(--primary);
  ;
  text-align: center;
  font-family: Urbanist;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 28.8px */
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.kc-btn-reset {
  appearance: none;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
}

.kc-header-actions-button {
  position: absolute;
  right: 10px;
}

.kc-action-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.kc-sort-open-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kc-sort-open-button img {
  width: 24px;
  height: 24px;
}

.kc-sort-direction-toggle {
  margin-bottom: 8px;
}

.kc-sort-direction-btn {
  min-width: 120px;
  border: 1px solid #999999;
  background: #E6E6E6;
}

.kc-sort-direction-btn .kc-sort-direction-label {
  color: #666666;
}

.kc-sort-direction-btn.selected {
  border-color: #7653FD;
  background: #ffffff;
}

.kc-sort-direction-btn.selected .kc-sort-direction-label {
  color: var(--primary);
}

.kc-sort-direction-icon {
  width: 20px;
  height: 20px;
}

.kc-sort-direction-label {
  display: inline-block;
}

.kc-sort-options-list {
  overflow-y: auto;
}

.kc-sort-option-button {
  text-align: left;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.kc-sort-option-last {
  margin-bottom: 12px;
}

.kc-sort-footer {
  margin-top: 4px;
}

.kc-actions-item-button {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}

.kc-actions-item-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.kc-upload-button-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.kc-accent-text {
  color: var(--primary);
}


.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  height: 44px;
  box-sizing: border-box;
  width: 100%;
}


.list-separator {
  background: var(--border, #E6E6E6);
  width: 100%;
  height: 8px;
  flex-shrink: 0;
}

.list-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.list-icon img {
  width: 24px;
  height: 24px;
}

.list-icon-red {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-icon-red img {
  width: 24px;
  height: 24px;
}

.list-title {
  font: var(--font-urbanist);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--Raisin);
  height: 44px;
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  line-height: 140%;
  /* 22.4px */
  cursor: pointer;
}

.list-title-red {
  font: var(--font-urbanist);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--error);
  height: 44px;
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  line-height: 140%;
  /* 22.4px */
}

.list-action {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  cursor: pointer;
  border: none;
  background: transparent;
}

.person-ellipsis img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
}

.list-action img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.sub-heading {
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  /* 22.4px */
  margin-left: 16px;
}

.person-row {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--Primary-100, #E6E6E6);
  background: var(--Primary-0, #FFF);
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.person-row-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.person-row-name {
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  /* 19.6px */
}

.person-row-campaign {
  overflow: hidden;
  color: var(--Primary-500, #808080);
  text-overflow: ellipsis;
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  /* 19.6px */
}

.person-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Template Row Styles */
.template-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.template-name {
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

.template-languages {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.language-badge {
  background: var(--muted, #CCCCCC);
  color: var(--foreground, #1A1A1A);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.person-icon-purple {
  width: 30px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-icon-purple img {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-icon-clear {
  width: 30px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-icon-clear img {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.0;
}

/* Product Row Styles */
.product-row {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--Primary-100, #E6E6E6);
  background: var(--Primary-0, #FFF);
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  cursor: pointer;
}

.product-row:hover {
  background: var(--muted, #CCCCCC);
}

.product-row-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.product-row-name {
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

.product-row-price {
  color: var(--Primary-500, #808080);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.product-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Person Edit Modal */
.person-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  overflow-y: auto;
}

.person-edit-modal.hidden {
  display: none;
}

.person-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.person-edit-content {
  position: relative;
  background: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10000;
}

.person-edit-content > turbo-frame#modal {
  display: block;
  min-height: 100%;
  background: #fff;
}

.person-edit-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
}

/* Mobile: fullscreen modal */
@media (max-width: 767px) {
  .person-edit-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  main {
    max-width: 390px;
  }
}

/* Desktop: 390x700 centered modal */
@media (min-width: 768px) {
  .person-edit-content {
    width: 390px;
    max-height: 700px;
    box-shadow: var(--elevation-sm);
  }
}

/* Public order landing page modal: wider content and lighter backdrop */
.public-modal .person-edit-overlay {
  background: rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .public-modal .person-edit-content {
    width: min(42rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
  }
}

/* Person Edit Header */
.person-edit-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.person-edit-back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.person-edit-back img {
  width: 24px;
  height: 24px;
}

.person-edit-title {
  flex: 1;
  text-align: center;
  color: var(--primary);
  font-family: Urbanist;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.person-edit-subtitle {
  flex: 1;
  text-align: center;
  color: var(--primary);
  font-family: Urbanist;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.person-edit-container {
  padding: 20px;
  width: 100%;
  flex: 1;
  overflow-y: auto;
}

.person-edit-label {
  display: block;
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  margin-bottom: 8px;
}

.person-edit-header2 {
  display: flex;
  align-items: center;
  justify-content: space-between;


  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  margin-bottom: 8px;

}

.person-edit-input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--Primary-100, #E6E6E6);
  background: var(--Primary-0, #FFF);
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.person-edit-input[type="date"] {
  display: flex;
  align-items: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.person-edit-input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  padding: 0;
}

.person-edit-input:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.person-edit-input {
  height: auto;
  resize: vertical;
}

.person-new-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Appointment Edit Styles */
.profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #eee;
}

.profile-info h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--Primary-900);
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 16px;
  color: var(--Primary-600);
}

.info-section {
  border-top: 1px solid var(--Primary-100);
  padding-top: 20px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.date-time h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--Primary-900);
  margin-bottom: 6px;
}

.date-time p {
  font-size: 18px;
  font-weight: 500;
  color: var(--Primary-900);
}

.status-badge {
  background-color: var(--pending, #f4c455);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
}

.status-badge.scheduled {
  background-color: var(--pending, #f4c455);
}

.status-badge.completed {
  background-color: var(--success, #28a745);
}

.status-badge.cancelled {
  background-color: var(--cancelled, #df635d);
}

.action-list {
  margin: 0 -20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  background: var(--Primary-0);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  margin-left: 10px;
  margin-right: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.action-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.action-icon {
  font-size: 22px;
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-right: 12px;
}

.action-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--Primary-900);
}

.action-chevron {
  color: #bdc3d1;
  font-size: 14px;
  width: 24px;
  height: 24px;
}

.action-item.danger .action-icon,
.action-item.danger .action-text,
.action-item.danger .action-chevron {
  color: var(--cancelled);
}

.notes-section {
  padding: 24px 20px;
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.notes-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--Primary-900);
}

.line {
  flex: 1;
  height: 1px;
  background-color: var(--Primary-100);
}

.notes-input {
  width: 100%;
  height: 120px;
  border: 1px solid var(--Primary-100);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  color: var(--Primary-600);
  resize: none;
  outline: none;
  font-family: Urbanist;
  transition: border-color 0.2s;
}

.notes-input:focus {
  border-color: var(--primary);
}

/* Contact Channel Items */
.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--Primary-100, #E6E6E6);
  background: var(--Primary-0, #FFF);
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-channel-item:hover {
  border-color: var(--Primary-500);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Swipe-to-delete row */
.swipe-delete-row {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 8px;
}

.swipe-delete-action {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 92px;
  background: #dc2626;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.swipe-delete-button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.swipe-delete-content {
  position: relative;
  touch-action: pan-y;
  will-change: transform;
  margin-bottom: 0;
}

/* Keep the top layer flush so the red action layer is hidden until swipe */
.swipe-delete-content.person-row,
.swipe-delete-content > .person-row {
  margin: 0;
}

.contact-channel-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.contact-channel-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: cover;
}

.contact-channel-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  margin-left: 10px;
}

.contact-channel-info {
  flex: 1;
  min-width: 0;
}

.contact-channel-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  padding: 0;
  outline: none;
}

.contact-channel-input:focus {
  background: var(--Primary-50, #F5F5F5);
  padding: 4px 8px;
  border-radius: 4px;
}

.contact-channel-text {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  padding: 0;
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.contact-channel-value {
  flex: 1;
  font-size: 16px;
  color: var(--Primary-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-channel-drag {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  flex-shrink: 0;
}

.contact-channel-drag:active {
  cursor: grabbing;
}

.contact-channel-ghost {
  opacity: 0.4;
}

.contact-channel-dragging {
  opacity: 0.8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.person-edit-empty {
  padding: 20px;
  text-align: center;
  color: var(--Primary-500, #808080);
  font-family: Urbanist;
  font-size: 14px;
  font-style: italic;
}

/* Country Picker Modal */
.country-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-elevated-overlay {
  z-index: 10001;
}



.country-picker-modal.hidden {
  display: none;
}

.country-picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.country-picker-content {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.country-picker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.country-picker-search {
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.country-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.country-picker-list .contact-channel-item {
  margin-bottom: 4px;
}

/* Contact Channel Handle */
.contact-channel-handle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  flex-shrink: 0;
}

.contact-channel-handle:active {
  cursor: grabbing;
}

/* Language Suggestions */
.language-suggestions {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  margin-top: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.language-suggestions.hidden {
  display: none;
}

.language-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-suggestion-item:hover {
  background-color: var(--Primary-50, #F5F5F5);
}

.proficiency-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.proficiency-label {
  font-family: Urbanist;
  font-size: 16px;
  font-weight: 500;
  color: var(--Primary-900);
}

/* Add Language Button */
.add-language-button {
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: Urbanist;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-language-button:hover:not(:disabled) {
  background: rgba(118, 83, 253, 0.9);
}

.add-language-button:disabled {
  background: var(--Primary-200, #CCCCCC);
  cursor: not-allowed;
}

/* Form Group in Modal */
.form-group {
  position: relative;
}

/* Swipeable Language Items */
.swipeable-language-wrapper {
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
}

.swipeable-language-delete {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.swipeable-language-item {
  position: relative;
  z-index: 1;
  background: white;
  transition: transform 0.3s ease-out;
  margin-bottom: 0;
  cursor: grab;
  user-select: none;
}

.swipeable-language-item:active {
  cursor: grabbing;
}

.swipeable-language-item.swiped {
  transform: translateX(-80px);
}

/* Swipeable Contact Items */
.swipeable-contact-wrapper {
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
}

.swipeable-contact-delete {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.swipeable-contact-item {
  position: relative;
  z-index: 1;
  background: white;
  transition: transform 0.3s ease-out;
  margin-bottom: 0;
  cursor: grab;
  user-select: none;
}

.swipeable-contact-item:active {
  cursor: grabbing;
}

.swipeable-contact-item.swiped {
  transform: translateX(-80px);
}



/* Contact Type Modal */
.contact-type-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-type-modal.hidden {
  display: none;
}

.contact-type-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.contact-type-content {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.contact-type-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.contact-type-search {
  padding: 20px 20px 20px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.contact-type-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  min-height: 0;
}

/* Contact Type Options */
.contact-type-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-type-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--Primary-100, #E6E6E6);
  background: var(--Primary-0, #FFF);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-type-option:hover {
  border-color: var(--Primary-500);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-type-label {
  font-family: Urbanist;
  font-size: 16px;
  font-weight: 500;
  color: var(--Primary-900);
  text-transform: capitalize;
}

/* Person Type Selector (Lead/Customer) */
.person-type-selector {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.person-type-option {
  flex: 1;
  height: 44px;
  border: 2px solid #999999;
  background: #E6E6E6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.person-type-option img {
  width: 20px;
  height: 20px;
}

.person-type-option span {
  font-family: Urbanist;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
}

.person-type-option.person-type-selected {
  border-color: #7653FD;
  background: #ffffff;
}

.person-type-option.person-type-selected span {
  color: var(--primary);
}

.person-type-option:not(.person-type-selected):hover {
  background: #f0f0f0;
}

/* Date Input with Calendar Icon */
.date-input-wrapper {
  position: relative;
  display: block;
}

.date-input-wrapper .person-edit-input {
  padding-right: 48px;
}

.date-input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Actions Modal/Action Sheet */
.actions-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  height: 100vh;
  width: 100vw;

  display: flex;
  flex-direction: column;
  /* align-items: flex-end;  */
  justify-content: flex-end;
  margin-top: auto;
}

.actions-modal.hidden {
  display: none;
}

.actions-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: -1;
}

.actions-content {
  position: relative;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  z-index: 10000;
  margin-top: auto;
}

/* Mobile: action sheet from bottom */
@media (max-width: 767px) {
  .actions-content {
    width: 100%;
    box-shadow: var(--elevation-sm);
    border-radius: 20px 20px 0 0;
    /* Removed: animation: slideUp 0.3s ease-out; */
    padding-bottom: env(safe-area-inset-bottom);
    /* iOS Safe Area */
  }

  /* You can keep or remove the @keyframes if not used elsewhere */
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Desktop: centered modal */
@media (min-width: 768px) {
  .actions-modal {
    /* On desktop, center it instead of bottom sheet */
    align-items: center;
    justify-content: center;
  }

  .actions-content {
    width: 390px;
    margin-top: 0;
    /* Reset the mobile push-down */
    box-shadow: var(--elevation-sm);
    border-radius: 10px;
  }
}

.actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.actions-title {
  color: var(--primary);
  font-family: Urbanist;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  flex: 1;
}

.actions-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.actions-close img {
  width: 24px;
  height: 24px;
}

.actions-list {
  padding: 0;
}

.actions-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s;
}

.actions-item:hover {
  background-color: var(--Primary-50, #F5F5F5);
}

.actions-item:last-child {
  border-bottom: none;
}

.actions-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-item-icon img {
  width: 24px;
  height: 24px;
}

.actions-item-label {
  flex: 1;
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}

.actions-item-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-item-chevron img {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
}

/* Upload Modal Content */
.upload-content {
  padding: 24px 20px;
}

.upload-instructions {
  margin-bottom: 24px;
}

.upload-instructions p {
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  margin: 0;
  text-align: center;
}

.upload-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-button {
  width: 100%;
  height: 52px;
  padding: 14px 20px;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 10px;
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.upload-button:hover {
  background: rgba(118, 83, 253, 0.9);
}


.campaign-icon {
  width: 50px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Channel Picker */
.picker-container {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

/* When the picker is CLOSED */
.picker-container.closed .option-card {
  display: none;
  /* Hide all options */
}

.picker-container.closed .option-card.selected {
  display: flex;
  /* Show only selected */
  border: none;
  background-color: #fff;
  /* Keep background clean when closed */
}

/* When the picker is OPEN */
.picker-container.open {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #4f46e5;
}

/* Header area inside the card (The 'Change' button) */
.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

.picker-label {
  display: block;
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.picker-action {
  font-size: 14px;
  font-family: Urbanist;
  color: #7653FD;
  font-weight: 700;
}

/* The Card Options */
.option-card {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  height: 44px;
}

.option-card:last-child {
  border-bottom: none;
}

/* Hover/Active states for better touch feedback */
.option-card:active {
  background-color: #f5f5f5;
}

.option-card.selected {
  background-color: #fbfbfe;
}

/* Icon Frame Styling */
.icon-frame {
  display: flex;
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
  margin-left: 10px;
  margin-right: 10px;
  justify-content: center;
  align-items: center;
}

.card-content {
  flex: 1;
  margin-top: auto;
  margin-bottom: auto;
}

.card-title {
  display: block;
  font-weight: 600;
  color: #111;
  font-size: 15px;
  font-family: Urbanist;
}




/* Sort option styling */
.sort-option {
  opacity: 0.40;
}

.sort-option.selected {
  opacity: 1.0;
}

.kc-button {
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: Urbanist;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.kc-button:hover:not(:disabled) {
  background: rgba(118, 83, 253, 0.9);
}

.kc-button:disabled {
  background: var(--Primary-200, #CCCCCC);
  cursor: not-allowed;
}

/* Form Handler URL Styles */
.url-display-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--input-background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
}

.url-text {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--foreground);
  word-break: break-all;
  line-height: 1.4;
}

.copy-url-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  opacity: 0.7;
}

.copy-url-btn:hover {
  background: var(--muted);
  opacity: 1.0;
}

.copy-url-btn img {
  display: block;
}

.copy-url-btn.is-copied {
  background: rgba(118, 83, 253, 0.12);
  opacity: 1;
}






/* Jeff's new Label + */

.label-text-container {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.label-text-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px;
  cursor: pointer;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.label-text-label {
  display: block;
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.text-card {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  background-color: #ffffff;
  transition: background 0.2s;
  height: 44px;
}


.text-content {
  flex: 1;
  margin-top: auto;
  margin-bottom: auto;
}

.text-title {
  display: block;
  font-weight: 600;
  color: #111;
  font-size: 15px;
  font-family: Urbanist;
}

.copy-frame {
  display: flex;
  width: 32px;
  height: 100vh;
  position: relative;
  flex-shrink: 0;
  opacity: 0.80;
  margin-left: 6px;
  margin-right: 6px;
  justify-content: center;
  align-items: center;
}



.label-text-input {
  display: block;
  width: 100%;
  color: var(--Primary-900, #1A1A1A);
  font-family: Urbanist;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.label-text-input[type="date"] {
  display: flex;
  align-items: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.label-text-input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  padding: 0;
}

.label-text-input:focus {
  outline: none;
  border-color: var(--primary);
}

.date-input-wrapper .label-text-input {
  padding-right: 48px;
}




/* Add Language Modal */
.proficiency-select {
  opacity: 0.40;
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  height: 44px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.proficiency-select.selected {
  opacity: 1.0;
}

.proficiency-selects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* Proficiency Modal */
.proficiency-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.proficiency-close img {
  width: 24px;
  height: 24px;
}

.proficiency-content {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.proficiency-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.proficiency-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* Force full width */
  height: 100vh;
  /* Force full height */
  z-index: 10002;
  /* Ensure it is on top */

  /* Flexbox Centering */
  display: flex;
  flex-direction: row !important;
  /* Reset direction */
  align-items: center !important;
  /* Vertical Center */
  justify-content: center !important;
  /* Horizontal Center */

  /* Reset any margins */
  margin: 0;
  padding: 0;
}

.proficiency-modal.hidden {
  display: none;
}

.proficiency-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--Primary-100, #E6E6E6);
  background: var(--Primary-0, #FFF);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.proficiency-option:hover {
  border-color: var(--Primary-500);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.proficiency-option.selected {
  border-color: var(--primary);
  background-color: rgba(118, 83, 253, 0.05);
  box-shadow: 0 0 0 2px rgba(118, 83, 253, 0.2);
}

.proficiency-options-list {
  padding: 12px;
}




.proficiency-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: -1;
}

.proficiency-title {
  color: var(--primary);
  font-family: Urbanist;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  text-align: center;
  flex: 1;
}

/* Template Selection */
.template-list {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.template-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s;
}

.template-item:hover {
  background-color: var(--Primary-50, #F5F5F5);
}

.template-item:last-child {
  border-bottom: none;
}

.template-name {
  font-weight: 600;
  color: var(--Primary-900, #1A1A1A);
  margin-bottom: 4px;
}

.template-preview {
  font-size: 14px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-templates {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted-foreground);
}

/* Calendar Styles */
.calendar-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: var(--font-urbanist);
}

.calendar-header h1 {
  font-size: var(--text-h2);
  margin-bottom: 20px;
  color: var(--foreground);
}

.calendar-filters {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.filter-btn {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  border: none;
  background: transparent;
  min-height: 40px;
  line-height: 1;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.filter-btn.active {
  background-color: #ffffff;
  color: #0f172a;
  font-weight: 600;
  border: 1px solid #7653fd;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.appointment-item {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border);
}

.appointment-action {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  cursor: pointer;
  border: none;
  background: transparent;
}

.appointment-item:hover {
  box-shadow: 0px 12px 16px 0px rgba(82, 82, 82, 0.35);
}

.appointment-item.status-scheduled {
  border-left: 4px solid #28a745;
}

.appointment-item.status-confirmed {
  border-left: 4px solid var(--primary);
}

.appointment-item.status-completed {
  border-left: 4px solid var(--muted-foreground);
}

.appointment-item.status-cancelled {
  border-left: 4px solid var(--error);
}

.appointment-item.status-rescheduled {
  border-left: 4px solid var(--error);
}

.appointment-item.status-pending_confirmation {
  border-left: 4px solid #ffc107;
}

.appointment-item.status-no_show {
  border-left: 4px solid #6f42c1;
}

.appointment-time {
  font-weight: var(--font-weight-semibold);
  margin-right: 20px;
  min-width: 120px;
  color: var(--foreground);
}

.appointment-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.appointment-bottom {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
}

.appointment-details h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--Raisin);
  margin-bottom: 4px;
}

.appointment-details p {
  font-size: 14px;
  color: var(--text-muted);
  width: 100%;
}

/* Appointment Badges */
.appointment-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}



.scheduled {
  background-color: var(--confirmed);
}

.badge-confirmed {
  background-color: var(--confirmed);
}

.badge-pending {
  background-color: var(--pending);
}

.badge-cancelled {
  background-color: var(--cancelled);
}



.appointment-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--text-label);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.status-badge.scheduled {
  background: #d4edda;
  color: #155724;
}

.status-badge.confirmed {
  background: #cce5ff;
  color: #004085;
}

.status-badge.completed {
  background: #e2e3e5;
  color: #383d41;
}

.status-badge.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.rescheduled {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.pending_confirmation {
  background: #fff3cd;
  color: #856404;
}

.status-badge.no_show {
  background: #e7d9ff;
  color: #4c2889;
}

.location {
  font-size: var(--text-base);
  color: var(--muted-foreground);
}


.add-appointment-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.add-appointment-btn:hover {
  background: var(--muted);
}

.add-appointment-btn img {
  width: 20px;
  height: 20px;
}

/* Appointment New Modal Styles */
.divider-container {
  display: flex;
  align-items: center;
  margin: 10px 0 25px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.divider-text {
  padding: 0 15px;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--foreground);
}

.calendar-strip {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 10px;
}

.date-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.date-item:hover {
  background: var(--muted);
}

.date-item.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.date-item.active .day-name {
  color: var(--primary-foreground);
  font-weight: var(--font-weight-semibold);
}

.date-item.active .day-number {
  background: transparent;
  color: var(--primary-foreground);
  font-weight: var(--font-weight-semibold);
}

.date-item.weekend {
  background: rgba(128, 128, 128, 0.1);
}

.day-name {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--muted-foreground);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.day-number {
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  color: var(--foreground);
  width: 100%;
  padding: 10px 0;
  text-align: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.time-slot {
  padding: 12px 0;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s ease;
}

.time-slot:hover {
  background-color: rgba(94, 66, 192, 0.1);
}

.time-slot.active {
  background-color: red;
  color: white;
}

.time-slot.selected {
  background-color: #7653FD;
  color: white;
}

.time-slot.selected:hover {
  background-color: red;
  color: var(--primary-foreground);
  background: rgba(94, 66, 192, 0.1);
}

.client-results {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  background: var(--white);
  margin-top: 5px;
}

.client-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.client-result-item:hover {
  background: var(--muted);
}

.client-result-item:last-child {
  border-bottom: none;
}

/* Search Container Styles */
.search-container {
  display: flex;
  align-items: center;
  background: var(--input-background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  gap: 8px;
  transition: border-color 0.2s ease;
  flex: 1;
  position: relative;
}

.search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(118, 83, 253, 0.1);
}

.search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--text-base);
  color: var(--foreground);
  font-family: var(--font-urbanist);
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

/* Search Results Count */
.search-results-count {
  background: #DDDDDD;
  color: var(--foreground);
  padding: 4px 8px 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  display: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
}

.search-results-count:hover {
  background: #DDDDDD;
}

.search-results-count.visible {
  display: flex;
}

.search-results-count-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
  margin-right: 12px;
}

.working-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.day-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
}




/* Updated Import to include 800 weight for Extra-Bold */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;800&display=swap');

.input-group {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin-top: 6px;
  margin-bottom: 6px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #cccccc;
  /* Updated border color */
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  font-family: 'Urbanist', sans-serif;
}

/* Label Section (Top 24px) */
.user-label {
  height: 24px;
  background-color: #eeeeee;
  border-bottom: 1px solid #cccccc;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  /* Extra-Bold */
  color: #1a1a1a;
  /* Removed text-transform: uppercase */
}

/* Input Section (Updated to 40px) */
.input {
  height: 40px;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 16px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 400;
  color: #111;
  background-color: #ffffff;
}

/* Container focus state */
.input-group:focus-within {
  border-color: #7653FD;
  /* Adding a slight shadow makes the focus feel more premium */
  box-shadow: 0 0 0 1px #7653FD;
}
