/* 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;
  --confirmed: #46b381;
  --pending: #f4c455;
  --cancelled: #df635d;
}

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

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

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

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



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






/* 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;
  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: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 2px;
  overflow: hidden;
}

.filter-btn {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 10px;
  border: none;
  background: transparent;
}

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


.filter-btn:not(:last-child):not(.active) {
  border-right: 1px solid var(--border-color);
  border-radius: 0;
}


.filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  border-right: none;
}

.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-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.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: rgba(94, 66, 192, 0.1);
}

.time-slot.selected {
  background: var(--primary);
  color: var(--primary-foreground);
}

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