/* Use Urbanist from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700&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;
}

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;
}



.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-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;
  border-radius: 50%;
  border: 2px solid var(--border);
  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;
}

/* Ensure main content doesn't get hidden behind tab bar */
body.mobile-layout main {
  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;
}


.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: 390px;
  height: 8px;
  flex-shrink: 0;
}

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

.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 */
}

.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-ellipsis img {
  width: 48px;
  height: 24px;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
  padding-left: 12px;
  padding-right: 12px;
}

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

.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;
}

/* Person Edit Modal */
.person-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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;
  overflow-y: auto;
  z-index: 10000;
}

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

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

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

.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;
}

.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-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);
}

.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;
}

/* 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);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

img.contact-channel-icon {
  width: 32px;
  height: 32px;
}

.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-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;
}



.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;
}

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

/* Proficiency Options */
.proficiency-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.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-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;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--Primary-100, #E6E6E6);
  overflow: hidden;
  background: var(--Primary-0, #FFF);
}

.person-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  background: transparent;
}

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

.person-type-option span {
  font-family: Urbanist;
  font-size: 14px;
  font-weight: 500;
  color: var(--Raisin);
}

.person-type-option.person-type-selected {
  background: var(--Primary-100, #E6E6E6);
}

.person-type-option:not(.person-type-selected):hover {
  background: var(--Primary-50, #F5F5F5);
}

/* 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: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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;
}

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

/* Mobile: action sheet from bottom */
@media (max-width: 767px) {
  .actions-modal {
    align-items: flex-end;
  }
  
  .actions-content {
    width: 100%;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* Desktop: centered modal */
@media (min-width: 768px) {
  .actions-content {
    width: 390px;
    box-shadow: var(--elevation-sm);
  }
}

.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);
}


