/* UserSettingsModal Styles */
.UserSettingsModal_modal__aKDjP {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.UserSettingsModal_container__OQfId {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  position: relative;
}

/* Sidebar Styles */
.UserSettingsModal_sidebar___B_Cu {
  width: 280px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.UserSettingsModal_sidebarHeader__44gVI {
  padding: 24px 20px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.UserSettingsModal_title__CxscO {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.UserSettingsModal_subtitle__X_3PG {
  font-size: 14px;
  color: #64748b;
  margin: 4px 0 0 0;
}

.UserSettingsModal_sidebarNav__dFIP1 {
  padding: 20px 0;
  flex: 1;
}

.UserSettingsModal_navItem__FdoQ7 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #475569;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
}

.UserSettingsModal_navItem__FdoQ7:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.UserSettingsModal_navItem__FdoQ7.UserSettingsModal_active__1eGr8 {
  background-color: #3b82f6;
  color: white;
  position: relative;
}

.UserSettingsModal_navItem__FdoQ7.UserSettingsModal_active__1eGr8::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #1d4ed8;
}

.UserSettingsModal_navIcon__MvgMV {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Content Area */
.UserSettingsModal_content__Wffgo {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.UserSettingsModal_contentHeader__OCdjO {
  padding: 24px 32px 0;
  border-bottom: 1px solid #e5e7eb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: between;
}

.UserSettingsModal_contentTitle__NZT9F {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  flex: 1;
}

.UserSettingsModal_closeButton__7hfFk {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6b7280;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.UserSettingsModal_closeButton__7hfFk:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.UserSettingsModal_contentBody__hTc0O {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* Profile Section Styles */
.UserSettingsModal_profileHeader__lZicg {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 12px;
  margin-bottom: 32px;
}

.UserSettingsModal_avatarContainer__N4vxT {
  position: relative;
}

.UserSettingsModal_avatar__j8vqw {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.UserSettingsModal_avatarButton__4djAh {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 32px;
  height: 32px;
  background-color: #3b82f6;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.UserSettingsModal_avatarButton__4djAh:hover {
  background-color: #2563eb;
  transform: scale(1.1);
}

.UserSettingsModal_avatarIcon__2zMCj {
  width: 14px;
  height: 14px;
  color: white;
}

.UserSettingsModal_profileInfo__L7AsP {
  flex: 1;
}

.UserSettingsModal_profileName__9cgWT {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.UserSettingsModal_profileRole__BqAul {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 8px 0;
}

.UserSettingsModal_profileMember__raFPV {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.UserSettingsModal_editButton__gVG7j {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.UserSettingsModal_editButton__gVG7j:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

/* Profile Form */
.UserSettingsModal_profileForm__q0GB6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

.UserSettingsModal_formLabel__5o5TD {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.UserSettingsModal_formLabelIcon__RKXgP {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.UserSettingsModal_formInput__KOnxy {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.UserSettingsModal_formInput__KOnxy:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.UserSettingsModal_formField__uA8FJ {
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
}

.UserSettingsModal_formActions__8DFF4 {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
}

.UserSettingsModal_cancelButton__P_Vd7 {
  padding: 8px 16px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.UserSettingsModal_cancelButton__P_Vd7:hover {
  color: #374151;
}

.UserSettingsModal_saveButton__rpnpH {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.UserSettingsModal_saveButton__rpnpH:hover {
  background-color: #2563eb;
}

/* Settings Section Styles */
.UserSettingsModal_searchContainer__woL_m {
  position: relative;
  margin-bottom: 32px;
}

.UserSettingsModal_searchIcon__gJ8OI {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 20px;
  height: 20px;
}

.UserSettingsModal_searchInput__Eburj {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.UserSettingsModal_searchInput__Eburj:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.UserSettingsModal_settingsGrid__rSUBU {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.UserSettingsModal_settingCard__XSVlU {
  padding: 24px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.UserSettingsModal_settingCard__XSVlU:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.UserSettingsModal_settingCardHeader__R7GIJ {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.UserSettingsModal_settingIcon__ORPGM {
  width: 20px;
  height: 20px;
  padding: 12px;
  border-radius: 8px;
}

.UserSettingsModal_settingStatus__aQ3mG {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 12px;
  font-weight: 500;
}

.UserSettingsModal_settingStatus__aQ3mG.UserSettingsModal_active__1eGr8 {
  color: #065f46;
  background-color: #d1fae5;
}

.UserSettingsModal_settingStatus__aQ3mG.UserSettingsModal_inactive__2xgmC {
  color: #6b7280;
  background-color: #f3f4f6;
}

.UserSettingsModal_settingStatus__aQ3mG.UserSettingsModal_warning__NICPC {
  color: #92400e;
  background-color: #fef3c7;
}

.UserSettingsModal_settingTitle__1pZUY {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.UserSettingsModal_settingDescription__SdAbl {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.UserSettingsModal_settingLastUpdated__LmOC_ {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.UserSettingsModal_emptyState__IwOJj {
  text-align: center;
  padding: 48px 24px;
}

.UserSettingsModal_emptyIcon__B72Yi {
  width: 48px;
  height: 48px;
  color: #9ca3af;
  margin: 0 auto 16px;
}

.UserSettingsModal_emptyMessage__yCgVQ {
  color: #6b7280;
  font-size: 16px;
}

/* Color variants for setting icons */
.UserSettingsModal_iconBlue__C0ISb {
  color: #3b82f6;
  background-color: #dbeafe;
}

.UserSettingsModal_iconGreen__v_6xK {
  color: #10b981;
  background-color: #d1fae5;
}

.UserSettingsModal_iconRed__OaKo_ {
  color: #ef4444;
  background-color: #fee2e2;
}

.UserSettingsModal_iconPurple__yneqI {
  color: #8b5cf6;
  background-color: #ede9fe;
}

.UserSettingsModal_iconIndigo__bPH88 {
  color: #6366f1;
  background-color: #e0e7ff;
}

/* Hidden file input */
.UserSettingsModal_hiddenInput__HLBym {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .UserSettingsModal_container__OQfId {
    flex-direction: column;
    width: 95vw;
    max-height: 95vh;
  }
  
  .UserSettingsModal_sidebar___B_Cu {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .UserSettingsModal_sidebarNav__dFIP1 {
    padding: 16px 0;
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }
  
  .UserSettingsModal_navItem__FdoQ7 {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 4px;
  }
  
  .UserSettingsModal_contentBody__hTc0O {
    padding: 24px;
  }
  
  .UserSettingsModal_profileForm__q0GB6 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .UserSettingsModal_settingsGrid__rSUBU {
    grid-template-columns: 1fr;
  }
}

/* Loading and Error States */
.UserSettingsModal_loadingState__Z2Jve {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #64748b;
}

.UserSettingsModal_loadingSpinner___wWkG {
  width: 40px;
  height: 40px;
  border: 3px solid #f1f5f9;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: UserSettingsModal_spin__2nE0b 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes UserSettingsModal_spin__2nE0b {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.UserSettingsModal_errorMessage__6Med1 {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.UserSettingsModal_errorIcon__hoU_X {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.UserSettingsModal_errorCloseBtn___xeH0 {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.UserSettingsModal_errorCloseBtn___xeH0:hover {
  background-color: rgba(220, 38, 38, 0.1);
}

/* Save Button States */
.UserSettingsModal_saveBtn__2aC15.UserSettingsModal_saving___Peiw {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.UserSettingsModal_saveBtn__2aC15:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.UserSettingsModal_cancelBtn__W5uom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Advanced Settings Styles */
.UserSettingsModal_advancedSettings__N_bFR {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.UserSettingsModal_advancedSettingsTitle__nGM0N {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 16px 0;
}

.UserSettingsModal_advancedSettingsGrid__qSMgS {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.UserSettingsModal_advancedSettingCard___eP8i {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.UserSettingsModal_advancedSettingCard___eP8i:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.UserSettingsModal_advancedSettingInfo__D6KTj h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.UserSettingsModal_advancedSettingInfo__D6KTj p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.UserSettingsModal_advancedSettingInfo__D6KTj small {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}

.UserSettingsModal_advancedSettingActions__K2gwe {
  display: flex;
  gap: 8px;
}

.UserSettingsModal_advancedButton__9IauD {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.UserSettingsModal_advancedButton__9IauD:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.UserSettingsModal_advancedButton__9IauD:active {
  transform: translateY(0);
}

.UserSettingsModal_advancedButton__9IauD:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.UserSettingsModal_advancedButton__9IauD.UserSettingsModal_syncing__WgDMT {
  background: #f59e0b;
}

/* Enhanced Avatar Styles */
.UserSettingsModal_avatarActions__QkB_I {
  position: absolute;
  bottom: -8px;
  right: -8px;
  display: flex;
  gap: 4px;
}

.UserSettingsModal_avatarButton__4djAh {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.UserSettingsModal_avatarButton__4djAh:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.UserSettingsModal_avatarButton__4djAh.UserSettingsModal_uploading__Xs9gU {
  background: #f59e0b;
  cursor: not-allowed;
}

.UserSettingsModal_avatarRemoveButton__2VA8k {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: bold;
}

.UserSettingsModal_avatarRemoveButton__2VA8k:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.UserSettingsModal_avatarIcon__2zMCj {
  width: 14px;
  height: 14px;
}

/* Help Section Styles */
.UserSettingsModal_helpSection__ogNKh {
  padding: 0;
}

.UserSettingsModal_sectionTitle__89Ogn {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.UserSettingsModal_faqList__UIihz {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.UserSettingsModal_faqItem__PCrO1 {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.UserSettingsModal_faqItem__PCrO1:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.UserSettingsModal_faqQuestion__q9Mhm {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
  cursor: pointer;
}

.UserSettingsModal_faqAnswer__l7sRw {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Support Section Styles */
.UserSettingsModal_supportSection__Rytbm {
  padding: 0;
}

.UserSettingsModal_supportDescription__6u9Zm {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.UserSettingsModal_supportForm__t3Zde {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.UserSettingsModal_textArea__itfbx {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.UserSettingsModal_supportInfo__944hx {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 12px;
  padding: 24px;
}

.UserSettingsModal_supportInfoTitle__6uDt4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.UserSettingsModal_supportInfoGrid__L_h3M {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.UserSettingsModal_supportInfoItem__Cnl3s {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.UserSettingsModal_supportInfoIcon__Y1NX0 {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  flex-shrink: 0;
}

.UserSettingsModal_supportInfoLabel__s5k1A {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
}

.UserSettingsModal_supportInfoValue__my5eo {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}
/* UserProfileDropdown.module.css */

.UserProfileDropdown_dropdownContainer__GQXEE {
  position: relative;
}

.UserProfileDropdown_dropdownTrigger__qPVBQ {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(1);
}

.UserProfileDropdown_dropdownTrigger__qPVBQ:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.UserProfileDropdown_dropdownTrigger__qPVBQ:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
}

.UserProfileDropdown_avatarImage__u7PsC {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  -o-object-fit: cover;
     object-fit: cover;
}

.UserProfileDropdown_avatarEmoji__KmCPl {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.UserProfileDropdown_dropdownTrigger__qPVBQ:hover .UserProfileDropdown_avatarEmoji__KmCPl {
  transform: scale(1.1);
}

.UserProfileDropdown_dropdownMenu__Enu8V {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 288px;
  max-width: calc(100vw - 16px);
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 9999;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: UserProfileDropdown_dropdownAppear__dIuMp 0.2s ease-out;
  
  /* Ensure it stays within viewport */
  transform-origin: top right;
}

/* Responsive positioning for small screens */
@media (max-width: 640px) {
  .UserProfileDropdown_dropdownMenu__Enu8V {
    right: -16px;
    width: calc(100vw - 32px);
    max-width: 320px;
  }
}

/* Check if dropdown would overflow and adjust */
@supports (anchor-name: --dropdown-anchor) {
  .UserProfileDropdown_dropdownMenu__Enu8V {
    position: absolute;
    position-anchor: --dropdown-anchor;
    margin: 8px 0;
  }
}

@keyframes UserProfileDropdown_dropdownAppear__dIuMp {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.UserProfileDropdown_profileHeader__dA5tZ {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.UserProfileDropdown_profileHeaderContent__I79Te {
  display: flex;
  align-items: center;
  gap: 12px;
}

.UserProfileDropdown_avatarButton__Boqv9 {
  position: relative;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #bfdbfe, #c7d2fe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
}

.UserProfileDropdown_avatarButton__Boqv9:hover {
  background: linear-gradient(135deg, #93c5fd, #a5b4fc);
}

.UserProfileDropdown_cameraIcon__wcqh3 {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background-color: #3b82f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

.UserProfileDropdown_userInfo__fqgqs {
  flex: 1;
}

.UserProfileDropdown_userName__dLOU8 {
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  font-size: 16px;
}

.UserProfileDropdown_userOrg__ymMHo {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.UserProfileDropdown_menuItems__RFLZk {
  padding: 12px;
}

.UserProfileDropdown_menuItem___Py8a {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.UserProfileDropdown_menuItem___Py8a:hover {
  color: #3b82f6;
  background-color: #eff6ff;
}

.UserProfileDropdown_menuItem___Py8a.UserProfileDropdown_logout__TR24a {
  color: #dc2626;
}

.UserProfileDropdown_menuItem___Py8a.UserProfileDropdown_logout__TR24a:hover {
  color: #b91c1c;
  background-color: #fef2f2;
}

.UserProfileDropdown_menuIcon___KDUu {
  font-size: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.UserProfileDropdown_menuItem___Py8a:hover .UserProfileDropdown_menuIcon___KDUu {
  transform: scale(1.1);
}

.UserProfileDropdown_menuText__CSdBH {
  font-weight: 500;
  flex: 1;
}

.UserProfileDropdown_divider__Jo_Ht {
  height: 1px;
  background-color: #e5e7eb;
  margin: 8px 0;
}

.UserProfileDropdown_hiddenInput__fDLyo {
  display: none;
}
/* Modal overlay */
.NotificationsModal_overlay__r6z3K {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: NotificationsModal_overlayAppear__bDHgK 0.2s ease-out;
}

@keyframes NotificationsModal_overlayAppear__bDHgK {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

/* Modal container */
.NotificationsModal_modal__5ZGIa {
  background: white;
  border-radius: 1rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: NotificationsModal_modalAppear__E8WD7 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes NotificationsModal_modalAppear__E8WD7 {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header */
.NotificationsModal_header__xM94P {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 1rem 1rem 0 0;
}

.NotificationsModal_headerLeft__s9FRC {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.NotificationsModal_headerIcon__SCcXE {
  padding: 0.75rem;
  background: #dbeafe;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.NotificationsModal_headerBellIcon__t__fX {
  width: 1.5rem;
  height: 1.5rem;
  color: #2563eb;
}

.NotificationsModal_headerText__PH3rY {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.NotificationsModal_title__PEn2F {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.NotificationsModal_subtitle__4TUUo {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.NotificationsModal_headerActions__tAZZU {
  display: flex;
  align-items: center;
}

.NotificationsModal_closeButton__KZU1f {
  padding: 0.5rem;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.NotificationsModal_closeButton__KZU1f:hover {
  color: #374151;
  background: #f3f4f6;
}

.NotificationsModal_closeIcon__INJ4V {
  width: 1.25rem;
  height: 1.25rem;
}

/* Action Bar */
.NotificationsModal_actionBar__5Gome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  background: white;
  gap: 1rem;
}

.NotificationsModal_filterTabs__XILnn {
  display: flex;
  gap: 0.25rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.NotificationsModal_filterTab__6j2vR {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.NotificationsModal_filterTab__6j2vR:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
}

.NotificationsModal_filterTab__6j2vR.NotificationsModal_active__M5Fsx {
  color: #2563eb;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.NotificationsModal_actionButtons__IAvt9 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.NotificationsModal_actionButton__Nszlo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.NotificationsModal_actionButton__Nszlo:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.NotificationsModal_dangerButton__kdtVq {
  color: #dc2626;
  border-color: #fca5a5;
}

.NotificationsModal_dangerButton__kdtVq:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.NotificationsModal_actionIcon__91WQR {
  width: 1rem;
  height: 1rem;
}

/* Notifications List */
.NotificationsModal_notificationsList__kXzRy {
  flex: 1;
  overflow-y: auto;
  max-height: 32rem;
}

.NotificationsModal_notificationsList__kXzRy::-webkit-scrollbar {
  width: 8px;
}

.NotificationsModal_notificationsList__kXzRy::-webkit-scrollbar-track {
  background: #f9fafb;
}

.NotificationsModal_notificationsList__kXzRy::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.NotificationsModal_notificationsList__kXzRy::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Empty State */
.NotificationsModal_emptyState__KonQl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #6b7280;
}

.NotificationsModal_emptyIcon__5cRDX {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.NotificationsModal_emptyTitle__y0uKw {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.NotificationsModal_emptyDescription__smear {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  max-width: 24rem;
}

/* Notification Item */
.NotificationsModal_notificationItem__bfvVs {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
  background: white;
}

.NotificationsModal_notificationItem__bfvVs:last-child {
  border-bottom: none;
}

.NotificationsModal_notificationItem__bfvVs:hover {
  background: #f9fafb;
}

.NotificationsModal_notificationItem__bfvVs.NotificationsModal_unread__NNt0X {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-left: 4px solid #2563eb;
}

.NotificationsModal_notificationItem__bfvVs.NotificationsModal_unread__NNt0X:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #e6fffa 100%);
}

.NotificationsModal_notificationContent__PaMw1 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Type Icon */
.NotificationsModal_typeIcon__LEbkE {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.NotificationsModal_typeSuccess__YDu1a {
  color: #059669;
  background-color: #ecfdf5;
}

.NotificationsModal_typeWarning__wym7D {
  color: #d97706;
  background-color: #fffbeb;
}

.NotificationsModal_typeError__2Vbbq {
  color: #dc2626;
  background-color: #fef2f2;
}

.NotificationsModal_typeInfo__XTyPC {
  color: #2563eb;
  background-color: #eff6ff;
}

/* Notification Body */
.NotificationsModal_notificationBody__M9lNi {
  flex: 1;
  min-width: 0;
}

.NotificationsModal_notificationHeader__Ekne0 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.NotificationsModal_notificationTitle__79QP2 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.NotificationsModal_unreadTitle__LfHRB {
  color: #111827;
}

.NotificationsModal_readTitle__eFcP8 {
  color: #4b5563;
}

.NotificationsModal_unreadDot__HfB4I {
  width: 0.5rem;
  height: 0.5rem;
  background: #2563eb;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.NotificationsModal_notificationMessage__CbFfT {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

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

.NotificationsModal_notificationTime__exzF8 {
  font-size: 0.75rem;
  color: #9ca3af;
}

.NotificationsModal_notificationActions__1wrYK {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.NotificationsModal_readButton__a9FvH,
.NotificationsModal_deleteButton__NBVIU {
  padding: 0.375rem;
  color: #9ca3af;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.NotificationsModal_readButton__a9FvH:hover {
  color: #059669;
  background: #ecfdf5;
}

.NotificationsModal_deleteButton__NBVIU:hover {
  color: #ef4444;
  background: #fef2f2;
}

.NotificationsModal_readIcon__M_dVd,
.NotificationsModal_deleteIcon__pZu69 {
  width: 0.875rem;
  height: 0.875rem;
}

/* Footer */
.NotificationsModal_footer__D66CD {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
  border-radius: 0 0 1rem 1rem;
}

.NotificationsModal_footerStats__EyV9f {
  font-size: 0.875rem;
  color: #6b7280;
}

.NotificationsModal_doneButton__H1Lyc {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: #2563eb;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.NotificationsModal_doneButton__H1Lyc:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .NotificationsModal_overlay__r6z3K {
    padding: 0.5rem;
  }
  
  .NotificationsModal_modal__5ZGIa {
    max-height: 95vh;
  }
  
  .NotificationsModal_header__xM94P {
    padding: 1rem;
  }
  
  .NotificationsModal_title__PEn2F {
    font-size: 1.25rem;
  }
  
  .NotificationsModal_actionBar__5Gome {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .NotificationsModal_filterTabs__XILnn {
    order: 2;
  }
  
  .NotificationsModal_actionButtons__IAvt9 {
    order: 1;
    justify-content: center;
  }
  
  .NotificationsModal_notificationItem__bfvVs {
    padding: 0.75rem 1rem;
  }
  
  .NotificationsModal_notificationContent__PaMw1 {
    gap: 0.5rem;
  }
  
  .NotificationsModal_typeIcon__LEbkE {
    width: 2rem;
    height: 2rem;
  }
  
  .NotificationsModal_notificationFooter__I_9M_ {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .NotificationsModal_footer__D66CD {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Focus management for accessibility */
.NotificationsModal_closeButton__KZU1f:focus-visible,
.NotificationsModal_filterTab__6j2vR:focus-visible,
.NotificationsModal_actionButton__Nszlo:focus-visible,
.NotificationsModal_readButton__a9FvH:focus-visible,
.NotificationsModal_deleteButton__NBVIU:focus-visible,
.NotificationsModal_doneButton__H1Lyc:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .NotificationsModal_overlay__r6z3K,
  .NotificationsModal_modal__5ZGIa {
    animation: none;
  }
  
  .NotificationsModal_actionButton__Nszlo,
  .NotificationsModal_readButton__a9FvH,
  .NotificationsModal_deleteButton__NBVIU,
  .NotificationsModal_doneButton__H1Lyc {
    transition: none;
  }
}
/* Container for the notification dropdown */
.NotificationsDropdown_container__n_Auc {
  position: relative;
  display: inline-block;
}

/* Trigger button styling */
.NotificationsDropdown_triggerButton__OTZzo {
  position: relative;
  padding: 0.5rem;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  outline: none;
}

.NotificationsDropdown_triggerButton__OTZzo:hover {
  color: #2563eb;
  background-color: #eff6ff;
  transform: scale(1.05);
}

.NotificationsDropdown_triggerButton__OTZzo:focus {
  color: #2563eb;
  background-color: #eff6ff;
  box-shadow: 0 0 0 2px #93c5fd;
}

.NotificationsDropdown_bellIcon__lAgvm {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.NotificationsDropdown_triggerButton__OTZzo:hover .NotificationsDropdown_bellIcon__lAgvm {
  transform: scale(1.1);
}

/* Notification badge */
.NotificationsDropdown_badge__YRbpq {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
  animation: NotificationsDropdown_pulse__I2_2O 2s infinite;
  border: 2px solid white;
}

@keyframes NotificationsDropdown_pulse__I2_2O {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Dropdown panel */
.NotificationsDropdown_dropdown__lZ1C0 {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 24rem;
  max-width: calc(100vw - 2rem);
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  max-height: 32rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: NotificationsDropdown_dropdownAppear__9AIaV 0.2s ease-out;
}

@keyframes NotificationsDropdown_dropdownAppear__9AIaV {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header section */
.NotificationsDropdown_header__MzZNs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.NotificationsDropdown_headerLeft__hzEcO {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.NotificationsDropdown_headerIcon__MLT7L {
  padding: 0.5rem;
  background: #dbeafe;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.NotificationsDropdown_headerBellIcon__9w5px {
  width: 1.25rem;
  height: 1.25rem;
  color: #2563eb;
}

.NotificationsDropdown_headerText__OlDwO {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.NotificationsDropdown_headerTitle__g4voh {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.NotificationsDropdown_headerBadge__qaEDm {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  color: #b91c1c;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.1);
}

.NotificationsDropdown_headerActions__a38g4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.NotificationsDropdown_markAllButton__xOXGM {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.NotificationsDropdown_markAllButton__xOXGM:hover {
  color: #1d4ed8;
  background: #dbeafe;
}

.NotificationsDropdown_settingsButton__YpuEP {
  padding: 0.5rem;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.NotificationsDropdown_settingsButton__YpuEP:hover {
  color: #374151;
  background: #f3f4f6;
}

.NotificationsDropdown_settingsIcon__sZcL5 {
  width: 1rem;
  height: 1rem;
}

/* Notifications list */
.NotificationsDropdown_notificationsList__23WPx {
  max-height: 20rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.NotificationsDropdown_notificationsList__23WPx::-webkit-scrollbar {
  width: 6px;
}

.NotificationsDropdown_notificationsList__23WPx::-webkit-scrollbar-track {
  background: #f9fafb;
}

.NotificationsDropdown_notificationsList__23WPx::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.NotificationsDropdown_notificationsList__23WPx::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Empty state */
.NotificationsDropdown_emptyState__tzLHO {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

.NotificationsDropdown_emptyIcon__PTWW3 {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem auto;
  color: #d1d5db;
}

.NotificationsDropdown_emptyText__ybYk_ {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Notification item */
.NotificationsDropdown_notificationItem__a40rB {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
  background: white;
}

.NotificationsDropdown_notificationItem__a40rB:last-child {
  border-bottom: none;
}

.NotificationsDropdown_notificationItem__a40rB:hover {
  background: #f9fafb;
}

.NotificationsDropdown_notificationItem__a40rB.NotificationsDropdown_unread__0_pOr {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-left: 3px solid #2563eb;
}

.NotificationsDropdown_notificationItem__a40rB.NotificationsDropdown_unread__0_pOr:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #e6fffa 100%);
}

.NotificationsDropdown_notificationContent__TSxSq {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Type icon */
.NotificationsDropdown_typeIcon__fXDz2 {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Type-specific styling */
.NotificationsDropdown_typeSuccess__qPzjn {
  color: #059669;
  background-color: #ecfdf5;
}

.NotificationsDropdown_typeWarning__4Ggj7 {
  color: #d97706;
  background-color: #fffbeb;
}

.NotificationsDropdown_typeError__Nr1UP {
  color: #dc2626;
  background-color: #fef2f2;
}

.NotificationsDropdown_typeInfo__3bqmc {
  color: #2563eb;
  background-color: #eff6ff;
}

/* Notification body */
.NotificationsDropdown_notificationBody__P3hwr {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.NotificationsDropdown_notificationHeader__g8YdQ {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.NotificationsDropdown_notificationTitle__cKHMl {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.NotificationsDropdown_unreadTitle__8sUif {
  color: #111827;
}

.NotificationsDropdown_readTitle__wYJXv {
  color: #4b5563;
}

.NotificationsDropdown_unreadDot__P3AoE {
  width: 0.5rem;
  height: 0.5rem;
  background: #2563eb;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.NotificationsDropdown_notificationMessage__uveHY {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.NotificationsDropdown_notificationTime__RvbSN {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* Delete button */
.NotificationsDropdown_deleteButton__zSWir {
  padding: 0.25rem;
  color: #9ca3af;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.NotificationsDropdown_deleteButton__zSWir:hover {
  color: #ef4444;
  background: #fef2f2;
}

.NotificationsDropdown_deleteIcon__fI_wD {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.NotificationsDropdown_deleteButton__zSWir:hover .NotificationsDropdown_deleteIcon__fI_wD {
  transform: scale(1.1);
}

/* Footer */
.NotificationsDropdown_footer__o0ax5 {
  padding: 0.75rem;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
}

.NotificationsDropdown_viewAllButton__N66fP {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.NotificationsDropdown_viewAllButton__N66fP:hover {
  color: #1d4ed8;
  background: #dbeafe;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .NotificationsDropdown_dropdown__lZ1C0 {
    width: calc(100vw - 2rem);
    right: -1rem;
    max-height: 24rem;
  }
  
  .NotificationsDropdown_header__MzZNs {
    padding: 1rem;
  }
  
  .NotificationsDropdown_headerTitle__g4voh {
    font-size: 1rem;
  }
  
  .NotificationsDropdown_notificationItem__a40rB {
    padding: 0.75rem;
  }
  
  .NotificationsDropdown_notificationContent__TSxSq {
    gap: 0.5rem;
  }
  
  .NotificationsDropdown_typeIcon__fXDz2 {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Focus management for accessibility */
.NotificationsDropdown_triggerButton__OTZzo:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.NotificationsDropdown_markAllButton__xOXGM:focus-visible,
.NotificationsDropdown_settingsButton__YpuEP:focus-visible,
.NotificationsDropdown_deleteButton__zSWir:focus-visible,
.NotificationsDropdown_viewAllButton__N66fP:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .NotificationsDropdown_badge__YRbpq {
    animation: none;
  }
  
  .NotificationsDropdown_dropdown__lZ1C0 {
    animation: none;
  }
  
  .NotificationsDropdown_triggerButton__OTZzo {
    transition: none;
  }
  
  .NotificationsDropdown_bellIcon__lAgvm,
  .NotificationsDropdown_deleteIcon__fI_wD {
    transition: none;
  }
}
/* UnifiedToolbar Component Styles */

.UnifiedToolbar_unifiedToolbar__VLSO8 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background-color: white;
  border-bottom: 1px solid #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.UnifiedToolbar_toolbarContainer__YTZmh {
  display: flex;
  align-items: center;
  height: 64px;
  width: 100%;
}

.UnifiedToolbar_logoSection__1dt5y {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid #ffffff;
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  height: 100%;
}

.UnifiedToolbar_logoIcon__PSXu0 {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.UnifiedToolbar_logoText__DEEgY {
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(to right, #2563eb, #4f46e5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.UnifiedToolbar_tabsContainer__hEz_V {
  display: flex;
  border-right: 1px solid #ffffff;
  height: 100%;
}

.UnifiedToolbar_tabButton__x_YAz {
  position: relative;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  height: 100%;
  display: flex;
  align-items: center;
}

.UnifiedToolbar_tabButton__x_YAz:hover {
  color: #1f2937;
  background-color: white;
  border-bottom-color: #ffffff;
}

.UnifiedToolbar_tabButton__x_YAz.UnifiedToolbar_active__HeTl6 {
  color: #2563eb;
  background-color: #eff6ff;
  border-bottom-color: #2563eb;
}

.UnifiedToolbar_tabButton__x_YAz:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  border-bottom-color: #e5e7eb;
  background-color: #f9fafb;
}

.UnifiedToolbar_dropdown__aGysH {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 50;
  min-width: 200px;
}

.UnifiedToolbar_dropdown__aGysH button {
  border: none !important;
  border-bottom: none !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.UnifiedToolbar_dropdownItem__7K2CO {
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.UnifiedToolbar_dropdownItem__7K2CO:hover {
  background-color: #f9fafb;
  color: #2563eb;
}

.UnifiedToolbar_dropdownItem__7K2CO:last-child {
  border-bottom: none;
}

.UnifiedToolbar_searchContainer__3l__i {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.UnifiedToolbar_searchInput__ijvjz {
  padding: 12px 16px 12px 40px;
  width: 320px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  font-size: 14px;
  background-color: #f9fafb;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.UnifiedToolbar_searchInput__ijvjz:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
}

.UnifiedToolbar_searchInput__ijvjz:hover {
  background-color: white;
}

.UnifiedToolbar_searchIcon__2l7Zv {
  position: absolute;
  left: 12px;
  color: #6b7280;
  pointer-events: none;
}

.UnifiedToolbar_rightSection__UM_1n {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-left: 1px solid #ffffff;
  height: 100%;
  background: linear-gradient(to right, white, #f9fafb);
}

.UnifiedToolbar_actionButton___nyw7 {
  padding: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.UnifiedToolbar_actionButton___nyw7:hover {
  color: #374151;
  background-color: #f3f4f6;
}

.UnifiedToolbar_userSection__M5jmM {
  display: flex;
  align-items: center;
  gap: 12px;
}

.UnifiedToolbar_avatar__z8Ylw {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.UnifiedToolbar_userInfo__hLtTW {
  display: flex;
  flex-direction: column;
}

.UnifiedToolbar_userName__8LjDP {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1;
}

.UnifiedToolbar_userRole__OYu_9 {
  font-size: 12px;
  color: #6b7280;
  line-height: 1;
}
/* Mobile-specific styles for UnifiedToolbar */

/* Mobile breakpoints - matches the variables.css breakpoint */
@media (max-width: 767px) {
  /* Hide ribbon tabs (File, Edit, Settings, AI) on mobile */
  .tabsContainer {
    display: none !important;
  }
  
  /* Hide search bar on mobile */
  .searchContainer {
    display: none !important;
  }
  
  /* Adjust toolbar container for mobile layout */
  .toolbarContainer {
    justify-content: space-between;
    padding: 0;
    height: var(--unified-toolbar-h, 56px);
  }
  
  /* Logo section adjustments for mobile */
  .logoSection {
    padding: 0 12px;
    border-right: none;
    background: linear-gradient(to right, #eff6ff, #eef2ff);
    flex-shrink: 0;
    height: 100%;
  }
  
  /* Smaller logo text for mobile */
  .logoText {
    font-size: 18px;
    font-weight: 600;
  }
  
  /* Smaller logo icon for mobile */
  .logoIcon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  /* Right section adjustments for mobile */
  .rightSection {
    padding: 0 12px;
    gap: 16px;
    border-left: none;
    background: transparent;
    flex-shrink: 0;
    height: 100%;
  }
  
  /* Hide online users indicator on mobile - first div in rightSection */
  .rightSection > div:first-child {
    display: none !important;
  }
  
  /* Hide bulk mode toggle on mobile - any button in rightSection */
  .rightSection > button {
    display: none !important;
  }
  
  /* Ensure toolbar uses CSS variable height */
  .unifiedToolbar {
    height: var(--unified-toolbar-h, 56px);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* Further reduce logo text size */
  .logoText {
    font-size: 16px;
    font-weight: 600;
  }
  
  /* Further reduce logo icon size */
  .logoIcon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  /* Reduce padding for smaller screens */
  .logoSection {
    padding: 0 8px;
    gap: 8px;
  }
  
  .rightSection {
    padding: 0 8px;
    gap: 12px;
  }
}

/* Very small screens (portrait phones) */
@media (max-width: 360px) {
  /* Hide language selector on very small screens (3rd from last) */
  .rightSection > div:nth-last-child(3) {
    display: none !important;
  }
  
  /* Further reduce spacing */
  .rightSection {
    gap: 8px;
  }
  
  /* Consider shorter app name for very small screens */
  .logoText {
    font-size: 14px;
  }
}
/* 
  ===========================================
  🎯 ENHANCED SIDEBAR STYLES
  ===========================================
  Component: /components/layout/Sidebar.tsx
  Purpose: Modern glass morphism sidebar with advanced functionality
  Theme: Glass effects with gradient backgrounds and smooth animations
*/

/* Main Sidebar Container */
.sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 15rem; /* w-60 equivalent - increased for better text visibility */
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 0.95) 0%, 
    rgba(241, 245, 249, 0.95) 50%, 
    rgba(226, 232, 240, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  z-index: 30;
}

/* Dark mode support */
.sidebar[data-theme="dark"] {
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.95) 50%, 
    rgba(51, 65, 85, 0.95) 100%);
  border-right-color: rgba(51, 65, 85, 0.8);
}

/* Themed background variants */
.sidebar.themed-bg-secondary {
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 0.98) 0%, 
    rgba(241, 245, 249, 0.95) 50%, 
    rgba(226, 232, 240, 0.92) 100%);
}

.sidebar.themed-border {
  border-right: 1px solid rgba(226, 232, 240, 0.6);
}

/* Navigation Container */
.sidebar nav {
  padding: 0.75rem;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.sidebar nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Section Spacing */
.sidebar .space-y-6 > * + * {
  margin-top: 1.5rem;
}

.sidebar .space-y-1 > * + * {
  margin-top: 0.25rem;
}

/* Section Headers */
.sidebar .section-header {
  padding: 0.75rem;
}

.sidebar .section-header h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(100, 116, 139, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Navigation List */
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  list-style: none;
  margin: 0;
}

.sidebar .space-y-1 li + li {
  margin-top: 0.25rem;
}

/* Navigation Items */
.sidebar .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.75rem;
  transition: all 0.3s ease;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  color: rgba(55, 65, 81, 0.9);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* Navigation item content */
.sidebar .nav-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.sidebar .nav-item-content svg {
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: rgba(107, 114, 128, 0.8);
}

.sidebar .nav-item-content span {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active Navigation Item */
.sidebar .nav-item.active {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.9) 0%, 
    rgba(37, 99, 235, 0.95) 100%);
  color: white;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.3),
    0 4px 12px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.sidebar .nav-item.active .nav-item-content svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sidebar .nav-item.active .nav-item-content span {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hover States */
.sidebar .nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.8);
  color: rgba(17, 24, 39, 0.9);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(226, 232, 240, 0.8);
  transform: translateY(-1px);
}

.sidebar .nav-item:hover:not(.active) .nav-item-content svg {
  color: rgba(55, 65, 81, 0.8);
}

/* Coming Soon Items */
.sidebar .nav-item.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(249, 250, 251, 0.5);
}

.sidebar .nav-item.coming-soon .nav-item-content svg {
  color: rgba(156, 163, 175, 0.7);
}

.sidebar .nav-item.coming-soon .nav-item-content span {
  color: rgba(107, 114, 128, 0.7);
}

/* Badge Styles */
.sidebar .nav-badge {
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  min-width: -moz-fit-content;
  min-width: fit-content;
}

.sidebar .coming-soon-badge {
  padding: 0.25rem 0.5rem;
  background: rgba(229, 231, 235, 0.8);
  color: rgba(107, 114, 128, 0.9);
  font-size: 0.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
  font-weight: 500;
}

/* Loading States */
.sidebar .loading-dot {
  height: 0.5rem;
  width: 0.5rem;
  background: rgba(209, 213, 219, 0.7);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Expandable and Dropdown Chevrons */
.sidebar .nav-chevron {
  height: 1rem;
  width: 1rem;
  color: rgba(107, 114, 128, 0.6);
  transition: transform 0.3s ease;
}

.sidebar .nav-item.active .nav-chevron {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar .nav-chevron.expanded {
  transform: rotate(90deg);
}

.sidebar .nav-chevron.dropdown-open {
  transform: rotate(180deg);
}

/* Sub-navigation */
.sidebar .sub-nav {
  margin-left: 1.5rem;
  margin-top: 0.25rem;
  border-left: 2px solid rgba(229, 231, 235, 0.6);
  padding-left: 0.75rem;
}

.sidebar .sub-nav li {
  margin-top: 0.25rem;
}

.sidebar .sub-nav .nav-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.sidebar .sub-nav .nav-item .nav-item-content svg {
  height: 1rem;
  width: 1rem;
  color: rgba(156, 163, 175, 0.8);
}

.sidebar .sub-nav .nav-item.active {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.8) 0%, 
    rgba(37, 99, 235, 0.85) 100%);
  box-shadow: 
    0 4px 15px rgba(59, 130, 246, 0.25),
    0 2px 8px rgba(59, 130, 246, 0.15);
}

.sidebar .sub-nav .nav-item:hover:not(.active) {
  background: rgba(248, 250, 252, 0.8);
  color: rgba(31, 41, 55, 0.9);
}

.sidebar .sub-nav .nav-item:hover:not(.active) .nav-item-content svg {
  color: rgba(75, 85, 99, 0.8);
}

/* Sub-navigation for coming soon items */
.sidebar .sub-nav .nav-item.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(249, 250, 251, 0.3);
}

.sidebar .sub-nav .nav-item.coming-soon .nav-item-content svg {
  color: rgba(156, 163, 175, 0.5);
}

.sidebar .sub-nav .nav-item.coming-soon .nav-item-content span {
  color: rgba(107, 114, 128, 0.5);
}

/* Focus States for Accessibility */
.sidebar .nav-item:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.sidebar .nav-item:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.7);
  outline-offset: 2px;
}

/* Animation for smooth transitions */
.sidebar * {
  transition: all 0.3s ease;
}

/* Glass effect enhancement */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

.sidebar > * {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: fixed;
    bottom: 0;
    top: auto;
    height: auto;
    max-height: 50vh;
    border-right: none;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }
  
  .sidebar nav {
    max-height: 40vh;
    padding: 0.5rem;
  }
  
  .sidebar .nav-item {
    padding: 0.5rem;
  }
  
  .sidebar .section-header {
    padding: 0.5rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sidebar {
    border-right-color: #000;
    background: #fff;
  }
  
  .sidebar .nav-item {
    border: 2px solid transparent;
  }
  
  .sidebar .nav-item.active {
    border-color: #000;
    background: #000;
    color: #fff;
  }
  
  .sidebar .nav-item:hover:not(.active) {
    border-color: #666;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sidebar * {
    transition: none;
    animation: none;
  }
  
  .sidebar .nav-chevron {
    transition: none;
  }
  
  .sidebar .loading-dot {
    animation: none;
  }
}

/* Print styles */
@media print {
  .sidebar {
    display: none;
  }
}
/* Teams-Style Collaboration Modal CSS */

/* Modal Backdrop */
.teams-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Container */
.teams-modal-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 64rem; /* 1024px */
  height: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* Chat List View */
.teams-chat-list {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
.teams-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.teams-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.teams-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.teams-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teams-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.teams-btn:hover {
  color: #4b5563;
  background-color: #f3f4f6;
}

/* Search Section */
.teams-search-section {
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.teams-search-container {
  position: relative;
}

.teams-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
}

.teams-search-input {
  width: 100%;
  padding-left: 3rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.teams-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: #3b82f6;
}

/* Chat List Items */
.teams-chat-list-container {
  flex: 1;
  overflow-y: auto;
}

.teams-chat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.teams-chat-item:hover {
  background-color: #f9fafb;
}

.teams-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.teams-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.teams-avatar-blue {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.teams-avatar-hash {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.teams-status-indicator {
  position: absolute;
  bottom: -0.125rem;
  right: -0.125rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid white;
}

.teams-status-online {
  background-color: #10b981;
}

.teams-status-offline {
  background-color: #6b7280;
}

.teams-chat-content {
  flex: 1;
  min-width: 0;
}

.teams-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.teams-chat-name {
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.teams-chat-time {
  font-size: 0.875rem;
  color: #6b7280;
}

.teams-chat-message {
  font-size: 0.875rem;
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.teams-unread-indicator {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #2563eb;
  border-radius: 50%;
}

/* Conversation View */
.teams-conversation {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.teams-conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.teams-conversation-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.teams-back-btn {
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.teams-back-btn:hover {
  color: #4b5563;
  background-color: #f3f4f6;
}

.teams-conversation-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.teams-conversation-details h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.teams-conversation-details p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.teams-conversation-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teams-action-btn {
  padding: 0.625rem;
  border-radius: 0.375rem;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.teams-action-btn:hover {
  color: #4b5563;
  background-color: #f3f4f6;
}

/* Messages Area */
.teams-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(249, 250, 251, 0.3);
}

.teams-messages-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.teams-message {
  display: flex;
  gap: 0.75rem;
}

.teams-message-own {
  flex-direction: row-reverse;
}

.teams-message-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}

.teams-message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
}

.teams-message-content-own {
  align-items: flex-end;
}

.teams-message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.teams-message-sender {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
}

.teams-message-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.teams-message-bubble {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
}

.teams-message-bubble-own {
  background-color: #2563eb;
  color: white;
}

.teams-message-bubble-other {
  background-color: white;
  color: #111827;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
}

.teams-message-text {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.teams-message-attachment {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.teams-attachment-own {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.teams-attachment-other {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

.teams-attachment-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teams-attachment-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.teams-message-reactions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.teams-reaction {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.teams-reaction-emoji {
  font-size: 0.875rem;
}

.teams-reaction-count {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.teams-message-time-own {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* Message Input */
.teams-input-section {
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  background: white;
}

.teams-input-container {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.teams-input-container:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.teams-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem;
}

.teams-input {
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  font-size: 0.875rem;
  min-height: 24px;
  max-height: 120px;
}

.teams-input::-moz-placeholder {
  color: #9ca3af;
}

.teams-input::placeholder {
  color: #9ca3af;
}

.teams-input-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teams-input-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.teams-input-btn:hover {
  color: #4b5563;
  background-color: #f3f4f6;
}

.teams-send-btn {
  padding: 0.625rem;
  border-radius: 0.5rem;
  background-color: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.teams-send-btn:hover {
  background-color: #1d4ed8;
}

/* Loading Animation */
.teams-loading {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teams-loading-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.teams-loading-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #e5e7eb;
}

.teams-loading-content {
  flex: 1;
}

.teams-loading-title {
  height: 1rem;
  background-color: #e5e7eb;
  border-radius: 0.25rem;
  width: 8rem;
  margin-bottom: 0.5rem;
}

.teams-loading-text {
  height: 0.75rem;
  background-color: #e5e7eb;
  border-radius: 0.25rem;
  width: 12rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .teams-modal-container {
    max-width: 95vw;
    height: 80vh;
    margin: 0 1rem;
  }
  
  .teams-header,
  .teams-search-section,
  .teams-chat-item {
    padding: 1rem;
  }
  
  .teams-messages-area {
    padding: 1rem;
  }
  
  .teams-message-content {
    max-width: 85%;
  }
}

/* More Menu Dropdown */
.teams-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
  min-width: 200px;
}

.teams-more-menu-item {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  transition: background-color 0.2s;
}

.teams-more-menu-item:hover {
  background-color: #f3f4f6;
}

.teams-more-menu-item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.teams-more-menu-item:last-child {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Production Modal Components */
.teams-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.teams-add-people-modal,
.teams-chat-details-modal,
.teams-new-chat-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.teams-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e5e9;
}

.teams-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #323130;
}

.teams-modal-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #605e5c;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.teams-modal-close:hover {
  background: #f3f2f1;
  color: #323130;
}

.teams-modal-content {
  padding: 24px;
}

.teams-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e1e5e9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* User List Components */
.teams-user-list {
  margin-top: 16px;
}

.teams-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.teams-user-item:hover {
  background: #f8f8f8;
}

.teams-user-info {
  flex: 1;
}

.teams-user-name {
  font-size: 14px;
  font-weight: 500;
  color: #323130;
  margin-bottom: 2px;
}

.teams-user-email,
.teams-user-role {
  font-size: 12px;
  color: #605e5c;
}

.teams-add-user-btn {
  background: #6264a7;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.teams-add-user-btn:hover {
  background: #464775;
}

/* Button Styles */
.teams-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.teams-btn-primary {
  background: #6264a7;
  color: white;
  border-color: #6264a7;
}

.teams-btn-primary:hover {
  background: #464775;
  border-color: #464775;
}

.teams-btn-secondary {
  background: white;
  color: #323130;
  border-color: #d2d0ce;
}

.teams-btn-secondary:hover {
  background: #f8f8f8;
}

/* Chat Details Modal */
.teams-chat-info {
  text-align: center;
  margin-bottom: 24px;
}

.teams-chat-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #6264a7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  margin: 0 auto 16px auto;
}

.teams-chat-info h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #323130;
}

.teams-chat-status {
  margin: 0;
  font-size: 14px;
  color: #605e5c;
}

.teams-detail-section {
  margin-bottom: 24px;
}

.teams-detail-section h5 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #323130;
}

.teams-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teams-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.teams-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
}

.teams-setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* New Chat Modal */
.teams-new-chat-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teams-chat-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.teams-chat-option:hover {
  background: #f8f8f8;
  border-color: #6264a7;
}

.teams-option-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.teams-option-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #323130;
}

.teams-option-text p {
  margin: 0;
  font-size: 14px;
  color: #605e5c;
}

/* File Attachments */
.teams-attachments-overlay {
  position: fixed;
  bottom: 20px;
  right: 100px;
  z-index: 1000;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 400px;
  padding: 16px;
}

.teams-attachments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}

.teams-clear-attachments {
  background: #f3f2f1;
  border: 1px solid #d2d0ce;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.teams-clear-attachments:hover:not(:disabled) {
  background: #edebe9;
}

.teams-clear-attachments:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.teams-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teams-attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8f8f8;
  border-radius: 6px;
  border: 1px solid #e1e5e9;
}

.teams-file-icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
}

.teams-file-info {
  flex: 1;
}

.teams-file-name {
  font-size: 13px;
  font-weight: 500;
  color: #323130;
  margin-bottom: 2px;
  word-break: break-word;
}

.teams-file-size {
  font-size: 11px;
  color: #605e5c;
}

.teams-remove-file {
  background: none;
  border: none;
  color: #a19f9d;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.teams-remove-file:hover:not(:disabled) {
  background: #edebe9;
  color: #323130;
}

.teams-remove-file:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.teams-upload-progress {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e1e5e9;
}

.teams-progress-bar {
  width: 100%;
  height: 4px;
  background: #f3f2f1;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.teams-progress-fill {
  height: 100%;
  background: #6264a7;
  width: 60%;
  animation: progress-animation 2s infinite;
}

@keyframes progress-animation {
  0% { width: 10%; }
  50% { width: 80%; }
  100% { width: 10%; }
}

/* Device Setup Modal */
.teams-device-setup-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.teams-device-section {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.teams-device-section h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #323130;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teams-device-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d2d0ce;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  color: #323130;
  margin-bottom: 8px;
}

.teams-device-select:focus {
  outline: none;
  border-color: #6264a7;
  box-shadow: 0 0 0 2px rgba(98, 100, 167, 0.2);
}

.teams-device-select:disabled {
  background: #f3f2f1;
  color: #a19f9d;
  cursor: not-allowed;
}

.teams-permission-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 4px;
}

.teams-permission-granted {
  color: #107c10;
  font-weight: 500;
}

.teams-permission-denied {
  color: #d13438;
  font-weight: 500;
}

.teams-device-note {
  margin: 0;
  padding: 8px 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  color: #856404;
  font-size: 14px;
}

.teams-device-preview {
  margin-bottom: 20px;
  text-align: center;
}

.teams-device-preview h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #323130;
}

.teams-video-preview {
  width: 100%;
  max-width: 400px;
  height: 225px;
  border-radius: 8px;
  border: 2px solid #6264a7;
  background: #000;
  -o-object-fit: cover;
     object-fit: cover;
}

.teams-device-test {
  text-align: center;
  margin: 20px 0;
}

.teams-device-info {
  background: #f0f2f5;
  border: 1px solid #d2d0ce;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.teams-device-info p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #323130;
}

.teams-device-info ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
  font-size: 14px;
  color: #605e5c;
}

.teams-device-info li {
  margin-bottom: 4px;
}

.teams-permission-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: #856404;
}

/* Device Access Animation */
.teams-device-accessing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 16px 0;
}

.teams-device-accessing-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f2f1;
  border-top: 2px solid #6264a7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Device Status Indicators */
.teams-device-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}

.teams-device-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #92c353;
  animation: pulse 2s infinite;
}

.teams-device-status-dot.offline {
  background: #d2d0ce;
  animation: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .teams-device-setup-modal {
    width: 98%;
    max-height: 95vh;
  }
  
  .teams-video-preview {
    max-width: 100%;
    height: 180px;
  }
  
  .teams-device-section {
    padding: 12px;
    margin-bottom: 16px;
  }
}

/* AI Response Components */
.teams-ai-response {
  margin-top: 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  overflow: hidden;
}

/* Lead Card Styles */
.teams-lead-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
}

.teams-lead-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
}

.teams-lead-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6264a7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.teams-lead-info {
  flex: 1;
}

.teams-lead-info h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: #323130;
}

.teams-lead-status {
  margin: 0;
  font-size: 14px;
  color: #605e5c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.teams-lead-value {
  font-size: 20px;
  font-weight: 700;
  color: #107c10;
}

.teams-lead-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.teams-lead-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teams-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #605e5c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.teams-detail-value {
  font-size: 14px;
  color: #323130;
  font-weight: 500;
}

.teams-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teams-quick-action-btn {
  background: #6264a7;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.teams-quick-action-btn:hover {
  background: #464775;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Error Response Styles */
.teams-error-response {
  background: #fef7f0;
  border: 1px solid #ffccb6;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
}

.teams-error-icon {
  font-size: 20px;
}

.teams-error-content {
  flex: 1;
}

.teams-error-content p {
  margin: 0 0 12px 0;
  color: #d13438;
  font-weight: 500;
}

.teams-suggestions p {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #323130;
}

.teams-suggestion-btn {
  background: white;
  border: 1px solid #d2d0ce;
  border-radius: 16px;
  padding: 6px 12px;
  margin: 4px 4px 4px 0;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.teams-suggestion-btn:hover {
  background: #f8f9fa;
  border-color: #6264a7;
  color: #6264a7;
}

/* Navigation Response Styles */
.teams-nav-response {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.teams-nav-icon {
  font-size: 20px;
}

.teams-nav-response p {
  margin: 0;
  flex: 1;
  color: #1e40af;
  font-weight: 500;
}

.teams-nav-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.teams-nav-btn:hover {
  background: #1d4ed8;
}

/* Loading and Empty States */
.teams-loading-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #6b7280;
}

.teams-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: teams-spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes teams-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.teams-empty-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #6b7280;
  text-align: center;
}

.teams-empty-messages svg {
  margin-bottom: 12px;
  color: #9ca3af;
}

.teams-empty-messages p {
  font-weight: 500;
  margin-bottom: 4px;
}

.teams-empty-messages span {
  font-size: 14px;
  color: #9ca3af;
}

/* Responsive AI Components */
@media (max-width: 768px) {
  .teams-lead-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .teams-lead-header {
    flex-direction: column;
    text-align: center;
  }
  
  .teams-quick-actions {
    justify-content: center;
  }
  
  .teams-nav-response {
    flex-direction: column;
    text-align: center;
  }
}
/* 
  ===========================================
  💬 GLOBAL COLLABORATION FLOATING BUTTON
  ===========================================
  Component: /components/navigation/GlobalCollaborationButton.tsx
  Purpose: Global floating button for team collaboration (similar to QuickAdd)
  Theme: Positioned next to QuickAdd button with collaboration styling
*/

.global-collaboration-btn {
  /* Positioning - Above AI Assistant button for better UX flow */
  position: fixed;
  bottom: 14rem;
  left: 2rem; /* Aligned with QuickAdd and AI Assistant */
  z-index: 1000;
  
  /* Size and Shape */
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  
  /* Collaboration Theme Colors */
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
  border: none;
  box-shadow: 
    0 4px 12px rgba(139, 92, 246, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1);
  
  /* Content */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  
  /* Interactions */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  transform: scale(1);
}

.global-collaboration-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    0 6px 16px rgba(139, 92, 246, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%);
}

.global-collaboration-btn:active {
  transform: scale(0.95);
}

/* Notification Badge */
.global-collaboration-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  
  background: #ef4444;
  color: white;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .global-collaboration-btn {
    bottom: 1rem;
    left: 4.5rem; /* Adjusted spacing for mobile */
    width: 3rem;
    height: 3rem;
  }
  
  .global-collaboration-badge {
    width: 1rem;
    height: 1rem;
    font-size: 0.625rem;
  }
}

/* Ensure proper stacking with other floating elements */
@media (max-width: 640px) {
  .global-collaboration-btn {
    /* Stack vertically on very small screens if needed */
    bottom: 5.5rem; /* Above QuickAdd button */
    left: 1.5rem;
  }
}
/* 
  ===========================================
  🚀 QUICK ADD MODAL ENHANCEMENTS
  ===========================================
  Component: /components/modals/QuickAddModal.tsx
  Purpose: Enhanced styling for the Quick Add modal with modern glass effects
  Theme: Complementary to existing modal.css with additional enhancements
*/

/* Compact Modal Layout */
.mp-hero {
  padding: 1rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.mp-hero-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.mp-hero-text p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.mp-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Single Row Grid Layout (1x3) */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
}

@media (max-width: 768px) {
  .mp-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Enhanced Card Hover Effects */
.mp-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.mp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.mp-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.5s ease;
}

.mp-card:hover::after {
  left: 100%;
}

/* Card Header */
.mp-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.mp-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  background: var(--category-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8));
  color: white;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mp-card:hover .mp-card-icon {
  transform: scale(1.05);
}

.mp-card-info {
  flex: 1;
}

.mp-card-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.mp-card-sub {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.mp-card-desc {
  margin: 0 0 0.75rem 0;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.3;
  flex: 1;
}

/* Category-Specific Gradients */
.mp-card[data-category="sales"] {
  --category-gradient: linear-gradient(135deg, #059669, #10b981);
}

.mp-card[data-category="operations"] {
  --category-gradient: linear-gradient(135deg, #dc2626, #ef4444);
}

.mp-card[data-category="general"] {
  --category-gradient: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* Enhanced Link Button */
.mp-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 500;
  font-size: 0.8rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.mp-link:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #111827;
}

/* Role Badge */
.mp-role-info {
  text-align: center;
  margin-bottom: 1rem;
}

.mp-role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Quick Tips Section */
.mp-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0 1rem 0;
}

.mp-section-head {
  text-align: center;
}

.mp-section-head h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.mp-quick-tip {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Empty State */
.mp-empty-state {
  text-align: center;
  padding: 2rem;
}

.mp-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mp-empty-state h4 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
}

.mp-empty-state p {
  margin: 0;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mp-hero-text h3 {
    font-size: 1.125rem;
  }
  
  .mp-card {
    padding: 1rem;
  }
  
  .mp-card-icon {
    width: 2rem;
    height: 2rem;
  }
}
/* 
  ===========================================
  ⚡ QUICK ADD BUTTON STYLES
  ===========================================
  Component: /components/navigation/QuickAddButton.tsx
  Purpose: Floating action button with enhanced glass morphism design
  Theme: Modern glass effects with gradient backgrounds
*/

/* Quick Add Floating Button */
.quick-add-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 50;
  
  /* Button Design */
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%, 
    rgba(37, 99, 235, 0.95) 50%,
    rgba(29, 78, 216, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  /* Shadow and Effects */
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  /* Icon Styling */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  
  /* Smooth Transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.quick-add-button svg {
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

/* Hover Effects */
.quick-add-button:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.98) 0%, 
    rgba(29, 78, 216, 0.98) 50%,
    rgba(30, 64, 175, 0.98) 100%);
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.quick-add-button:hover svg {
  transform: rotate(90deg) scale(1.1);
}

/* Active/Click Effects */
.quick-add-button:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    0 3px 12px rgba(0, 0, 0, 0.12);
}

/* Focus for Accessibility */
.quick-add-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.quick-add-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Pulse Animation for Attention */
.quick-add-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 1rem;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.3) 0%, 
    rgba(37, 99, 235, 0.3) 100%);
  z-index: -1;
  animation: pulse-ring 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* Subtle glow effect */
.quick-add-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quick-add-button {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
  
  .quick-add-button svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 480px) {
  .quick-add-button {
    bottom: 1rem;
    left: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .quick-add-button svg {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .quick-add-button {
    background: linear-gradient(135deg, 
      rgba(59, 130, 246, 0.9) 0%, 
      rgba(37, 99, 235, 0.9) 50%,
      rgba(29, 78, 216, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 8px 32px rgba(59, 130, 246, 0.3),
      0 4px 16px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  .quick-add-button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 12px 40px rgba(59, 130, 246, 0.4),
      0 6px 20px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .quick-add-button {
    background: #0066cc;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  }
  
  .quick-add-button:hover {
    background: #0052a3;
    border-color: #ffffff;
  }
  
  .quick-add-button:focus {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .quick-add-button {
    transition: none;
  }
  
  .quick-add-button::before {
    animation: none;
  }
  
  .quick-add-button svg {
    transition: none;
  }
  
  .quick-add-button:hover {
    transform: none;
  }
  
  .quick-add-button:hover svg {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .quick-add-button {
    display: none;
  }
}

/* Accessibility - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 
  ===========================================
  🎨 ENTERPRISE DESIGN SYSTEM VARIABLES
  ===========================================
  Premium typography, spacing, and effects for $500-1000+ tier
*/

:root {
  --unified-toolbar-h: 64px; /* Single unified toolbar height */
  --sidebar-w: 300px; /* Wider to accommodate longer text like "Collaboration" */
  
  /* ✨ PREMIUM TYPOGRAPHY SCALE */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-heavy: 800;
  --font-weight-black: 900;
  
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* 🎯 PREMIUM SPACING SYSTEM */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;
  --spacing-5xl: 6rem;
  --spacing-6xl: 8rem;
  
  /* 💎 ENTERPRISE SHADOWS */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  --shadow-premium: 0 35px 70px rgba(0, 0, 0, 0.25), 0 15px 35px rgba(139, 92, 246, 0.4);
  
  /* 🌟 GLASSMORPHISM & BLUR */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);
  --blur-premium: blur(40px);
  
  /* ⚡ ENTERPRISE ANIMATIONS */
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  
  /* 🎨 BRAND COLORS */
  --color-brand-50: #f5f3ff;
  --color-brand-100: #ede9fe;
  --color-brand-200: #ddd6fe;
  --color-brand-300: #c4b5fd;
  --color-brand-400: #a78bfa;
  --color-brand-500: #8b5cf6;
  --color-brand-600: #7c3aed;
  --color-brand-700: #6d28d9;
  --color-brand-800: #5b21b6;
  --color-brand-900: #4c1d95;
}

@media (min-width: 1024px) { 
  :root { 
    --sidebar-w: 340px; 
  } 
}

@media (max-width: 767px) { 
  :root { 
    --unified-toolbar-h: 56px; 
    --sidebar-w: 270px; 
  } 
}

.sidebar-collapsed { 
  --sidebar-w: 72px; 
}

@layer utilities {
  .animate-fade-in {
    animation: fadeIn 0.15s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-0.25rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
/* 
  ===========================================
  🏗️ BASE RESET & FOUNDATION STYLES
  ===========================================
  Essential foundation styles for the entire application
*/

* {
  box-sizing: border-box;
}

html {
  height: auto;
  scroll-behavior: smooth;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%; 
  -moz-text-size-adjust: 100%; 
       text-size-adjust: 100%;
}

html, body, #__next { 
  min-height: 100%; 
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #374151;
  background: #111827;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure no unwanted list bullets */
nav ul,
.sidebar ul,
ul.list-none {
  list-style: none;
  padding-left: 0;
}

nav li,
.sidebar li,
li.list-none {
  list-style: none;
}

/* Line clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 
  ===========================================
  🎬 ENTERPRISE ANIMATIONS & KEYFRAMES
  ===========================================
  Premium animations for $500-1000+ tier experience
*/

/* ✨ PREMIUM SCROLL ANIMATIONS */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(60px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInDown {
  from { 
    opacity: 0; 
    transform: translateY(-60px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-60px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeInRight {
  from { 
    opacity: 0; 
    transform: translateX(60px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateX(0) scale(1);
  }
}

/* 💎 PREMIUM MICRO-INTERACTIONS */
@keyframes premiumHover {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(-12px) scale(1.03); }
}

@keyframes glassMorphismPulse {
  0%, 100% { 
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
  }
  50% { 
    backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-premium);
  }
}

@keyframes numberCountUp {
  0% { 
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-5px) scale(1.1);
  }
  100% { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 🌟 FLOATING PARTICLES */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.4;
  }
  33% {
    transform: translateY(-15px) rotate(120deg);
    opacity: 0.7;
  }
  66% {
    transform: translateY(-25px) rotate(240deg);
    opacity: 0.9;
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-10px) translateX(5px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) translateX(-3px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) translateX(-8px) rotate(270deg);
    opacity: 0.5;
  }
}

/* 🚀 ENTRANCE ANIMATIONS */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* ✨ STRIPE-LEVEL GOLD STANDARD ANIMATIONS */

/* Card Morphing - Like Stripe's payment cards */
@keyframes cardMorph {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
    box-shadow: var(--shadow-md);
  }
  50% {
    transform: perspective(1000px) rotateX(-10deg) rotateY(5deg) scale(1.02);
    box-shadow: var(--shadow-premium);
  }
  100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.05);
    box-shadow: var(--shadow-enterprise);
  }
}

/* Product Demo Interface Animation */
@keyframes productDemo {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9) perspective(800px) rotateX(15deg);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1.02) perspective(800px) rotateX(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) perspective(800px) rotateX(0deg);
  }
}

/* Interactive Hover States - Stripe's signature smooth interactions */
@keyframes stripeHover {
  0% {
    transform: translateY(0) scale(1) perspective(1000px) rotateX(0deg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
  }
  100% {
    transform: translateY(-8px) scale(1.02) perspective(1000px) rotateX(-2deg);
    box-shadow: var(--shadow-enterprise);
    backdrop-filter: blur(25px);
  }
}

/* Logo Animation - Like Stripe's client logos */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    opacity: 1;
  }
}

/* Statistics Counter Animation - Premium number reveals */
@keyframes statsReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    filter: blur(10px);
  }
  60% {
    opacity: 0.7;
    transform: translateY(-5px) scale(1.1);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Advanced Gradient Flow - Like Stripe's hero gradients */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
    background-size: 300% 300%;
  }
  25% {
    background-position: 100% 0%;
    background-size: 350% 350%;
  }
  50% {
    background-position: 200% 100%;
    background-size: 400% 400%;
  }
  75% {
    background-position: 50% 200%;
    background-size: 350% 350%;
  }
  100% {
    background-position: 0% 50%;
    background-size: 300% 300%;
  }
}

/* Interactive Button Morphing */
@keyframes buttonMorph {
  0% {
    transform: scale(1) perspective(500px) rotateX(0deg);
    box-shadow: var(--shadow-md);
  }
  50% {
    transform: scale(1.05) perspective(500px) rotateX(-10deg);
    box-shadow: var(--shadow-lg);
  }
  100% {
    transform: scale(1.08) perspective(500px) rotateX(0deg);
    box-shadow: var(--shadow-premium);
  }
}

/* Sophisticated Loading States */
@keyframes skeletonPulse {
  0%, 100% {
    background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.2) 50%, transparent 75%);
    background-size: 200% 100%;
    background-position: -200% 0;
  }
  50% {
    background-position: 200% 0;
  }
}

/* Page Transition Effects */
@keyframes pageTransition {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(20px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1.02);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes slideDown {
  from { 
    opacity: 0; 
    transform: translateY(-20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes bounceSubtle {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(147, 51, 234, 0.5), 0 0 10px rgba(147, 51, 234, 0.3), 0 0 15px rgba(147, 51, 234, 0.1);
  }
  50% {
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.8), 0 0 20px rgba(147, 51, 234, 0.6), 0 0 30px rgba(147, 51, 234, 0.4);
  }
}

/* Animation Classes */
.animate-fadeIn { animation: fadeIn 0.15s ease-out; }
.animate-slideUp { animation: slideUp 0.15s ease-out; }
.animate-slideDown { animation: slideDown 0.15s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-blob { animation: blob 7s infinite; }
.animate-gradient-x { 
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}
.animate-bounce-subtle { animation: bounceSubtle 2s infinite; }
.animate-pulse-glow { animation: pulseGlow 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ✨ STRIPE-LEVEL UTILITY CLASSES */

/* Gold Standard Interactive Elements */
.stripe-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.stripe-hover:hover {
  animation: stripeHover 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card-morph {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-morph:hover {
  animation: cardMorph 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-demo {
  opacity: 0;
  animation: productDemo 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-float {
  animation: logoFloat 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.logo-float:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

.stats-reveal {
  opacity: 0;
  animation: statsReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gradient-flow {
  background: linear-gradient(45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  animation: gradientFlow 8s ease-in-out infinite;
}

.button-morph {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.button-morph:hover {
  animation: buttonMorph 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skeleton-loading {
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.page-transition {
  animation: pageTransition 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger Delays for Stripe-Level Orchestration */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Performance Optimizations */
.gpu-optimized {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity;
}

/* Advanced Intersection Observer Animations */
.intersect-fade {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersect-fade.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.intersect-slide-left {
  opacity: 0;
  transform: translateX(-100px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersect-slide-left.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.intersect-slide-right {
  opacity: 0;
  transform: translateX(100px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersect-slide-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Animation Delays */
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-800 { animation-delay: 0.8s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }
/* 
  ===========================================
  📱 MOBILE NAVIGATION BUTTONS
  ===========================================
  Touch-optimized navigation buttons for mobile devices
  Similar styling to AI chat and collaboration buttons
*/

/* Mobile navigation should only appear on mobile within tenant dashboard context */
.mobile-nav-buttons {
  display: none; /* Hidden by default, shown only on mobile */
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 1rem;
  margin: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mobile-nav-item {
  width: 100%;
}

.mobile-nav-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 60px; /* Touch-friendly minimum height */
}

.mobile-nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
  transition: left 0.6s ease;
}

.mobile-nav-button:hover::before,
.mobile-nav-button.active::before {
  left: 100%;
}

.mobile-nav-button:hover {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #c084fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.mobile-nav-button.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  color: white;
}

.mobile-nav-button.active .mobile-nav-icon {
  color: white;
}

.mobile-nav-button.active .mobile-nav-label {
  color: white;
}

.mobile-nav-button.active .mobile-nav-chevron {
  color: white;
}

.mobile-nav-button-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 0.75rem;
  color: #6366f1;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid rgba(99, 102, 241, 0.1);
}

.mobile-nav-button:hover .mobile-nav-icon {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
  transform: scale(1.05);
  border-color: rgba(168, 85, 247, 0.3);
}

.mobile-nav-button.active .mobile-nav-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav-icon.loading {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border-color: rgba(251, 191, 36, 0.3);
}

.mobile-nav-text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.mobile-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 2rem;
  height: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-chevron {
  color: #6b7280;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-nav-submenu {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 0.75rem;
  border: 2px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-subitem {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  min-height: 48px; /* Touch-friendly */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-nav-subitem:last-child {
  margin-bottom: 0;
}

.mobile-nav-subitem:hover {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #7c3aed;
  transform: translateX(6px) scale(1.02);
  border-color: #c084fc;
  box-shadow: 0 4px 8px rgba(124, 58, 237, 0.15);
}

.mobile-nav-subitem.loading {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
}

.mobile-nav-subitem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 0.5rem;
  color: #6366f1;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.mobile-nav-subitem:hover .mobile-nav-subitem-icon {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
  transform: scale(1.1);
}

/* Active states for mobile buttons */
.mobile-nav-button.active .mobile-nav-label {
  color: white;
}

.mobile-nav-button.active .mobile-nav-chevron {
  color: white;
}

/* Loading animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.mobile-nav-button.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
  pointer-events: none;
}
@media (max-width: 768px) {
  .mobile-nav-buttons {
    display: block;
    margin: 0.75rem;
    padding: 1rem;
  }
  
  /* Only target specific mobile layouts - don't interfere with desktop sidebar */
  .tenant-dashboard-container .desktop-sidebar,
  .tenant-dashboard-container .traditional-nav {
    display: none;
  }
  
  /* Adjust main content area for mobile only within tenant dashboard */
  .tenant-dashboard-container .main-content-area {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Stack buttons on very small screens */
  @media (max-width: 480px) {
    .mobile-nav-buttons {
      margin: 0.5rem;
      padding: 0.75rem;
    }
    
    .mobile-nav-grid {
      gap: 0.75rem;
    }
    
    .mobile-nav-button {
      padding: 1rem;
      min-height: 64px;
    }
    
    .mobile-nav-label {
      font-size: 0.875rem;
    }
    
    .mobile-nav-icon {
      width: 2.5rem;
      height: 2.5rem;
    }
  }
  
  /* Extra small screens */
  @media (max-width: 360px) {
    .mobile-nav-buttons {
      margin: 0.25rem;
      padding: 0.5rem;
    }
    
    .mobile-nav-button {
      padding: 0.875rem;
      min-height: 60px;
    }
    
    .mobile-nav-label {
      font-size: 0.8rem;
    }
  }
}

/* Desktop and tablet - ensure mobile navigation is completely hidden */
@media (min-width: 769px) {
  .mobile-nav-buttons {
    display: none !important;
  }
  
  /* Ensure desktop sidebar functionality is preserved */
  .tenant-dashboard-container .desktop-sidebar,
  .tenant-dashboard-container .traditional-nav {
    display: block; /* Restore any hidden sidebars */
  }
}

/* Animation keyframes */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.mobile-nav-button {
  animation: fadeInScale 0.3s ease-out;
}

/* Loading state */
.mobile-nav-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.mobile-nav-button.loading .mobile-nav-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* 
  ===========================================
  🌟 MOBILE FLOATING NAVIGATION
  ===========================================
  Floating Action Button (FAB) navigation for mobile
  Replaces sidebar with floating buttons when needed
*/

.mobile-floating-nav {
  display: none; /* Hidden by default, shown only on mobile */
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 1000;
}

/* Main Toggle Button (FAB) */
.floating-nav-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
  transition: all 0.2s ease;
}

.floating-nav-toggle:hover {
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
  transform: scale(1.05);
}

.floating-nav-toggle:active {
  transform: scale(0.95);
}

/* Backdrop */
.floating-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}

/* Navigation Items Container */
.floating-nav-items {
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none; /* Allow clicks to pass through to individual items */
}

/* Individual Floating Navigation Items */
.floating-nav-item {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto; /* Allow clicks on individual items */
  transition: all 0.2s ease;
}

.floating-nav-item:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.floating-nav-item-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge on floating items */
.floating-nav-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Badge color variations */
.floating-badge-green {
  background-color: #10b981;
  color: white;
}

.floating-badge-blue {
  background-color: #3b82f6;
  color: white;
}

.floating-badge-orange {
  background-color: #f59e0b;
  color: white;
}

.floating-badge-red {
  background-color: #ef4444;
  color: white;
  animation: pulse 2s infinite;
}

.floating-badge-default {
  background-color: #6b7280;
  color: white;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Tooltip */
.floating-nav-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.floating-nav-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid rgba(0, 0, 0, 0.8);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Mobile-only display */
@media (max-width: 768px) {
  .mobile-floating-nav {
    display: block;
  }
}

/* Hide on desktop and tablet */
@media (min-width: 769px) {
  .mobile-floating-nav {
    display: none !important;
  }
}

/* Ensure proper layering above other mobile elements */
@media (max-width: 768px) {
  .mobile-floating-nav {
    z-index: 1000;
  }
  
  .floating-nav-toggle {
    z-index: 1001;
  }
  
  .floating-nav-backdrop {
    z-index: 999;
  }
  
  .floating-nav-items {
    z-index: 1000;
  }
}

/* Animation improvements for better performance */
.floating-nav-item,
.floating-nav-toggle {
  will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .floating-nav-toggle,
  .floating-nav-item,
  .floating-nav-tooltip {
    transition: none !important;
  }
}

/* Touch improvements for mobile */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .floating-nav-toggle {
    width: 64px;
    height: 64px;
  }
  
  .floating-nav-item {
    width: 54px;
    height: 54px;
  }
  
  .floating-nav-tooltip {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}
/* 
  ===========================================
  📱 MOBILE RESPONSIVE CSS
  ===========================================
  Comprehensive mobile-first responsive design system for GhostCRM
  Breakpoints: Mobile (320px+), Tablet (640px+), Desktop (1024px+)
*/

/* ========== BREAKPOINT VARIABLES ========== */
:root {
  --mobile-min: 320px;
  --tablet-min: 640px;
  --desktop-min: 1024px;
  --large-min: 1280px;
  
  /* Mobile spacing system */
  --mobile-spacing-xs: 0.25rem;
  --mobile-spacing-sm: 0.5rem;
  --mobile-spacing-md: 1rem;
  --mobile-spacing-lg: 1.5rem;
  --mobile-spacing-xl: 2rem;
  
  /* Mobile typography */
  --mobile-text-xs: 0.75rem;
  --mobile-text-sm: 0.875rem;
  --mobile-text-base: 1rem;
  --mobile-text-lg: 1.125rem;
  --mobile-text-xl: 1.25rem;
  --mobile-text-2xl: 1.5rem;
  
  /* Touch targets */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
}

/* ========== MOBILE BASE STYLES ========== */
@media (max-width: 639px) {
  /* Container improvements */
  .container, 
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl {
    padding-left: var(--mobile-spacing-md) !important;
    padding-right: var(--mobile-spacing-md) !important;
  }
  
  /* Typography scaling */
  h1 {
    font-size: var(--mobile-text-2xl) !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: var(--mobile-text-xl) !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: var(--mobile-text-lg) !important;
    line-height: 1.4 !important;
  }
  
  /* Button optimizations */
  button,
  .btn,
  [role="button"] {
    min-height: var(--touch-target-min) !important;
    min-width: var(--touch-target-min) !important;
    padding: var(--mobile-spacing-sm) var(--mobile-spacing-md) !important;
    font-size: var(--mobile-text-base) !important;
  }
  
  /* Link improvements */
  a {
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
  }
  
  /* Form elements */
  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    min-height: var(--touch-target-comfortable) !important;
    padding: var(--mobile-spacing-sm) var(--mobile-spacing-md) !important;
  }
  
  /* Grid improvements */
  .grid {
    gap: var(--mobile-spacing-md) !important;
  }
  
  /* Flex layouts */
  .flex {
    gap: var(--mobile-spacing-sm);
  }
  
  /* Modal/Dialog improvements */
  .modal,
  .dialog,
  [role="dialog"] {
    margin: var(--mobile-spacing-md) !important;
    max-width: calc(100vw - 2rem) !important;
    max-height: calc(100vh - 2rem) !important;
  }
}

/* ========== NAVIGATION & HEADER ========== */
@media (max-width: 639px) {
  /* Marketing header optimizations */
  .marketing-page nav {
    padding: 0 var(--mobile-spacing-sm) !important;
  }
  
  .marketing-page nav > div {
    padding: 0 var(--mobile-spacing-sm) !important;
    gap: var(--mobile-spacing-xs) !important;
  }
  
  /* Navigation menu improvements */
  .nav-menu {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    z-index: 9999;
    padding: var(--mobile-spacing-xl);
  }
  
  /* Breadcrumbs */
  .breadcrumb,
  .shared-breadcrumb {
    font-size: var(--mobile-text-sm) !important;
    gap: var(--mobile-spacing-xs) !important;
  }
  
  /* Sidebar/drawer */
  .sidebar,
  .drawer {
    width: 100vw !important;
    max-width: 320px !important;
  }
}

/* ========== CARDS & COMPONENTS ========== */
@media (max-width: 639px) {
  /* Card layouts */
  .card,
  .shared-card {
    padding: var(--mobile-spacing-md) !important;
    margin-bottom: var(--mobile-spacing-md) !important;
  }
  
  /* Dashboard cards */
  .dashboard-card {
    padding: var(--mobile-spacing-md) !important;
  }
  
  /* Analytics cards */
  .analytics-card,
  .tenant-owner-leads-analytics-card {
    padding: var(--mobile-spacing-md) !important;
    min-height: 100px !important;
  }
  
  /* Grid layouts */
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
  /* Flex layouts to stack */
  .flex-row {
    flex-direction: column !important;
  }
  
  .space-x-4 > * + * {
    margin-left: 0 !important;
    margin-top: var(--mobile-spacing-md) !important;
  }
}

/* ========== TABLES & DATA ========== */
@media (max-width: 639px) {
  /* Table responsiveness */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
    font-size: var(--mobile-text-sm) !important;
  }
  
  th,
  td {
    padding: var(--mobile-spacing-sm) !important;
    white-space: nowrap;
  }
  
  /* List improvements */
  .list-item {
    padding: var(--mobile-spacing-md) !important;
    margin-bottom: var(--mobile-spacing-sm) !important;
  }
}

/* ========== FORMS ========== */
@media (max-width: 639px) {
  /* Form layouts */
  .form-group,
  .form-field {
    margin-bottom: var(--mobile-spacing-md) !important;
  }
  
  .form-row {
    flex-direction: column !important;
    gap: var(--mobile-spacing-md) !important;
  }
  
  /* Label improvements */
  label {
    font-size: var(--mobile-text-sm) !important;
    margin-bottom: var(--mobile-spacing-xs) !important;
  }
  
  /* Form actions */
  .form-actions {
    flex-direction: column !important;
    gap: var(--mobile-spacing-md) !important;
  }
  
  .form-actions button {
    width: 100% !important;
  }
}

/* ========== SPECIFIC COMPONENTS ========== */
@media (max-width: 639px) {
  /* AI Assistant */
  .ai-assistant {
    bottom: var(--mobile-spacing-md) !important;
    right: var(--mobile-spacing-md) !important;
    left: var(--mobile-spacing-md) !important;
    width: auto !important;
    max-height: 60vh !important;
  }
  
  /* Chat interfaces */
  .chat-container {
    height: 70vh !important;
    max-height: 500px !important;
  }
  
  .chat-input {
    padding: var(--mobile-spacing-md) !important;
  }
  
  /* Pricing tables */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: var(--mobile-spacing-lg) !important;
  }
  
  .pricing-card {
    margin: 0 var(--mobile-spacing-md) var(--mobile-spacing-lg) !important;
  }
  
  /* Feature grids */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: var(--mobile-spacing-lg) !important;
  }
  
  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Stats sections */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--mobile-spacing-md) !important;
  }
}

/* ========== UTILITIES ========== */
@media (max-width: 639px) {
  /* Hide on mobile */
  .hidden-mobile {
    display: none !important;
  }
  
  /* Show only on mobile */
  .mobile-only {
    display: block !important;
  }
  
  /* Text alignment */
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-text-left {
    text-align: left !important;
  }
  
  /* Spacing utilities */
  .mobile-p-0 { padding: 0 !important; }
  .mobile-p-1 { padding: var(--mobile-spacing-xs) !important; }
  .mobile-p-2 { padding: var(--mobile-spacing-sm) !important; }
  .mobile-p-4 { padding: var(--mobile-spacing-md) !important; }
  .mobile-p-6 { padding: var(--mobile-spacing-lg) !important; }
  .mobile-p-8 { padding: var(--mobile-spacing-xl) !important; }
  
  .mobile-m-0 { margin: 0 !important; }
  .mobile-m-1 { margin: var(--mobile-spacing-xs) !important; }
  .mobile-m-2 { margin: var(--mobile-spacing-sm) !important; }
  .mobile-m-4 { margin: var(--mobile-spacing-md) !important; }
  .mobile-m-6 { margin: var(--mobile-spacing-lg) !important; }
  .mobile-m-8 { margin: var(--mobile-spacing-xl) !important; }
  
  /* Width utilities */
  .mobile-w-full { width: 100% !important; }
  .mobile-w-auto { width: auto !important; }
  
  /* Height utilities */
  .mobile-h-auto { height: auto !important; }
  .mobile-h-screen { height: 100vh !important; }
}

/* ========== TABLET STYLES ========== */
@media (min-width: 640px) and (max-width: 1023px) {
  /* Show desktop elements, hide mobile-only */
  .mobile-only {
    display: none !important;
  }
  
  /* Grid adjustments for tablet */
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  /* Container padding */
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* ========== DESKTOP STYLES ========== */
@media (min-width: 1024px) {
  /* Hide mobile-only elements */
  .mobile-only,
  .hidden-desktop {
    display: none !important;
  }
  
  /* Show desktop elements */
  .desktop-only {
    display: block !important;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (max-width: 639px) {
  /* Focus improvements */
  *:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    button,
    .btn {
      border: 2px solid currentColor !important;
    }
  }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
@media (max-width: 639px) {
  /* Optimize animations for mobile */
  .animate-fade,
  .animate-slide {
    animation-duration: 0.2s !important;
  }
  
  /* Reduce blur effects on low-end devices */
  .backdrop-blur {
    backdrop-filter: blur(8px) !important;
  }
  
  /* Optimize shadows */
  .shadow-lg {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  }
  
  .shadow-xl {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  /* Hide interactive elements */
  button,
  .btn,
  .mobile-menu,
  .sidebar,
  .ai-assistant {
    display: none !important;
  }
  
  /* Optimize for printing */
  * {
    background: white !important;
    color: black !important;
  }
  
  .container {
    max-width: none !important;
    padding: 0 !important;
  }
}
/* 
  ===========================================
  🔘 BUTTON COMPONENTS
  ===========================================
  Reusable button styles and variations
*/

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #111827;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-outline {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-enhanced:hover::before {
  left: 100%;
}

/* Specialized buttons */
.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.glow-button:hover::before {
  left: 100%;
}

.magnetic-button {
  transition: transform 0.2s ease-out;
}

.magnetic-button:hover {
  transform: scale(1.05) translateY(-2px);
}

/* Floating Action Buttons */
.ai-assistant-fab {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(to right, #9333ea, #2563eb);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-assistant-fab:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.ai-assistant-fab svg {
  transition: transform 0.3s ease;
}

.ai-assistant-fab:hover svg {
  transform: scale(1.1);
}
/* Modal and overlay styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  animation: modalFadeIn 0.2s ease-out;
  padding: 2rem 1rem;
  box-sizing: border-box;
  padding-top: 10vh;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
  max-height: 80vh;
  overflow: auto;
  animation: modalSlideIn 0.3s ease-out;
  position: relative;
  margin: 0 auto;
}

/* Allow ultra size modals to use full width */
.ai-call-script-modal .modal-container {
  max-width: calc(100vw - 40px) !important;
  width: calc(100vw - 40px) !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 2rem 2rem 0 2rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.modal-body {
  padding: 0 2rem 2rem 2rem;
}

/* AI Assistant Modal specific styles */
.ai-modal-container {
  width: 95vw;
  max-width: 48rem;
  height: 85vh;
  max-height: 42rem;
  display: flex;
  flex-direction: column;
}

.ai-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ai-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-modal-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Gradient text effect for ARIA name */
.gradient-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Settings Modal Slider Styles */
.slider {
  background: linear-gradient(to right, #667eea, #764ba2);
  border-radius: 8px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #667eea;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #667eea;
}

/* ARIA Settings Modal Styles */
.aria-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: modalFadeIn 0.2s ease-out;
}

.aria-settings-modal {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 28rem;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.aria-settings-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #dbeafe, #f3e8ff);
}

.aria-settings-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aria-settings-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aria-settings-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.aria-settings-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.aria-settings-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.aria-settings-close {
  padding: 0.5rem;
  color: #6b7280;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aria-settings-close:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
}

.aria-settings-content {
  padding: 1.5rem;
  max-height: 24rem;
  overflow-y: auto;
}

.aria-settings-section {
  margin-bottom: 1.5rem;
}

.aria-settings-section:last-child {
  margin-bottom: 0;
}

.aria-settings-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.aria-settings-section-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  color: #3b82f6;
}

.aria-settings-item {
  margin-bottom: 1rem;
}

.aria-settings-item:last-child {
  margin-bottom: 0;
}

.aria-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aria-settings-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.aria-settings-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  color: #3b82f6;
}

.aria-settings-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px #93c5fd;
}

.aria-settings-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: white;
  transition: all 0.2s ease;
}

.aria-settings-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #93c5fd;
}

.aria-settings-slider-container {
  margin-bottom: 1rem;
}

.aria-settings-slider-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.aria-settings-slider {
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(to right, #667eea, #764ba2);
  border-radius: 0.5rem;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.aria-settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #667eea;
}

.aria-settings-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #667eea;
}

.aria-settings-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.aria-settings-divider {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.aria-settings-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aria-settings-reset {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aria-settings-reset:hover {
  color: #374151;
  background: #e5e7eb;
}

.aria-settings-done {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aria-settings-done:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.ai-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-message {
  display: flex;
  gap: 0.75rem;
}

.ai-message.user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.ai-message.user .ai-message-avatar {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.ai-message.assistant .ai-message-avatar {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.ai-message-content {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 70%;
  word-wrap: break-word;
}

.ai-message.user .ai-message-content {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
}

.ai-message.assistant .ai-message-content {
  background: #f3f4f6;
  color: #374151;
}

.ai-chat-input-container {
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  flex-shrink: 0;
}

.ai-chat-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.ai-chat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  resize: none;
  max-height: 6rem;
  min-height: 2.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.ai-chat-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ai-chat-send-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
}

.ai-chat-send-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  transform: translateY(-1px);
}

.ai-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ai-chat-send {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
}

.ai-chat-send:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  transform: translateY(-1px);
}

.ai-chat-send:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Contact Sales Modal styles */
.contact-modal-container {
  width: 90vw;
  max-width: 32rem;
}

.contact-modal-body {
  padding: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.contact-form-input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.contact-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form-textarea {
  min-height: 6rem;
  resize: vertical;
  font-family: inherit;
}

.contact-form-submit {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.contact-form-submit:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Additional AI Modal Component Styles */
.modal-settings-btn {
  padding: 0.5rem;
  color: #6b7280;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-settings-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.voice-input-btn {
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.voice-input-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.voice-input-active {
  background: #dc2626;
  color: white;
}

.voice-input-active:hover {
  background: #b91c1c;
}

.voice-input-inactive {
  background: #e5e7eb;
  color: #374151;
}

.voice-input-inactive:hover {
  background: #d1d5db;
}

.ai-message-welcome {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

.ai-message-avatar-wrapper {
  display: flex;
  align-items: flex-start;
}

.ai-message-avatar-small {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

.ai-message-bubble {
  background: #eff6ff;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  max-width: 20rem;
}

.ai-message-text {
  font-size: 0.875rem;
  color: #374151;
  white-space: pre-wrap;
  margin: 0;
}

.ai-chat-disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-align: center;
}

.ai-chat-disclaimer p {
  margin: 0.25rem 0;
}

/* Voice Mode Toggle Styles */
.aria-voice-mode-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aria-voice-mode-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aria-status-realtime {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 500;
  background: #d1fae5;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.aria-status-browser {
  font-size: 0.75rem;
  color: #3b82f6;
  font-weight: 500;
  background: #dbeafe;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.aria-settings-badge {
  font-size: 0.625rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  font-weight: 600;
}

.aria-settings-description {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Realtime Voice Connection Status */
.realtime-connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.realtime-connection-status.connected {
  background: #d1fae5;
  color: #059669;
}

.realtime-connection-status.connecting {
  background: #fef3c7;
  color: #d97706;
}

.realtime-connection-status.disconnected {
  background: #fee2e2;
  color: #dc2626;
}

.realtime-connection-status.failed {
  background: #fee2e2;
  color: #dc2626;
}

/* Voice Input Enhanced Styles */
.voice-input-btn.realtime-mode {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  border: 2px solid transparent;
}

.voice-input-btn.realtime-mode:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.voice-input-btn.realtime-mode.active {
  animation: realtimePulse 1.5s ease-in-out infinite;
}

@keyframes realtimePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
  }
}

.ai-voice-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.ai-voice-indicator .w-3 {
  margin-right: 0.25rem;
}
/* ✨ STRIPE-LEVEL HERO SECTION */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #8b5cf6 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: white;
  padding: 2rem 0;
  transform-style: preserve-3d;
}

/* Override Tailwind max-width constraints for dashboard preview */
.hero-section .max-w-6xl {
  max-width: none !important;
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 42rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--spacing-xl);
  color: white;
  animation: fadeInUp 1s var(--ease-premium) 0.2s both;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #f3f4f6 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  position: relative;
}

.hero-gradient-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-wide);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s var(--ease-premium) 0.4s both;
}

.hero-cta-group {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-lg);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 1s var(--ease-premium) 0.6s both;
}

.hero-cta-primary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--blur-lg);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 1.25rem;
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--duration-normal) var(--ease-premium);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}

.hero-cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-premium);
}

.hero-cta-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: var(--blur-xl);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  animation: buttonMorph 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: var(--shadow-enterprise);
}

.hero-cta-primary:hover::before {
  opacity: 1;
}

/* ✨ Stripe-Level Interactive States */
.hero-cta-primary {
  will-change: transform, box-shadow, backdrop-filter;
}

.hero-cta-primary:active {
  transform: scale(0.98) perspective(500px) rotateX(5deg);
  transition: transform 0.1s ease;
}

.hero-cta-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 2.5rem;
  border-radius: 1.25rem;
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--duration-normal) var(--ease-premium);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: var(--blur-sm);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-md);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-features-list {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-xl);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-4xl);
  animation: fadeInUp 1s var(--ease-premium) 0.8s both;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 0.75rem;
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--duration-normal) var(--ease-premium);
}

.hero-feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Dashboard Mockup Styles */
.dashboard-mockup {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: none !important;
  width: 90vw;
  max-width: 1100px !important;
  margin: 0 auto;
  transform: perspective(1000px) rotateX(5deg) rotateY(-2deg);
  transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px);
  box-shadow: 
    0 35px 60px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

.browser-header {
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.browser-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1d5db, transparent);
}

.browser-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.browser-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.browser-dot.bg-red-500 {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.browser-dot.bg-yellow-500 {
  background: linear-gradient(135deg, #eab308, #d97706);
}

.browser-dot.bg-green-500 {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.browser-url {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  flex: 1;
  max-width: 320px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.url-text {
  color: #6b7280;
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dashboard-content {
  padding: 5rem 2rem 2rem 2rem; /* Add top padding for the header */
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 400px;
  position: relative;
}

/* Add a top navigation bar to the dashboard */
.dashboard-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Add some navigation elements overlay */
.dashboard-content::after {
  content: 'Ghost Auto CRM Dashboard';
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  z-index: 2;
}

.dashboard-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  opacity: 0.8;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
  letter-spacing: -0.025em;
}

.dashboard-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
}

.dashboard-card-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.scroll-icon {
  color: rgba(255, 255, 255, 0.7);
}

/* Dashboard Preview Container */
.dashboard-preview-container {
  margin-top: 4rem;
  position: relative;
  max-width: 1200px; /* Much wider than the 72rem (1152px) Tailwind max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Color classes to replace Tailwind */
.text-green-500 { color: #10b981; }
.text-green-600 { color: #059669; }
.text-blue-600 { color: #2563eb; }
.text-purple-600 { color: #9333ea; }
.bg-green-100 { background-color: #dcfce7; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-red-500 { background-color: #ef4444; }
.bg-yellow-500 { background-color: #eab308; }
.bg-green-500 { background-color: #22c55e; }

/* Icon sizes */
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40%, 43% {
    transform: translateX(-50%) translateY(-10px);
  }
  70% {
    transform: translateX(-50%) translateY(-5px);
  }
  90% {
    transform: translateX(-50%) translateY(-3px);
  }
}

.hero-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-features-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dashboard-content {
    padding: 1rem;
    min-height: 300px;
  }

  .dashboard-mockup {
    max-width: 100%;
    margin: 0 1rem;
    transform: perspective(800px) rotateX(3deg) rotateY(-1deg);
  }

  .dashboard-preview-container {
    padding: 0 0.5rem;
    margin-top: 2rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-card {
    padding: 1rem;
  }

  .dashboard-card-value {
    font-size: 1.5rem;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
  }
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 3.5rem; /* Slightly smaller than before */
  }

  .hero-features-list {
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
  }

  .dashboard-mockup {
    max-width: 750px;
  }

  .dashboard-preview-container {
    padding: 0 1.5rem;
    margin-top: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem; /* Reduced from 5rem */
  }

  .dashboard-mockup {
    max-width: 950px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .dashboard-preview-container {
    padding: 0 2rem;
    margin-top: 4rem;
  }
}

@media (min-width: 1024px) {
  .dashboard-content {
    padding: 2.5rem;
    min-height: 450px;
  }
  
  .dashboard-card-value {
    font-size: 2.25rem;
  }

  .dashboard-mockup {
    max-width: 1100px;
  }

  .dashboard-preview-container {
    max-width: 1200px;
    padding: 0 2rem;
  }
}

@media (min-width: 1280px) {
  .dashboard-mockup {
    max-width: 1200px;
  }
  
  .dashboard-preview-container {
    max-width: 1400px;
  }
}
/* AI Chat Assistant Styles */
.ai-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  background-color: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.ai-chat-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
}

.ai-chat-header-content {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.ai-chat-subtitle {
  color: #6b7280;
  margin: 0;
  font-size: 0.875rem;
}

.ai-voice-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-voice-checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-voice-checkbox {
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  color: #2563eb;
}

.ai-voice-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
}

.ai-voice-checkbox-label {
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.ai-voice-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.ai-voice-status.listening {
  color: #dc2626;
}

.ai-voice-status.speaking {
  color: #2563eb;
}

.ai-voice-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}

.ai-voice-error-text {
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
}

.ai-voice-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.ai-voice-status-dot.listening {
  background-color: #dc2626;
}

.ai-voice-status-dot.speaking {
  background-color: #2563eb;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.ai-chat-messages-container {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-message {
  display: flex;
}

.ai-message.user {
  justify-content: flex-end;
}

.ai-message.assistant {
  justify-content: flex-start;
}

.ai-message-bubble {
  max-width: 48rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  position: relative;
}

.ai-message-bubble.user {
  background-color: #2563eb;
  color: white;
}

.ai-message-bubble.assistant {
  background-color: white;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.ai-message-bubble:hover .ai-speak-button {
  opacity: 1;
}

.ai-message-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ai-message-content {
  flex: 1;
}

.ai-voice-message-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.ai-voice-message-indicator.user {
  color: rgba(219, 234, 254, 0.8);
}

.ai-voice-message-indicator.assistant {
  color: #6b7280;
}

.ai-voice-message-icon {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
}

.ai-message-text {
  white-space: pre-wrap;
  line-height: 1.5;
}

.ai-speak-button {
  margin-left: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0.25rem;
  border-radius: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
}

.ai-speak-button:hover {
  background-color: #f3f4f6;
}

.ai-speak-button svg {
  width: 1rem;
  height: 1rem;
}

.ai-speak-button.speaking svg {
  color: #dc2626;
}

.ai-speak-button:not(.speaking) svg {
  color: #6b7280;
}

.ai-message-timestamp {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.ai-message-timestamp.user {
  color: rgba(219, 234, 254, 0.8);
}

.ai-message-timestamp.assistant {
  color: #6b7280;
}

.ai-loading-indicator {
  display: flex;
  justify-content: flex-start;
}

.ai-loading-bubble {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.ai-loading-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-loading-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-bottom-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-loading-text {
  color: #6b7280;
}

.ai-voice-input-alert {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-voice-input-content {
  display: flex;
  align-items: center;
}

.ai-voice-input-dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #ef4444;
  border-radius: 50%;
  margin-right: 0.75rem;
  animation: pulse 1s infinite;
}

.ai-voice-input-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #991b1b;
}

.ai-voice-transcript {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.ai-voice-stop-button {
  color: #dc2626;
  padding: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
}

.ai-voice-stop-button:hover {
  color: #991b1b;
}

.ai-voice-stop-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ai-chat-input-container {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
}

.ai-chat-input-wrapper {
  max-width: 64rem;
  margin: 0 auto;
}

.ai-chat-input-row {
  display: flex;
  gap: 0.75rem;
}

.ai-chat-input-field-wrapper {
  flex: 1;
}

.ai-chat-input-field {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ai-chat-input-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.ai-chat-input-field.voice-mode {
  border-color: #fca5a5;
  background-color: #fef2f2;
}

.ai-chat-input-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-voice-input-button {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-voice-input-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-voice-input-button.active {
  background-color: #dc2626;
  color: white;
}

.ai-voice-input-button.active:hover {
  background-color: #b91c1c;
}

.ai-voice-input-button.inactive {
  background-color: #e5e7eb;
  color: #374151;
}

.ai-voice-input-button.inactive:hover {
  background-color: #d1d5db;
}

.ai-voice-input-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ai-send-button {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 500;
}

.ai-send-button:hover {
  background-color: #1d4ed8;
}

.ai-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hide scrollbar but keep functionality */
.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Responsive design */
@media (max-width: 768px) {
  .ai-chat-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .ai-voice-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .ai-message-bubble {
    max-width: 90%;
  }
  
  .ai-chat-input-row {
    flex-wrap: wrap;
  }
  
  .ai-voice-input-button {
    padding: 0.75rem;
  }
}
/* ================================
   CONTACT SALES MODAL STYLES
   All visual styling for ContactSalesModal.tsx
   ================================ */

/* Modal Overlay & Base */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.contact-modal-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 60rem;
  max-height: 85vh;
  overflow: hidden;
  animation: slideUp 0.2s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================
   SUCCESS STATE STYLES
   ================================ */
.success-container {
  padding: 2rem;
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: #dcfce7; /* green-100 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.checkmark {
  width: 2rem;
  height: 2rem;
  color: #16a34a; /* green-600 */
}

.success-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827; /* gray-900 */
  margin-bottom: 1rem;
}

.success-message {
  color: #4b5563; /* gray-600 */
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.success-button {
  background: #2563eb; /* blue-600 */
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.success-button:hover {
  background: #1d4ed8; /* blue-700 */
}

/* ================================
   MODAL HEADER STYLES
   ================================ */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.header-content {
  flex: 1;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827; /* gray-900 */
  margin: 0 0 0.25rem 0;
}

.modal-subtitle {
  color: #4b5563; /* gray-600 */
  margin: 0;
}

.close-button {
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: #f3f4f6; /* gray-100 */
}

.close-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #6b7280; /* gray-500 */
}

/* ================================
   MODAL BODY LAYOUT
   ================================ */
.contact-modal-content .modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ================================
   CONTACT SECTION (LEFT SIDE)
   ================================ */
.contact-section {
  background: #f9fafb; /* gray-50 */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin: 0;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contact Cards */
.contact-card {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.2);
}

/* Contact Card Variants */
.contact-card-call {
  background: #eff6ff; /* blue-50 */
}
.contact-card-call:hover {
  background: #dbeafe; /* blue-100 */
}

.contact-card-email {
  background: #f0fdf4; /* green-50 */
}
.contact-card-email:hover {
  background: #dcfce7; /* green-100 */
}

.contact-card-demo {
  background: #faf5ff; /* purple-50 */
}
.contact-card-demo:hover {
  background: #f3e8ff; /* purple-100 */
}

.contact-card-whatsapp {
  background: #fff7ed; /* orange-50 */
}
.contact-card-whatsapp:hover {
  background: #ffedd5; /* orange-100 */
}

/* Contact Icons */
.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.contact-icon-call {
  background: #2563eb; /* blue-600 */
}

.contact-icon-email {
  background: #16a34a; /* green-600 */
}

.contact-icon-demo {
  background: #9333ea; /* purple-600 */
}

.contact-icon-whatsapp {
  background: #ea580c; /* orange-600 */
}

.contact-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

/* Contact Info */
.contact-info {
  flex: 1;
}

.contact-title {
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin: 0 0 0.125rem 0;
}

.contact-detail {
  color: #4b5563; /* gray-600 */
  margin: 0 0 0.125rem 0;
}

.contact-note {
  font-size: 0.75rem;
  color: #6b7280; /* gray-500 */
  margin: 0;
}

/* Business Hours */
.business-hours {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hours-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.hours-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #4b5563; /* gray-600 */
  margin-right: 0.5rem;
}

.hours-title {
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin: 0;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.day {
  color: #4b5563; /* gray-600 */
}

.time {
  color: #111827; /* gray-900 */
  font-weight: 500;
}


/* ================================
   FORM SECTION (RIGHT SIDE)
   ================================ */
.form-section {
  padding: 1rem;
  background: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Form Rows and Groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Form Labels */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151; /* gray-700 */
  margin-bottom: 0.5rem;
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.5rem;
  background: white;
  color: #111827; /* gray-900 */
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::-moz-placeholder {
  color: #9ca3af; /* gray-400 */
}

.form-input::placeholder {
  color: #9ca3af; /* gray-400 */
}

.form-input:focus {
  border-color: #2563eb; /* blue-600 */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Form Select */
.form-select {
  cursor: pointer;
}

/* Form Textarea */
.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

/* Submit Button */
.submit-button {
  width: 100%;
  background: #2563eb; /* blue-600 */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  background: #1d4ed8; /* blue-700 */
}

.submit-button:disabled {
  background: #93c5fd; /* blue-300 */
  cursor: not-allowed;
}

.submit-icon {
  width: 1rem;
  height: 1rem;
}

/* Loading Spinner */
.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

.spinner-circle {
  opacity: 0.25;
}

.spinner-path {
  opacity: 0.75;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Privacy Notice */
.privacy-notice {
  font-size: 0.75rem;
  color: #6b7280; /* gray-500 */
  text-align: center;
  margin: 0.75rem 0 0 0;
  line-height: 1.4;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Large screens and below (1024px) */
@media (max-width: 1024px) {
  .contact-modal-content .modal-body {
    grid-template-columns: 1fr;
  }
  
  .contact-modal-content {
    max-width: 48rem;
  }
}

/* Medium screens and below (768px) */
@media (max-width: 768px) {
  .contact-modal-overlay {
    padding: 0.5rem;
  }
  
  .contact-modal-content {
    max-height: 95vh;
  }
  
  .modal-header,
  .contact-section,
  .form-section {
    padding: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
}

/* Small screens and below (640px) */
@media (max-width: 640px) {
  .contact-modal-overlay {
    padding: 0.25rem;
  }
  
  .contact-modal-content {
    border-radius: 0.5rem;
  }
  
  .modal-header,
  .contact-section,
  .form-section {
    padding: 0.75rem;
  }
  
  .contact-card {
    padding: 0.75rem;
  }
  
  .contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
  }
  
  .contact-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .business-hours {
    padding: 0.75rem;
  }
}

/* ================================
   ACCESSIBILITY & POLISH
   ================================ */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .contact-modal-overlay,
  .contact-modal-content,
  .contact-card,
  .form-input,
  .submit-button,
  .close-button {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .contact-modal-content {
    border: 2px solid #000;
  }
  
  .form-input {
    border-width: 2px;
  }
  
  .contact-card {
    border-width: 2px;
  }
}

/* Focus visible for keyboard navigation */
.contact-card:focus-visible,
.close-button:focus-visible,
.form-input:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
/* Enhanced Logo Styles */
.enhanced-logo-container {
  position: relative;
  z-index: 10;
}

.enhanced-logo-container:hover {
  transform: scale(1.02) translateY(-1px);
}

.enhanced-logo-text {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-logo-container:hover .enhanced-logo-text {
  text-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
}

/* Pulse animation for accent dots */
@keyframes logoAccentPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.logo-accent-dot {
  animation: logoAccentPulse 3s ease-in-out infinite;
}

.logo-accent-dot:nth-child(2) {
  animation-delay: 1.5s;
}

/* Glow effect enhancement */
.logo-glow-effect {
  transition: all 0.4s ease;
  opacity: 0.8;
}

.enhanced-logo-container:hover .logo-glow-effect {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Text gradient animation on hover */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.enhanced-logo-container:hover .enhanced-logo-text {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Mobile specific enhancements */
@media (max-width: 768px) {
  .enhanced-logo-container {
    transform: scale(1);
  }
  
  .enhanced-logo-container:hover {
    transform: scale(1.01) translateY(-0.5px);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .enhanced-logo-text {
    text-shadow: none !important;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .enhanced-logo-container,
  .enhanced-logo-text,
  .logo-accent-dot,
  .logo-glow-effect {
    animation: none !important;
    transition: none !important;
  }
}
/* Features Grid CTA Section */
.features-cta {
  margin-top: 4rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.features-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.features-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.features-btn:hover::before {
  left: 100%;
}

.features-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Features Section Styles */
.features-section {
  padding: var(--spacing-6xl) 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.features-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.features-header {
  text-align: center;
  margin-bottom: var(--spacing-5xl);
  animation: fadeInUp 1s var(--ease-premium) 0.2s both;
}

.features-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #e0e7ff 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-lg);
  animation: gradientShift 4s ease-in-out infinite;
  position: relative;
}

.features-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
  animation: fadeInUp 1s var(--ease-premium) 1s both;
}

.features-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-4xl);
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-xl);
  border-radius: 2rem;
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--duration-slow) var(--ease-premium);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s var(--ease-premium) calc(0.4s + var(--stagger-delay, 0s)) both;
  transform-style: preserve-3d;
  cursor: pointer;
}

.feature-card:nth-child(1) { --stagger-delay: 0s; }
.feature-card:nth-child(2) { --stagger-delay: 0.1s; }
.feature-card:nth-child(3) { --stagger-delay: 0.2s; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-premium);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--duration-slower) var(--ease-premium);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  left: 100%;
}

.feature-card:hover {
  animation: cardMorph 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: var(--blur-premium);
  box-shadow: var(--shadow-enterprise);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ✨ Stripe-Level Card Interactions */
.feature-card:active {
  transform: scale(0.98) perspective(1000px) rotateX(2deg);
  transition: transform 0.1s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.feature-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #475569;
}

.feature-content {
  flex: 1;
}

.feature-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: #475569;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.feature-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.feature-benefit {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  font-weight: 600;
  margin-top: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.feature-link:hover {
  color: #2563eb;
  gap: 0.75rem;
}

/* Background color variants */
.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-purple-100 {
  background-color: #e9d5ff;
}

.bg-green-100 {
  background-color: #dcfce7;
}

.group:hover .group-hover\:bg-blue-200 {
  background-color: #bfdbfe;
}

.group:hover .group-hover\:bg-purple-200 {
  background-color: #ddd6fe;
}

.group:hover .group-hover\:bg-green-200 {
  background-color: #bbf7d0;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .features-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .features-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .features-container {
    padding: 0 1rem;
  }
  
  .features-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }
  
  .features-title {
    font-size: 1.75rem;
  }
  
  .features-subtitle {
    font-size: 0.9rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .feature-description {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  .feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Mobile-specific styles for features page */
.mobile-sticky-nav {
  position: sticky;
  top: 80px;
  z-index: 40;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.mobile-nav-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-nav-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-nav-pill {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  color: #e9d5ff;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-pill.active {
  background: rgba(139, 92, 246, 0.8);
  color: #ffffff;
  border-color: #8b5cf6;
}

.mobile-accordion-section {
  margin-bottom: 1.5rem;
}

.mobile-accordion-header {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.mobile-accordion-header:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(139, 92, 246, 0.5);
}

.mobile-accordion-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}

.mobile-accordion-content.expanded {
  max-height: 2000px;
}

.mobile-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.mobile-hero-condensed {
  padding: 2rem 0 3rem 0;
}

.mobile-hero-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.mobile-hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.mobile-cta-compact {
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-cta-compact a {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
}

.mobile-stats-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mobile-comparison-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-comparison-content {
  min-width: 500px;
}

.mobile-floating-nav {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-floating-nav:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5);
}

/* Hide desktop-only elements on mobile */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  /* Reduce vertical spacing on mobile */
  section {
    padding: 2rem 0 !important;
  }
  
  /* Optimize grid layouts for mobile */
  [style*="gridTemplateColumns: 'repeat(auto-fit, minmax(350px, 1fr))'"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))'"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Condense padding on mobile */
  [style*="padding: '2rem'"] {
    padding: 1.25rem !important;
  }
  
  [style*="padding: '2.5rem'"] {
    padding: 1.5rem !important;
  }
  
  [style*="padding: '3rem'"] {
    padding: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  section {
    padding: 1.5rem 0 !important;
  }
  
  [style*="fontSize: '3rem'"] {
    font-size: 2rem !important;
  }
  
  [style*="fontSize: '2.5rem'"] {
    font-size: 1.75rem !important;
  }
  
  [style*="fontSize: '2rem'"] {
    font-size: 1.5rem !important;
  }
  
  [style*="fontSize: '1.5rem'"] {
    font-size: 1.25rem !important;
  }
  
  [style*="fontSize: '1.25rem'"] {
    font-size: 1.1rem !important;
  }
}

/* Touch-friendly interactions */
@media (pointer: coarse) {
  .mobile-nav-pill {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .mobile-accordion-header {
    padding: 1.25rem;
  }
  
  [style*="cursor: 'pointer'"] {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}
/* Pricing Section Styles */
.pricing-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 35%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.pricing-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.pricing-header {
  text-align: center;
  margin-bottom: 5rem;
}

.pricing-title {
  font-size: 2.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.pricing-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1.5rem;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 
    0 25px 50px rgba(139, 92, 246, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.popular {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.pricing-card.popular::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  opacity: 1;
}

.pricing-badge {
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.pricing-card:hover .pricing-icon-wrapper {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
}

.pricing-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #8b5cf6;
}

.pricing-plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: #8b5cf6;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 500;
}

.pricing-description {
  color: #94a3b8;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: #e2e8f0;
  font-weight: 500;
}

.pricing-feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #10b981;
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pricing-cta.primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: white;
}

.pricing-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.pricing-cta.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Floating orbs background */
.pricing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.pricing-orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.3);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.pricing-orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(59, 130, 246, 0.3);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.pricing-orb-3 {
  width: 100px;
  height: 100px;
  background: rgba(16, 185, 129, 0.3);
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pricing-card {
    padding: 2rem;
  }
  
  .pricing-title {
    font-size: 2.25rem;
  }
  
  .pricing-amount {
    font-size: 2.5rem;
  }
}
/* Demo Page Styling */
.demo-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 35%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.demo-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, #8b5cf6, #ec4899);
  filter: blur(60px);
  opacity: 0.3;
  animation: demoFloat 20s ease-in-out infinite;
}

.demo-orb-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.demo-orb-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -5%;
  background: linear-gradient(45deg, #3b82f6, #10b981);
  animation-delay: -7s;
}

.demo-orb-3 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: 20%;
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  animation-delay: -14s;
}

@keyframes demoFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.demo-glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.demo-glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.demo-step-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.demo-step-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.demo-step-card.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.demo-progress-bar {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  height: 8px;
}

.demo-progress-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.1s linear;
  background: linear-gradient(90deg, var(--progress-color, #8b5cf6), var(--progress-color-end, #ec4899));
}

.demo-feature-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.5s ease;
  border: 1px solid transparent;
}

.demo-feature-item.completed {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  animation: demoFeaturePulse 0.6s ease-out;
}

@keyframes demoFeaturePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.demo-metrics-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  animation: demoMetricsUpdate 0.3s ease-out;
}

@keyframes demoMetricsUpdate {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.demo-cta-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.demo-button-primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-button-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.demo-button-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-button-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.demo-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--icon-color, #8b5cf6), var(--icon-color-end, #ec4899));
  animation: demoIconPulse 2s ease-in-out infinite;
}

@keyframes demoIconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.demo-step-indicator {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--step-color, #8b5cf6);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.demo-step-indicator.completed {
  background: #10b981;
  animation: demoStepComplete 0.5s ease-out;
}

@keyframes demoStepComplete {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .demo-container {
    padding: 16px;
  }
  
  .demo-glass-card {
    margin: 0 8px;
  }
  
  .demo-cta-section {
    padding: 24px 16px;
  }
  
  .demo-button-primary,
  .demo-button-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Loading Animation */
.demo-loading {
  animation: demoLoadingPulse 1.5s ease-in-out infinite;
}

@keyframes demoLoadingPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* CTA Section Styles */
.cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-xl);
  border-radius: 2.5rem;
  padding: var(--spacing-4xl) var(--spacing-3xl);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s var(--ease-premium) 0.4s both;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b);
  animation: gradientShift 3s ease-in-out infinite;
}

.cta-title {
  font-size: 3.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1e293b 0%, #667eea 50%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 500;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 3.5rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 30px rgba(102, 126, 234, 0.4),
    0 4px 14px rgba(118, 75, 162, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(102, 126, 234, 0.5),
    0 8px 20px rgba(118, 75, 162, 0.4);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1.5rem 3.5rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cta-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.cta-primary:hover .cta-icon {
  transform: translateX(4px);
}

.cta-features {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}
/* Authentication Styles */
.auth-container {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 50%, #f3e8ff 100%);
  min-height: 100vh;
  display: flex;
}

.auth-brand-panel {
  width: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.auth-content-panel {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-form-container {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  width: 100%;
  max-width: 26rem;
  position: relative;
  transform: translateY(0);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.auth-form-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12), 0 12px 32px rgba(0, 0, 0, 0.08);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1f2937 0%, #3730a3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.form-input::-moz-placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #374151;
}

.password-toggle:focus {
  outline: none;
  color: #3b82f6;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  cursor: pointer;
}

.checkbox:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.forgot-password {
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #2563eb;
  text-decoration: underline;
}

.auth-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.auth-button:hover::before {
  left: 100%;
}

.auth-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.auth-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.auth-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  padding: 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.support-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.support-button {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.support-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #1f2937;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.auth-footer a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }
  
  .auth-brand-panel,
  .auth-content-panel {
    width: 100%;
  }
  
  .auth-brand-panel {
    min-height: 40vh;
  }
  
  .auth-content-panel {
    padding: 1rem;
  }
  
  .auth-form-container {
    padding: 2rem 1.5rem;
  }
  
  .support-buttons {
    flex-direction: column;
  }
}
/* Stats Section Styles */
.stats-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.stats-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.stats-header {
  text-align: center;
  margin-bottom: 4rem;
}

.stats-title {
  font-size: 2.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.stats-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 auto 4rem auto;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--blur-xl);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--duration-slow) var(--ease-premium);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s var(--ease-premium) calc(0.6s + var(--stagger-delay, 0s)) both;
  cursor: pointer;
  transform-style: preserve-3d;
}

.stat-item:nth-child(1) { --stagger-delay: 0s; }
.stat-item:nth-child(2) { --stagger-delay: 0.15s; }
.stat-item:nth-child(3) { --stagger-delay: 0.3s; }
.stat-item:nth-child(4) { --stagger-delay: 0.45s; }

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #eab308);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-premium);
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-premium);
}

.stat-item:hover::before,
.stat-item:hover::after {
  opacity: 1;
}

.stat-item:hover {
  animation: stripeHover 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: var(--blur-premium);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-enterprise);
}

/* ✨ Stripe-Level Interactive States */
.stat-item:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-black);
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #f59e0b 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: statsReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) calc(1s + var(--stagger-delay, 0s)) both,
             gradientShift 4s ease-in-out infinite;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.08);
  animation-play-state: paused;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  line-height: var(--line-height-normal);
  position: relative;
  z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* Testimonials Section Styles */
.testimonials-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 5rem;
}

.testimonials-title {
  font-size: 2.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.testimonials-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-xl);
  border-radius: 2rem;
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--duration-slow) var(--ease-premium);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s var(--ease-premium) calc(0.8s + var(--stagger-delay, 0s)) both;
}

.testimonial-card:nth-child(1) { --stagger-delay: 0s; }
.testimonial-card:nth-child(2) { --stagger-delay: 0.15s; }
.testimonial-card:nth-child(3) { --stagger-delay: 0.3s; }

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-premium);
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left var(--duration-slower) var(--ease-premium);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:hover::after {
  left: 100%;
}

.testimonial-card:hover {
  transform: translateY(-16px) scale(1.02);
  background: rgba(255, 255, 255, 1);
  backdrop-filter: var(--blur-premium);
  box-shadow: var(--shadow-premium);
  border-color: rgba(255, 255, 255, 0.4);
}

.testimonial-stars {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
  justify-content: flex-start;
}

.star-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #f59e0b;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.2));
}

.testimonial-quote {
  color: #475569;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 500;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -0.75rem;
  font-size: 3rem;
  color: #e2e8f0;
  font-style: normal;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-title {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}
/* 
  ===========================================
  📱 MOBILE NAVIGATION BUTTONS
  ===========================================
  Touch-optimized navigation buttons for mobile devices
  Similar styling to AI chat and collaboration buttons
*/

/* Mobile navigation should only appear on mobile within tenant dashboard context */
.mobile-nav-buttons {
  display: none; /* Hidden by default, shown only on mobile */
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 1rem;
  margin: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mobile-nav-item {
  width: 100%;
}

.mobile-nav-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 60px; /* Touch-friendly minimum height */
}

.mobile-nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
  transition: left 0.6s ease;
}

.mobile-nav-button:hover::before,
.mobile-nav-button.active::before {
  left: 100%;
}

.mobile-nav-button:hover {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #c084fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.mobile-nav-button.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  color: white;
}

.mobile-nav-button.active .mobile-nav-icon {
  color: white;
}

.mobile-nav-button.active .mobile-nav-label {
  color: white;
}

.mobile-nav-button.active .mobile-nav-chevron {
  color: white;
}

.mobile-nav-button-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 0.75rem;
  color: #6366f1;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid rgba(99, 102, 241, 0.1);
}

.mobile-nav-button:hover .mobile-nav-icon {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
  transform: scale(1.05);
  border-color: rgba(168, 85, 247, 0.3);
}

.mobile-nav-button.active .mobile-nav-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav-icon.loading {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border-color: rgba(251, 191, 36, 0.3);
}

.mobile-nav-text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.mobile-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 2rem;
  height: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-chevron {
  color: #6b7280;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-nav-submenu {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 0.75rem;
  border: 2px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-subitem {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  min-height: 48px; /* Touch-friendly */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-nav-subitem:last-child {
  margin-bottom: 0;
}

.mobile-nav-subitem:hover {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #7c3aed;
  transform: translateX(6px) scale(1.02);
  border-color: #c084fc;
  box-shadow: 0 4px 8px rgba(124, 58, 237, 0.15);
}

.mobile-nav-subitem.loading {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
}

.mobile-nav-subitem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 0.5rem;
  color: #6366f1;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.mobile-nav-subitem:hover .mobile-nav-subitem-icon {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
  transform: scale(1.1);
}

/* Active states for mobile buttons */
.mobile-nav-button.active .mobile-nav-label {
  color: white;
}

.mobile-nav-button.active .mobile-nav-chevron {
  color: white;
}

/* Loading animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.mobile-nav-button.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
  pointer-events: none;
}
@media (max-width: 768px) {
  .mobile-nav-buttons {
    display: block;
    margin: 0.75rem;
    padding: 1rem;
  }
  
  /* Only target specific mobile layouts - don't interfere with desktop sidebar */
  .tenant-dashboard-container .desktop-sidebar,
  .tenant-dashboard-container .traditional-nav {
    display: none;
  }
  
  /* Adjust main content area for mobile only within tenant dashboard */
  .tenant-dashboard-container .main-content-area {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Stack buttons on very small screens */
  @media (max-width: 480px) {
    .mobile-nav-buttons {
      margin: 0.5rem;
      padding: 0.75rem;
    }
    
    .mobile-nav-grid {
      gap: 0.75rem;
    }
    
    .mobile-nav-button {
      padding: 1rem;
      min-height: 64px;
    }
    
    .mobile-nav-label {
      font-size: 0.875rem;
    }
    
    .mobile-nav-icon {
      width: 2.5rem;
      height: 2.5rem;
    }
  }
  
  /* Extra small screens */
  @media (max-width: 360px) {
    .mobile-nav-buttons {
      margin: 0.25rem;
      padding: 0.5rem;
    }
    
    .mobile-nav-button {
      padding: 0.875rem;
      min-height: 60px;
    }
    
    .mobile-nav-label {
      font-size: 0.8rem;
    }
  }
}

/* Desktop and tablet - ensure mobile navigation is completely hidden */
@media (min-width: 769px) {
  .mobile-nav-buttons {
    display: none !important;
  }
  
  /* Ensure desktop sidebar functionality is preserved */
  .tenant-dashboard-container .desktop-sidebar,
  .tenant-dashboard-container .traditional-nav {
    display: block; /* Restore any hidden sidebars */
  }
}

/* Animation keyframes */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.mobile-nav-button {
  animation: fadeInScale 0.3s ease-out;
}

/* Loading state */
.mobile-nav-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.mobile-nav-button.loading .mobile-nav-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* 
  ===========================================
  🌟 MOBILE FLOATING NAVIGATION
  ===========================================
  Floating Action Button (FAB) navigation for mobile
  Replaces sidebar with floating buttons when needed
*/

.mobile-floating-nav {
  display: none; /* Hidden by default, shown only on mobile */
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 1000;
}

/* Main Toggle Button (FAB) */
.floating-nav-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
  transition: all 0.2s ease;
}

.floating-nav-toggle:hover {
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
  transform: scale(1.05);
}

.floating-nav-toggle:active {
  transform: scale(0.95);
}

/* Backdrop */
.floating-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}

/* Navigation Items Container */
.floating-nav-items {
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none; /* Allow clicks to pass through to individual items */
}

/* Individual Floating Navigation Items */
.floating-nav-item {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto; /* Allow clicks on individual items */
  transition: all 0.2s ease;
}

.floating-nav-item:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.floating-nav-item-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge on floating items */
.floating-nav-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Badge color variations */
.floating-badge-green {
  background-color: #10b981;
  color: white;
}

.floating-badge-blue {
  background-color: #3b82f6;
  color: white;
}

.floating-badge-orange {
  background-color: #f59e0b;
  color: white;
}

.floating-badge-red {
  background-color: #ef4444;
  color: white;
  animation: pulse 2s infinite;
}

.floating-badge-default {
  background-color: #6b7280;
  color: white;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Tooltip */
.floating-nav-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.floating-nav-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid rgba(0, 0, 0, 0.8);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Mobile-only display */
@media (max-width: 768px) {
  .mobile-floating-nav {
    display: block;
  }
}

/* Hide on desktop and tablet */
@media (min-width: 769px) {
  .mobile-floating-nav {
    display: none !important;
  }
}

/* Ensure proper layering above other mobile elements */
@media (max-width: 768px) {
  .mobile-floating-nav {
    z-index: 1000;
  }
  
  .floating-nav-toggle {
    z-index: 1001;
  }
  
  .floating-nav-backdrop {
    z-index: 999;
  }
  
  .floating-nav-items {
    z-index: 1000;
  }
}

/* Animation improvements for better performance */
.floating-nav-item,
.floating-nav-toggle {
  will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .floating-nav-toggle,
  .floating-nav-item,
  .floating-nav-tooltip {
    transition: none !important;
  }
}

/* Touch improvements for mobile */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .floating-nav-toggle {
    width: 64px;
    height: 64px;
  }
  
  .floating-nav-item {
    width: 54px;
    height: 54px;
  }
  
  .floating-nav-tooltip {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}
/* Theme Variables and Dynamic Styles */

:root {
  /* Default theme variables */
  --color-primary: #3B82F6;
  --color-secondary: #6B7280;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #06B6D4;
  --color-accent: #3B82F6;
  
  --border-radius: 8px;
  --font-family: 'Inter', sans-serif;
  --font-size-base: 16px;
  --spacing-density: 0.75rem;
  --transition-duration: 300ms;
  
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark {
  /* Dark theme colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Animation Keyframes */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Animation Classes */
.animate-shimmer {
  animation: shimmer 2s infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Font Size Variants */
.text-small {
  font-size: 14px;
}

.text-medium {
  font-size: 16px;
}

.text-large {
  font-size: 18px;
}

/* Density Variants */
.density-compact {
  --spacing-unit: 0.5rem;
  --padding-sm: 0.25rem;
  --padding-md: 0.5rem;
  --padding-lg: 0.75rem;
}

.density-comfortable {
  --spacing-unit: 0.75rem;
  --padding-sm: 0.5rem;
  --padding-md: 0.75rem;
  --padding-lg: 1rem;
}

.density-spacious {
  --spacing-unit: 1rem;
  --padding-sm: 0.75rem;
  --padding-md: 1rem;
  --padding-lg: 1.25rem;
}

/* Card Styles */
[data-card-style="flat"] .card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

[data-card-style="elevated"] .card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px var(--shadow-color);
}

[data-card-style="outlined"] .card {
  background: transparent;
  border: 2px solid var(--border-color);
  box-shadow: none;
}

/* Button Styles */
[data-button-style="rounded"] .btn {
  border-radius: var(--border-radius);
}

[data-button-style="square"] .btn {
  border-radius: 0;
}

[data-button-style="pill"] .btn {
  border-radius: 9999px;
}

/* Sidebar Position */
[data-sidebar-position="left"] .sidebar {
  left: 0;
  right: auto;
}

[data-sidebar-position="right"] .sidebar {
  right: 0;
  left: auto;
}

[data-sidebar-position="right"] .main-content {
  margin-left: 0;
  margin-right: 16rem;
}

/* Sidebar Styles */
[data-sidebar-style="compact"] .sidebar {
  width: 4rem;
}

[data-sidebar-style="compact"] .sidebar .nav-text {
  display: none;
}

[data-sidebar-style="expanded"] .sidebar {
  width: 16rem;
}

[data-sidebar-style="auto"] .sidebar {
  width: 16rem;
}

@media (max-width: 768px) {
  [data-sidebar-style="auto"] .sidebar {
    width: 4rem;
  }
  
  [data-sidebar-style="auto"] .sidebar .nav-text {
    display: none;
  }
}

/* Topbar Styles */
[data-topbar-style="fixed"] .topbar {
  position: fixed;
  top: 0;
  z-index: 40;
}

[data-topbar-style="static"] .topbar {
  position: static;
}

[data-topbar-style="hidden"] .topbar {
  display: none;
}

/* Animation Controls */
[data-animations-disabled="true"] * {
  transition: none !important;
  animation: none !important;
}

/* Theme-aware components */
.themed-bg-primary {
  background-color: var(--bg-primary);
}

.themed-bg-secondary {
  background-color: var(--bg-secondary);
}

.themed-bg-tertiary {
  background-color: var(--bg-tertiary);
}

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

.themed-text-secondary {
  color: var(--text-secondary);
}

.themed-text-tertiary {
  color: var(--text-tertiary);
}

.themed-border {
  border-color: var(--border-color);
}

.themed-shadow {
  box-shadow: 0 1px 3px var(--shadow-color);
}

.themed-accent {
  color: var(--color-accent);
}

.themed-accent-bg {
  background-color: var(--color-accent);
}

.themed-primary {
  color: var(--color-primary);
}

.themed-primary-bg {
  background-color: var(--color-primary);
}

/* Responsive theme adjustments */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Color scheme variants */
.theme-blue {
  --color-primary: #3B82F6;
  --color-accent: #3B82F6;
}

.theme-green {
  --color-primary: #10B981;
  --color-accent: #10B981;
}

.theme-purple {
  --color-primary: #8B5CF6;
  --color-accent: #8B5CF6;
}

.theme-pink {
  --color-primary: #EC4899;
  --color-accent: #EC4899;
}

.theme-orange {
  --color-primary: #F97316;
  --color-accent: #F97316;
}

.theme-red {
  --color-primary: #EF4444;
  --color-accent: #EF4444;
}

.theme-indigo {
  --color-primary: #6366F1;
  --color-accent: #6366F1;
}

.theme-teal {
  --color-primary: #14B8A6;
  --color-accent: #14B8A6;
}
/* ========================================
   GHOSTCRM ONBOARDING MODAL STYLES
   Single-file, no Tailwind dependency
   ======================================== */

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) rotate(-1deg);
  }
  75% {
    transform: translateY(-25px) rotate(1deg);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   CONTAINER / OVERLAY
   ======================================== */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  top: var(--unified-toolbar-h, 64px);
  z-index: 40;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
}

.onboarding-content {
  height: 100%;
  overflow-y: auto;
}

.onboarding-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.onboarding-wrapper {
  /* Widen onboarding modal so content can use more horizontal space */
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .onboarding-wrapper {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .onboarding-wrapper {
    padding: 0 2rem;
  }
}

/* ========================================
   MAIN CONTENT CARD
   ======================================== */

.content-card {
  border-radius: 1rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.content-card--light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
}

.content-card--dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

/* Ensure the main content card inside the onboarding wrapper can expand to the full modal width */
.onboarding-wrapper .content-card {
  max-width: 100%;
  width: 100%;
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: relative;
  z-index: 10;
  margin-bottom: 1.5rem;
}

.header-content {
  text-align: center;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.header-title--light {
  color: #111827;
}

.header-title--dark {
  color: #ffffff;
}

.header-subtitle {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.header-subtitle--light {
  color: #4b5563;
}

.header-subtitle--dark {
  color: #d1d5db;
}

/* Skip button (top right) */
.skip-button {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.skip-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  color: #ffffff;
}

.skip-button--light {
  background: #ffffff;
  color: #3b82f6;
  border: 1px solid #e5e7eb;
}

.skip-button--light:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ========================================
   PROGRESS STEPS
   ======================================== */

.progress-container {
  margin-bottom: 2.5rem;
}

.progress-steps {
  position: relative;
}

.progress-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  border: 3px solid;
  transition: all 0.5s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.step-icon--active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  transform: scale(1.1);
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.5),
    0 0 0 4px rgba(139, 92, 246, 0.2);
  color: #ffffff;
}

.step-icon--completed {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  box-shadow:
    0 6px 20px rgba(16, 185, 129, 0.4),
    0 0 0 3px rgba(16, 185, 129, 0.2);
  color: #ffffff;
}

.step-icon--pending {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.4);
}

.step-icon--pending-light {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.step-label {
  text-align: center;
  margin-top: 0.75rem;
}

.step-label-text {
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
}

.step-label--active {
  color: #8b5cf6;
}

.step-label--active-light {
  color: #111827;
}

.step-label--completed {
  color: #10b981;
}

.step-label--completed-light {
  color: #059669;
}

.step-label--pending {
  color: rgba(255, 255, 255, 0.5);
}

.step-label--pending-light {
  color: #9ca3af;
}

.connecting-line {
  position: absolute;
  top: 1.5rem;
  left: 100%;
  width: 2rem;
  height: 0.25rem;
  transition: all 0.5s;
  border-radius: 9999px;
  z-index: 0;
}

.connecting-line--completed {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.connecting-line--pending {
  background: rgba(255, 255, 255, 0.15);
}

.connecting-line--pending-light {
  background: #e5e7eb;
}

.step-counter {
  text-align: center;
}

.counter-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.counter-badge--dark {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.counter-badge--light {
  background: #f3f4f6;
  color: #4b5563;
}

/* ========================================
   STEP CONTENT / CARD
   ======================================== */

.step-content {
  position: relative;
  z-index: 10;
}

.step-card {
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  /* Expand step card to use modal width so fields and content don't force horizontal scrolling */
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  transition: all 0.4s ease-out;
}

.step-card--light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.step-card--dark {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Step titles/subtitles */
.step-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-title--light {
  color: #111827;
}

.step-title--dark {
  color: #ffffff;
}

.step-subtitle {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.step-subtitle--light {
  color: #4b5563;
}

.step-subtitle--dark {
  color: rgba(255, 255, 255, 0.8);
}

.subdomain-info {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.subdomain-info--light {
  color: #6b7280;
}

.subdomain-info--dark {
  color: rgba(255, 255, 255, 0.7);
}

.subdomain-info--highlight {
  font-weight: 600;
}

/* Small helper text */
.label-note {
  font-size: 0.75rem;
  line-height: 1rem;
  opacity: 0.75;
  font-weight: 400;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  /* Let navigation use full width of the step card/modal */
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-button--disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.nav-button--disabled:hover {
  transform: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-button--prev {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nav-button--prev:hover:not(.nav-button--disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.nav-button--prev-light {
  background: #ffffff;
  border: 2px solid #d1d5db;
  color: #374151;
}

.nav-button--prev-light:hover:not(.nav-button--disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.nav-button--next {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  color: #ffffff;
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-button--next:hover:not(.nav-button--disabled) {
  box-shadow:
    0 12px 35px rgba(139, 92, 246, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.2);
}

.nav-button--loading {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-container {
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-label--light {
  color: #374151;
}

.form-label--dark {
  color: #ffffff;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  border: 2px solid;
  transition: all 0.3s;
}

.form-input--light {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

.form-input--dark {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.form-input--dark::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input--dark::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input--readonly {
  cursor: not-allowed;
  opacity: 0.7;
}

.form-input--readonly-light {
  background: #f9fafb;
}

.form-input--readonly-dark {
  background: rgba(255, 255, 255, 0.05);
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

/* Input suffix (subdomain, etc.) */
.input-group {
  display: flex;
}

.input-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0 0.75rem 0.75rem 0;
  border: 2px solid;
  border-left: none;
  font-size: 1rem;
  font-weight: 500;
}

.input-suffix--light {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
}

.input-suffix--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   ERROR STYLES
   ======================================== */

.error-container {
  padding: 1rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
  border: 2px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.error-container--light {
  background: #fef2f2;
}

.error-container--dark {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2),
    rgba(220, 38, 38, 0.2)
  );
  backdrop-filter: blur(10px);
}

.error-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.error-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.error-icon-text {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

.error-text {
  font-size: 1rem;
  font-weight: 600;
}

.error-text--light {
  color: #b91c1c;
}

.error-text--dark {
  color: #fca5a5;
}

/* ========================================
   TEAM INVITATION INPUTS
   ======================================== */

.team-invite-input {
  width: 320px !important;
  font-size: 16px !important;
  min-height: 52px !important;
  font-weight: 500 !important;
}

.team-invite-input::-moz-placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.team-invite-input::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.team-invite-select {
  width: 120px !important;
  font-size: 14px !important;
  min-height: 52px !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
}

.team-invite-select option {
  color: #111827 !important;
  background: #ffffff !important;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.loading-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.loading-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.loading-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   TEAM SETUP SPECIFIC
   ======================================== */

.team-pro-tip {
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.team-pro-tip--light {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.team-pro-tip--dark {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(245, 158, 11, 0.05)
  );
  border: 1px solid rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(10px);
}

.team-pro-tip-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.team-pro-tip-text--light {
  color: #92400e;
}

.team-pro-tip-text--dark {
  color: #fbbf24;
}

.team-member-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.team-member-indicator {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border-width: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-member-indicator--light {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.team-member-indicator--dark {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.team-member-indicator-number {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

.team-member-indicator-number--light {
  color: #6b7280;
}

.team-member-indicator-number--dark {
  color: rgba(255, 255, 255, 0.7);
}

.team-add-button {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 300ms;
  transform: scale(1);
}

.team-add-button:hover {
  transform: scale(1.05);
}

.team-add-button--light {
  color: #2563eb;
  background-color: #eff6ff;
}

.team-add-button--light:hover {
  color: #1e40af;
  background-color: #eff6ff;
}

.team-add-button--dark {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.team-add-button--dark:hover {
  color: #bfdbfe;
}

/* ========================================
   STEP ICON CONTAINERS
   ======================================== */

.stepIconContainer {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.stepIconContainerTeam {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.stepIconContainerBilling {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.stepIconContainerIntegrations {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* ========================================
   PRICING / BILLING COMPONENT
   ======================================== */

.pricing-card {
  border-width: 2px;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: scale(1.05);
}

.pricing-card--light {
  background: #ffffff;
  border-color: #e5e7eb;
}

.pricing-card--dark {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.pricing-card--popular {
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pricing-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem auto;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-tier-letter {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.pricing-tier-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-tier-title--light {
  color: #111827;
}

.pricing-tier-title--dark {
  color: #ffffff;
}

.pricing-tier-description {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.pricing-tier-description--light {
  color: #6b7280;
}

.pricing-tier-description--dark {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-amount {
  font-size: 2rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-amount--light {
  color: #111827;
}

.pricing-amount--dark {
  color: #ffffff;
}

.pricing-amount-suffix {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  opacity: 0.7;
}

.pricing-setup-fee {
  font-size: 0.75rem;
  line-height: 1rem;
  margin-bottom: 1rem;
}

.pricing-setup-fee--light {
  color: #6b7280;
}

.pricing-setup-fee--dark {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-feature-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-feature-icon svg {
  width: 0.625rem;
  height: 0.625rem;
  color: #ffffff;
}

.pricing-feature-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.pricing-feature-text--light {
  color: #374151;
}

.pricing-feature-text--dark {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-select-button {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  line-height: 1.25rem;
  border: none;
  cursor: pointer;
}

.pricing-select-button:hover {
  transform: scale(1.05);
}

.pricing-skip-text {
  margin-top: 2rem;
  text-align: center;
}

.pricing-skip-text--light {
  color: #6b7280;
}

.pricing-skip-text--dark {
  color: rgba(255, 255, 255, 0.8);
}

/* Extra pricing text style variants */
.pricing-plan-header {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-plan-description {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.pricing-plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-plan-setup,
.pricing-plan-setup-fee {
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

/* ========================================
   COMPLETION COMPONENT
   ======================================== */

.completion-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.completion-icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.completion-icon--light,
.completion-icon--dark {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* ========================================
   SELECT DROPDOWN OPTIONS
   ======================================== */

.select-option {
  background: #1f2937;
  color: #ffffff;
}

.select-option-light {
  background: #ffffff;
  color: #111827;
}

/* ========================================
   UTILITY CLASSES (LOCAL “TAILWIND”)
   ======================================== */

/* Layout & display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-md-cols-3 { display: grid; grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-cols-2-md { grid-template-columns: repeat(2, 1fr); }
  .grid-md-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Width / height */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

/* Max width */
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.m-auto { margin: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Padding */
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Gap / vertical spacing */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Border radius & border */
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.border-2 { border-width: 2px; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text colors */
.text-white { color: #ffffff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-400 { color: #60a5fa; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-blue-900 { color: #1e3a8a; }

.text-white-80,
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

.text-white-70,
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }

/* Opacity */
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }

/* Shadow */
.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Position helpers */
.relative { position: relative; }
.absolute { position: absolute; }

.top-minus-3,
.top-negative-3 { top: -0.75rem; }

.left-half { left: 50%; }

.transform,
.transform-translate-x-minus-half {
  transform: translateX(-50%);
}

/* Misc utilities */
.cursor-pointer { cursor: pointer; }
.text-center { text-align: center; }
.flex-shrink-0 { flex-shrink: 0; }

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 { transition-duration: 300ms; }

.hover-transform:hover,
.hover-scale-105:hover {
  transform: scale(1.05);
}

.hover\:underline:hover {
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE FOR MODAL
   ======================================== */

@media (max-width: 768px) {
  .onboarding-wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .progress-icons {
    gap: 1rem;
  }

  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .connecting-line {
    width: 1.5rem;
  }

  .navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-button {
    width: 100%;
    justify-content: center;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ========================================
   INTEGRATION ONBOARDING STYLES
   ======================================== */

.integration-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  padding: 2rem 0;
}

.integration-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.integration-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.integration-header {
  text-align: center;
  margin-bottom: 2rem;
}

.integration-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.integration-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.integration-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.integration-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.integration-progress-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.integration-progress-dot--active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  transform: scale(1.5);
}

.integration-step-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.integration-option {
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
}

.integration-option:hover {
  transform: scale(1.02);
}

.integration-option--selected {
  border: 2px solid rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.integration-option--recommended {
  border: 2px solid rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.integration-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.integration-option-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.integration-option-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.integration-option-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.integration-option-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.integration-option-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.integration-option-feature-icon {
  width: 1rem;
  height: 1rem;
  color: #10b981;
  flex-shrink: 0;
}

.integration-cost-summary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  backdrop-filter: blur(10px);
}

.integration-cost-title {
  font-size: 1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

.integration-cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.integration-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.integration-cost-total {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.integration-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.integration-nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
}

.integration-nav-button--primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.integration-nav-button--primary:hover {
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
  transform: scale(1.05);
}

.integration-nav-button--secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.integration-nav-button--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.integration-nav-button--skip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.integration-nav-button--skip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* 
  ===========================================
  🔧 STANDALONE CSS UTILITIES
  ===========================================
  Custom utility classes (not Tailwind dependent)
*/

/* ========== ANIMATIONS ========== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Animation utility classes */
.fade-in { animation: fadeIn 0.3s ease-in-out; }
.fade-in-up { animation: fadeInUp 0.3s ease-out; }
.fade-in-down { animation: fadeInDown 0.3s ease-out; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* ========== DISPLAY ========== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ========== FLEXBOX ========== */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }

/* ========== GRID ========== */
.grid-1 { display: grid; grid-template-columns: 1fr; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ========== SPACING ========== */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Padding */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-auto { margin: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mr-auto { margin-right: auto; }

/* ========== SIZING ========== */
/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-half { width: 50%; }
.w-third { width: 33.333333%; }
.w-two-thirds { width: 66.666667%; }
.w-quarter { width: 25%; }
.w-three-quarters { width: 75%; }
.w-fit { width: -moz-fit-content; width: fit-content; }

/* Height */
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.h-fit { height: -moz-fit-content; height: fit-content; }
.min-h-screen { min-height: 100vh; }
.min-h-full { min-height: 100%; }

/* Max Width */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }
.max-w-screen-sm { max-width: 640px; }
.max-w-screen-md { max-width: 768px; }
.max-w-screen-lg { max-width: 1024px; }
.max-w-screen-xl { max-width: 1280px; }

/* ========== POSITIONING ========== */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.static { position: static; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ========== OVERFLOW ========== */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* ========== TYPOGRAPHY ========== */
/* Font sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Font weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Line height */
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* ========== COLORS ========== */
/* Text colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-50 { color: #f9fafb; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #059669; }
.text-red-600 { color: #dc2626; }
.text-purple-600 { color: #7c3aed; }

/* Background colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-500 { background-color: #10b981; }
.bg-red-500 { background-color: #ef4444; }

/* ========== BORDERS ========== */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-0 { border-width: 0; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-300 { border-color: #93c5fd; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ========== SHADOWS ========== */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-none { box-shadow: none; }

/* ========== EFFECTS ========== */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ========== INTERACTIVITY ========== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

.select-none { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ========== TRANSFORMS & TRANSITIONS ========== */
.transition { 
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
  transition-duration: 150ms; 
}
.transition-all { 
  transition-property: all; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
  transition-duration: 150ms; 
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transform { transform: translateZ(0); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* ========== RESPONSIVE HELPERS ========== */
@media (max-width: 640px) {
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:mt-4 { margin-top: 1rem; }
}

@media (max-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:mt-6 { margin-top: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
  .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:mt-8 { margin-top: 2rem; }
}
/* Marketing Page Layout */
.marketing-page {
  background: linear-gradient(180deg, 
    rgba(102, 126, 234, 1) 0%,
    rgba(118, 75, 162, 1) 40%,
    #ffffff 40%
  );
}

/* Mobile Marketing Header Improvements */
@media (max-width: 640px) {
  .marketing-page nav {
    padding: 0 0.5rem !important;
  }
  
  .marketing-page nav > div {
    padding: 0 0.5rem !important;
    gap: 0.25rem !important;
  }
  
  /* Prevent header overflow on small screens */
  .marketing-page nav {
    overflow: hidden;
  }
  
  /* Ensure mobile menu doesn't cause layout shifts */
  .marketing-page nav button {
    flex-shrink: 0 !important;
  }
}

/* Section Transitions */
.section-transition {
  height: 100px;
  background: linear-gradient(180deg, 
    rgba(118, 75, 162, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.section-divider {
  padding: 5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.divider-line {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(148, 163, 184, 0.4) 20%,
    rgba(59, 130, 246, 0.6) 50%,
    rgba(148, 163, 184, 0.4) 80%,
    transparent 100%
  );
  position: relative;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.divider-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(229, 231, 235, 0.3);
}
/*
  =========================================
  🎨 GHOST AUTO CRM - OPTIMIZED CSS SYSTEM
  =========================================
  
  📁 MODULAR ARCHITECTURE:
  ├── 🏗️  Base Foundation       (Reset, Variables, Animations)
  ├── 🧩  Component Library     (Buttons, Modals, Cards) 
  ├── 🔧  Utility System        (Layout, Spacing, Typography)
  ├── 📄  Page Modules          (Marketing, Auth, Dashboard)
  └── 🎯  Legacy Imports        (Existing Components)
  
  ⚡ PERFORMANCE: Modular loading, tree-shakeable
  🔧 MAINTAINABLE: Clear separation of concerns
  📱 RESPONSIVE: Mobile-first design system
  🎨 CONSISTENT: Unified design tokens
*/

/* 
  ===========================================
  🏗️ BASE FOUNDATION
  ===========================================
*/

/* 
  ===========================================
  🧩 COMPONENT LIBRARY  
  ===========================================
*/

/* 
  ===========================================
  📋 ONBOARDING SYSTEM
  ===========================================
*/

/* 
  ===========================================
  🎯 STEP ICON CONTAINERS (DIRECT STYLES)
  ===========================================
  Emergency fallback for step icon containers
*/
.stepIconContainer {
  width: 4rem !important;
  height: 4rem !important;
  border-radius: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

.stepIconContainerTeam {
  width: 5rem !important;
  height: 5rem !important;
  border-radius: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #10b981, #047857) !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
}

.stepIconContainerBilling {
  width: 5rem !important;
  height: 5rem !important;
  border-radius: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3) !important;
}

/* 
  ===========================================
  🔧 UTILITY SYSTEM
  ===========================================
*/

/* 
  ===========================================
  📄 PAGE MODULES
  ===========================================
*/

/* 
  ===========================================
  🎨 LEGACY & CORE STYLES
  ===========================================
  Remaining styles to be gradually modularized
*/

/* Basic form elements */
.input, input, textarea, select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #2563eb33;
}

/* Card component */
.card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Typography utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.whitespace-nowrap { white-space: nowrap; }
.truncate { 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

/* Color utilities */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-50 { color: #f9fafb; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }

.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-blue-900 { color: #1e3a8a; }

.text-purple-600 { color: #9333ea; }
.text-purple-700 { color: #7c3aed; }

.text-yellow-600 { color: #d97706; }
.text-yellow-700 { color: #b45309; }

/* Background colors */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }

.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-600 { background-color: #dc2626; }

.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }

.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }

.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef3c7; }

.bg-purple-50 { background-color: #faf5ff; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-purple-600 { background-color: #9333ea; }

/* Size utilities */
.w-full { width: 100%; }
.w-1 { width: 0.25rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }

.h-full { height: 100%; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Border utilities */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }
.border-l { border-left-width: 1px; }
.border-t { border-top-width: 1px; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-600 { border-color: #2563eb; }
.border-transparent { border-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Interaction utilities */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.transition-colors { 
  transition-property: color, background-color, border-color; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
  transition-duration: 150ms; 
}
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-shadow { 
  transition-property: box-shadow; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
  transition-duration: 150ms; 
}

/* Hover states */
.hover-bg-gray-50:hover { background-color: #f9fafb; }
.hover-bg-blue-100:hover { background-color: #dbeafe; }
.hover-bg-blue-700:hover { background-color: #1d4ed8; }
.hover-text-blue-500:hover { color: #3b82f6; }
.hover-text-blue-700:hover { color: #1d4ed8; }
.hover-text-gray-700:hover { color: #374151; }
.hover-text-gray-900:hover { color: #111827; }
.hover-shadow-lg:hover { 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
}

/* Focus states */
.focus-ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.focus-ring-blue-500:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.focus-border-blue-500:focus { border-color: #3b82f6; }

/* Additional utilities for backward compatibility */
.capitalize { text-transform: capitalize; }
.resize-none { resize: none; }
.object-cover { -o-object-fit: cover; object-fit: cover; }

/* Scrollbar utilities */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* GPU acceleration for performance */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/*
  ===========================================
  🔧 COLLABORATION SIDEBAR POSITIONING FIX
  ===========================================
  Ensure collaboration sidebar stays on the right side
*/

/* Force collaboration sidebar to appear on right side */
aside[style*="right: 0"] {
  position: fixed !important;
  right: 0 !important;
  top: var(--unified-toolbar-h, 64px) !important;
  z-index: 30 !important;
  height: calc(100vh - var(--unified-toolbar-h, 64px)) !important;
  display: block !important;
}

/* Ensure no other elements interfere with right-side positioning */
.fixed.right-0 {
  position: fixed !important;
  right: 0 !important;
}
/* styles/modal.css */

/* Overlay */
.modal-overlay {
  position: fixed; 
  inset: 0;
  display: grid; 
  place-items: center;
  background: radial-gradient(1200px 800px at center, rgba(0,0,0,0.6), rgba(0,0,0,0.72));
  backdrop-filter: blur(2px);
  z-index: 9999;
  animation: fadeIn .18s ease-out;
  padding: 20px; /* Add padding for mobile */
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Panel */
.modal-panel {
  background: #e9f0ff; /* light bluish backdrop to match screenshot */
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  transform: translateY(6px);
  animation: slideUp .22s cubic-bezier(.2,.8,.3,1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
@keyframes slideUp { from { opacity: .6; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }

/* Header */
.modal-header {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 56px 10px;
  background: linear-gradient(90deg, #ecf3ff, #eef2ff);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.modal-close {
  position: absolute; right: 12px; top: 10px;
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.16);
  background: #fff;
  font-size: 18px; cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.modal-close:hover { background: #f6f7fb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* Body */
.modal-body {
  padding: 24px 28px 26px;
  overflow-y: auto;
  flex: 1;
  min-height: 0; /* Important for flex scrolling */
}

/* Marketplace hero */
.mp-hero {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,.6));
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px; padding: 18px;
  position: relative;
  overflow: hidden;
}

.mp-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
  z-index: 0;
}

.mp-hero > * {
  position: relative;
  z-index: 1;
}

.mp-emoji {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px; background: #fff; 
  box-shadow: 0 6px 18px rgba(99,102,241,.15);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.mp-hero-text h3 {
  margin: 0 0 6px; font-weight: 800; font-size: 20px; color: #0f172a; text-align: center;
}
.mp-hero-text p {
  margin: 0; font-size: 14px; color: #475569; text-align: center;
}

/* Category grid */
.mp-grid {
  margin-top: 18px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 1200px) { .mp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { .mp-grid { grid-template-columns: 1fr; } }

.mp-card {
  background: #fdfdfd;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  overflow: hidden;
}

.mp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--category-gradient, linear-gradient(90deg, #3b82f6, #8b5cf6));
  opacity: 0;
  transition: opacity .2s ease;
}

.mp-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 12px 28px rgba(0,0,0,.12); 
  border-color: rgba(99,102,241,.35); 
}

.mp-card:hover::before {
  opacity: 1;
}

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

.mp-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--category-gradient, linear-gradient(135deg, #3b82f6, #8b5cf6));
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.mp-card-info {
  flex: 1;
}

.mp-card-title { 
  font-weight: 700; 
  color: #0f172a; 
  margin-bottom: 2px;
}

.mp-card-sub { 
  font-size: 12px; 
  color: #4f46e5; 
  font-weight: 600;
}
.mp-card-desc { margin: 6px 0 12px; color: #475569; font-size: 14px; }
.mp-link { border: 0; background: none; color: #1d4ed8; font-weight: 600; cursor: pointer; }

/* Divider */
.mp-divider { height: 1px; background: rgba(0,0,0,.08); margin: 18px 0; }

/* Templates */
.mp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mp-section-head h4 { margin: 0; font-weight: 800; color: #0f172a; }

.mp-templates {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 20px;
}

/* Responsive adjustments for templates */
@media (max-width: 920px) {
  .mp-templates {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 640px) {
  .mp-templates {
    grid-template-columns: 1fr;
  }
}

/* Quick Tip Text */
.mp-quick-tip {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Enhanced Icon Sizing */
.mp-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mp-templates {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 1200px) { .mp-templates { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { .mp-templates { grid-template-columns: 1fr; } }

.mp-template {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 12px;
  align-items: center; padding: 14px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08); background: #fff; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  overflow: hidden;
}

.mp-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  opacity: 0;
  transition: opacity .2s ease;
}

.mp-template:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 28px rgba(0,0,0,.1); 
  border-color: rgba(34,197,94,.4); 
}

.mp-template:hover::before {
  opacity: 1;
}

.mp-template-preview {
  height: 64px; border-radius: 10px; display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg,#e0e7ff,#f1f5f9);
  color: #334155; font-weight: 700;
  font-size: 20px;
  transition: transform .2s ease;
}

.mp-template:hover .mp-template-preview {
  transform: scale(1.05);
}

.mp-chart-type {
  font-size: 9px;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.mp-template-meta .mp-template-name { 
  font-weight: 700; 
  color: #0f172a; 
  margin-bottom: 2px;
}

.mp-template-meta .mp-template-sub { 
  font-size: 12px; 
  color: #64748b; 
}

.mp-template-add { 
  color: #16a34a; 
  font-weight: 700; 
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  transition: all .15s ease;
}

.mp-template:hover .mp-template-add {
  background: #16a34a;
  color: white;
  transform: scale(1.05);
}

/* Actions */
.mp-actions { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  margin-top: 16px; 
}

.mp-action-primary, .mp-action-secondary {
  border-radius: 10px; 
  padding: 12px 18px; 
  font-weight: 700; 
  cursor: pointer; 
  border: 1px solid transparent;
  transition: all .15s ease;
  position: relative;
  overflow: hidden;
}

.mp-action-primary  { 
  background: linear-gradient(135deg, #4f46e5, #7c3aed); 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.mp-action-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}

.mp-action-primary:hover { 
  background: linear-gradient(135deg, #4338ca, #6d28d9); 
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79,70,229,.4);
}

.mp-action-primary:hover::before {
  left: 100%;
}

.mp-action-secondary { 
  background: rgba(255,255,255,.9); 
  color: #111827; 
  border-color: rgba(0,0,0,.12); 
  backdrop-filter: blur(10px);
}

.mp-action-secondary:hover { 
  background: #f8fafc; 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Breadcrumb Navigation */
.mp-breadcrumb {
  margin: 16px 0 12px 0;
}

.mp-breadcrumb-link {
  background: none;
  border: none;
  color: #4f46e5;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-breadcrumb-link:hover {
  background: rgba(79,70,229,.1);
  transform: translateX(-2px);
}

/* Empty State */
.mp-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  border: 2px dashed rgba(0,0,0,.1);
  margin: 20px 0;
}

.mp-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.mp-empty-state h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.mp-empty-state p {
  margin: 0 0 24px 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-panel {
    width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 40px);
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 16px 48px 12px 20px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-body {
    padding: 16px 20px 20px;
  }
  
  .mp-hero {
    padding: 14px;
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }
  
  .mp-hero-text h3 {
    font-size: 16px;
  }
  
  .mp-hero-text p {
    font-size: 13px;
  }
  
  .mp-grid {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  
  .mp-card {
    padding: 12px;
  }
}
/* ========================================
   GHOSTCRM ONBOARDING MODAL STYLES
   Single-file, no Tailwind dependency
   ======================================== */

/* ===== ANIMATIONS ===== */
@keyframes onboarding_float__2wktX {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) rotate(-1deg);
  }
  75% {
    transform: translateY(-25px) rotate(1deg);
  }
}

@keyframes onboarding_pulse-glow__0zcQR {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

@keyframes onboarding_gradient-shift__XcI35 {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes onboarding_fadeInUp__Rc89L {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes onboarding_scaleIn__6lCS4 {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes onboarding_spin__Xpo8x {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   CONTAINER / OVERLAY
   ======================================== */

.onboarding_onboarding-overlay__WpRh9 {
  position: fixed;
  inset: 0;
  top: var(--unified-toolbar-h, 64px);
  z-index: 40;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
}

.onboarding_onboarding-content__r13Nn {
  height: 100%;
  overflow-y: auto;
}

.onboarding_onboarding-container__lLIOT {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.onboarding_onboarding-wrapper__iTpe_ {
  /* Widen onboarding modal so content can use more horizontal space */
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .onboarding_onboarding-wrapper__iTpe_ {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .onboarding_onboarding-wrapper__iTpe_ {
    padding: 0 2rem;
  }
}

/* ========================================
   MAIN CONTENT CARD
   ======================================== */

.onboarding_content-card__FtUNf {
  border-radius: 1rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.onboarding_content-card--light__daCdx {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
}

.onboarding_content-card--dark__emRXn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

/* Ensure the main content card inside the onboarding wrapper can expand to the full modal width */
.onboarding_onboarding-wrapper__iTpe_ .onboarding_content-card__FtUNf {
  max-width: 100%;
  width: 100%;
}

/* ========================================
   HEADER
   ======================================== */

.onboarding_header__UzXuT {
  position: relative;
  z-index: 10;
  margin-bottom: 1.5rem;
}

.onboarding_header-content__kCPFf {
  text-align: center;
}

.onboarding_header-logo__jP8OV {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.onboarding_logo-icon__ZEvfJ {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.onboarding_header-title__Im6dH {
  font-size: 1.5rem;
  font-weight: 700;
}

.onboarding_header-title--light__qt1lf {
  color: #111827;
}

.onboarding_header-title--dark__su1fe {
  color: #ffffff;
}

.onboarding_header-subtitle__U9098 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.onboarding_header-subtitle--light__YeimR {
  color: #4b5563;
}

.onboarding_header-subtitle--dark__sXbua {
  color: #d1d5db;
}

/* Skip button (top right) */
.onboarding_skip-button__RYUYp {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.onboarding_skip-button__RYUYp:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  color: #ffffff;
}

.onboarding_skip-button--light__wUv6Q {
  background: #ffffff;
  color: #3b82f6;
  border: 1px solid #e5e7eb;
}

.onboarding_skip-button--light__wUv6Q:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ========================================
   PROGRESS STEPS
   ======================================== */

.onboarding_progress-container__e8ThP {
  margin-bottom: 2.5rem;
}

.onboarding_progress-steps__Yvzc6 {
  position: relative;
}

.onboarding_progress-icons__6e8Vn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.onboarding_progress-step__9AA_g {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboarding_step-icon__J7c_4 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  border: 3px solid;
  transition: all 0.5s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.onboarding_step-icon--active__x4Fbt {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  transform: scale(1.1);
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.5),
    0 0 0 4px rgba(139, 92, 246, 0.2);
  color: #ffffff;
}

.onboarding_step-icon--completed__Yzzdc {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  box-shadow:
    0 6px 20px rgba(16, 185, 129, 0.4),
    0 0 0 3px rgba(16, 185, 129, 0.2);
  color: #ffffff;
}

.onboarding_step-icon--pending__6IKFf {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.4);
}

.onboarding_step-icon--pending-light__2JER2 {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.onboarding_step-label__xkFDC {
  text-align: center;
  margin-top: 0.75rem;
}

.onboarding_step-label-text__M5dah {
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
}

.onboarding_step-label--active__KfX_Q {
  color: #8b5cf6;
}

.onboarding_step-label--active-light__kjP6o {
  color: #111827;
}

.onboarding_step-label--completed__ui6qH {
  color: #10b981;
}

.onboarding_step-label--completed-light__UtRyT {
  color: #059669;
}

.onboarding_step-label--pending__ZEhUC {
  color: rgba(255, 255, 255, 0.5);
}

.onboarding_step-label--pending-light__7gE_L {
  color: #9ca3af;
}

.onboarding_connecting-line__nQO4a {
  position: absolute;
  top: 1.5rem;
  left: 100%;
  width: 2rem;
  height: 0.25rem;
  transition: all 0.5s;
  border-radius: 9999px;
  z-index: 0;
}

.onboarding_connecting-line--completed__VwIMy {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.onboarding_connecting-line--pending__h8m0d {
  background: rgba(255, 255, 255, 0.15);
}

.onboarding_connecting-line--pending-light__t6BZM {
  background: #e5e7eb;
}

.onboarding_step-counter__PXE3h {
  text-align: center;
}

.onboarding_counter-badge__wDJOM {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.onboarding_counter-badge--dark__nYdyL {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.onboarding_counter-badge--light__0jYmy {
  background: #f3f4f6;
  color: #4b5563;
}

/* ========================================
   STEP CONTENT / CARD
   ======================================== */

.onboarding_step-content__XjJ2N {
  position: relative;
  z-index: 10;
}

.onboarding_step-card__ajBi5 {
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  /* Expand step card to use modal width so fields and content don't force horizontal scrolling */
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  transition: all 0.4s ease-out;
}

.onboarding_step-card--light__LR9sI {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.onboarding_step-card--dark__WMfv_ {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Step titles/subtitles */
.onboarding_step-title__JE721 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.onboarding_step-title--light___GI1_ {
  color: #111827;
}

.onboarding_step-title--dark__tYsUt {
  color: #ffffff;
}

.onboarding_step-subtitle__g_Gef {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.onboarding_step-subtitle--light__ip1sc {
  color: #4b5563;
}

.onboarding_step-subtitle--dark__Z9I4x {
  color: rgba(255, 255, 255, 0.8);
}

.onboarding_subdomain-info__p3UeR {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.onboarding_subdomain-info--light__NJAT2 {
  color: #6b7280;
}

.onboarding_subdomain-info--dark__g6aQa {
  color: rgba(255, 255, 255, 0.7);
}

.onboarding_subdomain-info--highlight__3QtM5 {
  font-weight: 600;
}

/* Small helper text */
.onboarding_label-note__X5OJD {
  font-size: 0.75rem;
  line-height: 1rem;
  opacity: 0.75;
  font-weight: 400;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

.onboarding_navigation__VotSS {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  /* Let navigation use full width of the step card/modal */
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.onboarding_nav-button__PLLCV {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.onboarding_nav-button__PLLCV:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.onboarding_nav-button--disabled__xJeAJ {
  cursor: not-allowed;
  opacity: 0.5;
}

.onboarding_nav-button--disabled__xJeAJ:hover {
  transform: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.onboarding_nav-button--prev__I4nB0 {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.onboarding_nav-button--prev__I4nB0:hover:not(.onboarding_nav-button--disabled__xJeAJ) {
  background: rgba(255, 255, 255, 0.15);
}

.onboarding_nav-button--prev-light__OcaEb {
  background: #ffffff;
  border: 2px solid #d1d5db;
  color: #374151;
}

.onboarding_nav-button--prev-light__OcaEb:hover:not(.onboarding_nav-button--disabled__xJeAJ) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.onboarding_nav-button--next__g4B0c {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  color: #ffffff;
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.onboarding_nav-button--next__g4B0c:hover:not(.onboarding_nav-button--disabled__xJeAJ) {
  box-shadow:
    0 12px 35px rgba(139, 92, 246, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.2);
}

.onboarding_nav-button--loading__a3AtI {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* ========================================
   FORM STYLES
   ======================================== */

.onboarding_form-container__sh4H2 {
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.onboarding_form-group__0mayT {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding_form-label__xt1Sd {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.onboarding_form-label--light__CZYgD {
  color: #374151;
}

.onboarding_form-label--dark__a_CDq {
  color: #ffffff;
}

.onboarding_form-input__tzwXa {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  border: 2px solid;
  transition: all 0.3s;
}

.onboarding_form-input--light__91dzJ {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

.onboarding_form-input--dark___LByu {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.onboarding_form-input--dark___LByu::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.onboarding_form-input--dark___LByu::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.onboarding_form-input--readonly__CfnZS {
  cursor: not-allowed;
  opacity: 0.7;
}

.onboarding_form-input--readonly-light__e6dDy {
  background: #f9fafb;
}

.onboarding_form-input--readonly-dark__svwp3 {
  background: rgba(255, 255, 255, 0.05);
}

.onboarding_form-input__tzwXa:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

/* Input suffix (subdomain, etc.) */
.onboarding_input-group__vbFTs {
  display: flex;
}

.onboarding_input-suffix__LVYsr {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0 0.75rem 0.75rem 0;
  border: 2px solid;
  border-left: none;
  font-size: 1rem;
  font-weight: 500;
}

.onboarding_input-suffix--light__1k_2f {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
}

.onboarding_input-suffix--dark__WP0OQ {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   ERROR STYLES
   ======================================== */

.onboarding_error-container__bkB2n {
  padding: 1rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
  border: 2px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.onboarding_error-container--light__ho6u1 {
  background: #fef2f2;
}

.onboarding_error-container--dark__Wugl3 {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2),
    rgba(220, 38, 38, 0.2)
  );
  backdrop-filter: blur(10px);
}

.onboarding_error-content__Du9C5 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.onboarding_error-icon__mjiTz {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding_error-icon-text__Ud2l_ {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

.onboarding_error-text__jSZxj {
  font-size: 1rem;
  font-weight: 600;
}

.onboarding_error-text--light__1CkOO {
  color: #b91c1c;
}

.onboarding_error-text--dark__KdrNP {
  color: #fca5a5;
}

/* ========================================
   TEAM INVITATION INPUTS
   ======================================== */

.onboarding_team-invite-input__soKzN {
  width: 320px !important;
  font-size: 16px !important;
  min-height: 52px !important;
  font-weight: 500 !important;
}

.onboarding_team-invite-input__soKzN::-moz-placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.onboarding_team-invite-input__soKzN::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.onboarding_team-invite-select__2u9el {
  width: 120px !important;
  font-size: 14px !important;
  min-height: 52px !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
}

.onboarding_team-invite-select__2u9el option {
  color: #111827 !important;
  background: #ffffff !important;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.onboarding_loading-spinner__PrFKK {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: onboarding_spin__Xpo8x 1s linear infinite;
}

.onboarding_loading-overlay__NKe4J {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding_loading-content__vdg_A {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.onboarding_loading-icon__4s8g1 {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.onboarding_loading-text__Evg3f {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   TEAM SETUP SPECIFIC
   ======================================== */

.onboarding_team-pro-tip__2NYCC {
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.onboarding_team-pro-tip--light__PTaCb {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.onboarding_team-pro-tip--dark__Qh6bR {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(245, 158, 11, 0.05)
  );
  border: 1px solid rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(10px);
}

.onboarding_team-pro-tip-text__7vYJS {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.onboarding_team-pro-tip-text--light__io1HK {
  color: #92400e;
}

.onboarding_team-pro-tip-text--dark__5PkTw {
  color: #fbbf24;
}

.onboarding_team-member-item__jxPd1 {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.onboarding_team-member-indicator__ZuL6H {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border-width: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding_team-member-indicator--light__LrQq2 {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.onboarding_team-member-indicator--dark__kkRi6 {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.onboarding_team-member-indicator-number__5yDUN {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

.onboarding_team-member-indicator-number--light___91GV {
  color: #6b7280;
}

.onboarding_team-member-indicator-number--dark__6j_xW {
  color: rgba(255, 255, 255, 0.7);
}

.onboarding_team-add-button__Qkjxn {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 300ms;
  transform: scale(1);
}

.onboarding_team-add-button__Qkjxn:hover {
  transform: scale(1.05);
}

.onboarding_team-add-button--light__JxCrz {
  color: #2563eb;
  background-color: #eff6ff;
}

.onboarding_team-add-button--light__JxCrz:hover {
  color: #1e40af;
  background-color: #eff6ff;
}

.onboarding_team-add-button--dark__aD5oO {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.onboarding_team-add-button--dark__aD5oO:hover {
  color: #bfdbfe;
}

/* ========================================
   STEP ICON CONTAINERS
   ======================================== */

.onboarding_stepIconContainer__5IBTw {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.onboarding_stepIconContainerTeam__8hsko {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.onboarding_stepIconContainerBilling__vsX2P {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.onboarding_stepIconContainerIntegrations__vrNCJ {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* ========================================
   PRICING / BILLING COMPONENT
   ======================================== */

.onboarding_pricing-card__z3Om8 {
  border-width: 2px;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.onboarding_pricing-card__z3Om8:hover {
  transform: scale(1.05);
}

.onboarding_pricing-card--light__aj6NP {
  background: #ffffff;
  border-color: #e5e7eb;
}

.onboarding_pricing-card--dark__7KQuh {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.onboarding_pricing-card--popular__ftxXv {
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

.onboarding_pricing-badge__j7pEL {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.onboarding_pricing-icon__RHD58 {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem auto;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding_pricing-tier-letter__ebftK {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.onboarding_pricing-tier-title__gX0GF {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.onboarding_pricing-tier-title--light__7V62W {
  color: #111827;
}

.onboarding_pricing-tier-title--dark__SMAz5 {
  color: #ffffff;
}

.onboarding_pricing-tier-description__r1S6t {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.onboarding_pricing-tier-description--light__M0jX7 {
  color: #6b7280;
}

.onboarding_pricing-tier-description--dark__CtMr6 {
  color: rgba(255, 255, 255, 0.8);
}

.onboarding_pricing-amount__WsW9_ {
  font-size: 2rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.onboarding_pricing-amount--light__E8jYd {
  color: #111827;
}

.onboarding_pricing-amount--dark__tHJU1 {
  color: #ffffff;
}

.onboarding_pricing-amount-suffix__3WBzf {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  opacity: 0.7;
}

.onboarding_pricing-setup-fee__7vb7b {
  font-size: 0.75rem;
  line-height: 1rem;
  margin-bottom: 1rem;
}

.onboarding_pricing-setup-fee--light__i8QLL {
  color: #6b7280;
}

.onboarding_pricing-setup-fee--dark__yflcf {
  color: rgba(255, 255, 255, 0.7);
}

.onboarding_pricing-features__QWp3V {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.onboarding_pricing-features-list__96Ge2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding_pricing-feature-item__Phswe {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onboarding_pricing-feature-icon__HAPRx {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding_pricing-feature-icon__HAPRx svg {
  width: 0.625rem;
  height: 0.625rem;
  color: #ffffff;
}

.onboarding_pricing-feature-text__UatX8 {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.onboarding_pricing-feature-text--light__FHK8V {
  color: #374151;
}

.onboarding_pricing-feature-text--dark__lXyH8 {
  color: rgba(255, 255, 255, 0.9);
}

.onboarding_pricing-select-button__izVtC {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  line-height: 1.25rem;
  border: none;
  cursor: pointer;
}

.onboarding_pricing-select-button__izVtC:hover {
  transform: scale(1.05);
}

.onboarding_pricing-skip-text__imunx {
  margin-top: 2rem;
  text-align: center;
}

.onboarding_pricing-skip-text--light__XD2VC {
  color: #6b7280;
}

.onboarding_pricing-skip-text--dark__j79nj {
  color: rgba(255, 255, 255, 0.8);
}

/* Extra pricing text style variants */
.onboarding_pricing-plan-header__kdMc1 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.onboarding_pricing-plan-description__dqMv9 {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.onboarding_pricing-plan-price__ys3Ik {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.onboarding_pricing-plan-setup__eMJkn,
.onboarding_pricing-plan-setup-fee__1zpO6 {
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

/* ========================================
   COMPLETION COMPONENT
   ======================================== */

.onboarding_completion-container__eGX6h {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.onboarding_completion-icon__J4M5E {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding_completion-icon--light__ZLWpD,
.onboarding_completion-icon--dark__b_b2h {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* ========================================
   SELECT DROPDOWN OPTIONS
   ======================================== */

.onboarding_select-option__V4Mb5 {
  background: #1f2937;
  color: #ffffff;
}

.onboarding_select-option-light__7qUuI {
  background: #ffffff;
  color: #111827;
}

/* ========================================
   UTILITY CLASSES (LOCAL “TAILWIND”)
   ======================================== */

/* Layout & display */
.onboarding_flex__7fRBp { display: flex; }
.onboarding_inline-flex__mXr5P { display: inline-flex; }
.onboarding_grid__zpwm1 { display: grid; }
.onboarding_justify-center__7PGG2 { justify-content: center; }
.onboarding_items-center__ipa0E { align-items: center; }

/* Grid */
.onboarding_grid-cols-2__tznma { grid-template-columns: repeat(2, 1fr); }
.onboarding_grid-md-cols-3__nWPfN { display: grid; grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .onboarding_grid-cols-2-md__rEEMW { grid-template-columns: repeat(2, 1fr); }
  .onboarding_grid-md-cols-3__nWPfN { grid-template-columns: repeat(3, 1fr); }
}

/* Width / height */
.onboarding_w-full__zv38z { width: 100%; }
.onboarding_w-4__J8O_z { width: 1rem; }
.onboarding_h-4__0299x { height: 1rem; }
.onboarding_w-6__cl0F_ { width: 1.5rem; }
.onboarding_h-6__gU_GI { height: 1.5rem; }
.onboarding_w-8__YDt1a { width: 2rem; }
.onboarding_h-8__MAxTU { height: 2rem; }
.onboarding_w-12___ELGC { width: 3rem; }
.onboarding_h-12__yv0_w { height: 3rem; }
.onboarding_w-16__bYxY_ { width: 4rem; }
.onboarding_h-16__TizZs { height: 4rem; }
.onboarding_w-20__VUkU6 { width: 5rem; }
.onboarding_h-20__iaoJF { height: 5rem; }
.onboarding_w-24__ZOrgE { width: 6rem; }
.onboarding_h-24__sZYXi { height: 6rem; }

/* Max width */
.onboarding_max-w-md__Th1Ev { max-width: 28rem; }
.onboarding_max-w-2xl__9t1BW { max-width: 42rem; }
.onboarding_max-w-5xl__22PYl { max-width: 64rem; }

/* Margin */
.onboarding_mx-auto__T6U3w { margin-left: auto; margin-right: auto; }
.onboarding_m-auto__ikUTk { margin: auto; }

.onboarding_mb-1__oGqth { margin-bottom: 0.25rem; }
.onboarding_mb-2__LC8NR { margin-bottom: 0.5rem; }
.onboarding_mb-3___s89i { margin-bottom: 0.75rem; }
.onboarding_mb-4__0TAw2 { margin-bottom: 1rem; }
.onboarding_mb-6__uuwql { margin-bottom: 1.5rem; }
.onboarding_mb-8__oNsTP { margin-bottom: 2rem; }
.onboarding_mt-2__c9wDT { margin-top: 0.5rem; }
.onboarding_mt-4___duOs { margin-top: 1rem; }
.onboarding_mt-6__tmpWm { margin-top: 1.5rem; }
.onboarding_mt-8__xElsA { margin-top: 2rem; }

/* Padding */
.onboarding_p-6__Sdg_T { padding: 1.5rem; }
.onboarding_p-8__5Ze89 { padding: 2rem; }
.onboarding_px-4__W49Do { padding-left: 1rem; padding-right: 1rem; }
.onboarding_px-10__QvFYj { padding-left: 2.5rem; padding-right: 2.5rem; }
.onboarding_py-1__eciCt { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.onboarding_py-2__4jPhp { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.onboarding_py-4__IJEbQ { padding-top: 1rem; padding-bottom: 1rem; }
.onboarding_py-12__PBvPk { padding-top: 3rem; padding-bottom: 3rem; }

/* Gap / vertical spacing */
.onboarding_gap-2__axh1X { gap: 0.5rem; }
.onboarding_gap-3__3bSxY { gap: 0.75rem; }
.onboarding_gap-4__PBW2b { gap: 1rem; }
.onboarding_gap-6__ih4qG { gap: 1.5rem; }

.onboarding_space-y-2__vKMOO > * + * { margin-top: 0.5rem; }
.onboarding_space-y-3__qFIkb > * + * { margin-top: 0.75rem; }
.onboarding_space-y-6__O6ysp > * + * { margin-top: 1.5rem; }
.onboarding_space-y-8__huJwY > * + * { margin-top: 2rem; }

/* Border radius & border */
.onboarding_rounded-full__k1PZI { border-radius: 9999px; }
.onboarding_rounded-xl__Ev5NK { border-radius: 0.75rem; }
.onboarding_rounded-2xl__QXNX4 { border-radius: 1rem; }

.onboarding_border-2__snMKT { border-width: 2px; }

/* Typography */
.onboarding_text-xs___44qh { font-size: 0.75rem; line-height: 1rem; }
.onboarding_text-sm__ipRpa { font-size: 0.875rem; line-height: 1.25rem; }
.onboarding_text-lg__sGdqX { font-size: 1.125rem; line-height: 1.75rem; }
.onboarding_text-xl__vbYt4 { font-size: 1.25rem; line-height: 1.75rem; }
.onboarding_text-2xl__QAPX3 { font-size: 1.5rem; line-height: 2rem; }
.onboarding_text-3xl__dABNl { font-size: 1.875rem; line-height: 2.25rem; }
.onboarding_text-4xl__IFDbE { font-size: 2.25rem; line-height: 2.5rem; }

.onboarding_font-normal___7qRH { font-weight: 400; }
.onboarding_font-medium__URWbX { font-weight: 500; }
.onboarding_font-semibold__w79tC { font-weight: 600; }
.onboarding_font-bold__Phyec { font-weight: 700; }

/* Text colors */
.onboarding_text-white__ZLtCc { color: #ffffff; }
.onboarding_text-gray-500__ieIs0 { color: #6b7280; }
.onboarding_text-gray-600__obpGQ { color: #4b5563; }
.onboarding_text-gray-700__jFfL1 { color: #374151; }
.onboarding_text-gray-900__8PhYw { color: #111827; }
.onboarding_text-blue-400__DVJE3 { color: #60a5fa; }
.onboarding_text-blue-600__iXvjx { color: #2563eb; }
.onboarding_text-blue-800__HY9t4 { color: #1e40af; }
.onboarding_text-blue-900__tCapr { color: #1e3a8a; }

.onboarding_text-white-80__vkY5s,
.onboarding_text-white__80__jmsQ7 { color: rgba(255, 255, 255, 0.8); }

.onboarding_text-white-70__seHeH,
.onboarding_text-white__70__h2idi { color: rgba(255, 255, 255, 0.7); }

/* Opacity */
.onboarding_opacity-70__N2Tr_ { opacity: 0.7; }
.onboarding_opacity-75__kk30z { opacity: 0.75; }

/* Shadow */
.onboarding_shadow-lg__Vo_QZ {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Position helpers */
.onboarding_relative__sKOJ7 { position: relative; }
.onboarding_absolute__1DkLM { position: absolute; }

.onboarding_top-minus-3__iZgYG,
.onboarding_top-negative-3__EiIVg { top: -0.75rem; }

.onboarding_left-half__jpdqe { left: 50%; }

.onboarding_transform__9tMcJ,
.onboarding_transform-translate-x-minus-half__e70EU {
  transform: translateX(-50%);
}

/* Misc utilities */
.onboarding_cursor-pointer__aKywe { cursor: pointer; }
.onboarding_text-center__gihYN { text-align: center; }
.onboarding_flex-shrink-0__M3uDx { flex-shrink: 0; }

.onboarding_transition-all__0IXKN {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.onboarding_duration-300__dVQBj { transition-duration: 300ms; }

.onboarding_hover-transform__NUlSy:hover,
.onboarding_hover-scale-105__NTf_4:hover {
  transform: scale(1.05);
}

.onboarding_hover__underline__pFc6h:hover {
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE FOR MODAL
   ======================================== */

@media (max-width: 768px) {
  .onboarding_onboarding-wrapper__iTpe_ {
    max-width: 100%;
    padding: 0 1rem;
  }

  .onboarding_content-card__FtUNf {
    padding: 1.5rem;
  }

  .onboarding_step-card__ajBi5 {
    padding: 1.5rem;
  }

  .onboarding_progress-icons__6e8Vn {
    gap: 1rem;
  }

  .onboarding_step-icon__J7c_4 {
    width: 2.5rem;
    height: 2.5rem;
  }

  .onboarding_connecting-line__nQO4a {
    width: 1.5rem;
  }

  .onboarding_navigation__VotSS {
    flex-direction: column;
    gap: 1rem;
  }

  .onboarding_nav-button__PLLCV {
    width: 100%;
    justify-content: center;
  }

  .onboarding_grid-cols-2__tznma {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ========================================
   INTEGRATION ONBOARDING STYLES
   ======================================== */

.onboarding_integration-container__4KzWd {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  padding: 2rem 0;
}

.onboarding_integration-content__Q5fid {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.onboarding_integration-card__VNr3x {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.onboarding_integration-header__CnBhU {
  text-align: center;
  margin-bottom: 2rem;
}

.onboarding_integration-title__z6Qar {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.onboarding_integration-subtitle__GbyRx {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.onboarding_integration-description__lGSVg {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.onboarding_integration-progress__U_W6t {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.onboarding_integration-progress-dot__dfphw {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.onboarding_integration-progress-dot--active___WFqQ {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  transform: scale(1.5);
}

.onboarding_integration-step-content__qUdUn {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.onboarding_integration-option__gPzZ0 {
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
}

.onboarding_integration-option__gPzZ0:hover {
  transform: scale(1.02);
}

.onboarding_integration-option--selected__5yUvu {
  border: 2px solid rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.onboarding_integration-option--recommended__7d6Qn {
  border: 2px solid rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.onboarding_integration-option-header__ywkL9 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.onboarding_integration-option-title__0e4lL {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onboarding_integration-option-badge__ZBba1 {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.onboarding_integration-option-description__CgPBM {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.onboarding_integration-option-features__IRBGD {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding_integration-option-feature__fYl_o {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.onboarding_integration-option-feature-icon__GxA6K {
  width: 1rem;
  height: 1rem;
  color: #10b981;
  flex-shrink: 0;
}

.onboarding_integration-cost-summary__CL86l {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  backdrop-filter: blur(10px);
}

.onboarding_integration-cost-title__XD_MX {
  font-size: 1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

.onboarding_integration-cost-breakdown__GaBDW {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding_integration-cost-item__Kscn1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.onboarding_integration-cost-total__pBI4l {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.onboarding_integration-navigation__UT4S3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.onboarding_integration-nav-button__m6Rzr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
}

.onboarding_integration-nav-button--primary__ENau9 {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.onboarding_integration-nav-button--primary__ENau9:hover {
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
  transform: scale(1.05);
}

.onboarding_integration-nav-button--secondary__ealYg {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.onboarding_integration-nav-button--secondary__ealYg:hover {
  background: rgba(255, 255, 255, 0.15);
}

.onboarding_integration-nav-button--skip__Gl0lY {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.onboarding_integration-nav-button--skip__Gl0lY:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* ================================
   SHARED PAGES - CONSISTENT STYLES
   For About, Features, Help, etc.
   ================================ */

.shared-page {
  background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 35%, #16213e 100%);
  min-height: 100vh;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Hero background with glassmorphism */
.shared-page-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.shared-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
}

.shared-bg-blur-1 {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.shared-bg-blur-2 {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 500px;
  height: 500px;
  background: rgba(236, 72, 153, 0.2);
  border-radius: 50%;
  filter: blur(50px);
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

.shared-bg-blur-3 {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  filter: blur(40px);
  animation: float 4s ease-in-out infinite;
}

/* Container */
.shared-container {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.shared-header {
  text-align: center;
  padding: 5rem 0 3rem;
}

.shared-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.shared-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Content sections */
.shared-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.shared-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.shared-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shared-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #ffffff;
}

.shared-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.shared-section ul {
  list-style: none;
  padding: 0;
}

.shared-section li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.shared-section li::before {
  content: '✓';
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Grid layouts */
.shared-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .shared-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .shared-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.shared-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.shared-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -12px rgba(124, 58, 237, 0.3);
}

.shared-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.shared-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Buttons */
.shared-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.shared-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(168, 85, 247, 0.4);
}

.shared-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shared-button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Navigation breadcrumb */
.shared-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.shared-breadcrumb a {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.shared-breadcrumb a:hover {
  color: #ec4899;
}

/* Responsive */
@media (max-width: 768px) {
  .shared-container {
    padding: 1rem;
  }
  
  .shared-header {
    padding: 3rem 0 2rem;
  }
  
  .shared-title {
    font-size: 2.5rem;
  }
  
  .shared-subtitle {
    font-size: 1.1rem;
  }
  
  .shared-section {
    padding: 2rem;
    margin: 2rem 0;
  }
  
  .shared-section h2 {
    font-size: 1.875rem;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}
/* Setup Page Styles */
.setup-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.setup-card {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 100%;
}

.setup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.setup-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.setup-subtitle {
  color: #6b7280;
  font-size: 1rem;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.setup-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setup-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.setup-input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.setup-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.setup-button {
  padding: 0.875rem 1.5rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.setup-button:hover {
  background: #2563eb;
}

.setup-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.setup-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.setup-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.setup-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.setup-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
/* 
  ===========================================
  🗓️ CALENDAR PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Calendar and scheduling interface
  Theme: Modern glass morphism with blue gradient theme for calendar
*/

/* Page Container */
.calendar-page {
  background: linear-gradient(135deg, #f8fafc 0%, #ebf8ff 20%, #dbeafe 40%, #bfdbfe 60%, #93c5fd 80%, #3b82f6 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 1.5rem;
}

.calendar-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: calendarFloat 25s infinite ease-in-out;
}

@keyframes calendarFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(0.5deg); }
  50% { transform: translateY(10px) rotate(-0.3deg); }
  75% { transform: translateY(-8px) rotate(0.2deg); }
}

/* Content Container */
.calendar-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #1f2937;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.header-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  z-index: -1;
}

.header-btn-new {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-btn-new:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.header-btn-sync {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.header-btn-sync:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Calendar Grid Container */
.calendar-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: relative;
}

.calendar-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 1rem;
  z-index: -1;
}

/* Calendar Navigation */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.nav-button {
  padding: 0.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-button svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.calendar-month-info {
  text-align: center;
}

.calendar-month-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.calendar-today-info {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

/* Day Headers */
.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.day-header {
  text-align: center;
  font-weight: 600;
  color: #374151;
  padding: 0.75rem;
  border-bottom: 2px solid rgba(229, 231, 235, 0.6);
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.calendar-day {
  height: 6rem;
  border: 1px solid rgba(229, 231, 235, 0.4);
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
}

.calendar-day:hover {
  background: rgba(249, 250, 251, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calendar-day-today {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(191, 219, 254, 0.6));
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.calendar-day-today:hover {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(191, 219, 254, 0.7));
  border-color: rgba(59, 130, 246, 0.5);
}

.calendar-day-other-month {
  background: rgba(249, 250, 251, 0.5);
  color: #9ca3af;
}

.calendar-day-other-month:hover {
  background: rgba(249, 250, 251, 0.7);
}

.calendar-day-number {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.calendar-day-number-today {
  color: #1d4ed8;
  font-weight: 700;
}

.calendar-day-number-other-month {
  color: #9ca3af;
}

/* Event Pills */
.calendar-event {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
}

.calendar-event-blue {
  background: rgba(219, 234, 254, 0.8);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.calendar-event-green {
  background: rgba(187, 247, 208, 0.8);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Bottom Grid Layout */
.calendar-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .calendar-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* Upcoming Events Card */
.upcoming-events-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: relative;
}

.upcoming-events-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 1rem;
  z-index: -1;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.event-item-blue {
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.2);
}

.event-item-green {
  background: rgba(240, 253, 244, 0.8);
  border-color: rgba(16, 185, 129, 0.2);
}

.event-item-yellow {
  background: rgba(254, 252, 232, 0.8);
  border-color: rgba(245, 158, 11, 0.2);
}

.event-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-dot-blue { background: #3b82f6; }
.event-dot-green { background: #10b981; }
.event-dot-yellow { background: #f59e0b; }

.event-details {
  flex: 1;
}

.event-title {
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

.event-time {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.event-shared {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.25rem 0 0 0;
}

.event-actions {
  display: flex;
  gap: 0.25rem;
}

.event-action-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
  border-radius: 0.25rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-action-btn-blue {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.event-action-btn-blue:hover {
  background: rgba(239, 246, 255, 0.8);
}

.event-action-btn-green {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.event-action-btn-green:hover {
  background: rgba(240, 253, 244, 0.8);
}

.event-action-btn-yellow {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.event-action-btn-yellow:hover {
  background: rgba(254, 252, 232, 0.8);
}

/* Analytics Card */
.analytics-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: relative;
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 1rem;
  z-index: -1;
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analytics-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

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

.analytics-label {
  color: #6b7280;
  font-weight: 500;
}

.analytics-value {
  font-weight: 600;
  color: #1f2937;
}

.analytics-value-red {
  color: #dc2626;
}

.analytics-value-green {
  color: #059669;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  margin: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.modal-close {
  color: #9ca3af;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #6b7280;
  background: rgba(243, 244, 246, 0.8);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-input {
  margin-right: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #374151;
}

.form-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid;
}

.modal-btn-cancel {
  border-color: #d1d5db;
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
}

.modal-btn-cancel:hover {
  background: rgba(249, 250, 251, 0.9);
  transform: translateY(-1px);
}

.modal-btn-share {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-btn-share:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .calendar-page {
    padding: 1rem;
  }
  
  .calendar-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .calendar-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .header-actions {
    justify-content: center;
  }
  
  .calendar-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .calendar-days-header {
    gap: 0.5rem;
  }
  
  .day-header {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  .calendar-day {
    height: 4rem;
    padding: 0.25rem;
  }
  
  .calendar-day-number {
    font-size: 0.75rem;
  }
  
  .calendar-event {
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
  }
}
/* 
  ===========================================
  📋 LEADS KANBAN BOARD PAGE
  ===========================================
  Component: /app/(core)/leads/kanban/page.tsx
  Purpose: Interactive Kanban board for lead management with drag & drop functionality
  Theme: Glass morphism with gradient backgrounds and smooth animations
*/

/* Page Container */
.leads-kanban-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 30%, #e8eaf6 70%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  gap: 1.5rem;
}

.leads-kanban-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.leads-kanban-page > * {
  position: relative;
  z-index: 2;
}

/* Loading State */
.kanban-loading {
  padding: 1.5rem;
}

.kanban-loading-skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kanban-loading-title {
  height: 2rem;
  background-color: #e5e7eb;
  border-radius: 0.375rem;
  width: 33.333333%;
}

.kanban-loading-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.kanban-loading-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kanban-loading-header {
  height: 5rem;
  background-color: #e5e7eb;
  border-radius: 0.375rem;
}

.kanban-loading-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kanban-loading-card {
  height: 8rem;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Header Section */
.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.kanban-header-content {
  display: flex;
  flex-direction: column;
}

.kanban-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
  background: linear-gradient(135deg, #1f2937 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kanban-subtitle {
  color: #6b7280;
  margin: 0;
  font-size: 0.875rem;
}

.kanban-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Search Input */
.kanban-search-container {
  position: relative;
}

.kanban-search-icon {
  width: 1rem;
  height: 1rem;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.kanban-search-input {
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  width: 16rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease-in-out;
}

.kanban-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

/* Filter Select */
.kanban-filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #374151;
  transition: all 0.2s ease-in-out;
}

.kanban-filter-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

/* New Lead Button */
.kanban-new-lead-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.kanban-new-lead-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.kanban-new-lead-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Kanban Board Container */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  min-height: 37.5rem;
}

/* Column Styles */
.kanban-column {
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.kanban-column-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.kanban-column-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-column-title-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-column-icon {
  width: 1rem;
  height: 1rem;
}

.kanban-column-title {
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.kanban-column-count {
  font-size: 0.875rem;
  font-weight: 500;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Column Color Variants */
.kanban-column-new .kanban-column-header {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(219, 234, 254, 0.9) 100%);
  border-color: #bfdbfe;
}

.kanban-column-contacted .kanban-column-header {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.9) 0%, rgba(254, 240, 138, 0.9) 100%);
  border-color: #fde047;
}

.kanban-column-qualified .kanban-column-header {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9) 0%, rgba(167, 243, 208, 0.9) 100%);
  border-color: #86efac;
}

.kanban-column-proposal .kanban-column-header {
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.9) 0%, rgba(221, 214, 254, 0.9) 100%);
  border-color: #c4b5fd;
}

.kanban-column-negotiation .kanban-column-header {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.9) 0%, rgba(254, 215, 170, 0.9) 100%);
  border-color: #fdba74;
}

.kanban-column-closed-won .kanban-column-header {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, rgba(187, 247, 208, 0.9) 100%);
  border-color: #bbf7d0;
}

.kanban-column-closed-lost .kanban-column-header {
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(254, 202, 202, 0.9) 100%);
  border-color: #fecaca;
}

/* Column Content Area */
.kanban-column-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.kanban-column-content.drag-over {
  background: rgba(239, 246, 255, 0.5);
  border: 2px dashed #3b82f6;
}

/* Lead Card Styles */
.kanban-lead-card {
  cursor: move;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.kanban-lead-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.kanban-lead-card.dragging {
  transform: rotate(2deg);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.kanban-lead-card-content {
  padding: 1rem;
}

/* Lead Header */
.kanban-lead-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kanban-lead-info {
  flex: 1;
}

.kanban-lead-name {
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
}

.kanban-lead-company {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.kanban-lead-company svg {
  width: 0.75rem;
  height: 0.75rem;
}

.kanban-lead-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.kanban-priority-badge {
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 500;
  border: 1px solid;
}

.kanban-priority-high {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.kanban-priority-medium {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.kanban-priority-low {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.kanban-lead-score {
  font-size: 0.75rem;
  font-weight: 700;
}

.kanban-score-high {
  color: #059669;
}

.kanban-score-medium {
  color: #d97706;
}

.kanban-score-low {
  color: #dc2626;
}

/* Lead Value */
.kanban-lead-value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.kanban-lead-value svg {
  width: 1rem;
  height: 1rem;
  color: #059669;
}

.kanban-lead-value-amount {
  font-weight: 600;
  color: #059669;
}

/* Contact Info */
.kanban-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.kanban-contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-contact-row svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.kanban-contact-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Follow-up Date */
.kanban-followup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.kanban-followup svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Notes */
.kanban-notes {
  font-size: 0.625rem;
  color: #6b7280;
  background: #f9fafb;
  padding: 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Action Buttons */
.kanban-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.kanban-action-btn {
  padding: 0.25rem;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.kanban-action-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.kanban-action-btn.phone:hover {
  color: #3b82f6;
}

.kanban-action-btn.email:hover {
  color: #10b981;
}

.kanban-action-btn.message:hover {
  color: #8b5cf6;
}

.kanban-action-btn.more:hover {
  color: #6b7280;
}

.kanban-action-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Add New Lead Button */
.kanban-add-lead-btn {
  width: 100%;
  padding: 0.75rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  margin-top: auto;
}

.kanban-add-lead-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.kanban-add-lead-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Responsive Design */
@media (max-width: 1536px) {
  .kanban-board {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1280px) {
  .kanban-board {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .kanban-controls {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .kanban-search-input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .kanban-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .leads-kanban-page {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .kanban-lead-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .kanban-lead-meta {
    flex-direction: row;
    align-items: center;
  }
}

/* Animation Enhancements */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kanban-lead-card {
  animation: slideInUp 0.3s ease-out;
}

.kanban-column-header {
  animation: slideInUp 0.4s ease-out;
}

/* Drag and Drop Visual Feedback */
.kanban-column-content.can-drop {
  background: rgba(59, 130, 246, 0.05);
  border: 2px dashed rgba(59, 130, 246, 0.3);
}

.kanban-lead-card.drag-preview {
  opacity: 0.8;
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Accessibility */
.kanban-lead-card:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.kanban-action-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .leads-kanban-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 70%, #475569 100%);
  }
  
  .kanban-title {
    color: #f8fafc;
  }
  
  .kanban-subtitle {
    color: #cbd5e1;
  }
  
  .kanban-lead-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(71, 85, 105, 0.3);
  }
  
  .kanban-lead-name {
    color: #f8fafc;
  }
  
  .kanban-column-header {
    background: rgba(30, 41, 59, 0.9);
  }
  
  .kanban-column-title {
    color: #f8fafc;
  }
}
/* 
  ===========================================
  🎯 TENANT OWNER NEW LEAD PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner new lead creation page
  Theme: Modern glass morphism with blue gradient theme for leads
*/

/* Page Container */
.tenant-new-lead-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #ebf8ff 20%, #dbeafe 40%, #bfdbfe 60%, #93c5fd 80%, #3b82f6 100%);
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.tenant-new-lead-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: leadFloat 22s infinite ease-in-out;
}

@keyframes leadFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(0.3deg); }
  50% { transform: translateY(8px) rotate(-0.2deg); }
  75% { transform: translateY(-6px) rotate(0.1deg); }
}

/* Form Container */
.new-lead-form-container {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Form Sections */
.lead-form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.lead-form-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 15px 15px -5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Section Headers */
.lead-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.lead-section-header span {
  font-size: 1.5rem;
}

/* Form Grid */
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lead-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lead-form-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lead-form-grid.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
.lead-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.lead-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lead-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

.lead-form-input::-moz-placeholder {
  color: #9ca3af;
}

.lead-form-input::placeholder {
  color: #9ca3af;
}

/* Array Input Containers */
.lead-array-container {
  margin-bottom: 1rem;
}

.lead-array-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.lead-array-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lead-array-tag.tags {
  background-color: #dbeafe;
  color: #1e40af;
}

.lead-array-tag button {
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lead-array-tag button:hover {
  opacity: 1;
}

.lead-array-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-array-input {
  flex: 1;
  min-width: 200px;
}

.lead-quick-add-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.lead-quick-add-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Action Buttons */
.lead-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
}

.lead-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.lead-btn-cancel {
  color: #6b7280;
  background: transparent;
}

.lead-btn-cancel:hover {
  color: #1f2937;
}

.lead-btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  box-shadow: 0 2px 8px 0 rgba(107, 114, 128, 0.2);
}

.lead-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(107, 114, 128, 0.3);
}

.lead-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.lead-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.5);
}

.lead-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.lead-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.lead-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lead-page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lead-page-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.lead-page-title h1 span {
  font-size: 2.25rem;
}

.lead-page-subtitle {
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.lead-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Financial Input Styling */
.lead-financial-input {
  position: relative;
}

.lead-currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.lead-financial-input input {
  padding-left: 2rem;
}

/* Bulk Import Styling */
.bulk-import-container {
  display: grid;
  gap: 2rem;
}

.import-instructions {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 0.5rem;
  padding: 1rem;
}

.import-instructions h3 {
  color: #0c4a6e;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.import-instructions ul {
  margin: 0;
  padding-left: 1rem;
  color: #0c4a6e;
}

.file-upload-area {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
  font-weight: 500;
}

.file-upload-label:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.integration-options h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.integration-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.integration-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: not-allowed;
  opacity: 0.6;
}

.integration-btn:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.integration-btn:not(:disabled):hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.integration-btn span {
  font-size: 1.5rem;
}

.integration-btn small {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-lead-form-container {
    padding: 1rem;
  }
  
  .lead-page-header {
    flex-direction: column;
    text-align: center;
  }
  
  .lead-actions,
  .lead-header-actions {
    flex-direction: column-reverse;
  }
  
  .lead-btn {
    width: 100%;
    justify-content: center;
  }
  
  .lead-array-input-row {
    flex-direction: column;
  }
  
  .lead-quick-add-btn {
    width: 100%;
  }

  .integration-buttons {
    grid-template-columns: 1fr;
  }
}

/* Form Validation */
.lead-form-input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.lead-form-input:valid:not(:-moz-placeholder) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.lead-form-input:valid:not(:placeholder-shown) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .lead-form-section {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .lead-section-header,
  .lead-form-label,
  .lead-page-title h1 {
    color: #f1f5f9;
  }
  
  .lead-page-subtitle {
    color: #94a3b8;
  }
  
  .lead-form-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: #475569;
    color: #f1f5f9;
  }
  
  .lead-form-input::-moz-placeholder {
    color: #64748b;
  }
  
  .lead-form-input::placeholder {
    color: #64748b;
  }
}

/* Success Animation */
@keyframes leadSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.lead-success {
  animation: leadSuccess 0.6s ease;
}
/* Auto Tasks Page Styles */

/* Base Layout */
.subpage {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.subpage-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.back-button {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.header-subtitle {
  color: #d1d5db;
  font-size: 16px;
  margin: 0;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Task Grid */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.task-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.task-header {
  display: flex;
  align-items: center;
  justify-content: between;
  margin-bottom: 16px;
}

.task-icon {
  padding: 12px;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  color: #60a5fa;
  margin-right: 12px;
}

.task-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.task-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  text-transform: uppercase;
}

.task-status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.task-status-inactive {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.task-description {
  color: #d1d5db;
  margin-bottom: 16px;
  line-height: 1.6;
}

.task-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.task-stat {
  text-align: center;
}

.task-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #60a5fa;
}

.task-stat-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-top: 4px;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-button {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.task-button-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
}

.task-button-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-1px);
}

.task-button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  padding: 24px;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 24px;
  color: #60a5fa;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.empty-state-description {
  color: #d1d5db;
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Media Queries */
@media (max-width: 768px) {
  .subpage {
    padding: 16px;
  }
  
  .subpage-header {
    padding: 20px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .task-grid {
    grid-template-columns: 1fr;
  }

  .task-stats {
    justify-content: space-around;
  }

  .task-actions {
    flex-direction: column;
  }
}
/* AI Sales Agents Page Styles */

/* Base Layout */
.ai-sales-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.ai-sales-container {
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Glass Morphism Components */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.header-glass {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 40;
}

/* Header Layout */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-icon-container {
  padding: 12px;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.header-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
  color: #f3f4f6;
  margin: 8px 0 0 0;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Main Grid Layout */
.agents-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Agents List Panel */
.agents-list-panel {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.agents-list-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.agents-list-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agents-list-content {
  padding: 24px;
  max-height: 600px;
  overflow-y: auto;
}

/* Agent Card Styles */
.agent-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.agent-card:last-child {
  margin-bottom: 0;
}

.agent-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.agent-card.selected {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.agent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.agent-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-icon {
  padding: 8px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  color: #93c5fd;
}

.agent-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.agent-status-badge {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.agent-status-badge.active {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.agent-status-badge.training {
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.agent-status-badge.inactive {
  background: rgba(156, 163, 175, 0.2);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.agent-type {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 12px;
}

.agent-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
}

.agent-conversations {
  color: #d1d5db;
}

.agent-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
}

/* Agent Configuration Panel */
.agent-config-panel {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.agent-config-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.agent-config-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-config-title-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-config-icon {
  padding: 12px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  color: #93c5fd;
}

.agent-config-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.agent-config-subtitle {
  font-size: 14px;
  color: #d1d5db;
  margin: 4px 0 0 0;
}

.agent-config-actions {
  display: flex;
  gap: 8px;
}

/* Tab Navigation */
.tab-navigation {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  margin: 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.tab-button {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

.tab-button.active {
  background: rgba(96, 165, 250, 0.8);
  color: white;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

/* Tab Content */
.tab-content {
  padding: 24px;
}

.content-section {
  margin-bottom: 32px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 16px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Performance Stats Grid */
.performance-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.performance-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.performance-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.performance-stat-label {
  font-size: 14px;
  color: #d1d5db;
}

.performance-stat-card.conversations .performance-stat-value {
  color: #60a5fa;
}

.performance-stat-card.rating .performance-stat-value {
  color: #fbbf24;
}

.performance-stat-card.conversion .performance-stat-value {
  color: #34d399;
}

.performance-stat-card.response .performance-stat-value {
  color: #a78bfa;
}

/* Form Elements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-input,
.form-select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-input::-moz-placeholder {
  color: #d1d5db;
}

.form-input::placeholder {
  color: #d1d5db;
}

.form-input:disabled,
.form-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Personality Sliders */
.personality-traits {
  display: grid;
  gap: 24px;
}

.trait-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.trait-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.trait-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0;
}

.trait-description {
  font-size: 12px;
  color: #d1d5db;
  margin: 0;
}

.trait-value {
  font-size: 18px;
  font-weight: 700;
  color: #60a5fa;
}

.trait-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
}

.trait-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

.trait-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

.trait-slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Voice Testing Section */
.voice-test-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.voice-test-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 16px;
}

.voice-test-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.voice-test-controls {
  display: flex;
  gap: 12px;
}

/* Status Section */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.status-label {
  font-size: 14px;
  color: #d1d5db;
}

.status-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* Buttons */
.btn-primary {
  padding: 12px 20px;
  background: rgba(96, 165, 250, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.9);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: rgba(96, 165, 250, 0.9);
  border-color: rgba(96, 165, 250, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.btn-secondary {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-test {
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.9);
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-test:hover {
  background: rgba(168, 85, 247, 0.9);
  transform: translateY(-1px);
}

.btn-test:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #d1d5db;
}

.empty-state-icon {
  margin: 0 auto 16px;
  color: #9ca3af;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
}

.empty-state-description {
  font-size: 14px;
  color: #d1d5db;
  margin: 0;
}

/* Loading State */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-sales-container {
    padding: 16px;
  }
  
  .header-glass {
    padding: 24px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .header-actions {
    align-self: flex-end;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .performance-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .tab-navigation {
    margin: 16px;
    padding: 4px;
  }
  
  .tab-button {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .tab-content {
    padding: 16px;
  }
}

/* Scrollbar Styling */
.agents-list-content::-webkit-scrollbar {
  width: 6px;
}

.agents-list-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.agents-list-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.agents-list-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* Drip Campaigns Page Styles */

/* Base Layout */
.subpage {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.subpage-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.back-button {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.header-subtitle {
  color: #d1d5db;
  font-size: 16px;
  margin: 0;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Campaign Grid */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.campaign-card {
  padding: 24px;
  cursor: pointer;
}

.campaign-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.campaign-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.campaign-icon {
  padding: 12px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.campaign-meta {
  display: flex;
  flex-direction: column;
}

.campaign-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
}

.campaign-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: -moz-fit-content;
  width: fit-content;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-paused {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-draft {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.campaign-menu {
  position: relative;
}

.menu-button {
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #9ca3af;
}

.campaign-description {
  color: #d1d5db;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0 0 4px 0;
}

.stat-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.campaign-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.action-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  flex: 1;
  justify-content: center;
}

.action-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.action-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  padding: 24px;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 24px;
  color: #60a5fa;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.empty-state-description {
  color: #d1d5db;
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Media Queries */
@media (max-width: 768px) {
  .subpage {
    padding: 16px;
  }
  
  .campaigns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .subpage-header {
    padding: 20px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .campaign-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .campaign-actions {
    flex-direction: column;
  }
}
/* Assign Rules Page Styles */

/* Base Layout */
.subpage {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.subpage-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.back-button {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.header-subtitle {
  color: #d1d5db;
  font-size: 16px;
  margin: 0;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rules Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.rule-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rule-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rule-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rule-icon {
  padding: 12px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  color: #22c55e;
}

.rule-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.rule-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  text-transform: uppercase;
}

.rule-status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.rule-status-inactive {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.rule-description {
  color: #d1d5db;
  margin-bottom: 20px;
  line-height: 1.6;
}

.rule-conditions {
  margin-bottom: 20px;
}

.rule-conditions-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.condition-list {
  space-y: 8px;
}

.condition-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.condition-text {
  font-size: 13px;
  color: #d1d5db;
}

.condition-operator {
  font-weight: 600;
  color: #60a5fa;
}

.rule-assignment {
  background: rgba(79, 70, 229, 0.1);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  margin-bottom: 20px;
}

.assignment-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.assignment-value {
  font-size: 16px;
  font-weight: 600;
  color: #4f46e5;
}

.rule-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.rule-stat {
  text-align: center;
}

.rule-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #60a5fa;
}

.rule-stat-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-top: 4px;
}

.rule-actions {
  display: flex;
  gap: 8px;
}

.rule-button {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.rule-button-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
}

.rule-button-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-1px);
}

.rule-button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rule-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  padding: 24px;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 24px;
  color: #60a5fa;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.empty-state-description {
  color: #d1d5db;
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Media Queries */
@media (max-width: 768px) {
  .subpage {
    padding: 16px;
  }
  
  .subpage-header {
    padding: 20px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rule-stats {
    justify-content: space-around;
  }

  .rule-actions {
    flex-direction: column;
  }
}
/* Email Sequences Page Styles */

/* Base Layout */
.subpage {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.subpage-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.back-button {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.header-subtitle {
  color: #d1d5db;
  font-size: 16px;
  margin: 0;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  padding: 24px;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 24px;
  color: #60a5fa;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.empty-state-description {
  color: #d1d5db;
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Media Queries */
@media (max-width: 768px) {
  .subpage {
    padding: 16px;
  }
  
  .subpage-header {
    padding: 20px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* Trigger Settings Page Styles */

/* Base Layout */
.subpage {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.subpage-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.back-button {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.header-subtitle {
  color: #d1d5db;
  font-size: 16px;
  margin: 0;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
}

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

.feature-icon {
  padding: 12px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.feature-description {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.feature-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

.feature-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  padding: 24px;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 24px;
  color: #60a5fa;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.empty-state-description {
  color: #d1d5db;
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Media Queries */
@media (max-width: 768px) {
  .subpage {
    padding: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .subpage-header {
    padding: 20px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* Workflow Builder Page Styles */

/* Base Layout */
.subpage {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.subpage-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.back-button {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.header-subtitle {
  color: #d1d5db;
  font-size: 16px;
  margin: 0;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
}

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

.feature-icon {
  padding: 12px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.feature-description {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.feature-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

.feature-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  padding: 24px;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 24px;
  color: #60a5fa;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.empty-state-description {
  color: #d1d5db;
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Media Queries */
@media (max-width: 768px) {
  .subpage {
    padding: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .subpage-header {
    padding: 20px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* 
  ===========================================
  💼 TENANT OWNER DASHBOARD STYLES
  ===========================================
  Component: page.tsx
  Purpose: Comprehensive tenant owner dashboard with analytics and management
  Theme: Glass morphism with gradient backgrounds
*/

/* Enhanced Page Container */
.tenant-dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e8eaf6 100%);
}

/* Charts Section Styling */
.tenant-dashboard-section.charts {
  margin-bottom: 2rem;
}

.tenant-dashboard-section-icon.charts {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tenant-dashboard-section .chart-grid-container {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tenant-dashboard-section .chart-empty-state {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tenant-dashboard-section .chart-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tenant-dashboard-section .chart-view-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.tenant-dashboard-section .chart-view-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  border: none;
  background: none;
  cursor: pointer;
}

.tenant-dashboard-section .chart-view-button.active {
  background: white;
  color: #2563eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tenant-dashboard-section .chart-view-button:not(.active) {
  color: #64748b;
}

.tenant-dashboard-section .chart-view-button:not(.active):hover {
  color: #334155;
}

/* Enhanced Header with Glass Effect */
.tenant-dashboard-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 4rem; /* Stay below the global navigation (h-16 = 4rem) */
  z-index: 40; /* Below global navigation (z-50) but above content */
}

/* Header Section with Metrics and AI Assistant */
.tenant-dashboard-header-section {
  margin-bottom: 2rem;
}

.tenant-dashboard-top-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.tenant-dashboard-metrics-container {
  flex: 1;
}

.tenant-dashboard-ai-container {
  flex-shrink: 0;
  width: 350px;
}

.tenant-dashboard-ai-assistant {
  height: 100%;
  min-height: 400px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tenant-dashboard-top-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .tenant-dashboard-ai-container {
    width: 100%;
  }
  
  .tenant-dashboard-ai-assistant {
    min-height: 300px;
  }
}

.tenant-dashboard-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tenant-dashboard-title-section {
  display: flex;
  align-items: center;
}

.tenant-dashboard-crown {
  width: 2.5rem;
  height: 2.5rem;
  color: #f59e0b;
  margin-right: 1rem;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
  position: relative;
}

.tenant-dashboard-crown::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(8px);
  animation: crown-glow 3s ease-in-out infinite;
}

@keyframes crown-glow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

.tenant-dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.tenant-dashboard-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.tenant-dashboard-status-badge {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.tenant-dashboard-status-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  color: #059669;
}

/* Enhanced Loading State */
.tenant-dashboard-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #e8eaf6 100%);
}

.tenant-dashboard-loading-spinner {
  position: relative;
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
}

.tenant-dashboard-loading-ring {
  position: absolute;
  width: 4rem;
  height: 4rem;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.tenant-dashboard-loading-ring:first-child {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
}

.tenant-dashboard-loading-ring:last-child {
  border-top: 4px solid #3b82f6;
  border-right: 4px solid #8b5cf6;
  border-bottom: transparent;
  border-left: transparent;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tenant-dashboard-loading-text {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.tenant-dashboard-loading-title {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tenant-dashboard-loading-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Enhanced Content Container */
.tenant-dashboard-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Enhanced Metrics - Horizontal Scrollable Layout */
.tenant-dashboard-metrics-grid {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling */
.tenant-dashboard-metrics-grid::-webkit-scrollbar {
  height: 4px;
}

.tenant-dashboard-metrics-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.tenant-dashboard-metrics-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.tenant-dashboard-metrics-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Enhanced Metric Cards */
.tenant-dashboard-metric-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  flex-shrink: 0;
  width: 280px;
  min-width: 280px;
}

/* Clickable card styles */
.tenant-dashboard-metric-card.clickable {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.tenant-dashboard-metric-card.clickable:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.tenant-dashboard-metric-card.clickable:active {
  transform: translateY(-4px) scale(0.98);
}

.tenant-dashboard-metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.tenant-dashboard-metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tenant-dashboard-metric-card:hover::before {
  opacity: 1;
}

/* Revenue Card */
.tenant-dashboard-metric-card.revenue {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.tenant-dashboard-metric-card.revenue::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(21, 128, 61, 0.1) 100%);
}

/* Performance Card */
.tenant-dashboard-metric-card.performance {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.tenant-dashboard-metric-card.performance::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
}

/* Deals Card */
.tenant-dashboard-metric-card.deals {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.tenant-dashboard-metric-card.deals::before {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

/* Satisfaction Card */
.tenant-dashboard-metric-card.satisfaction {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.tenant-dashboard-metric-card.satisfaction::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
}

.tenant-dashboard-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tenant-dashboard-metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.tenant-dashboard-metric-label.revenue { color: #065f46; }
.tenant-dashboard-metric-label.performance { color: #1e40af; }
.tenant-dashboard-metric-label.deals { color: #6b21a8; }
.tenant-dashboard-metric-label.satisfaction { color: #3730a3; }

.tenant-dashboard-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1;
}

.tenant-dashboard-metric-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tenant-dashboard-metric-icon.revenue {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-dashboard-metric-icon.performance {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-dashboard-metric-icon.deals {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.tenant-dashboard-metric-icon.satisfaction {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.tenant-dashboard-metric-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.tenant-dashboard-metric-trend {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.tenant-dashboard-metric-trend.positive {
  color: #065f46;
  background: rgba(34, 197, 94, 0.1);
}

.tenant-dashboard-metric-trend svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.tenant-dashboard-progress-bar {
  position: relative;
  width: 100%;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  height: 0.75rem;
  overflow: hidden;
  margin-top: 1rem;
}

.tenant-dashboard-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Enhanced Actions Grid */
.tenant-dashboard-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .tenant-dashboard-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tenant-dashboard-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.tenant-dashboard-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tenant-dashboard-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.tenant-dashboard-section-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-right: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tenant-dashboard-section-icon.management {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.tenant-dashboard-section-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.tenant-dashboard-action-button {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid #f3f4f6;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 1rem;
  transform: scale(1);
}

.tenant-dashboard-action-button:hover {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.tenant-dashboard-action-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tenant-dashboard-action-text h4 {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.tenant-dashboard-action-button:hover .tenant-dashboard-action-text h4 {
  color: #1e40af;
}

.tenant-dashboard-action-text p {
  font-size: 0.875rem;
  color: #6b7280;
}

.tenant-dashboard-action-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transition: all 0.3s ease;
}

.tenant-dashboard-action-button:hover .tenant-dashboard-action-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-dashboard-action-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #3b82f6;
  transition: color 0.3s ease;
}

.tenant-dashboard-action-button:hover .tenant-dashboard-action-icon svg {
  color: white;
}

/* Activity Timeline */
.tenant-dashboard-activity-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.tenant-dashboard-activity-item.success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

.tenant-dashboard-activity-item.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
}

.tenant-dashboard-activity-item.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.tenant-dashboard-activity-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tenant-dashboard-activity-dot.success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-dashboard-activity-dot.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-dashboard-activity-dot.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-dashboard-activity-content {
  flex: 1;
}

.tenant-dashboard-activity-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.tenant-dashboard-activity-description {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tenant-dashboard-activity-description.success { color: #065f46; }
.tenant-dashboard-activity-description.info { color: #1e40af; }
.tenant-dashboard-activity-description.warning { color: #92400e; }

.tenant-dashboard-activity-time {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Alert Cards */
.tenant-dashboard-alert {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tenant-dashboard-alert.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: #f59e0b;
}

.tenant-dashboard-alert.success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left-color: #10b981;
}

.tenant-dashboard-alert.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left-color: #3b82f6;
}

.tenant-dashboard-alert-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-right: 1rem;
}

.tenant-dashboard-alert-icon.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-dashboard-alert-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tenant-dashboard-alert-icon.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-dashboard-alert-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.tenant-dashboard-alert-content h4 {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.tenant-dashboard-alert-content.warning h4 { color: #92400e; }
.tenant-dashboard-alert-content.success h4 { color: #065f46; }
.tenant-dashboard-alert-content.info h4 { color: #1e40af; }

.tenant-dashboard-alert-content p {
  font-size: 0.75rem;
}

.tenant-dashboard-alert-content.warning p { color: #a16207; }
.tenant-dashboard-alert-content.success p { color: #047857; }
.tenant-dashboard-alert-content.info p { color: #1d4ed8; }

/* ===========================================
   ⚡ CLICKABLE INTERACTIVE ELEMENTS
   ========================================= */

/* Clickable activity items */
.tenant-dashboard-activity-item.clickable {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tenant-dashboard-activity-item.clickable:hover {
  transform: translateX(4px);
  background-color: rgba(59, 130, 246, 0.05);
  border-left: 3px solid #3b82f6;
  padding-left: calc(1rem - 3px);
}

.tenant-dashboard-activity-item.clickable:active {
  transform: translateX(2px);
}

.tenant-dashboard-activity-item.clickable:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Clickable alert/task items */
.tenant-dashboard-alert.clickable {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tenant-dashboard-alert.clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tenant-dashboard-alert.clickable:active {
  transform: scale(1.01);
}

.tenant-dashboard-alert.clickable:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Enhanced clickable metric cards */
.tenant-dashboard-metric-card.clickable {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tenant-dashboard-metric-card.clickable:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tenant-dashboard-metric-card.clickable:active {
  transform: translateY(-2px) scale(1.01);
  transition-duration: 0.1s;
}

.tenant-dashboard-metric-card.clickable:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

/* Business management action buttons enhanced interactivity */
.tenant-dashboard-action-button {
  transition: all 0.2s ease-in-out;
}

.tenant-dashboard-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.tenant-dashboard-action-button:active {
  transform: translateY(0);
}

/* Visual feedback for interactive elements */
.clickable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.02));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.clickable:hover::before {
  opacity: 1;
}

/* 
  ===========================================
  🎯 GM COMMAND CENTER ENHANCEMENTS V2
  ===========================================
  Updated: Horizontal metrics layout like leads/deals pages
*/

/* GM Metrics Section */
.gm-metrics-section {
  margin-bottom: 2rem;
}

/* GM Metrics Header - Simplified */
.gm-metrics-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.gm-metrics-customize-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.gm-metrics-customize-btn:hover {
  background: #e2e8f0;
  color: #475569;
  border-color: #cbd5e1;
}

/* Horizontal Metrics Layout - Updated for Grid */
.gm-metrics-horizontal {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
}

/* Remove horizontal scroll styles as we're using grid now */

/* Grid-based metric cards */

.gm-metric-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  flex-shrink: 0;
  flex-grow: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gm-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.gm-metric-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.gm-metric-icon {
  background: #f1f5f9;
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-metric-icon.revenue { background: rgba(34, 197, 94, 0.1); color: #059669; }
.gm-metric-icon.performance { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.gm-metric-icon.response { background: rgba(168, 85, 247, 0.1); color: #8b5cf6; }
.gm-metric-icon.leads { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.gm-metric-icon.finance { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.gm-metric-info {
  flex: 1;
}

.gm-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.gm-metric-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.gm-metric-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.gm-metric-trend.positive { color: #059669; }
.gm-metric-trend.neutral { color: #d97706; }
.gm-metric-trend.negative { color: #dc2626; }

.gm-metric-status {
  font-size: 0.875rem;
  font-weight: 500;
}

.gm-metric-status.excellent { color: #059669; }
.gm-metric-status.good { color: #d97706; }
.gm-metric-status.needs-attention { color: #dc2626; }
.gm-metric-status.positive { color: #059669; }
.gm-metric-status.neutral { color: #6b7280; }

.gm-metric-progress {
  background: #f3f4f6;
  border-radius: 0.25rem;
  height: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  height: 100%;
  transition: width 0.3s ease;
}

/* Virtual GM Section - Full Width */
.virtual-gm-section {
  margin-bottom: 2rem;
}

.virtual-gm-assistant {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.virtual-gm-header {
  margin-bottom: 1rem;
}

.virtual-gm-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.virtual-gm-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

.virtual-gm-briefing {
  margin-bottom: 1.5rem;
}

.virtual-gm-briefing h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #e2e8f0;
}

.gm-alert {
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  border-left: 4px solid;
  background: rgba(255, 255, 255, 0.05);
}

.gm-alert.priority-high {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.gm-alert.priority-medium {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.gm-alert.priority-low {
  border-left-color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
}

.gm-alert.priority-success {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.gm-alert.priority-critical {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.15);
  animation: pulse 2s infinite;
}

.gm-alert.priority-opportunity {
  border-left-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
}

.gm-alert.priority-neutral {
  border-left-color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.gm-briefing-alerts {
  space-y: 0.5rem;
}

.alert-message {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.alert-action {
  font-size: 0.8rem;
  opacity: 0.9;
  font-style: italic;
}

.virtual-gm-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gm-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.gm-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Metrics Customization Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.metrics-modal {
  background: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #374151;
}

.modal-content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.modal-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.metric-option:hover {
  background-color: #f9fafb;
}

.metric-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.metric-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.metric-checkbox input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.metric-label {
  font-weight: 500;
  color: #111827;
  flex: 1;
}

.metric-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 1.75rem;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}

.metrics-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.save-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.save-btn:hover {
  background: #2563eb;
}

/* Mobile Navigation Bar */
.mobile-nav-bar {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 60px; /* Below header */
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav-actions {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-nav-actions::-webkit-scrollbar {
  display: none;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  padding: 0.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-nav-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-nav-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  line-height: 1;
}

/* Specific button colors */
.mobile-nav-btn.leads {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e40af;
}

.mobile-nav-btn.deals {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: rgba(34, 197, 94, 0.2);
  color: #15803d;
}

.mobile-nav-btn.inventory {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: rgba(245, 158, 11, 0.2);
  color: #a16207;
}

.mobile-nav-btn.calendar {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-color: rgba(99, 102, 241, 0.2);
  color: #4338ca;
}

.mobile-nav-btn.collaboration {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-color: rgba(236, 72, 153, 0.2);
  color: #be185d;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .mobile-nav-bar {
    display: block;
  }
  
  .tenant-dashboard-content {
    padding-top: 80px; /* Account for mobile nav */
  }
  .tenant-dashboard-metrics-grid {
    gap: 1rem;
  }
  
  .tenant-dashboard-metric-card {
    width: 220px;
    min-width: 220px;
    padding: 1.5rem;
  }
  
  .gm-metric-card {
    padding: 1rem;
  }
  
  .gm-metric-content {
    align-items: center;
  }
  
  .virtual-gm-actions {
    flex-direction: column;
  }
  
  .gm-action-btn {
    min-width: auto;
  }
  
  .metrics-modal {
    width: 95%;
    margin: 1rem;
    max-height: 85vh;
  }
  
  .modal-content {
    padding: 1rem;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 1rem;
  }
}
/* Small mobile screens - smaller cards */
@media (max-width: 480px) {
  .tenant-dashboard-metric-card {
    width: 180px;
    min-width: 180px;
    padding: 1rem;
  }
  
  .mobile-nav-btn {
    min-width: 55px;
    height: 55px;
    font-size: 0.7rem;
  }
  
  .mobile-nav-icon {
    font-size: 1.1rem;
  }
  
  .mobile-nav-actions {
    gap: 0.375rem;
  }
}

/* 
  ===========================================
  📱 MOBILE FLOATING NAVIGATION INTEGRATION
  ===========================================
  Clean mobile layout with floating navigation
*/

/* Only affect tenant dashboard mobile layout */
@media (max-width: 768px) {
  /* Hide ALL navigation elements that would appear on mobile */
  .tenant-dashboard-container .mobile-nav-bar,
  .tenant-dashboard-container .mobile-nav-buttons,
  .tenant-dashboard-container .sidebar,
  .tenant-dashboard-container .desktop-sidebar,
  .tenant-dashboard-container .traditional-nav {
    display: none !important;
  }
  
  /* Tenant dashboard specific mobile adjustments */
  .tenant-dashboard-container {
    padding: 0;
    width: 100%;
    margin: 0;
  }
  
  .tenant-dashboard-content {
    padding: 1rem 0.5rem;
    margin: 0;
    width: 100%;
    /* Add bottom padding to prevent overlap with floating navigation */
    padding-bottom: 100px;
  }
  
  /* Adjust metrics grid for mobile within tenant dashboard */
  .tenant-dashboard-container .tenant-dashboard-metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    width: 100%;
  }
  
  .tenant-dashboard-container .tenant-dashboard-metric-card {
    width: 100%;
    min-width: auto;
    min-height: 80px;
    padding: 1rem;
    margin: 0;
  }
  
  /* Improve section spacing on mobile */
  .tenant-dashboard-container .tenant-dashboard-section {
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .tenant-dashboard-container .tenant-dashboard-section-header {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .tenant-dashboard-container .tenant-dashboard-section-title {
    font-size: 1.125rem;
  }
  
  /* Adjust Virtual GM Briefing for mobile */
  .tenant-dashboard-container .virtual-gm-briefing-container,
  .tenant-dashboard-container .virtual-gm-section {
    margin: 0.5rem 0;
    border-radius: 0.75rem;
    width: 100%;
  }
  
  /* Ensure floating navigation is shown within tenant dashboard */
  .tenant-dashboard-container .mobile-floating-nav {
    display: block;
  }
  
  /* Hide any remaining desktop elements */
  .tenant-dashboard-container .desktop-only {
    display: none !important;
  }
}

/* Tablet adjustments - scoped to tenant dashboard */
@media (min-width: 769px) and (max-width: 1024px) {
  .tenant-dashboard-container .tenant-dashboard-metrics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .tenant-dashboard-container .tenant-dashboard-metric-card {
    flex: 1;
    min-width: 250px;
  }
  
  /* Hide floating navigation on tablet - keep desktop layout */
  .tenant-dashboard-container .mobile-floating-nav {
    display: none !important;
  }
}

/* Desktop - ensure floating navigation is hidden within tenant dashboard */
@media (min-width: 1025px) {
  .tenant-dashboard-container .mobile-floating-nav {
    display: none !important;
  }
  
  .tenant-dashboard-container .mobile-nav-bar,
  .tenant-dashboard-container .mobile-nav-buttons {
    display: none !important;
  }
}

/* 
  ===========================================
  📝 DIALOG UI COMPONENT STYLES
  ===========================================
  Component: Dialog/Modal Components
  Purpose: Standalone CSS for dialog/modal system
  Note: Replaces Tailwind classes with proper CSS
*/

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dialog Overlay */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.dialog-overlay[data-state="open"] {
  opacity: 1;
}

.dialog-overlay[data-state="closed"] {
  opacity: 0;
}

/* Dialog Content */
.dialog-content {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  display: grid;
  width: 100%;
  max-width: 32rem;
  transform: translate(-50%, -50%);
  gap: 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 200ms ease-in-out;
  border-radius: 0.5rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

.dialog-content[data-state="open"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dialog-content[data-state="closed"] {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

/* Large dialog content for QR Modal */
.dialog-content.max-w-4xl {
  max-width: 56rem;
}

.dialog-content.max-h-\[90vh\] {
  max-height: 90vh;
  overflow-y: auto;
}

/* Dialog Header */
.dialog-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: center;
}

@media (min-width: 640px) {
  .dialog-header {
    text-align: left;
  }
}

/* Dialog Title */
.dialog-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #111827;
}

/* Dialog Description */
.dialog-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Dialog Footer */
.dialog-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .dialog-footer {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.5rem;
  }
}

/* Dialog Close Button */
.dialog-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 0.125rem;
  opacity: 0.7;
  transition: opacity 150ms ease-in-out;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-close:hover {
  opacity: 1;
}

.dialog-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-radius: 0.125rem;
}

.dialog-close:disabled {
  pointer-events: none;
}

.dialog-close[data-state="open"] {
  background-color: #f3f4f6;
  color: #6b7280;
}

/* Dialog Close Icon */
.dialog-close-icon {
  height: 1rem;
  width: 1rem;
}

/* Custom styling for QR Modal */
.dialog-content[style*="zIndex: 9999"] {
  z-index: 9999 !important;
}
/* 
  ===========================================
  📱 QR CODE MODAL ENHANCED STYLES
  ===========================================
  Component: QR Code Configuration Modal
  Purpose: Enhanced styling for comprehensive QR features
*/

.qr-modal-content {
  max-width: 72rem !important;
  width: 95vw;
  max-height: 95vh;
}

.qr-feature-card {
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.qr-feature-card:hover {
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.qr-feature-card.enabled {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.05);
}

.qr-section-header {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.75rem;
}

.qr-checkbox-label {
  font-size: 0.875rem;
  cursor: pointer;
}

.qr-input-group {
  display: grid;
  gap: 1rem;
}

.qr-time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.qr-preview-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e1;
  padding: 2rem;
  text-align: center;
  border-radius: 0.75rem;
}

.qr-action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Grid and Layout Classes */
.qr-grid {
  display: grid;
  gap: 1rem;
}

.qr-grid-cols-1 {
  grid-template-columns: 1fr;
}

.qr-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.qr-grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Spacing Classes */
.qr-space-y-2 > * + * {
  margin-top: 0.5rem;
}

.qr-space-y-3 > * + * {
  margin-top: 0.75rem;
}

.qr-space-y-4 > * + * {
  margin-top: 1rem;
}

.qr-space-y-6 > * + * {
  margin-top: 1.5rem;
}

.qr-gap-2 {
  gap: 0.5rem;
}

.qr-gap-4 {
  gap: 1rem;
}

/* Typography */
.qr-text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.qr-font-medium {
  font-weight: 500;
}

.qr-font-semibold {
  font-weight: 600;
}

.qr-text-gray-600 {
  color: #4b5563;
}

/* Form Elements */
.qr-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.qr-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.qr-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
}

.qr-textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  resize: vertical;
  font-size: 0.875rem;
}

/* Flex Classes */
.qr-flex {
  display: flex;
}

.qr-items-center {
  align-items: center;
}

.qr-justify-between {
  justify-content: space-between;
}

.qr-flex-col {
  flex-direction: column;
}

/* Card Styles */
.qr-card-content {
  padding: 1.5rem;
}

.qr-card-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.qr-separator {
  height: 1px;
  background-color: #e5e7eb;
  margin: 1rem 0;
}

/* Button Styles */
.qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-btn-primary {
  background-color: #f97316;
  color: white;
  border: none;
}

.qr-btn-primary:hover {
  background-color: #ea580c;
}

.qr-btn-outline {
  background-color: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.qr-btn-outline:hover {
  background-color: #f9fafb;
}

@media (max-width: 768px) {
  .qr-modal-content {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .qr-action-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .qr-grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .qr-grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 
  ===========================================
  💰 TENANT OWNER NEW DEAL PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner new deal creation page
  Theme: Modern glass morphism with green gradient theme for deals
*/

/* Page Container */
.tenant-new-deal-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 20%, #d1fae5 40%, #a7f3d0 60%, #6ee7b7 80%, #10b981 100%);
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.tenant-new-deal-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(34, 197, 94, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: dealFloat 25s infinite ease-in-out;
}

@keyframes dealFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(0.5deg); }
  50% { transform: translateY(10px) rotate(-0.3deg); }
  75% { transform: translateY(-8px) rotate(0.2deg); }
}

/* Form Container */
.new-deal-form-container {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Form Sections */
.deal-form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.deal-form-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 15px 15px -5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Section Headers */
.deal-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.deal-section-header span {
  font-size: 1.5rem;
}

/* Form Grid */
.deal-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .deal-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .deal-form-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.deal-form-grid.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
.deal-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.deal-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.deal-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #10b981;
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

.deal-form-input::-moz-placeholder {
  color: #9ca3af;
}

.deal-form-input::placeholder {
  color: #9ca3af;
}

/* Array Input Containers */
.deal-array-container {
  margin-bottom: 1rem;
}

.deal-array-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.deal-array-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.deal-array-tag.products {
  background-color: #dcfce7;
  color: #166534;
}

.deal-array-tag.competitors {
  background-color: #fecaca;
  color: #991b1b;
}

.deal-array-tag.tags {
  background-color: #dbeafe;
  color: #1e40af;
}

.deal-array-tag button {
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.deal-array-tag button:hover {
  opacity: 1;
}

.deal-array-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.deal-array-input {
  flex: 1;
  min-width: 200px;
}

.deal-quick-add-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.deal-quick-add-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Action Buttons */
.deal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
}

.deal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.deal-btn-cancel {
  color: #6b7280;
  background: transparent;
}

.deal-btn-cancel:hover {
  color: #1f2937;
}

.deal-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.deal-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.5);
}

.deal-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.deal-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.deal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.deal-page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.deal-page-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.deal-page-title h1 span {
  font-size: 2.25rem;
}

.deal-page-subtitle {
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.deal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-deal-form-container {
    padding: 1rem;
  }
  
  .deal-page-header {
    flex-direction: column;
    text-align: center;
  }
  
  .deal-actions {
    flex-direction: column-reverse;
  }
  
  .deal-btn {
    width: 100%;
    justify-content: center;
  }
  
  .deal-array-input-row {
    flex-direction: column;
  }
  
  .deal-quick-add-btn {
    width: 100%;
  }
}

/* Financial Input Styling */
.deal-financial-input {
  position: relative;
}

.deal-currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.deal-financial-input input {
  padding-left: 2rem;
}

/* Form Validation */
.deal-form-input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.deal-form-input:valid:not(:-moz-placeholder) {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.deal-form-input:valid:not(:placeholder-shown) {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .deal-form-section {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .deal-section-header,
  .deal-form-label,
  .deal-page-title h1 {
    color: #f1f5f9;
  }
  
  .deal-page-subtitle {
    color: #94a3b8;
  }
  
  .deal-form-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: #475569;
    color: #f1f5f9;
  }
  
  .deal-form-input::-moz-placeholder {
    color: #64748b;
  }
  
  .deal-form-input::placeholder {
    color: #64748b;
  }
}

/* Success Animation */
@keyframes dealSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.deal-success {
  animation: dealSuccess 0.6s ease;
}
/* 
  ===========================================
  🚗 TENANT OWNER NEW INVENTORY PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner new inventory creation page
  Theme: Modern glass morphism with orange gradient theme for inventory
*/

/* Page Container */
.tenant-new-inventory-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 20%, #fed7aa 40%, #fdba74 60%, #fb923c 80%, #ea580c 100%);
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.tenant-new-inventory-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(234, 88, 12, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(251, 146, 60, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: inventoryFloat 28s infinite ease-in-out;
}

@keyframes inventoryFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  20% { transform: translateY(-10px) rotate(0.2deg); }
  40% { transform: translateY(5px) rotate(-0.1deg); }
  60% { transform: translateY(-8px) rotate(0.15deg); }
  80% { transform: translateY(3px) rotate(-0.05deg); }
}

/* Form Container */
.new-inventory-form-container {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Form Sections */
.inventory-form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.inventory-form-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 15px 15px -5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Section Headers */
.inventory-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.inventory-section-header span {
  font-size: 1.5rem;
}

/* Form Grid */
.inventory-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .inventory-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .inventory-form-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.inventory-form-grid.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
.inventory-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.inventory-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.inventory-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ea580c;
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

.inventory-form-input::-moz-placeholder {
  color: #9ca3af;
}

.inventory-form-input::placeholder {
  color: #9ca3af;
}

/* Special Input Containers */
.vin-input-container {
  display: flex;
  gap: 0.5rem;
}

.vin-input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: monospace;
}

.vin-lookup-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vin-lookup-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(234, 88, 12, 0.4);
}

.vin-lookup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stock-input-container {
  display: flex;
  gap: 0.5rem;
}

.generate-stock-btn {
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.generate-stock-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Array Input Containers */
.inventory-array-container {
  margin-bottom: 1rem;
}

.inventory-array-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.inventory-array-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.inventory-array-tag.features {
  background-color: #fff7ed;
  color: #c2410c;
}

.inventory-array-tag.tags {
  background-color: #fef3c7;
  color: #92400e;
}

.inventory-array-tag button {
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.inventory-array-tag button:hover {
  opacity: 1;
}

.inventory-array-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inventory-array-input {
  flex: 1;
  min-width: 200px;
}

.inventory-quick-add-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.inventory-quick-add-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Action Buttons */
.inventory-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
}

.inventory-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.inventory-btn-cancel {
  color: #6b7280;
  background: transparent;
}

.inventory-btn-cancel:hover {
  color: #1f2937;
}

.inventory-btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  box-shadow: 0 2px 8px 0 rgba(107, 114, 128, 0.2);
}

.inventory-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(107, 114, 128, 0.3);
}

.inventory-btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.39);
}

.inventory-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(234, 88, 12, 0.5);
}

.inventory-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.inventory-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.inventory-spinner.small {
  width: 0.75rem;
  height: 0.75rem;
  border-width: 1.5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.inventory-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.inventory-page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inventory-page-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.inventory-page-title h1 span {
  font-size: 2.25rem;
}

.inventory-page-subtitle {
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.inventory-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Financial Input Styling */
.inventory-financial-input {
  position: relative;
}

.inventory-currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.inventory-financial-input input {
  padding-left: 2rem;
}

/* Image Preview */
.image-preview {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f3f4f6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Bulk Import Styling */
.bulk-import-container {
  display: grid;
  gap: 2rem;
}

.import-instructions {
  background: #fff7ed;
  border: 1px solid #ea580c;
  border-radius: 0.5rem;
  padding: 1rem;
}

.import-instructions h3 {
  color: #c2410c;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.import-instructions ul {
  margin: 0;
  padding-left: 1rem;
  color: #c2410c;
}

.file-upload-area {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
  font-weight: 500;
}

.file-upload-label:hover {
  border-color: #ea580c;
  background: #fff7ed;
}

.integration-options h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.integration-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.integration-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: not-allowed;
  opacity: 0.6;
}

.integration-btn:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.integration-btn:not(:disabled):hover {
  border-color: #ea580c;
  background: #fff7ed;
  transform: translateY(-1px);
}

.integration-btn span {
  font-size: 1.5rem;
}

.integration-btn small {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-inventory-form-container {
    padding: 1rem;
  }
  
  .inventory-page-header {
    flex-direction: column;
    text-align: center;
  }
  
  .inventory-actions,
  .inventory-header-actions {
    flex-direction: column-reverse;
  }
  
  .inventory-btn {
    width: 100%;
    justify-content: center;
  }
  
  .vin-input-container,
  .stock-input-container {
    flex-direction: column;
  }
  
  .vin-lookup-btn,
  .generate-stock-btn {
    width: 100%;
  }
  
  .inventory-array-input-row {
    flex-direction: column;
  }
  
  .inventory-quick-add-btn {
    width: 100%;
  }

  .integration-buttons {
    grid-template-columns: 1fr;
  }
}

/* Form Validation */
.inventory-form-input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.inventory-form-input:valid:not(:-moz-placeholder) {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.inventory-form-input:valid:not(:placeholder-shown) {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .inventory-form-section {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .inventory-section-header,
  .inventory-form-label,
  .inventory-page-title h1 {
    color: #f1f5f9;
  }
  
  .inventory-page-subtitle {
    color: #94a3b8;
  }
  
  .inventory-form-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: #475569;
    color: #f1f5f9;
  }
  
  .inventory-form-input::-moz-placeholder {
    color: #64748b;
  }
  
  .inventory-form-input::placeholder {
    color: #64748b;
  }
}

/* Success Animation */
@keyframes inventorySuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.inventory-success {
  animation: inventorySuccess 0.6s ease;
}
/* AI Call Script Modal Styles */

/* Force modal container to use full width - highest specificity */
div.modal-overlay div.modal-container:has(.ai-call-script-modal),
.modal-overlay .modal-container .ai-call-script-modal {
  max-width: calc(100vw - 40px) !important;
  width: calc(100vw - 40px) !important;
}

/* Fallback for browsers without :has() support */
.modal-container {
  max-width: calc(100vw - 40px) !important;
  width: calc(100vw - 40px) !important;
}

.ai-call-script-modal {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  max-height: 85vh;
  overflow: hidden;
}

.ai-call-script-modal .modal-body {
  padding: 16px !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
  height: 100%;
  box-sizing: border-box !important;
}

.call-grid {
  display: grid !important;
  grid-template-columns: 380px 1fr !important;
  gap: 20px !important;
  width: 98% !important;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  max-height: 78vh;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100% !important;
}



.call-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.call-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.call-card-header {
  background: #f9fafb;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-card-header-dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  flex-shrink: 0;
}

.call-card-header-icon {
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  flex-shrink: 0;
}

.call-card-header-icon.green {
  background: #10b981;
}

.call-card-body {
  padding: 12px;
}

/* Lead Information Styles */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.info-row.blue {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.info-row.green {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.info-row.purple {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}

.info-row.orange {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.info-row.emerald {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.info-label {
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.info-label.blue {
  color: #1d4ed8;
}

.info-label.green {
  color: #166534;
}

.info-label.purple {
  color: #7c3aed;
}

.info-label.orange {
  color: #ea580c;
}

.info-label.emerald {
  color: #059669;
}

.info-value {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  min-width: 0;
  flex: 1;
}

.info-value.blue {
  color: #1e3a8a;
}

.info-value.green {
  color: #14532d;
  font-family: monospace;
}

.info-value.orange {
  color: #9a3412;
  font-weight: 600;
}

.info-value.emerald {
  color: #047857;
}

.stage-badge {
  padding: 2px 8px;
  background: #c4b5fd;
  color: #581c87;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
}

/* Agent Selection Styles */
.agent-card {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.agent-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-color: #d1d5db;
}

.agent-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(to right, #eff6ff, #dbeafe);
}

.agent-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-card-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-card-indicator.selected {
  background: #3b82f6;
}

.agent-card-indicator.unselected {
  background: #d1d5db;
}

.agent-card-info {
  flex: 1;
  min-width: 0;
}

.agent-card-name {
  font-weight: 600;
  font-size: 12px;
  color: #111827;
  line-height: 1.2;
}

.agent-card-description {
  font-size: 11px;
  color: #6b7280;
  margin-top: 1px;
  line-height: 1.2;
}

.agent-features {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.agent-feature-tag {
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1d4ed8;
  white-space: nowrap;
}

/* Call Objectives Styles */
.objectives-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 6px;
}

.objective-checkbox {
  width: 14px;
  height: 14px;
  accent-color: #3b82f6;
  border-radius: 3px;
  flex-shrink: 0;
}

.objective-text {
  font-size: 12px;
  color: #374151;
  flex: 1;
  line-height: 1.3;
}

.objective-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.objective-status.checked {
  background: #10b981;
}

.objective-status.unchecked {
  background: #d1d5db;
}

/* Script Editor Styles */
.ai-call-script-modal .script-editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.script-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: linear-gradient(to right, #eff6ff, #faf5ff);
  border-radius: 4px;
  border: 1px solid #ddd6fe;
  flex-shrink: 0;
}

.script-header-icon {
  padding: 3px;
  background: #dbeafe;
  border-radius: 3px;
  flex-shrink: 0;
}

.script-header-title {
  font-weight: 600;
  font-size: 12px;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.script-header-subtitle {
  font-size: 10px;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
}

.script-editor {
  flex: 1;
  margin-bottom: 10px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.script-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  font-family: "Inter", system-ui, sans-serif;
  resize: none;
  background: #fafbfc;
  outline: none;
  transition: all 0.2s ease;
  flex: 1;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  max-width: 100%;
}

.script-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.script-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.script-actions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-call-script-modal .call-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.regenerate-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #dbeafe;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: #1e40af;
  transition: all 0.2s ease;
}

.regenerate-button:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.ai-call-script-modal .call-start-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #10b981;
  background: #10b981;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ai-call-script-modal .call-start-button:hover {
  background: #059669;
  border-color: #059669;
}

.ai-call-script-modal .call-logs-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #6366f1;
  background: white;
  color: #6366f1;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ai-call-script-modal .call-logs-button:hover {
  background: #eef2ff;
  border-color: #4f46e5;
}

.script-status {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.script-status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

/* Call Analytics Styles */
.ai-call-script-modal .analytics-container {
  padding: 8px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  max-height: 240px;
  overflow-y: auto;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.analytics-header {
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.analytics-icon {
  padding: 2px;
  background: #e0e7ff;
  border-radius: 2px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.analytics-metric {
  background: white;
  padding: 6px;
  border-radius: 3px;
  border: 1px solid #f3f4f6;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.metric-label {
  font-size: 9px;
  font-weight: 500;
  color: #6b7280;
}

.metric-change {
  font-size: 9px;
  font-weight: 700;
}

.metric-change.positive {
  color: #059669;
}

.metric-change.neutral {
  color: #3b82f6;
}

.metric-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.metric-period {
  font-size: 9px;
  color: #6b7280;
}

.recent-activity {
  margin-bottom: 8px;
}

.recent-activity-title {
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 0;
}

.activity-label {
  font-size: 10px;
  color: #6b7280;
}

.activity-value {
  font-size: 10px;
  font-weight: 600;
}

.activity-value.default {
  color: #111827;
}

.activity-value.success {
  color: #059669;
}

.activity-value.purple {
  color: #7c3aed;
}

.performance-score {
  background: linear-gradient(to right, #f0fdf4, #eff6ff);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #dcfce7;
}

.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.score-label {
  font-size: 10px;
  font-weight: 600;
  color: #166534;
}

.score-value-container {
  display: flex;
  align-items: center;
  gap: 2px;
}

.score-value {
  font-size: 14px;
  font-weight: 700;
  color: #166534;
  line-height: 1;
}

.score-max {
  font-size: 9px;
  color: #059669;
}

.score-bar-container {
  width: 100%;
  background: white;
  border-radius: 9999px;
  height: 4px;
  margin-bottom: 2px;
}

.score-bar {
  background: linear-gradient(to right, #10b981, #3b82f6);
  height: 4px;
  border-radius: 9999px;
  width: 84%;
}

.score-description {
  font-size: 9px;
  color: #059669;
}

/* Action Bar Styles */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-top: 8px;
  flex-shrink: 0;
}

.action-bar-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.action-bar-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cancel-button {
  padding: 6px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.call-button {
  padding: 6px 20px;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.call-button.enabled {
  background: #059669;
  cursor: pointer;
}

.call-button.disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.call-button-icon.pulse {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* AI SMS Modal Styles */

.ai-sms-modal {
  width: 100%;
}

.sms-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(to right, #fef7ff, #fdf4ff);
  border-radius: 12px;
  border: 1px solid #f0abfc;
}

.sms-header-icon {
  padding: 8px;
  background: #f3e8ff;
  border-radius: 50%;
}

.sms-header-content h4 {
  font-weight: 600;
  color: #7c2d12;
  margin: 0;
}

.sms-header-content p {
  font-size: 14px;
  color: #c2410c;
  margin: 0;
}

.sms-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

/* Lead Information Section */
.lead-info-card {
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.lead-info-header {
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-info-dot {
  width: 8px;
  height: 8px;
  background: #8b5cf6;
  border-radius: 50%;
}

.lead-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.lead-info-row:last-child {
  border-bottom: none;
}

.lead-info-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.lead-info-value {
  font-size: 14px;
  font-weight: 600;
}

.lead-info-value.name {
  color: #111827;
}

.lead-info-value.phone {
  color: #8b5cf6;
  font-family: monospace;
}

.stage-badge {
  padding: 4px 8px;
  background: #ddd6fe;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
}

/* Best Practices Section */
.best-practices-card {
  background: linear-gradient(to br, #dbeafe, #fef3c7);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #93c5fd;
}

.best-practices-header {
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.best-practices-icon {
  width: 16px;
  height: 16px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
}

.best-practices-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #1e40af;
  font-size: 14px;
}

.best-practices-list li {
  margin-bottom: 4px;
}

/* Message Editor Section */
.message-editor-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.message-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.message-editor-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.character-counter {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  font-weight: 600;
}

.character-counter.good {
  background: #dcfce7;
  color: #166534;
}

.character-counter.warning {
  background: #fef3c7;
  color: #d97706;
}

.character-counter.danger {
  background: #fee2e2;
  color: #dc2626;
}

.message-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}

.message-textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.long-message-warning {
  margin-top: 8px;
  padding: 12px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
}

.long-message-warning p {
  font-size: 12px;
  color: #d97706;
  margin: 0;
}

.long-message-warning .warning-label {
  font-weight: 600;
}

/* Message Preview Section */
.message-preview-card {
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.message-preview-header {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.message-preview-content {
  background: white;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-preview-from {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.message-preview-text {
  font-size: 14px;
  color: #111827;
}

/* SMS Analytics Section */
.sms-analytics-card {
  background: #faf5ff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e9d5ff;
}

.sms-analytics-header {
  font-weight: 600;
  color: #6b21a8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sms-analytics-icon {
  padding: 4px;
  background: #ddd6fe;
  border-radius: 4px;
}

.sms-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.sms-metric {
  background: white;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e9d5ff;
}

.sms-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sms-metric-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.sms-metric-change {
  font-size: 12px;
  font-weight: 700;
}

.sms-metric-change.positive {
  color: #059669;
}

.sms-metric-change.neutral {
  color: #6b21a8;
}

.sms-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.sms-metric-period {
  font-size: 12px;
  color: #6b7280;
}

.sms-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sms-activity-item {
  background: white;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e9d5ff;
  text-align: center;
}

.sms-activity-value {
  font-size: 14px;
  font-weight: 700;
}

.sms-activity-value.sent {
  color: #3b82f6;
}

.sms-activity-value.delivered {
  color: #059669;
}

.sms-activity-value.replies {
  color: #059669;
}

.sms-activity-value.meetings {
  color: #8b5cf6;
}

.sms-activity-label {
  font-size: 12px;
  color: #6b7280;
}

/* Regenerate Button */
.regenerate-section {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.regenerate-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #c084fc;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #7c2d12;
  transition: all 0.2s ease;
}

.regenerate-button:hover {
  background: #faf5ff;
  border-color: #a855f7;
}

/* Action Bar */
.sms-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.sms-action-info {
  font-size: 14px;
  color: #6b7280;
}

.sms-action-buttons {
  display: flex;
  gap: 12px;
}

.sms-cancel-button {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.sms-send-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
}

.sms-send-button.enabled {
  background: #8b5cf6;
}

.sms-send-button.enabled:hover {
  background: #7c3aed;
}

.sms-send-button.disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.sms-send-button.sending {
  background: #a855f7;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 1.5s infinite;
}
/* AI Email Modal Styles */

.ai-email-modal {
  width: 100%;
}

.email-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(to right, #f0f9ff, #ecfdf5);
  border-radius: 12px;
  border: 1px solid #7dd3fc;
}

.email-header-icon {
  padding: 8px;
  background: #dbeafe;
  border-radius: 50%;
}

.email-header-content h4 {
  font-weight: 600;
  color: #0c4a6e;
  margin: 0;
}

.email-header-content p {
  font-size: 14px;
  color: #075985;
  margin: 0;
}

.email-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

/* Email Type Selection */
.email-type-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.email-type-header {
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-type-icon {
  width: 8px;
  height: 8px;
  background: #0ea5e9;
  border-radius: 50%;
}

/* Select Component Styles */
.email-type-select {
  width: 100%;
  height: 44px;
  cursor: pointer;
  font-size: 14px;
}

.email-type-select:hover {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.email-type-select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

/* Native Select Styles */
.native-select {
  width: 100%;
  height: 44px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.native-select:hover {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.native-select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
  outline: none;
}

/* Select Dropdown Content */
[data-radix-select-content] {
  z-index: 9999 !important;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
}

/* Ensure dropdown portal is above modal */
[data-radix-select-portal] {
  z-index: 9999 !important;
}

[data-radix-select-item] {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

[data-radix-select-item]:hover {
  background-color: #f0f9ff;
}

[data-radix-select-item][data-highlighted] {
  background-color: #0ea5e9;
  color: white;
}

.email-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.email-type-option {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.email-type-option:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.email-type-option.selected {
  border-color: #0ea5e9;
  background: linear-gradient(to right, #f0f9ff, #ecfdf5);
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
}

.email-type-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.email-type-description {
  font-size: 12px;
  color: #6b7280;
}

/* Lead Information */
.email-lead-info {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.email-lead-header {
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-lead-dot {
  width: 8px;
  height: 8px;
  background: #0ea5e9;
  border-radius: 50%;
}

.email-lead-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-lead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
}

.email-lead-row:last-child {
  border-bottom: none;
}

.email-lead-label {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.email-lead-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.email-lead-value.email {
  color: #0ea5e9;
  word-break: break-all;
}

/* Email Guidelines */
.email-guidelines {
  background: linear-gradient(to br, #dbeafe, #f0fdf4);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #93c5fd;
}

.email-guidelines-header {
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-guidelines-icon {
  width: 16px;
  height: 16px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
}

.email-guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #1e40af;
  font-size: 14px;
}

.email-guidelines-list li {
  margin-bottom: 4px;
}

/* Email Editor */
.email-editor-section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-editor-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-editor-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

/* Subject Line */
.subject-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subject-input-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.subject-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.subject-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Message Textarea */
.email-textarea-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-textarea-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.email-textarea {
  min-height: 200px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}

.email-textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Email Preview */
.email-preview-section {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.email-preview-header {
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
}

.email-preview-content {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.email-preview-header-bar {
  background: #f1f5f9;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
}

.email-preview-body {
  padding: 16px;
}

.email-preview-subject {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 16px;
}

.email-preview-message {
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Regenerate Button */
.email-regenerate-section {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.email-regenerate-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #38bdf8;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #0c4a6e;
  transition: all 0.2s ease;
}

.email-regenerate-button:hover {
  background: #f0f9ff;
  border-color: #0ea5e9;
}

/* Action Bar */
.email-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.email-action-info {
  font-size: 14px;
  color: #6b7280;
}

.email-action-buttons {
  display: flex;
  gap: 12px;
}

.email-cancel-button {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.email-send-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
}

.email-send-button.enabled {
  background: #0ea5e9;
}

.email-send-button.enabled:hover {
  background: #0284c7;
}

.email-send-button.disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.email-send-button.sending {
  background: #38bdf8;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 1.5s infinite;
}
/* 
  ===========================================
  🚀 NEW LEAD MODAL COMPONENT
  ===========================================
  Component: /components/modals/NewLeadModal.tsx
  Purpose: Create new leads with single/bulk import modes
  Theme: Enhanced glass morphism modal with blue accent theme
*/

/* Modal positioning override for better placement */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 5vh !important;
  padding-bottom: 2vh !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  z-index: 9999 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(2px) !important;
}

.modal-container {
  position: relative !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 750px !important;
  background: white !important;
  border-radius: 2rem !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  animation: modalSlideIn 0.3s ease-out !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex !important;
  flex-direction: column !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.new-lead-modal-content {
  max-height: calc(90vh - 100px);
  min-height: 400px;
  overflow-y: auto;
  padding: 0;
  position: relative;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
}

/* Enhanced Modal Header */
.modal-header {
  padding: 2rem 2rem 1rem !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1) !important;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  border-radius: 2rem 2rem 0 0 !important;
  position: relative !important;
}

.modal-title, 
h3.font-bold.text-lg.mb-2 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin: 0 0 0.5rem 0 !important;
  text-align: center !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .modal-title, 
  h3.font-bold.text-lg.mb-2 {
    color: #1e40af !important;
    background: none !important;
  }
}

/* Enhanced Close Button */
.modal-close-btn {
  position: absolute !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  background: rgba(248, 250, 252, 0.8) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 0.75rem !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: #64748b !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  backdrop-filter: blur(10px) !important;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #dc2626 !important;
  transform: scale(1.05) !important;
}

/* Ensure modal scrolls internally, not page */
.new-lead-modal-content::-webkit-scrollbar {
  width: 6px;
}

.new-lead-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.new-lead-modal-content::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

.new-lead-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Mode Toggle */
.new-lead-mode-toggle {
  padding: 1rem 2rem 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  flex-shrink: 0;
}

.mode-toggle-container {
  display: flex;
  gap: 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  padding: 0.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

/* Integration Section */
.integration-section {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(59, 130, 246, 0.08);
}

.connect-integration-btn {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 2px solid rgba(16, 185, 129, 0.3) !important;
  color: #065f46 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.75rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(10px) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}

.connect-integration-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
  transition: left 0.6s ease;
}

.connect-integration-btn:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
  color: #047857 !important;
}

.connect-integration-btn:hover::before {
  left: 100%;
}

.connect-integration-btn:active {
  transform: translateY(-1px) !important;
}

.mode-toggle-btn {
  flex: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: transparent;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.mode-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.mode-toggle-btn[data-state="active"], 
.mode-toggle-btn:not([data-variant="outline"]) {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.mode-toggle-btn:hover:not([data-state="active"]) {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Form Styling */
.new-lead-form {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Single Lead Form */
.single-lead-form {
  animation: fadeInUp 0.3s ease;
}

.form-grid {
  display: grid;
  gap: 2rem;
}

.form-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.form-section:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.form-section.full-width {
  grid-column: 1 / -1;
}

/* Form Sections with Enhanced Design */
.form-section-wrapper {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.form-section-wrapper:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.section-title svg {
  color: #3b82f6;
  width: 1.25rem;
  height: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 2px solid rgba(59, 130, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 4px 12px rgba(59, 130, 246, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.form-field input::-moz-placeholder, .form-field textarea::-moz-placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Tags Section */
.tag-input-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInScale 0.2s ease;
}

.tag-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.tag-remove:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* Bulk Import Section */
.bulk-import-section {
  animation: fadeInUp 0.3s ease;
}

.upload-area {
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.02);
  transition: all 0.3s ease;
  overflow: hidden;
}

.upload-area:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.upload-content {
  text-align: center;
  padding: 3rem 2rem;
}

.upload-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.upload-icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.upload-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.upload-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.upload-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden-file-input {
  display: none;
}

.uploaded-file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-weight: 500;
}

/* Bulk Preview */
.bulk-preview {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  animation: slideInUp 0.3s ease;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.preview-table th {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.preview-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  font-size: 0.9rem;
}

.preview-table tr:nth-child(even) {
  background: rgba(59, 130, 246, 0.02);
}

.preview-more {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(59, 130, 246, 0.1);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 0 0 2rem 2rem;
  flex-shrink: 0;
  margin-top: auto;
}

.submit-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cancel-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .new-lead-modal-content {
    max-height: 90vh;
  }
  
  .upload-content {
    padding: 2rem 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mode-toggle-container {
    flex-direction: column;
  }
  
  .tags-display {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* CRM Integration Modal Styles */
.integration-modal-content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.ai-assistant-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 2rem;
}

.ai-assistant-banner h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e40af;
}

.ai-assistant-banner p {
  margin: 0;
  color: #3b82f6;
  font-size: 0.9rem;
}

.integration-options h3.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.integration-card {
  position: relative;
  padding: 1.5rem;
  border: 2px solid rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.integration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.6s ease;
}

.integration-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.integration-card:hover::before {
  left: 100%;
}

.integration-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.integration-card.popular {
  border-color: rgba(245, 158, 11, 0.3);
}

.integration-card.popular.selected {
  border-color: #f59e0b;
}

.popular-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.integration-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.integration-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.integration-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e40af;
}

.integration-description {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.integration-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
}

.selected-indicator {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.3s ease;
}

.ai-mapping-preview {
  padding: 1.5rem;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-radius: 1rem;
  border: 1px solid rgba(147, 51, 234, 0.2);
  margin-bottom: 2rem;
}

.ai-preview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ai-preview-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #7c3aed;
}

.mapping-sample {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mapping-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  border: 1px solid rgba(147, 51, 234, 0.1);
}

.source-field {
  flex: 1;
  font-weight: 500;
  color: #6b21a8;
}

.mapping-arrow {
  color: #a855f7;
  font-weight: 600;
}

.target-field {
  flex: 1;
  font-weight: 500;
  color: #7c3aed;
  text-align: right;
}

.integration-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.connect-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  border: none !important;
  color: white !important;
  padding: 0.875rem 2rem !important;
  border-radius: 0.75rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.connect-btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

.connect-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-overlay {
    padding-top: 2vh !important;
    padding-bottom: 2vh !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .modal-container {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 1.5rem !important;
    max-height: 95vh !important;
  }
  
  .new-lead-modal-content {
    max-height: calc(95vh - 80px);
  }
  
  .modal-header {
    padding: 1.5rem 1rem 0.75rem !important;
  }
  
  .modal-title {
    font-size: 1.5rem !important;
  }
  
  .new-lead-mode-toggle {
    padding: 0.75rem 1rem !important;
  }
  
  .new-lead-form {
    padding: 0 1rem 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .form-section {
    padding: 1rem;
  }
  
  .form-actions {
    padding: 1rem 1rem 1.5rem;
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .integration-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-height: 700px) {
  .modal-overlay {
    padding-top: 1vh !important;
    padding-bottom: 1vh !important;
  }
  
  .modal-container {
    max-height: 98vh !important;
  }
  
  .new-lead-modal-content {
    max-height: calc(98vh - 60px);
  }
  
  .form-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .bulk-preview {
    margin-top: 1rem;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 
  ===========================================
  🤖 AI INSIGHTS GRID LAYOUT
  ===========================================
  Component: /components/ai/PageAIAssistant.tsx
  Purpose: 4-column card layout for AI insights with navigation
  Theme: Compact cards matching metrics design
*/

/* AI Insights Grid - 4 Column Layout */
.ai-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .ai-insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }
}

@media (max-width: 768px) {
  .ai-insights-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* AI Insight Card */
.ai-insight-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.375rem;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 1px rgba(0, 0, 0, 0.03);
}

.ai-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.ai-insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  opacity: 0.8;
}

/* AI Insight Header */
.ai-insight-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.125rem;
}

.ai-insight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ai-insight-icon.low {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.ai-insight-icon.medium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.ai-insight-icon.high {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #ea580c;
}

.ai-insight-icon.critical {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  color: #dc2626;
}

.ai-insight-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.1;
  flex: 1;
  min-width: 0;
}

/* AI Insight Content */
.ai-insight-description {
  font-size: 0.625rem;
  color: #6b7280;
  line-height: 1.2;
  flex: 1;
}

.ai-insight-recommendation {
  font-size: 0.625rem;
  font-weight: 500;
  color: #374151;
  background: #f8fafc;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  border-left: 2px solid #3b82f6;
  line-height: 1.3;
}

/* AI Insight Footer */
.ai-insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.25rem;
  border-top: 1px solid #f1f5f9;
}

.ai-insight-impact {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.375rem;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 3px;
}

.ai-insight-impact.low {
  background: #dbeafe;
  color: #1d4ed8;
}

.ai-insight-impact.medium {
  background: #fef3c7;
  color: #d97706;
}

.ai-insight-impact.high {
  background: #fed7aa;
  color: #ea580c;
}

.ai-insight-impact.critical {
  background: #fecaca;
  color: #dc2626;
}

.ai-insight-confidence {
  font-size: 0.5625rem;
  color: #6b7280;
  font-weight: 500;
}

/* Empty Card Placeholder */
.ai-insight-card-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 0.625rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.ai-insight-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .ai-insight-card {
    padding: 0.75rem;
    min-height: 100px;
  }
  
  .ai-insight-title {
    font-size: 0.75rem;
  }
  
  .ai-insight-description,
  .ai-insight-recommendation {
    font-size: 0.625rem;
  }
  
  .ai-insight-icon {
    width: 24px;
    height: 24px;
  }
}
/* Automation Hub Main Page Styles */

/* Base Layout */
.automation-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.automation-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Glass Morphism Components */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.header-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1000000;
}

/* Header Layout */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.header-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.header-icon {
  padding: 12px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.header-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.header-subtitle {
  color: #d1d5db;
  margin: 0;
  margin-left: 56px;
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Workflow Cards */
.workflow-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.workflow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.workflow-card:hover::before {
  opacity: 1;
}

.workflow-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Section Layouts */
.workflows-section {
  padding: 24px;
  margin-bottom: 32px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-icon {
  color: #60a5fa;
}

.section-heading {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-icon {
  color: #9ca3af;
}

/* Filter Select */
.filter-select {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.filter-select option {
  background: #1f2937;
  color: white;
}

/* Workflows Grid */
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

/* Workflow Card Styles */
.workflow-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.workflow-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workflow-icon {
  padding: 10px;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.workflow-meta {
  display: flex;
  flex-direction: column;
}

.workflow-title {
  font-weight: 600;
  color: white;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.workflow-menu {
  position: relative;
}

.menu-button {
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #9ca3af;
}

.workflow-description {
  color: #d1d5db;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.workflow-stats {
  margin-bottom: 16px;
}

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

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-size: 13px;
  color: #9ca3af;
}

.stat-value {
  font-weight: 500;
  color: white;
  font-size: 13px;
}

.stat-value.success {
  color: #22c55e;
}

.stat-value.warning {
  color: #fbbf24;
}

.stat-value.error {
  color: #ef4444;
}

.workflow-triggers {
  margin-bottom: 16px;
}

.triggers-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.triggers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Status Badges */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-paused {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-draft {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Trigger Tags */
.trigger-tag {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Workflow Actions */
.workflow-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
}

.action-btn-pause {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.action-btn-pause:hover {
  background: rgba(251, 191, 36, 0.2);
}

.action-btn-play {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.action-btn-play:hover {
  background: rgba(34, 197, 94, 0.2);
}

.action-btn-edit {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.05);
}

.action-btn-edit:hover {
  background: rgba(255, 255, 255, 0.1);
}

.action-btn-view {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.action-btn-view:hover {
  background: rgba(96, 165, 250, 0.2);
}

/* Quick Actions Dropdown */
.quick-actions-container {
  position: relative;
  z-index: 999999;
}

.quick-actions-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  z-index: 999999 !important;
  animation: slideDown 0.3s ease-out;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dropdown-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-title {
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0;
  font-size: 16px;
}

.dropdown-subtitle {
  font-size: 14px;
  color: #d1d5db;
  margin: 0;
}

.dropdown-item {
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.dropdown-item-content {
  flex: 1;
}

.dropdown-item-title {
  font-weight: 500;
  color: white;
  font-size: 14px;
  margin-bottom: 2px;
}

.dropdown-item-description {
  font-size: 13px;
  color: #d1d5db;
}

.dropdown-arrow {
  color: #9ca3af;
}

.icon-wrapper {
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #60a5fa;
}

.chevron {
  transition: transform 0.3s ease;
}

.chevron.rotated {
  transform: rotate(180deg);
}

/* Dropdown Backdrop */
.dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999998;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Activity Section */
.activity-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.activity-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-subtitle {
  color: #d1d5db;
  font-size: 14px;
  margin: 4px 0 0 32px;
}

.view-all-btn {
  font-size: 14px;
  color: #60a5fa;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.activity-content {
  padding: 24px;
}

.activity-item {
  padding: 20px 24px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #4f46e5;
}

.activity-item-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.activity-icon {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-icon.success {
  color: #22c55e;
}

.activity-icon.failed {
  color: #ef4444;
}

.activity-icon.pending {
  color: #fbbf24;
}

.activity-details {
  flex: 1;
}

.activity-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.activity-name {
  font-weight: 600;
  color: white;
  font-size: 14px;
}

.activity-separator {
  font-size: 14px;
  color: #9ca3af;
}

.activity-action {
  font-size: 14px;
  color: #d1d5db;
}

.activity-timestamp {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.activity-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.activity-status-badge.success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.activity-status-badge.failed {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.activity-status-badge.pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Loading and Error States */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 12px;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  color: white;
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Media Queries */
@media (max-width: 768px) {
  .automation-container {
    padding: 16px;
  }
  
  .workflows-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .header-glass {
    padding: 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .quick-actions-dropdown {
    width: 280px;
  }
}
/* 
  ===========================================
  🗓️ TENANT OWNER CALENDAR PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner calendar and scheduling interface
  Theme: Modern glass morphism with blue gradient theme for calendar
*/

/* CSS Variables for dynamic theming */
:root {
  --calendar-primary: #3b82f6;
  --calendar-secondary: #10b981;
  --calendar-accent: #f59e0b;
  --calendar-background: #f8fafc;
  --calendar-text: #1f2937;
  --calendar-border: #e5e7eb;
  --calendar-today: #ef4444;
  
  /* Event colors */
  --calendar-event-meeting: #3b82f6;
  --calendar-event-call: #10b981;
  --calendar-event-appointment: #f59e0b;
  --calendar-event-test-drive: #8b5cf6;
  --calendar-event-demo: #06b6d4;
  --calendar-event-review: #f97316;
  --calendar-event-todo: #6b7280;
  --calendar-event-other: #ec4899;
}

/* Page Container */
.tenant-owner-calendar-page {
  background: linear-gradient(135deg, var(--calendar-background) 0%, #ebf8ff 20%, #dbeafe 40%, #bfdbfe 60%, #93c5fd 80%, var(--calendar-primary) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Content Wrapper */
.tenant-owner-calendar-content-wrapper {
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 2;
  height: auto !important;
  overflow: visible !important;
}

.tenant-owner-calendar-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  height: auto !important;
  overflow: visible !important;
}

/* Header Section */
.tenant-owner-calendar-header {
  padding: 2rem 2rem 0;
  position: relative;
  z-index: 2;
}

.tenant-owner-calendar-header-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tenant-owner-calendar-analytics-grid-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Analytics Cards */
.tenant-owner-calendar-analytics-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tenant-owner-calendar-analytics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.tenant-owner-calendar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.tenant-owner-calendar-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tenant-owner-calendar-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tenant-owner-calendar-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.tenant-owner-calendar-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tenant-owner-calendar-card-icon.today {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.tenant-owner-calendar-card-icon.week {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.tenant-owner-calendar-card-icon.availability {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.tenant-owner-calendar-card-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.tenant-owner-calendar-card-trend svg {
  width: 1rem;
  height: 1rem;
}

/* Action Card */
.tenant-owner-calendar-analytics-card.actions {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
  border-color: rgba(59, 130, 246, 0.2);
}

.tenant-owner-calendar-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.calendar-action-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
}

.calendar-action-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.calendar-action-btn.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

.calendar-action-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.calendar-action-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.tenant-owner-calendar-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: calendarFloat 25s infinite ease-in-out;
}

@keyframes calendarFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(0.5deg); }
  50% { transform: translateY(10px) rotate(-0.3deg); }
  75% { transform: translateY(-8px) rotate(0.2deg); }
}

/* Page Header */
.page-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.title-section {
  flex: 1;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 0 0.5rem 0;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Button Styles */
.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* Stats Cards - 2x2 Grid */
.calendar-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .calendar-stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 1rem;
  z-index: -1;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.stat-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.stat-content p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  margin: 0;
}

/* Action Card for Buttons */
.stat-card.action-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-buttons .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
}

.action-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
}

.action-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.action-buttons .btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

/* Inline Event Creation Section */
.event-creation-inline {
  position: relative;
  z-index: 2;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 1.25rem;
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.06);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-creation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.event-creation-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.event-creation-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.event-creation-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Event Type Grid Inline */
.event-type-grid-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem 2rem;
}

.event-type-card-inline {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-type-card-inline:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.event-type-icon-inline {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.event-type-content-inline h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem;
}

.event-type-content-inline p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Inline Form */
.event-form-inline {
  padding: 1.5rem 2rem;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-input-inline {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(229, 231, 235, 0.8);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input-inline:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

.form-actions-inline {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-back-inline,
.btn-create-inline {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-back-inline {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(229, 231, 235, 0.8);
  color: #374151;
}

.btn-back-inline:hover {
  border-color: #6b7280;
  background: rgba(107, 114, 128, 0.05);
}

.btn-create-inline {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1.5px solid #3b82f6;
  color: white;
}

.btn-create-inline:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-create-inline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Calendar Card */
.calendar-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  display: block;
}

.calendar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 1rem;
  z-index: -1;
}

/* Calendar Header */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(229, 231, 235, 0.3);
}

.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-mode-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.settings-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 0.5rem;
}

.settings-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #6b7280;
  transition: all 0.2s ease;
}

.settings-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.view-btn {
  min-width: 80px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.view-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Calendar preference classes */
.calendar-card.compact-view .calendar-day {
  min-height: 4rem !important;
  padding: 0.25rem !important;
}

.calendar-card.compact-view .day-header {
  padding: 0.25rem !important;
  font-size: 0.75rem !important;
}

.calendar-card.hide-event-icons .event-icon {
  display: none !important;
}

.calendar-card.hide-all-day-events .all-day-event {
  display: none !important;
}

.calendar-card.show-week-numbers .calendar-days::before {
  content: 'W' attr(data-week-number);
  position: absolute;
  left: -2rem;
  font-size: 0.75rem;
  color: var(--calendar-text);
  opacity: 0.6;
}

/* Today highlight using CSS variable */
.calendar-day.today {
  background-color: var(--calendar-today) !important;
  color: white !important;
}

/* Event colors using CSS variables */
.event-meeting { background-color: var(--calendar-event-meeting) !important; }
.event-call { background-color: var(--calendar-event-call) !important; }
.event-appointment { background-color: var(--calendar-event-appointment) !important; }
.event-test-drive { background-color: var(--calendar-event-test-drive) !important; }
.event-demo { background-color: var(--calendar-event-demo) !important; }
.event-review { background-color: var(--calendar-event-review) !important; }
.event-todo { background-color: var(--calendar-event-todo) !important; }
.event-other { background-color: var(--calendar-event-other) !important; }

.nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.month-year {
  text-align: center;
  flex: 1;
  min-width: 240px;
}

.month-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.today-indicator {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* MAXIMUM SPECIFICITY ID-BASED GRID ENFORCEMENT */
.calendar-card {
  display: block !important;
  width: 100% !important;
  contain: layout !important;
}

.calendar-card .calendar-grid {
  display: block !important;
  width: 100% !important;
  contain: layout !important;
}

#calendar-day-headers-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  margin-bottom: 1rem !important;
  contain: layout !important;
}

#calendar-days-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  contain: layout !important;
}

/* ULTRA-HIGH PRIORITY GRID ENFORCEMENT */
.calendar-card {
  display: block !important;
}

.calendar-card > * {
  display: block !important;
}

.calendar-card .calendar-grid {
  display: block !important;
  width: 100% !important;
}

.calendar-card .calendar-grid .day-headers {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  grid-gap: 0.5rem !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.calendar-card .calendar-grid .calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  grid-template-rows: repeat(auto, minmax(8rem, 1fr)) !important;
  grid-gap: 0.5rem !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.calendar-card .calendar-grid .calendar-day {
  display: flex !important;
  flex-direction: column !important;
  min-height: 8rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Browser-specific grid enforcement */
@supports (display: grid) {
  .day-headers {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
  }
  
  .calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
  }
}

/* Force grid even on flex containers */
div[class*="card"][class*="calendar"] div[class*="day-headers"],
div[class*="calendar-card"] div[class*="day-headers"] {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
}

div[class*="card"][class*="calendar"] div[class*="calendar-days"],
div[class*="calendar-card"] div[class*="calendar-days"] {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
}

/* Calendar Grid */
.calendar-card .calendar-grid {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
}

.calendar-card .calendar-grid .day-headers {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0.5rem !important;
  margin-bottom: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.calendar-card .calendar-grid .day-header {
  text-align: center;
  font-weight: 600;
  color: #374151;
  padding: 1rem;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 0.5rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-sizing: border-box;
}

.calendar-card .calendar-grid .calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  grid-auto-rows: minmax(8rem, auto) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
}

.calendar-card .calendar-grid .calendar-day {
  min-height: 8rem !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(229, 231, 235, 0.4) !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.calendar-card .calendar-grid .calendar-day:hover {
  background: rgba(249, 250, 251, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.calendar-card .calendar-grid .calendar-day.current-month {
  background: rgba(255, 255, 255, 0.8);
}

.calendar-card .calendar-grid .calendar-day.other-month {
  background: rgba(249, 250, 251, 0.5);
  opacity: 0.6;
}

.calendar-card .calendar-grid .calendar-day.today {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(191, 219, 254, 0.7));
  border: 2px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.calendar-card .calendar-grid .calendar-day.today:hover {
  background: linear-gradient(135deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.8));
  border-color: rgba(59, 130, 246, 0.6);
}

.calendar-card .calendar-grid .day-number {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.calendar-card .calendar-grid .calendar-day.other-month .day-number {
  color: #9ca3af;
}

.calendar-card .calendar-grid .calendar-day.today .day-number {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.125rem;
}

/* Events */
.day-events {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-left: 3px solid;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.event:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event.meeting {
  border-color: #3b82f6;
  background: rgba(219, 234, 254, 0.9);
  color: #1e40af;
}

.event.call {
  border-color: #10b981;
  background: rgba(187, 247, 208, 0.9);
  color: #047857;
}

.event.review {
  border-color: #f59e0b;
  background: rgba(254, 252, 232, 0.9);
  color: #92400e;
}

.event.demo {
  border-color: #8b5cf6;
  background: rgba(237, 233, 254, 0.9);
  color: #6d28d9;
}

.event-title {
  display: block;
  font-weight: 600;
}

.event-time {
  display: block;
  font-size: 0.625rem;
  opacity: 0.8;
  margin-top: 0.125rem;
}

/* Upcoming Events Card */
.upcoming-events {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.upcoming-events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 1rem;
  z-index: -1;
}

.upcoming-events h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 0.75rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s ease;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 0.5rem;
  padding: 0.75rem;
  min-width: 3.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-date .date {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.event-date .month {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
}

.event-details {
  flex: 1;
}

.event-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.event-details p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.event-type {
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.event-type.meeting {
  background: rgba(219, 234, 254, 0.8);
  color: #1e40af;
}

.event-type.call {
  background: rgba(187, 247, 208, 0.8);
  color: #047857;
}

.event-type.review {
  background: rgba(254, 252, 232, 0.8);
  color: #92400e;
}

.event-type.demo {
  background: rgba(237, 233, 254, 0.8);
  color: #6d28d9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .calendar-stats {
    grid-template-columns: 1fr;
  }
  
  .calendar-days {
    gap: 0.25rem;
  }
  
  .calendar-day {
    min-height: 6rem;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .tenant-owner-calendar-container {
    padding: 1rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .calendar-card,
  .upcoming-events {
    padding: 1rem;
  }
  
  .calendar-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .day-headers {
    gap: 0.125rem;
  }
  
  .day-header {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  
  .calendar-day {
    min-height: 4rem;
    padding: 0.25rem;
  }
  
  .event {
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
  }
}



/* Core Animations */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* Simple Event Type Grid */
.event-type-grid-container {
  padding: 24px;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.event-type-card-simple {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.event-type-card-simple:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.event-type-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.event-type-content {
  flex: 1;
}

.event-type-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.event-type-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.event-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0 24px;
  margin-bottom: 24px;
}

.event-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.event-modal-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-modal-close:hover {
  background: rgba(107, 114, 128, 0.1);
  color: #374151;
}

.event-form {
  padding: 0 24px 24px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
  background: rgba(243, 244, 246, 0.8);
  color: #9ca3af;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 0;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #374151;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.btn-cancel,
.btn-submit {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #374151;
  backdrop-filter: blur(10px);
}

.btn-cancel:hover:not(:disabled) {
  background: rgba(249, 250, 251, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-submit {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-submit:disabled,
.btn-cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Enhanced Event Display */
.event {
  transition: all 0.3s ease;
  cursor: pointer;
}

.event:hover {
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Calendar Day Enhancements */
.calendar-day:hover .event {
  transform: scale(1.05);
}

/* Responsive Modal Design */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .event-modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .event-modal-header,
  .event-form,
  .event-type-selector {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

/* ===========================================
  🗣️ @-MENTION FUNCTIONALITY STYLES
  ===========================================
  Enhanced attendees field with mention support
*/

/* Event Type Grid - Simple Layout */
.event-type-grid-container {
  padding: 1.5rem;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.event-type-card-simple {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-type-card-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.event-type-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem auto;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 20px;
  color: white;
}

.event-type-content {
  text-align: left;
}

.event-type-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.event-type-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Attendees Field Enhancements */
.attendees-field {
  position: relative;
}

.attendees-input-container {
  position: relative;
}

.attendees-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* @-Mention Dropdown */
.mention-dropdown {
  position: fixed;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-height: 200px;
  overflow-y: auto;
  min-width: 300px;
  z-index: 1000;
  animation: mentionSlideIn 0.2s ease-out;
}

@keyframes mentionSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.mention-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.05));
  transform: translateX(4px);
}

.mention-item-selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.08));
  transform: translateX(4px);
}

.mention-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.mention-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.mention-email {
  font-size: 0.75rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Enhanced Form Input for Mentions */
.attendees-field .form-input {
  padding-right: 3rem;
}

/* EMERGENCY GRID FIX - High Priority Rules */
div[class*="calendar-card"] div[class*="calendar-grid"] div[class*="day-headers"] {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
}

div[class*="calendar-card"] div[class*="calendar-grid"] div[class*="calendar-days"] {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

div[class*="calendar-card"] div[class*="calendar-grid"] div[class*="calendar-day"] {
  min-height: 8rem !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* Additional fallback selectors */
.day-headers {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  grid-auto-rows: minmax(8rem, auto) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  overflow: visible !important;
}

.calendar-day {
  display: flex !important;
  flex-direction: column !important;
  min-height: 8rem !important;
  box-sizing: border-box !important;
}

/* Force grid on all calendar containers */
*[class*="calendar"] .day-headers,
*[class*="calendar"] .calendar-days {
  display: grid !important;
}

*[class*="calendar"] .day-headers {
  grid-template-columns: repeat(7, 1fr) !important;
}

*[class*="calendar"] .calendar-days {
  grid-template-columns: repeat(7, 1fr) !important;
  grid-auto-rows: minmax(8rem, auto) !important;
}

/* Responsive calendar grid */
@media (max-width: 768px) {
  .calendar-days {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.25rem !important;
  }
  
  .calendar-day {
    min-height: 6rem !important;
    padding: 0.5rem !important;
  }
}

.attendees-field .form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* MAXIMUM SPECIFICITY: ID-based grid enforcement */
#calendar-day-headers-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
  gap: 1px !important;
  contain: layout !important;
  min-height: 40px !important;
}

#calendar-days-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
  gap: 1px !important;
  contain: layout !important;
  min-height: 200px !important;
}

/* FORCE all children to respect grid */
#calendar-day-headers-grid > * {
  display: block !important;
  width: auto !important;
  grid-column: unset !important;
}

#calendar-days-grid > * {
  display: block !important;
  width: auto !important;
  grid-column: unset !important;
}

/* Calendar Settings Modal */
.settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.settings-modal {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ebf8ff 100%);
}

.settings-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.close-btn {
  color: #6b7280;
  border: none;
  background: transparent;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

.settings-modal-content {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.settings-section {
  padding: 2rem;
  border-bottom: 1px solid #f3f4f6;
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1.5rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.event-colors-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4b5563;
  margin: 2rem 0 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.event-colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.color-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-item label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-height: 60px;
}

.color-input-wrapper:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.color-input {
  width: 50px;
  height: 50px;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  background: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
  border-radius: 0.375rem;
}

.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 0.375rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.color-input::-moz-color-swatch {
  border: none;
  border-radius: 0.375rem;
}

.color-input:hover {
  border-color: #3b82f6;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.color-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.color-picker-container {
  position: relative;
  display: flex;
  align-items: center;
}

.color-preview {
  width: 50px;
  height: 50px;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.color-preview:hover {
  border-color: #3b82f6;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.color-preview::after {
  content: '🎨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 18px;
  pointer-events: none;
}

.color-preview:hover::after {
  opacity: 1;
}

/* Hide the actual color input but keep it functional */
.color-input {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.color-value {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
}

.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.preference-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preference-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.preference-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #3b82f6;
  cursor: pointer;
}

.preference-select {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s ease;
}

.preference-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-left {
  flex: 1;
}

.footer-right {
  display: flex;
  gap: 1rem;
}

.apply-btn {
  background: #10b981;
  border: 1px solid #10b981;
  color: white;
  transition: all 0.2s ease;
}

.apply-btn:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

.cancel-btn {
  background: white;
  border: 1px solid #d1d5db;
  color: #6b7280;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.save-btn {
  background: #3b82f6;
  border: 1px solid #3b82f6;
  color: white;
  display: flex;
  align-items: center;
}

.save-btn:hover:not(:disabled) {
  background: #2563eb;
  border-color: #2563eb;
}

.save-btn:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive modal */
@media (max-width: 768px) {
  .settings-modal {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
  }
  
  .color-grid,
  .event-colors-grid,
  .preferences-grid {
    grid-template-columns: 1fr;
  }
  
  .settings-modal-header,
  .settings-section,
  .settings-modal-footer {
    padding: 1rem;
  }
}

/* 
  ===========================================
  📅 CALENDAR VIEW MODE STYLES
  ===========================================
  Enhanced view-specific styling for different calendar views
*/

/* View-specific grid layouts */
.calendar-grid.view-monthly {
  /* Monthly view uses the default grid styling */
}

.calendar-grid.view-bi-weekly,
.calendar-grid.view-weekly {
  .biweekly-headers,
  .weekly-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .biweekly-grid,
  .weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
  }
  
  .biweekly-day,
  .weekly-day {
    min-height: 120px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--calendar-border);
    border-radius: 8px;
    padding: 0.5rem;
    position: relative;
    transition: all 0.2s ease;
  }
  
  .biweekly-day:hover,
  .weekly-day:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--calendar-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  }
  
  .month-indicator {
    font-size: 0.7rem;
    color: var(--calendar-secondary);
    margin-left: 0.25rem;
    font-weight: 500;
  }
}

/* Bi-weekly specific styling */
.calendar-grid.view-bi-weekly {
  .biweekly-grid {
    grid-template-rows: repeat(2, 1fr);
  }
}

/* Daily view styling */
.calendar-grid.view-daily {
  .daily-view {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  
  .daily-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--calendar-border);
  }
  
  .daily-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--calendar-text);
    margin: 0;
  }
  
  .daily-hours {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--calendar-primary) transparent;
  }
  
  .daily-hours::-webkit-scrollbar {
    width: 6px;
  }
  
  .daily-hours::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .daily-hours::-webkit-scrollbar-thumb {
    background: var(--calendar-primary);
    border-radius: 3px;
  }
  
  .hour-slot {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 60px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    align-items: start;
  }
  
  .hour-slot:last-child {
    border-bottom: none;
  }
  
  .hour-label {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--calendar-text);
    text-align: right;
    padding-right: 1rem;
    border-right: 1px solid rgba(229, 231, 235, 0.3);
  }
  
  .hour-events {
    padding: 0.5rem 0 0.5rem 1rem;
    position: relative;
  }
  
  .empty-hour {
    height: 40px;
  }
  
  .daily-event {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid var(--calendar-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
  }
  
  .daily-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .daily-event .event-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .daily-event .event-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--calendar-text);
  }
  
  .daily-event .event-time {
    font-size: 0.8rem;
    color: var(--calendar-secondary);
    font-weight: 500;
  }
  
  .daily-event .event-location {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
  }
  
  .daily-event .event-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
  }
  
  /* Event type styling for daily view */
  .daily-event.event-meeting {
    border-left-color: var(--calendar-event-meeting);
  }
  
  .daily-event.event-call {
    border-left-color: var(--calendar-event-call);
  }
  
  .daily-event.event-appointment {
    border-left-color: var(--calendar-event-appointment);
  }
  
  .daily-event.event-test-drive {
    border-left-color: var(--calendar-event-test-drive);
  }
  
  .daily-event.event-demo {
    border-left-color: var(--calendar-event-demo);
  }
  
  .daily-event.event-review {
    border-left-color: var(--calendar-event-review);
  }
  
  .daily-event.event-todo {
    border-left-color: var(--calendar-event-todo);
  }
  
  .daily-event.event-other {
    border-left-color: var(--calendar-event-other);
  }
}

/* Enhanced today highlighting for all views */
.calendar-day.today {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--calendar-today) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.calendar-day.today .day-number {
  background: var(--calendar-today);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Responsive adjustments for different views */
@media (max-width: 1024px) {
  .calendar-grid.view-bi-weekly,
  .calendar-grid.view-weekly {
    .biweekly-day,
    .weekly-day {
      min-height: 100px;
      padding: 0.375rem;
    }
  }
  
  .calendar-grid.view-daily {
    .daily-view {
      padding: 1rem;
    }
    
    .hour-slot {
      grid-template-columns: 70px 1fr;
      min-height: 50px;
    }
    
    .hour-label {
      font-size: 0.8rem;
      padding-right: 0.5rem;
    }
    
    .daily-event {
      padding: 0.5rem;
    }
    
    .daily-event .event-title {
      font-size: 0.85rem;
    }
    
    .daily-event .event-time,
    .daily-event .event-location {
      font-size: 0.75rem;
    }
  }
}

@media (max-width: 768px) {
  .calendar-grid.view-bi-weekly .biweekly-grid,
  .calendar-grid.view-weekly .weekly-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
  }
  
  .calendar-grid.view-bi-weekly .biweekly-headers,
  .calendar-grid.view-weekly .weekly-headers {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
  }
  
  .calendar-grid.view-daily {
    .hour-slot {
      grid-template-columns: 60px 1fr;
      min-height: 45px;
    }
    
    .hour-label {
      font-size: 0.75rem;
    }
    
    .daily-event .event-icon {
      margin-right: 0.25rem;
      font-size: 0.9rem;
    }
  }
} 
/* 
  ===========================================
  📋 TENANT OWNER LEADS PAGE
  ===========================================
  Component: /app/(core)/tenant-owner/leads/page.tsx
  Purpose: Lead management page for tenant owners with analytics and management
  Theme: Glass morphism with gradient backgrounds and interactive cards
*/

/* Page Container */
.tenant-owner-deals-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 30%, #e8eaf6 70%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

/* Mobile optimizations */
@media (max-width: 639px) {
  .tenant-owner-deals-page {
    margin-top: 10px;
    padding: 0 var(--mobile-spacing-sm);
  }
}

.tenant-owner-deals-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.tenant-owner-deals-page > * {
  position: relative;
  z-index: 2;
}

/* Glass Header - Scrollable */
.tenant-owner-deals-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: 1.5rem 0;
  border-radius: 0 0 1.5rem 1.5rem;
  transition: all 0.3s ease;
}

.tenant-owner-deals-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tenant-owner-deals-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tenant-owner-deals-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1f2937 0%, #3b82f6 30%, #6366f1 60%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
}

.tenant-owner-deals-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tenant-owner-deals-badge {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f9d71c 100%);
  color: #92400e;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 8px 25px rgba(245, 158, 11, 0.25),
    0 4px 15px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tenant-owner-deals-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.tenant-owner-deals-badge:hover::before {
  left: 100%;
}

.tenant-owner-deals-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(245, 158, 11, 0.35),
    0 6px 20px rgba(245, 158, 11, 0.2);
}

.tenant-owner-deals-status-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  color: #f59e0b;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* Analytics Cards Grid */
.tenant-owner-deals-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* New Top Section Layout with 2x2 Grid and AI Assistant */
.tenant-owner-deals-top-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.tenant-owner-deals-metrics-container {
  flex: 1;
  min-width: 0;
}

/* Analytics Cards Grid - 4 Column Header Layout */
.tenant-owner-deals-analytics-grid-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .tenant-owner-deals-analytics-grid-header {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .tenant-owner-deals-analytics-grid-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* AI Assistant Insights Section */
.tenant-owner-deals-ai-insights-section {
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.tenant-owner-deals-ai-insights-section .tenant-owner-deals-ai-assistant {
  width: 100%;
  max-width: none;
}

/* Remove old layout styles */
.tenant-owner-deals-analytics-grid-2x2 {
  display: none;
}

.tenant-owner-deals-top-section {
  display: block;
}

.tenant-owner-deals-metrics-container {
  width: 100%;
}

.tenant-owner-deals-ai-container {
  display: none;
}

@media (max-width: 768px) {
  .tenant-owner-deals-analytics-grid-2x2 {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
  }
  
  .tenant-owner-deals-ai-container {
    flex: none;
    margin: 0 var(--mobile-spacing-sm);
  }
  
  .tenant-owner-deals-analytics-card {
    padding: var(--mobile-spacing-md) !important;
    min-height: 100px !important;
  }
}

@media (max-width: 640px) {
  .tenant-owner-deals-analytics-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
  }
  
  .tenant-owner-deals-analytics-grid-2x2 {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
    margin: 0 var(--mobile-spacing-sm);
  }
  
  .tenant-owner-deals-top-section {
    padding: 0 var(--mobile-spacing-sm);
    gap: var(--mobile-spacing-lg);
  }
  
  .tenant-owner-deals-header {
    padding: var(--mobile-spacing-md) !important;
  }
  
  .tenant-owner-deals-title {
    font-size: var(--mobile-text-2xl) !important;
  }
}

/* Analytics Cards - Compact Header Style */
.tenant-owner-deals-analytics-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tenant-owner-deals-analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 1.5rem 1.5rem 0 0;
  opacity: 1;
}

.tenant-owner-deals-analytics-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.tenant-owner-deals-analytics-card:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.tenant-owner-deals-analytics-card.total::before {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-owner-deals-analytics-card.conversion::before {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-owner-deals-analytics-card.new-today::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-deals-analytics-card.follow-ups::before {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.tenant-owner-deals-analytics-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 50px rgba(59, 130, 246, 0.1);
}

.tenant-owner-deals-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tenant-owner-deals-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.tenant-owner-deals-card-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.tenant-owner-deals-card-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tenant-owner-deals-analytics-card:hover .tenant-owner-deals-card-icon {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.tenant-owner-deals-card-icon.total {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-owner-deals-card-icon.conversion {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-owner-deals-card-icon.new-today {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-deals-card-icon.follow-ups {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.tenant-owner-deals-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.tenant-owner-deals-card-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1f2937;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tenant-owner-deals-card-trend {
  display: flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.25rem 0.375rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-top: auto;
}

.tenant-owner-deals-card-trend svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

/* Search and Controls */
.tenant-owner-deals-controls {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 4px 15px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.tenant-owner-deals-controls:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tenant-owner-deals-search-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .tenant-owner-deals-search-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tenant-owner-deals-search-container {
  position: relative;
  flex: 1;
  width: 100%;
}

.tenant-owner-deals-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tenant-owner-deals-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 8px 25px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.tenant-owner-deals-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.tenant-owner-deals-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tenant-owner-deals-filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  color: #374151;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.tenant-owner-deals-filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.15),
    0 8px 25px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.tenant-owner-deals-filter-select:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tenant-owner-deals-add-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.3),
    0 4px 15px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.tenant-owner-deals-add-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.tenant-owner-deals-add-btn:hover::before {
  left: 100%;
}

.tenant-owner-deals-add-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(59, 130, 246, 0.4),
    0 8px 25px rgba(59, 130, 246, 0.3);
}

.tenant-owner-deals-add-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Content Container */
.tenant-owner-deals-content-wrapper {
  flex: 1;
  overflow: visible;
  padding-top: 0; /* No extra padding needed since header is not fixed */
  height: auto;
}

.tenant-owner-deals-content {
  max-width: 98%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Table Container */
.tenant-owner-deals-table-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.tenant-owner-deals-table-container:hover {
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.12),
    0 6px 25px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tenant-owner-deals-table {
  width: 100%;
  border-collapse: collapse;
}

.tenant-owner-deals-table-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e5e7eb;
}

.tenant-owner-deals-table-header th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-owner-deals-table-body tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.tenant-owner-deals-table-body tr:hover {
  background: rgba(59, 130, 246, 0.02);
}

.tenant-owner-deals-table-body td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #374151;
  vertical-align: middle;
}

/* Lead Status Badges */
.tenant-owner-deals-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-owner-deals-status-badge.new {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.tenant-owner-deals-status-badge.contacted {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.tenant-owner-deals-status-badge.qualified {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.tenant-owner-deals-status-badge.unqualified {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

/* Priority Indicators */
.tenant-owner-deals-priority-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tenant-owner-deals-priority-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tenant-owner-deals-priority-dot.high {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tenant-owner-deals-priority-dot.medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-deals-priority-dot.low {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Action Buttons */
.tenant-owner-deals-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.tenant-owner-deals-action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tenant-owner-deals-action-btn.view {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.tenant-owner-deals-action-btn.edit {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.tenant-owner-deals-action-btn.delete {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.tenant-owner-deals-action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tenant-owner-deals-action-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.tenant-owner-deals-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.tenant-owner-deals-empty-state::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tenant-owner-deals-empty-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 1.5rem;
  color: #64748b;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.tenant-owner-deals-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.tenant-owner-deals-empty-description {
  color: #6b7280;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.tenant-owner-deals-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tenant-owner-deals-empty-action:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Enhanced Empty State Actions */
.tenant-owner-deals-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .tenant-owner-deals-empty-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.tenant-owner-deals-empty-action.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
}

.tenant-owner-deals-empty-action.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

.tenant-owner-deals-empty-action.secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.tenant-owner-deals-empty-action.secondary:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* AI Assistant Badge */
.tenant-owner-deals-empty-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Loading State */
.tenant-owner-deals-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.tenant-owner-deals-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tenant-owner-deals-page {
    padding: 0.5rem;
    margin-left: 0; /* No sidebar margins on mobile */
    margin-right: 0; /* No sidebar margins on mobile */
  }
  
  .tenant-owner-deals-header {
    padding: 1.5rem 0;
    border-radius: 0 0 1rem 1rem;
    position: relative; /* Keep relative on mobile */
  }
  
  .tenant-owner-deals-header-content {
    padding: 0 1rem;
  }

  .tenant-owner-deals-title {
    font-size: 2rem;
  }
  
  .tenant-owner-deals-analytics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tenant-owner-deals-analytics-card {
    padding: 1.5rem 1.25rem;
    min-height: 120px;
  }

  .tenant-owner-deals-card-value {
    font-size: 2.25rem;
  }
  
  .tenant-owner-deals-search-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tenant-owner-deals-filters {
    flex-direction: column;
  }

  .tenant-owner-deals-controls {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .tenant-owner-deals-table-container {
    overflow-x: auto;
    border-radius: 1rem;
  }
  
  .tenant-owner-deals-table {
    min-width: 600px;
  }

  .tenant-owner-deals-search-input {
    padding: 0.875rem 1rem 0.875rem 3rem;
  }

  .tenant-owner-deals-add-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Additional animations for smooth interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tenant-owner-deals-analytics-card {
  animation: fadeInUp 0.6s ease forwards;
}

.tenant-owner-deals-analytics-card:nth-child(1) { animation-delay: 0.1s; }
.tenant-owner-deals-analytics-card:nth-child(2) { animation-delay: 0.2s; }
.tenant-owner-deals-analytics-card:nth-child(3) { animation-delay: 0.3s; }
.tenant-owner-deals-analytics-card:nth-child(4) { animation-delay: 0.4s; }

.tenant-owner-deals-controls {
  animation: fadeInUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

.tenant-owner-deals-table-container {
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}/* Enhanced AI Assistant sizing to match metrics grid */
.tenant-owner-deals-ai-container {
  min-height: 240px !important;
}

.tenant-owner-deals-ai-assistant > div {
  min-height: 120px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure AI Assistant content stretches properly on larger screens */
@media (min-width: 1201px) {
  .tenant-owner-deals-ai-assistant .bg-white {
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .tenant-owner-deals-ai-assistant .p-4:last-child {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
}

/* AI Insights Column Styles */
.tenant-owner-deals-ai-insights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.tenant-owner-deals-ai-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.tenant-owner-deals-ai-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.tenant-owner-deals-ai-priority {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.tenant-owner-deals-priority-high {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-deals-priority-medium {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-deals-priority-low {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-deals-ai-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.2;
}

.tenant-owner-deals-ai-refresh {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  padding: 0.125rem;
  height: auto;
  width: auto;
  min-height: 1.5rem;
  min-width: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tenant-owner-deals-ai-refresh:hover {
  background: rgba(59, 130, 246, 0.2);
}

.tenant-owner-deals-ai-generate {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  height: auto;
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.2);
  color: #7c3aed;
}

.tenant-owner-deals-ai-generate:hover {
  background: rgba(147, 51, 234, 0.2);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* 
  ===========================================
  📦 TENANT OWNER INVENTORY PAGE
  ===========================================
  Component: /app/(core)/tenant-owner/inventory/page.tsx
  Purpose: Inventory management page for tenant owners with analytics and management
  Theme: Glass morphism with orange gradient backgrounds and interactive cards
*/

/* Page Container */
.tenant-owner-inventory-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 20%, #fed7aa 40%, #fdba74 60%, #fb923c 80%, #ea580c 100%);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

/* Mobile optimizations */
@media (max-width: 639px) {
  .tenant-owner-inventory-page {
    margin-top: 10px;
    padding: 0 var(--mobile-spacing-sm);
  }
}

.tenant-owner-inventory-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(234, 88, 12, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.tenant-owner-inventory-page > * {
  position: relative;
  z-index: 2;
}

/* Glass Header - Scrollable */
.tenant-owner-inventory-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: 1.5rem 0;
  border-radius: 0 0 1.5rem 1.5rem;
  transition: all 0.3s ease;
}

.tenant-owner-inventory-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tenant-owner-inventory-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tenant-owner-inventory-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1f2937 0%, #3b82f6 30%, #6366f1 60%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
}

.tenant-owner-inventory-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tenant-owner-inventory-badge {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f9d71c 100%);
  color: #92400e;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 8px 25px rgba(245, 158, 11, 0.25),
    0 4px 15px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tenant-owner-inventory-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.tenant-owner-inventory-badge:hover::before {
  left: 100%;
}

.tenant-owner-inventory-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(245, 158, 11, 0.35),
    0 6px 20px rgba(245, 158, 11, 0.2);
}

.tenant-owner-inventory-status-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  color: #f59e0b;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* Analytics Cards Grid */
.tenant-owner-inventory-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* New Top Section Layout with 2x2 Grid and AI Assistant */
.tenant-owner-inventory-top-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.tenant-owner-inventory-metrics-container {
  flex: 1;
  min-width: 0;
}

/* Analytics Cards Grid - 4 Column Header Layout */
.tenant-owner-inventory-analytics-grid-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .tenant-owner-inventory-analytics-grid-header {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .tenant-owner-inventory-analytics-grid-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* AI Assistant Insights Section */
.tenant-owner-inventory-ai-insights-section {
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.tenant-owner-inventory-ai-insights-section .tenant-owner-inventory-ai-assistant {
  width: 100%;
  max-width: none;
}

/* Remove old layout styles */
.tenant-owner-inventory-analytics-grid-2x2 {
  display: none;
}

.tenant-owner-inventory-top-section {
  display: block;
}

.tenant-owner-inventory-metrics-container {
  width: 100%;
}

.tenant-owner-inventory-ai-container {
  display: none;
}

@media (max-width: 768px) {
  .tenant-owner-inventory-analytics-grid-2x2 {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
  }
  
  .tenant-owner-inventory-ai-container {
    flex: none;
    margin: 0 var(--mobile-spacing-sm);
  }
  
  .tenant-owner-inventory-analytics-card {
    padding: var(--mobile-spacing-md) !important;
    min-height: 100px !important;
  }
}

@media (max-width: 640px) {
  .tenant-owner-inventory-analytics-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
  }
  
  .tenant-owner-inventory-analytics-grid-2x2 {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
    margin: 0 var(--mobile-spacing-sm);
  }
  
  .tenant-owner-inventory-top-section {
    padding: 0 var(--mobile-spacing-sm);
    gap: var(--mobile-spacing-lg);
  }
  
  .tenant-owner-inventory-header {
    padding: var(--mobile-spacing-md) !important;
  }
  
  .tenant-owner-inventory-title {
    font-size: var(--mobile-text-2xl) !important;
  }
}

/* Analytics Cards - Compact Header Style */
.tenant-owner-inventory-analytics-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tenant-owner-inventory-analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 1.5rem 1.5rem 0 0;
  opacity: 1;
}

.tenant-owner-inventory-analytics-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.tenant-owner-inventory-analytics-card:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.tenant-owner-inventory-analytics-card.total::before {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

.tenant-owner-inventory-analytics-card.value::before {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-owner-inventory-analytics-card.low-stock::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-inventory-analytics-card.out-stock::before {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tenant-owner-inventory-analytics-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 50px rgba(59, 130, 246, 0.1);
}

.tenant-owner-inventory-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tenant-owner-inventory-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.tenant-owner-inventory-card-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.tenant-owner-inventory-card-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tenant-owner-inventory-analytics-card:hover .tenant-owner-inventory-card-icon {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.tenant-owner-inventory-card-icon.total {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-owner-inventory-card-icon.conversion {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-owner-inventory-card-icon.new-today {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-inventory-card-icon.follow-ups {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.tenant-owner-inventory-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.tenant-owner-inventory-card-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1f2937;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tenant-owner-inventory-card-trend {
  display: flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.25rem 0.375rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-top: auto;
}

.tenant-owner-inventory-card-trend svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

/* Search and Controls */
.tenant-owner-inventory-controls {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 4px 15px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.tenant-owner-inventory-controls:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tenant-owner-inventory-search-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .tenant-owner-inventory-search-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tenant-owner-inventory-search-container {
  position: relative;
  flex: 1;
  width: 100%;
}

.tenant-owner-inventory-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tenant-owner-inventory-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 8px 25px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.tenant-owner-inventory-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.tenant-owner-inventory-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tenant-owner-inventory-filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  color: #374151;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.tenant-owner-inventory-filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.15),
    0 8px 25px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.tenant-owner-inventory-filter-select:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tenant-owner-inventory-add-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.3),
    0 4px 15px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.tenant-owner-inventory-add-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.tenant-owner-inventory-add-btn:hover::before {
  left: 100%;
}

.tenant-owner-inventory-add-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(59, 130, 246, 0.4),
    0 8px 25px rgba(59, 130, 246, 0.3);
}

.tenant-owner-inventory-add-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Content Container */
.tenant-owner-inventory-content-wrapper {
  flex: 1;
  overflow: visible;
  padding-top: 0; /* No extra padding needed since header is not fixed */
  height: auto;
}

.tenant-owner-inventory-content {
  max-width: 98%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Table Container */
.tenant-owner-inventory-table-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.tenant-owner-inventory-table-container:hover {
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.12),
    0 6px 25px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tenant-owner-inventory-table {
  width: 100%;
  border-collapse: collapse;
}

.tenant-owner-inventory-table-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e5e7eb;
}

.tenant-owner-inventory-table-header th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-owner-inventory-table-body tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.tenant-owner-inventory-table-body tr:hover {
  background: rgba(59, 130, 246, 0.02);
}

.tenant-owner-inventory-table-body td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #374151;
  vertical-align: middle;
}

/* Lead Status Badges */
.tenant-owner-inventory-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-owner-inventory-status-badge.new {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.tenant-owner-inventory-status-badge.contacted {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.tenant-owner-inventory-status-badge.qualified {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.tenant-owner-inventory-status-badge.unqualified {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

/* Priority Indicators */
.tenant-owner-inventory-priority-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tenant-owner-inventory-priority-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tenant-owner-inventory-priority-dot.high {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tenant-owner-inventory-priority-dot.medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-inventory-priority-dot.low {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Action Buttons */
.tenant-owner-inventory-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.tenant-owner-inventory-action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tenant-owner-inventory-action-btn.view {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.tenant-owner-inventory-action-btn.edit {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.tenant-owner-inventory-action-btn.delete {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.tenant-owner-inventory-action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tenant-owner-inventory-action-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.tenant-owner-inventory-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.tenant-owner-inventory-empty-state::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tenant-owner-inventory-empty-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 1.5rem;
  color: #64748b;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.tenant-owner-inventory-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.tenant-owner-inventory-empty-description {
  color: #6b7280;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.tenant-owner-inventory-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tenant-owner-inventory-empty-action:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Enhanced Empty State Actions */
.tenant-owner-inventory-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .tenant-owner-inventory-empty-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.tenant-owner-inventory-empty-action.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
}

.tenant-owner-inventory-empty-action.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

.tenant-owner-inventory-empty-action.secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.tenant-owner-inventory-empty-action.secondary:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* AI Assistant Badge */
.tenant-owner-inventory-empty-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Loading State */
.tenant-owner-inventory-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.tenant-owner-inventory-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tenant-owner-inventory-page {
    padding: 0.5rem;
    margin-left: 0; /* No sidebar margins on mobile */
    margin-right: 0; /* No sidebar margins on mobile */
  }
  
  .tenant-owner-inventory-header {
    padding: 1.5rem 0;
    border-radius: 0 0 1rem 1rem;
    position: relative; /* Keep relative on mobile */
  }
  
  .tenant-owner-inventory-header-content {
    padding: 0 1rem;
  }

  .tenant-owner-inventory-title {
    font-size: 2rem;
  }
  
  .tenant-owner-inventory-analytics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tenant-owner-inventory-analytics-card {
    padding: 1.5rem 1.25rem;
    min-height: 120px;
  }

  .tenant-owner-inventory-card-value {
    font-size: 2.25rem;
  }
  
  .tenant-owner-inventory-search-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tenant-owner-inventory-filters {
    flex-direction: column;
  }

  .tenant-owner-inventory-controls {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .tenant-owner-inventory-table-container {
    overflow-x: auto;
    border-radius: 1rem;
  }
  
  .tenant-owner-inventory-table {
    min-width: 600px;
  }

  .tenant-owner-inventory-search-input {
    padding: 0.875rem 1rem 0.875rem 3rem;
  }

  .tenant-owner-inventory-add-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Additional animations for smooth interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tenant-owner-inventory-analytics-card {
  animation: fadeInUp 0.6s ease forwards;
}

.tenant-owner-inventory-analytics-card:nth-child(1) { animation-delay: 0.1s; }
.tenant-owner-inventory-analytics-card:nth-child(2) { animation-delay: 0.2s; }
.tenant-owner-inventory-analytics-card:nth-child(3) { animation-delay: 0.3s; }
.tenant-owner-inventory-analytics-card:nth-child(4) { animation-delay: 0.4s; }

.tenant-owner-inventory-controls {
  animation: fadeInUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

.tenant-owner-inventory-table-container {
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}/* Enhanced AI Assistant sizing to match metrics grid */
.tenant-owner-inventory-ai-container {
  min-height: 240px !important;
}

.tenant-owner-inventory-ai-assistant > div {
  min-height: 120px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure AI Assistant content stretches properly on larger screens */
@media (min-width: 1201px) {
  .tenant-owner-inventory-ai-assistant .bg-white {
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .tenant-owner-inventory-ai-assistant .p-4:last-child {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
}

/* AI Insights Column Styles */
.tenant-owner-inventory-ai-insights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.tenant-owner-inventory-ai-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.tenant-owner-inventory-ai-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.tenant-owner-inventory-ai-priority {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.tenant-owner-inventory-priority-high {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-inventory-priority-medium {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-inventory-priority-low {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-inventory-ai-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.2;
}

.tenant-owner-inventory-ai-refresh {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  padding: 0.125rem;
  height: auto;
  width: auto;
  min-height: 1.5rem;
  min-width: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tenant-owner-inventory-ai-refresh:hover {
  background: rgba(59, 130, 246, 0.2);
}

.tenant-owner-inventory-ai-generate {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  height: auto;
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.2);
  color: #7c3aed;
}

.tenant-owner-inventory-ai-generate:hover {
  background: rgba(147, 51, 234, 0.2);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* 
  ===========================================
  💬 TENANT OWNER COLLABORATION PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner team collaboration interface
  Theme: Modern glass morphism with blue gradient theme for communication
*/

/* Page Container */
.collaboration-container {
  background: linear-gradient(135deg, #f8fafc 0%, #ebf8ff 20%, #dbeafe 40%, #bfdbfe 60%, #93c5fd 80%, #3b82f6 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 1.5rem;
}

.collaboration-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: collaborationFloat 25s infinite ease-in-out;
}

@keyframes collaborationFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(0.5deg); }
  50% { transform: translateY(10px) rotate(-0.3deg); }
  75% { transform: translateY(-8px) rotate(0.2deg); }
}

/* Page Header */
.page-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.title-section {
  flex: 1;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 0 0.5rem 0;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Button Styles */
.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* Stats Cards */
.collaboration-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.stat-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.stat-content p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  margin: 0;
}

/* Main Collaboration Interface */
.collaboration-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  gap: 1.5rem;
  min-height: 600px;
}

/* Sidebar */
.collaboration-sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  overflow-y: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.channels-list {
  margin-bottom: 2rem;
}

.channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.channel-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.channel-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.05));
  border-left: 3px solid #3b82f6;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-name {
  font-weight: 600;
  color: #1f2937;
}

.unread-badge {
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.channel-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.sidebar-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
}

.sidebar-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
}

.dm-item {
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.dm-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.member-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.member-name {
  font-size: 0.875rem;
  color: #1f2937;
}

/* Chat Area */
.chat-area {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-header .channel-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.chat-header .channel-info p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
}

.messages-container {
  flex: 1;
  overflow-y: visible;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.sender-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.message-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.message-text {
  color: #374151;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-input {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.input-container {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.message-textarea {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1f2937;
  outline: none;
  min-height: 20px;
  max-height: 120px;
}

.message-textarea::-moz-placeholder {
  color: #9ca3af;
}

.message-textarea::placeholder {
  color: #9ca3af;
}

/* Members Panel */
.members-panel {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  overflow-y: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.panel-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.member-count {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.member-item:hover {
  background: rgba(59, 130, 246, 0.05);
}

.member-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

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

.member-info .member-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.member-role {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.member-status-text {
  font-size: 0.75rem;
  color: #9ca3af;
}

.member-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.member-item:hover .member-actions {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .collaboration-main {
    grid-template-columns: 250px 1fr;
  }
  
  .members-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .collaboration-container {
    padding: 1rem;
  }
  
  .collaboration-main {
    grid-template-columns: 1fr;
    height: calc(100vh - 200px);
  }
  
  .collaboration-sidebar {
    display: none;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .header-actions {
    justify-content: stretch;
  }
  
  .collaboration-stats {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar Styling */
.collaboration-sidebar::-webkit-scrollbar,
.messages-container::-webkit-scrollbar,
.members-panel::-webkit-scrollbar {
  width: 6px;
}

.collaboration-sidebar::-webkit-scrollbar-track,
.messages-container::-webkit-scrollbar-track,
.members-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.collaboration-sidebar::-webkit-scrollbar-thumb,
.messages-container::-webkit-scrollbar-thumb,
.members-panel::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

.collaboration-sidebar::-webkit-scrollbar-thumb:hover,
.messages-container::-webkit-scrollbar-thumb:hover,
.members-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* ===========================================
  🚀 ENHANCED COLLABORATION FEATURES
  ===========================================
  Modals, forms, and advanced functionality
*/

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
}

.modal-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-cancel {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Attendees Selector */
.attendees-selector {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: rgba(249, 250, 251, 0.8);
}

.attendee-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

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

.attendee-option:hover {
  background: rgba(59, 130, 246, 0.05);
}

.attendee-checkbox {
  margin-right: 0.75rem;
}

.attendee-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex: 1;
}

.attendee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.attendee-info {
  flex: 1;
}

.attendee-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.attendee-role {
  font-size: 0.75rem;
  color: #6b7280;
}

/* File Upload Enhancement */
.input-container {
  position: relative;
}

.input-container input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Message Enhancements */
.message.file-message {
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid #3b82f6;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
}

.message.system-message {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid #10b981;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
}

.message.system-message .message-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Enhanced Button States */
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Search Enhancement */
.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Notification Badges */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top: 2px solid #3b82f6;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Typing Indicators */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b7280;
  animation: typingPulse 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingPulse {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

/* Channel Options Dropdown */
.channel-options-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  color: #374151;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}

.dropdown-item:active {
  background: rgba(59, 130, 246, 0.12);
}

.dropdown-item.danger {
  color: #ef4444;
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.dropdown-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.dropdown-item span {
  flex: 1;
}

/* First and last dropdown items */
.dropdown-item:first-child {
  border-radius: 0.75rem 0.75rem 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 0.75rem 0.75rem;
}

/* Click outside to close dropdown */
.relative {
  position: relative;
}
/* 
  ===========================================
  📋 TENANT OWNER LEADS PAGE
  ===========================================
  Component: /app/(core)/tenant-owner/leads/page.tsx
  Purpose: Lead management page for tenant owners with analytics and management
  Theme: Glass morphism with gradient backgrounds and interactive cards
*/

/* Page Container */
.tenant-owner-leads-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 30%, #e8eaf6 70%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

/* Mobile optimizations */
@media (max-width: 639px) {
  .tenant-owner-leads-page {
    margin-top: 10px;
    padding: 0 var(--mobile-spacing-sm);
  }
}

.tenant-owner-leads-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.tenant-owner-leads-page > * {
  position: relative;
  z-index: 2;
}

/* Glass Header - Scrollable */
.tenant-owner-leads-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: 1.5rem 0;
  border-radius: 0 0 1.5rem 1.5rem;
  transition: all 0.3s ease;
}

.tenant-owner-leads-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tenant-owner-leads-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tenant-owner-leads-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1f2937 0%, #3b82f6 30%, #6366f1 60%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
}

.tenant-owner-leads-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tenant-owner-leads-badge {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f9d71c 100%);
  color: #92400e;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 8px 25px rgba(245, 158, 11, 0.25),
    0 4px 15px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tenant-owner-leads-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.tenant-owner-leads-badge:hover::before {
  left: 100%;
}

.tenant-owner-leads-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(245, 158, 11, 0.35),
    0 6px 20px rgba(245, 158, 11, 0.2);
}

.tenant-owner-leads-status-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  color: #f59e0b;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* Analytics Cards Grid */
.tenant-owner-leads-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* New Top Section Layout with 2x2 Grid and AI Assistant */
.tenant-owner-leads-top-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.tenant-owner-leads-metrics-container {
  flex: 1;
  min-width: 0;
}

/* Analytics Cards Grid - 4 Column Header Layout */
.tenant-owner-leads-analytics-grid-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .tenant-owner-leads-analytics-grid-header {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .tenant-owner-leads-analytics-grid-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* AI Assistant Insights Section */
.tenant-owner-leads-ai-insights-section {
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.tenant-owner-leads-ai-insights-section .tenant-owner-leads-ai-assistant {
  width: 100%;
  max-width: none;
}

/* Remove old layout styles */
.tenant-owner-leads-analytics-grid-2x2 {
  display: none;
}

.tenant-owner-leads-top-section {
  display: block;
}

.tenant-owner-leads-metrics-container {
  width: 100%;
}

.tenant-owner-leads-ai-container {
  display: none;
}

@media (max-width: 768px) {
  .tenant-owner-leads-analytics-grid-2x2 {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
  }
  
  .tenant-owner-leads-ai-container {
    flex: none;
    margin: 0 var(--mobile-spacing-sm);
  }
  
  .tenant-owner-leads-analytics-card {
    padding: var(--mobile-spacing-md) !important;
    min-height: 100px !important;
  }
}

@media (max-width: 640px) {
  .tenant-owner-leads-analytics-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
  }
  
  .tenant-owner-leads-analytics-grid-2x2 {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--mobile-spacing-md);
    margin: 0 var(--mobile-spacing-sm);
  }
  
  .tenant-owner-leads-top-section {
    padding: 0 var(--mobile-spacing-sm);
    gap: var(--mobile-spacing-lg);
  }
  
  .tenant-owner-leads-header {
    padding: var(--mobile-spacing-md) !important;
  }
  
  .tenant-owner-leads-title {
    font-size: var(--mobile-text-2xl) !important;
  }
}

/* Analytics Cards - Compact Header Style */
.tenant-owner-leads-analytics-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tenant-owner-leads-analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 1.5rem 1.5rem 0 0;
  opacity: 1;
}

.tenant-owner-leads-analytics-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.tenant-owner-leads-analytics-card:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.tenant-owner-leads-analytics-card.total::before {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-owner-leads-analytics-card.conversion::before {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-owner-leads-analytics-card.new-today::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-leads-analytics-card.follow-ups::before {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.tenant-owner-leads-analytics-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 50px rgba(59, 130, 246, 0.1);
}

.tenant-owner-leads-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tenant-owner-leads-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.tenant-owner-leads-card-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.tenant-owner-leads-card-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tenant-owner-leads-analytics-card:hover .tenant-owner-leads-card-icon {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.tenant-owner-leads-card-icon.total {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tenant-owner-leads-card-icon.conversion {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tenant-owner-leads-card-icon.new-today {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-leads-card-icon.follow-ups {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.tenant-owner-leads-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.tenant-owner-leads-card-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1f2937;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tenant-owner-leads-card-trend {
  display: flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.25rem 0.375rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-top: auto;
}

.tenant-owner-leads-card-trend svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

/* Search and Controls */
.tenant-owner-leads-controls {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 4px 15px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.tenant-owner-leads-controls:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tenant-owner-leads-search-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .tenant-owner-leads-search-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tenant-owner-leads-search-container {
  position: relative;
  flex: 1;
  width: 100%;
}

.tenant-owner-leads-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tenant-owner-leads-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 8px 25px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.tenant-owner-leads-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.tenant-owner-leads-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tenant-owner-leads-filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  color: #374151;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.tenant-owner-leads-filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.15),
    0 8px 25px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.tenant-owner-leads-filter-select:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tenant-owner-leads-add-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.3),
    0 4px 15px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.tenant-owner-leads-add-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.tenant-owner-leads-add-btn:hover::before {
  left: 100%;
}

.tenant-owner-leads-add-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(59, 130, 246, 0.4),
    0 8px 25px rgba(59, 130, 246, 0.3);
}

.tenant-owner-leads-add-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Content Container */
.tenant-owner-leads-content-wrapper {
  flex: 1;
  overflow: visible;
  padding-top: 0; /* No extra padding needed since header is not fixed */
  height: auto;
}

.tenant-owner-leads-content {
  max-width: 98%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Table Container */
.tenant-owner-leads-table-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.tenant-owner-leads-table-container:hover {
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.12),
    0 6px 25px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tenant-owner-leads-table {
  width: 100%;
  border-collapse: collapse;
}

.tenant-owner-leads-table-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e5e7eb;
}

.tenant-owner-leads-table-header th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-owner-leads-table-body tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.tenant-owner-leads-table-body tr:hover {
  background: rgba(59, 130, 246, 0.02);
}

.tenant-owner-leads-table-body td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #374151;
  vertical-align: middle;
}

/* Lead Status Badges */
.tenant-owner-leads-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-owner-leads-status-badge.new {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.tenant-owner-leads-status-badge.contacted {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.tenant-owner-leads-status-badge.qualified {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.tenant-owner-leads-status-badge.unqualified {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

/* Priority Indicators */
.tenant-owner-leads-priority-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tenant-owner-leads-priority-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tenant-owner-leads-priority-dot.high {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tenant-owner-leads-priority-dot.medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tenant-owner-leads-priority-dot.low {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Action Buttons */
.tenant-owner-leads-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.tenant-owner-leads-action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tenant-owner-leads-action-btn.view {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.tenant-owner-leads-action-btn.edit {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.tenant-owner-leads-action-btn.delete {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.tenant-owner-leads-action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tenant-owner-leads-action-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.tenant-owner-leads-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.tenant-owner-leads-empty-state::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tenant-owner-leads-empty-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 1.5rem;
  color: #64748b;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.tenant-owner-leads-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.tenant-owner-leads-empty-description {
  color: #6b7280;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.tenant-owner-leads-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tenant-owner-leads-empty-action:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Enhanced Empty State Actions */
.tenant-owner-leads-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .tenant-owner-leads-empty-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.tenant-owner-leads-empty-action.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
}

.tenant-owner-leads-empty-action.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

.tenant-owner-leads-empty-action.secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.tenant-owner-leads-empty-action.secondary:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* AI Assistant Badge */
.tenant-owner-leads-empty-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Loading State */
.tenant-owner-leads-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.tenant-owner-leads-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tenant-owner-leads-page {
    padding: 0.5rem;
    margin-left: 0; /* No sidebar margins on mobile */
    margin-right: 0; /* No sidebar margins on mobile */
  }
  
  .tenant-owner-leads-header {
    padding: 1.5rem 0;
    border-radius: 0 0 1rem 1rem;
    position: relative; /* Keep relative on mobile */
  }
  
  .tenant-owner-leads-header-content {
    padding: 0 1rem;
  }

  .tenant-owner-leads-title {
    font-size: 2rem;
  }
  
  .tenant-owner-leads-analytics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tenant-owner-leads-analytics-card {
    padding: 1.5rem 1.25rem;
    min-height: 120px;
  }

  .tenant-owner-leads-card-value {
    font-size: 2.25rem;
  }
  
  .tenant-owner-leads-search-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tenant-owner-leads-filters {
    flex-direction: column;
  }

  .tenant-owner-leads-controls {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .tenant-owner-leads-table-container {
    overflow-x: auto;
    border-radius: 1rem;
  }
  
  .tenant-owner-leads-table {
    min-width: 600px;
  }

  .tenant-owner-leads-search-input {
    padding: 0.875rem 1rem 0.875rem 3rem;
  }

  .tenant-owner-leads-add-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Additional animations for smooth interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tenant-owner-leads-analytics-card {
  animation: fadeInUp 0.6s ease forwards;
}

.tenant-owner-leads-analytics-card:nth-child(1) { animation-delay: 0.1s; }
.tenant-owner-leads-analytics-card:nth-child(2) { animation-delay: 0.2s; }
.tenant-owner-leads-analytics-card:nth-child(3) { animation-delay: 0.3s; }
.tenant-owner-leads-analytics-card:nth-child(4) { animation-delay: 0.4s; }

.tenant-owner-leads-controls {
  animation: fadeInUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

.tenant-owner-leads-table-container {
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}/* Enhanced AI Assistant sizing to match metrics grid */
.tenant-owner-leads-ai-container {
  min-height: 240px !important;
}

.tenant-owner-leads-ai-assistant > div {
  min-height: 120px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure AI Assistant content stretches properly on larger screens */
@media (min-width: 1201px) {
  .tenant-owner-leads-ai-assistant .bg-white {
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .tenant-owner-leads-ai-assistant .p-4:last-child {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
}

/* AI Insights Column Styles */
.tenant-owner-leads-ai-insights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.tenant-owner-leads-ai-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.tenant-owner-leads-ai-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.tenant-owner-leads-ai-priority {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.tenant-owner-leads-priority-high {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-leads-priority-medium {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-leads-priority-low {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.tenant-owner-leads-ai-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.2;
}

.tenant-owner-leads-ai-refresh {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  padding: 0.125rem;
  height: auto;
  width: auto;
  min-height: 1.5rem;
  min-width: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tenant-owner-leads-ai-refresh:hover {
  background: rgba(59, 130, 246, 0.2);
}

.tenant-owner-leads-ai-generate {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  height: auto;
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.2);
  color: #7c3aed;
}

.tenant-owner-leads-ai-generate:hover {
  background: rgba(147, 51, 234, 0.2);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* 
  ===========================================
  🎯 TENANT OWNER NEW LEAD PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner new lead creation page
  Theme: Modern glass morphism with blue gradient theme for leads
*/

/* Page Container */
.tenant-new-lead-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #ebf8ff 20%, #dbeafe 40%, #bfdbfe 60%, #93c5fd 80%, #3b82f6 100%);
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.tenant-new-lead-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: leadFloat 22s infinite ease-in-out;
}

@keyframes leadFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(0.3deg); }
  50% { transform: translateY(8px) rotate(-0.2deg); }
  75% { transform: translateY(-6px) rotate(0.1deg); }
}

/* Form Container */
.new-lead-form-container {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Form Sections */
.lead-form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.lead-form-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 15px 15px -5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Section Headers */
.lead-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.lead-section-header span {
  font-size: 1.5rem;
}

/* Form Grid */
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lead-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lead-form-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lead-form-grid.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
.lead-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.lead-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lead-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

.lead-form-input::-moz-placeholder {
  color: #9ca3af;
}

.lead-form-input::placeholder {
  color: #9ca3af;
}

/* Array Input Containers */
.lead-array-container {
  margin-bottom: 1rem;
}

.lead-array-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.lead-array-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lead-array-tag.tags {
  background-color: #dbeafe;
  color: #1e40af;
}

.lead-array-tag button {
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lead-array-tag button:hover {
  opacity: 1;
}

.lead-array-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-array-input {
  flex: 1;
  min-width: 200px;
}

.lead-quick-add-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.lead-quick-add-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Action Buttons */
.lead-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
}

.lead-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.lead-btn-cancel {
  color: #6b7280;
  background: transparent;
}

.lead-btn-cancel:hover {
  color: #1f2937;
}

.lead-btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  box-shadow: 0 2px 8px 0 rgba(107, 114, 128, 0.2);
}

.lead-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(107, 114, 128, 0.3);
}

.lead-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.lead-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.5);
}

.lead-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.lead-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.lead-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lead-page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lead-page-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.lead-page-title h1 span {
  font-size: 2.25rem;
}

.lead-page-subtitle {
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.lead-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Financial Input Styling */
.lead-financial-input {
  position: relative;
}

.lead-currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.lead-financial-input input {
  padding-left: 2rem;
}

/* Bulk Import Styling */
.bulk-import-container {
  display: grid;
  gap: 2rem;
}

.import-instructions {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 0.5rem;
  padding: 1rem;
}

.import-instructions h3 {
  color: #0c4a6e;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.import-instructions ul {
  margin: 0;
  padding-left: 1rem;
  color: #0c4a6e;
}

.file-upload-area {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
  font-weight: 500;
}

.file-upload-label:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.integration-options h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.integration-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.integration-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: not-allowed;
  opacity: 0.6;
}

.integration-btn:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.integration-btn:not(:disabled):hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.integration-btn span {
  font-size: 1.5rem;
}

.integration-btn small {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-lead-form-container {
    padding: 1rem;
  }
  
  .lead-page-header {
    flex-direction: column;
    text-align: center;
  }
  
  .lead-actions,
  .lead-header-actions {
    flex-direction: column-reverse;
  }
  
  .lead-btn {
    width: 100%;
    justify-content: center;
  }
  
  .lead-array-input-row {
    flex-direction: column;
  }
  
  .lead-quick-add-btn {
    width: 100%;
  }

  .integration-buttons {
    grid-template-columns: 1fr;
  }
}

/* Form Validation */
.lead-form-input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.lead-form-input:valid:not(:-moz-placeholder) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.lead-form-input:valid:not(:placeholder-shown) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .lead-form-section {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .lead-section-header,
  .lead-form-label,
  .lead-page-title h1 {
    color: #f1f5f9;
  }
  
  .lead-page-subtitle {
    color: #94a3b8;
  }
  
  .lead-form-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: #475569;
    color: #f1f5f9;
  }
  
  .lead-form-input::-moz-placeholder {
    color: #64748b;
  }
  
  .lead-form-input::placeholder {
    color: #64748b;
  }
}

/* Success Animation */
@keyframes leadSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.lead-success {
  animation: leadSuccess 0.6s ease;
}
/* Team Management Page Styles */

/* Base Layout */
.team-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.team-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Glass Morphism Components */
.glass-card {
  background: rgba(255, 255, 255, 0.12); /* Slightly stronger background for better text contrast */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly stronger border */
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.16); /* Slightly stronger on hover */
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.header-glass {
  background: rgba(255, 255, 255, 0.14); /* Slightly stronger background for better text contrast */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Stronger border */
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 40; /* Below global navigation (z-50) but above content */
}

/* Header Layout */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.header-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.header-icon {
  padding: 12px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.header-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add text shadow for better readability */
}

.header-subtitle {
  color: #f3f4f6; /* Much lighter gray for better readability */
  margin: 0;
  margin-left: 56px;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid;
}

.stat-icon.blue {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.stat-icon.green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.stat-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

.stat-icon.yellow {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.stat-details h3 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-details p {
  color: #f3f4f6; /* Much lighter gray for better readability */
  font-size: 14px;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Search and Filter Section */
.search-filter-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.search-filter-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-input-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input::-moz-placeholder {
  color: #e5e7eb; /* Much lighter gray for better readability */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: #e5e7eb; /* Much lighter gray for better readability */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #d1d5db; /* Lighter gray for better visibility */
}

.filter-select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-select option {
  background: #1f2937;
  color: white;
}

/* Team Members Table */
.team-table-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.team-table {
  width: 100%;
  border-collapse: collapse;
}

.table-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header th {
  padding: 16px;
  text-align: left;
  color: #f9fafb; /* Much lighter gray for better readability */
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.table-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.table-row td {
  padding: 20px 16px;
  vertical-align: middle;
}

/* Member Info */
.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.member-details h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.member-details p {
  color: #d1d5db; /* Lighter gray for better readability than #9ca3af */
  font-size: 14px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Role Badge */
.role-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}

.role-owner {
  background: rgba(139, 69, 19, 0.2);
  color: #d97706;
  border: 1px solid rgba(139, 69, 19, 0.3);
}

.role-sales-manager {
  background: rgba(79, 70, 229, 0.2);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.role-sales-representative {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.role-finance-manager {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.role-service-advisor {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Status Badge */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-inactive {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.pulse-dot.green {
  background: #22c55e;
}

.pulse-dot.red {
  background: #ef4444;
}

.pulse-dot.yellow {
  background: #fbbf24;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Performance Score */
.performance-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.performance-number {
  font-weight: 600;
  font-size: 16px;
}

.performance-excellent {
  color: #22c55e;
}

.performance-good {
  color: #fbbf24;
}

.performance-poor {
  color: #ef4444;
}

/* Actions */
.actions-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative; /* Enable positioning for dropdown */
}

.action-button {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #d1d5db; /* Lighter gray for better visibility */
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Loading and Error States */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 12px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  color: white;
}

/* Text Colors */
.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

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

/* Media Queries */
@media (max-width: 768px) {
  .team-container {
    padding: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .header-glass {
    padding: 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-filter-content {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-container {
    min-width: auto;
  }

  .team-table-container {
    overflow-x: auto;
  }

  .team-table {
    min-width: 800px;
  }
}
/* Voice OS Page Styles */
.voice-os-container {
  min-height: 100vh;
  background-color: #f8fafc;
  padding: 24px;
}

.voice-os-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
}

.voice-os-loading-content {
  text-align: center;
}

.voice-os-spinner {
  animation: spin 1s linear infinite;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  border: 2px solid transparent;
  border-top: 2px solid #7c3aed;
  margin: 0 auto;
}

.voice-os-loading-text {
  margin-top: 16px;
  color: #6b7280;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero Section */
.voice-os-hero {
  position: relative;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #4338ca 100%);
  border-radius: 16px;
  padding: 32px;
  color: white;
  overflow: hidden;
  margin-bottom: 32px;
}

.voice-os-hero-bg-circle-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translateY(-128px) translateX(128px);
}

.voice-os-hero-bg-circle-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 192px;
  height: 192px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translateY(96px) translateX(-96px);
}

.voice-os-hero-content {
  position: relative;
  z-index: 10;
}

.voice-os-hero-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.voice-os-hero-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.voice-os-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.voice-os-hero-badge {
  margin-left: 12px;
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.voice-os-hero-subtitle {
  font-size: 1.25rem;
  color: #e0e7ff;
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.6;
}

.voice-os-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.voice-os-btn-primary {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background-color: white;
  color: #7c3aed;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.voice-os-btn-primary:hover {
  background-color: #f3f4f6;
}

.voice-os-btn-secondary {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background-color: rgba(139, 92, 246, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.voice-os-btn-secondary:hover {
  background-color: rgba(139, 92, 246, 0.3);
}

.voice-os-btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Navigation */
.voice-os-navigation {
  margin-bottom: 32px;
}

.voice-os-nav-container {
  display: flex;
  gap: 4px;
  background-color: white;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  overflow-x: auto;
}

.voice-os-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  min-width: -moz-fit-content;
  min-width: fit-content;
}

.voice-os-nav-item.active {
  background-color: #f3f4f6;
  color: #7c3aed;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.voice-os-nav-item:not(.active) {
  color: #6b7280;
}

.voice-os-nav-item:not(.active):hover {
  color: #111827;
  background-color: #f9fafb;
}

.voice-os-nav-item-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.voice-os-nav-item-content {
  text-align: left;
}

.voice-os-nav-item-title {
  font-weight: 500;
  display: block;
}

.voice-os-nav-item-desc {
  font-size: 0.75rem;
  opacity: 0.75;
  display: block;
}

/* Feature Grid */
.voice-os-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.voice-os-feature-card {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}

.voice-os-feature-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.voice-os-feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.voice-os-feature-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.voice-os-feature-icon-container.blue {
  background-color: #dbeafe;
}

.voice-os-feature-icon-container.green {
  background-color: #dcfce7;
}

.voice-os-feature-icon-container.purple {
  background-color: #f3e8ff;
}

.voice-os-feature-icon {
  width: 24px;
  height: 24px;
}

.voice-os-feature-icon.blue {
  color: #2563eb;
}

.voice-os-feature-icon.green {
  color: #16a34a;
}

.voice-os-feature-icon.purple {
  color: #7c3aed;
}

.voice-os-feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.voice-os-feature-description {
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}

.voice-os-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.voice-os-feature-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #6b7280;
}

.voice-os-feature-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.voice-os-feature-bullet.blue {
  background-color: #2563eb;
}

.voice-os-feature-bullet.green {
  background-color: #16a34a;
}

.voice-os-feature-bullet.purple {
  background-color: #7c3aed;
}

/* Performance Metrics */
.voice-os-metrics-section {
  margin-bottom: 32px;
}

.voice-os-metrics-header {
  text-align: center;
  margin-bottom: 32px;
}

.voice-os-metrics-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.voice-os-metrics-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

.voice-os-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.voice-os-metric-card {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.voice-os-metric-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.voice-os-metric-icon-container.blue {
  background-color: #dbeafe;
}

.voice-os-metric-icon-container.green {
  background-color: #dcfce7;
}

.voice-os-metric-icon-container.purple {
  background-color: #f3e8ff;
}

.voice-os-metric-icon-container.red {
  background-color: #fef2f2;
}

.voice-os-metric-icon {
  width: 28px;
  height: 28px;
}

.voice-os-metric-icon.blue {
  color: #2563eb;
}

.voice-os-metric-icon.green {
  color: #16a34a;
}

.voice-os-metric-icon.purple {
  color: #7c3aed;
}

.voice-os-metric-icon.red {
  color: #dc2626;
}

.voice-os-metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.voice-os-metric-value.positive {
  color: #16a34a;
}

.voice-os-metric-value.negative {
  color: #dc2626;
}

.voice-os-metric-label {
  color: #6b7280;
  font-weight: 500;
}

/* Quick Actions */
.voice-os-quick-actions {
  margin-bottom: 32px;
}

.voice-os-quick-actions-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

.voice-os-quick-actions-grid {
  display: grid;
  gap: 16px;
}

.voice-os-quick-action {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;
  width: 100%;
}

.voice-os-quick-action:hover {
  background-color: #f9fafb;
}

.voice-os-quick-action-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.voice-os-quick-action-icon.blue {
  color: #2563eb;
}

.voice-os-quick-action-icon.green {
  color: #16a34a;
}

.voice-os-quick-action-icon.purple {
  color: #7c3aed;
}

.voice-os-quick-action-icon.orange {
  color: #ea580c;
}

.voice-os-quick-action-content {
  flex: 1;
}

.voice-os-quick-action-title {
  font-weight: 500;
  color: #111827;
  margin: 0 0 2px 0;
}

.voice-os-quick-action-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Modal */
.voice-os-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.voice-os-modal {
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.voice-os-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.voice-os-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.voice-os-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.voice-os-modal-close:hover {
  background-color: #f3f4f6;
}

.voice-os-modal-close-icon {
  width: 24px;
  height: 24px;
}

/* Wizard Steps */
.voice-os-wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.voice-os-wizard-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.voice-os-wizard-step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background-color: #e5e7eb;
  margin: 0 16px;
}

.voice-os-wizard-step.completed:not(:last-child)::after {
  background-color: #16a34a;
}

.voice-os-wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-right: 8px;
}

.voice-os-wizard-step-circle.active {
  background-color: #7c3aed;
  color: white;
}

.voice-os-wizard-step-circle.completed {
  background-color: #16a34a;
  color: white;
}

.voice-os-wizard-step-circle.pending {
  background-color: #e5e7eb;
  color: #6b7280;
}

.voice-os-wizard-step-label {
  font-weight: 500;
  color: #111827;
}

.voice-os-wizard-content {
  margin-bottom: 32px;
}

.voice-os-wizard-actions {
  display: flex;
  justify-content: space-between;
}

.voice-os-btn-outline {
  padding: 12px 24px;
  border: 1px solid #e5e7eb;
  background-color: white;
  color: #6b7280;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-os-btn-outline:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.voice-os-btn-outline .voice-os-btn-icon {
  margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .voice-os-container {
    padding: 16px;
  }
  
  .voice-os-hero {
    padding: 24px;
  }
  
  .voice-os-hero-title {
    font-size: 1.5rem;
  }
  
  .voice-os-hero-subtitle {
    font-size: 1rem;
  }
  
  .voice-os-nav-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .voice-os-nav-item {
    width: 100%;
    justify-content: flex-start;
  }
  
  .voice-os-feature-grid {
    grid-template-columns: 1fr;
  }
  
  .voice-os-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .voice-os-modal {
    margin: 16px;
    padding: 24px;
  }
}

/* Component Specific Styles */
.voice-os-section {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.voice-os-section-header {
  margin-bottom: 24px;
}

.voice-os-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.voice-os-section-subtitle {
  color: #6b7280;
  margin: 0;
}

/* Clickable Cards */
.voice-os-clickable-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-os-clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #d1d5db;
}

.voice-os-clickable-card:active {
  transform: translateY(-2px);
}
/* Business Settings Page Styles */

/* Base Layout */
.settings-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.settings-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Simple Header Styles */
.simple-header {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 32px;
}

.settings-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Glass Morphism Components */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.header-glass {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 40; /* Below global navigation (z-50) but above content */
}

/* Header Layout */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-icon-container {
  padding: 12px;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.header-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
  color: #f3f4f6;
  margin: 0;
  margin-left: 56px;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tab Navigation */
.tab-navigation {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 32px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.tab-button {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

.tab-button.active {
  background: rgba(96, 165, 250, 0.8);
  color: white;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Content Area */
.settings-content {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px;
}

/* Form Sections */
.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-title {
  color: #f9fafb;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
  color: #d1d5db;
  font-size: 14px;
  margin: 0 0 24px 0;
}

/* Form Grid */
.form-grid {
  display: grid;
  gap: 20px;
}

.form-grid.two-column {
  grid-template-columns: 1fr 1fr;
}

.form-grid.three-column {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
  .form-grid.two-column,
  .form-grid.three-column {
    grid-template-columns: 1fr;
  }
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-input::-moz-placeholder {
  color: #d1d5db;
}

.form-input::placeholder {
  color: #d1d5db;
}

.form-textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Checkbox and Radio */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-group:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: #60a5fa;
  cursor: pointer;
}

.checkbox-label {
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-grow: 1;
}

.checkbox-description {
  color: #d1d5db;
  font-size: 13px;
  margin-top: 4px;
}

/* Color Picker */
.color-picker-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-preview {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-preview:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.color-input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Business Hours */
.hours-grid {
  display: grid;
  gap: 16px;
}

.day-hours {
  display: grid;
  grid-template-columns: 100px 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.day-label {
  color: #f3f4f6;
  font-weight: 500;
  font-size: 14px;
}

.hours-input {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  text-align: center;
}

.closed-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
}

/* Buttons */
.btn-primary {
  padding: 12px 24px;
  background: rgba(96, 165, 250, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.9);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: rgba(96, 165, 250, 0.9);
  border-color: rgba(96, 165, 250, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Save Actions */
.save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading States */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #f3f4f6;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-container {
    padding: 16px;
  }
  
  .header-glass {
    padding: 24px;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-subtitle {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .tab-navigation {
    padding: 6px;
  }
  
  .tab-button {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .settings-content {
    padding: 24px;
  }
  
  .day-hours {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .save-actions {
    flex-direction: column;
  }
}

/* Animation for saving state */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.saving {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Confirmation Dialog Styles */
.confirmation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.confirmation-dialog {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.confirmation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.confirmation-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.confirmation-icon {
  color: #f59e0b;
  flex-shrink: 0;
}

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

.confirmation-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.confirmation-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.confirmation-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
}

.confirmation-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.confirmation-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.changes-section {
  margin-bottom: 1.5rem;
}

.changes-section:last-child {
  margin-bottom: 0;
}

.changes-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.changes-section-header svg {
  color: #3b82f6;
}

.changes-section-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.changes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.change-item {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.change-field {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.change-values {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.change-from {
  color: #ef4444;
  font-family: 'Monaco', 'Menlo', monospace;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.change-to {
  color: #10b981;
  font-family: 'Monaco', 'Menlo', monospace;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.change-arrow {
  color: #6b7280;
  font-weight: 600;
}

.no-changes {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.confirmation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.confirmation-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #374151;
}

.confirmation-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.4);
}

.confirmation-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.confirmation-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .confirmation-dialog {
    margin: 1rem;
    max-width: none;
  }
  
  .confirmation-header {
    padding: 1rem;
  }
  
  .confirmation-content {
    padding: 1rem;
  }
  
  .confirmation-actions {
    padding: 1rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  
  .confirmation-actions button {
    width: 100%;
  }
  
  .change-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Notification Settings Styles */
.notification-category {
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: white;
}

.category-description {
  padding: 0 1.5rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.master-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-options {
  background: rgba(255, 255, 255, 0.04);
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.notification-info {
  flex: 1;
}

.notification-title {
  display: block;
  font-weight: 500;
  color: white;
  margin-bottom: 0.25rem;
}

.notification-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

.toggle-container {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-input:checked + .toggle-slider {
  background-color: #3b82f6;
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: white;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-hint {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Test Notifications */
.test-notifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.test-notification-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.test-notification-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.test-info h5 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: white;
}

.test-info p {
  margin: 0 0 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.4;
}

.test-channels {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.channels-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.channel-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.channel-tag.email {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.channel-tag.sms {
  background: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.channel-tag.push {
  background: rgba(251, 191, 36, 0.3);
  color: #fde047;
}

.channel-tag.in_app {
  background: rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
}

.test-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-btn:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
}

.test-btn:disabled {
  background: rgba(156, 163, 175, 0.5);
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Messages */
.message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.message.success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.changes-indicator {
  margin-top: 1rem;
}

.save-changes-btn {
  padding: 0.5rem 1rem;
  background: #059669;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-changes-btn:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
}

.save-changes-btn:disabled {
  background: rgba(156, 163, 175, 0.5);
  cursor: not-allowed;
  transform: none;
}

.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.error-container svg {
  color: #ef4444;
  margin-bottom: 1rem;
}

.retry-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.section-header {
  margin-bottom: 2rem;
}

.section-description {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Enhanced Modern Business Settings Design */

/* Enhanced Header */
.enhanced-header {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.enhanced-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 24px 24px 0 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.header-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.header-text {
  flex: 1;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
}

.page-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1rem 0;
}

.header-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.enhanced-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.enhanced-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.enhanced-btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
}

.enhanced-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced Tab Navigation */
.enhanced-tab-navigation {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.tab-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.enhanced-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.enhanced-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.enhanced-tab.active {
  background: rgba(59, 130, 246, 0.2);
  color: white;
  border-color: rgba(59, 130, 246, 0.4);
}

.tab-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.enhanced-tab.active .tab-icon {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.tab-content {
  flex: 1;
}

.tab-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tab-description {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
}

.tab-indicator {
  position: absolute;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

/* Enhanced Content Area */
.enhanced-content-area {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.content-wrapper {
  padding: 2rem;
}

/* Section Action Buttons */
.section-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.save-section-btn {
  min-width: 160px;
}

.save-section-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.save-section-btn:active {
  transform: translateY(0);
}

/* Enhanced Settings Sections */
.enhanced-settings-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.section-info {
  flex: 1;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
}

.section-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

/* Enhanced Form Grid */
.enhanced-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.form-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.enhanced-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
}

.required {
  color: #f87171;
  font-weight: 700;
}

.enhanced-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.enhanced-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.enhanced-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.enhanced-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-helper {
  margin-top: 0.5rem;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Form Group Rows */
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  grid-column: 1 / -1;
}

/* Color Pickers */
.color-picker-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.color-picker-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.color-picker-container:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.color-input {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-input:hover {
  transform: scale(1.05);
}

.color-value {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Logo Upload */
.logo-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-upload-area:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}

.logo-preview {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.upload-text {
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Success Messages */
.success-message {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .enhanced-header {
    padding: 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .header-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .header-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .tab-container {
    grid-template-columns: 1fr;
  }
  
  .enhanced-form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  .color-picker-group {
    grid-template-columns: 1fr;
  }
}
/* 
  ===========================================
  🎯 TENANT OWNER NEW LEAD PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner new lead creation page
  Theme: Modern glass morphism with blue gradient theme for leads
*/

/* Page Container */
.tenant-new-lead-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #ebf8ff 20%, #dbeafe 40%, #bfdbfe 60%, #93c5fd 80%, #3b82f6 100%);
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.tenant-new-lead-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: leadFloat 22s infinite ease-in-out;
}

@keyframes leadFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(0.3deg); }
  50% { transform: translateY(8px) rotate(-0.2deg); }
  75% { transform: translateY(-6px) rotate(0.1deg); }
}

/* Form Container */
.new-lead-form-container {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Form Sections */
.lead-form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.lead-form-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 15px 15px -5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Section Headers */
.lead-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.lead-section-header span {
  font-size: 1.5rem;
}

/* Form Grid */
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lead-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lead-form-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lead-form-grid.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
.lead-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.lead-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lead-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

.lead-form-input::-moz-placeholder {
  color: #9ca3af;
}

.lead-form-input::placeholder {
  color: #9ca3af;
}

/* Array Input Containers */
.lead-array-container {
  margin-bottom: 1rem;
}

.lead-array-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.lead-array-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lead-array-tag.tags {
  background-color: #dbeafe;
  color: #1e40af;
}

.lead-array-tag button {
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lead-array-tag button:hover {
  opacity: 1;
}

.lead-array-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-array-input {
  flex: 1;
  min-width: 200px;
}

.lead-quick-add-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.lead-quick-add-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Action Buttons */
.lead-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
}

.lead-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.lead-btn-cancel {
  color: #6b7280;
  background: transparent;
}

.lead-btn-cancel:hover {
  color: #1f2937;
}

.lead-btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  box-shadow: 0 2px 8px 0 rgba(107, 114, 128, 0.2);
}

.lead-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(107, 114, 128, 0.3);
}

.lead-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.lead-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.5);
}

.lead-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.lead-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.lead-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lead-page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lead-page-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.lead-page-title h1 span {
  font-size: 2.25rem;
}

.lead-page-subtitle {
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.lead-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Financial Input Styling */
.lead-financial-input {
  position: relative;
}

.lead-currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.lead-financial-input input {
  padding-left: 2rem;
}

/* Bulk Import Styling */
.bulk-import-container {
  display: grid;
  gap: 2rem;
}

.import-instructions {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 0.5rem;
  padding: 1rem;
}

.import-instructions h3 {
  color: #0c4a6e;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.import-instructions ul {
  margin: 0;
  padding-left: 1rem;
  color: #0c4a6e;
}

.file-upload-area {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
  font-weight: 500;
}

.file-upload-label:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.integration-options h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.integration-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.integration-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: not-allowed;
  opacity: 0.6;
}

.integration-btn:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.integration-btn:not(:disabled):hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.integration-btn span {
  font-size: 1.5rem;
}

.integration-btn small {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-lead-form-container {
    padding: 1rem;
  }
  
  .lead-page-header {
    flex-direction: column;
    text-align: center;
  }
  
  .lead-actions,
  .lead-header-actions {
    flex-direction: column-reverse;
  }
  
  .lead-btn {
    width: 100%;
    justify-content: center;
  }
  
  .lead-array-input-row {
    flex-direction: column;
  }
  
  .lead-quick-add-btn {
    width: 100%;
  }

  .integration-buttons {
    grid-template-columns: 1fr;
  }
}

/* Form Validation */
.lead-form-input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.lead-form-input:valid:not(:-moz-placeholder) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.lead-form-input:valid:not(:placeholder-shown) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .lead-form-section {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .lead-section-header,
  .lead-form-label,
  .lead-page-title h1 {
    color: #f1f5f9;
  }
  
  .lead-page-subtitle {
    color: #94a3b8;
  }
  
  .lead-form-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: #475569;
    color: #f1f5f9;
  }
  
  .lead-form-input::-moz-placeholder {
    color: #64748b;
  }
  
  .lead-form-input::placeholder {
    color: #64748b;
  }
}

/* Success Animation */
@keyframes leadSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.lead-success {
  animation: leadSuccess 0.6s ease;
}
/* 
  ===========================================
  🎯 TENANT OWNER NEW LEAD PAGE STYLES
  ===========================================
  Component: page.tsx
  Purpose: Tenant owner new lead creation page
  Theme: Modern glass morphism with blue gradient theme for leads
*/

/* Page Container */
.tenant-new-lead-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #ebf8ff 20%, #dbeafe 40%, #bfdbfe 60%, #93c5fd 80%, #3b82f6 100%);
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.tenant-new-lead-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  animation: leadFloat 22s infinite ease-in-out;
}

@keyframes leadFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(0.3deg); }
  50% { transform: translateY(8px) rotate(-0.2deg); }
  75% { transform: translateY(-6px) rotate(0.1deg); }
}

/* Form Container */
.new-lead-form-container {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Form Sections */
.lead-form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.lead-form-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 15px 15px -5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Section Headers */
.lead-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.lead-section-header span {
  font-size: 1.5rem;
}

/* Form Grid */
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lead-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lead-form-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lead-form-grid.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
.lead-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.lead-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lead-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
  background: rgba(255, 255, 255, 1);
}

.lead-form-input::-moz-placeholder {
  color: #9ca3af;
}

.lead-form-input::placeholder {
  color: #9ca3af;
}

/* Array Input Containers */
.lead-array-container {
  margin-bottom: 1rem;
}

.lead-array-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.lead-array-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lead-array-tag.tags {
  background-color: #dbeafe;
  color: #1e40af;
}

.lead-array-tag button {
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lead-array-tag button:hover {
  opacity: 1;
}

.lead-array-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-array-input {
  flex: 1;
  min-width: 200px;
}

.lead-quick-add-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.lead-quick-add-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Action Buttons */
.lead-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
}

.lead-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.lead-btn-cancel {
  color: #6b7280;
  background: transparent;
}

.lead-btn-cancel:hover {
  color: #1f2937;
}

.lead-btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  box-shadow: 0 2px 8px 0 rgba(107, 114, 128, 0.2);
}

.lead-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(107, 114, 128, 0.3);
}

.lead-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.lead-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.5);
}

.lead-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.lead-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.lead-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lead-page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lead-page-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.lead-page-title h1 span {
  font-size: 2.25rem;
}

.lead-page-subtitle {
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.lead-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Financial Input Styling */
.lead-financial-input {
  position: relative;
}

.lead-currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.lead-financial-input input {
  padding-left: 2rem;
}

/* Bulk Import Styling */
.bulk-import-container {
  display: grid;
  gap: 2rem;
}

.import-instructions {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 0.5rem;
  padding: 1rem;
}

.import-instructions h3 {
  color: #0c4a6e;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.import-instructions ul {
  margin: 0;
  padding-left: 1rem;
  color: #0c4a6e;
}

.file-upload-area {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
  font-weight: 500;
}

.file-upload-label:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.integration-options h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.integration-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.integration-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: not-allowed;
  opacity: 0.6;
}

.integration-btn:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.integration-btn:not(:disabled):hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.integration-btn span {
  font-size: 1.5rem;
}

.integration-btn small {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-lead-form-container {
    padding: 1rem;
  }
  
  .lead-page-header {
    flex-direction: column;
    text-align: center;
  }
  
  .lead-actions,
  .lead-header-actions {
    flex-direction: column-reverse;
  }
  
  .lead-btn {
    width: 100%;
    justify-content: center;
  }
  
  .lead-array-input-row {
    flex-direction: column;
  }
  
  .lead-quick-add-btn {
    width: 100%;
  }

  .integration-buttons {
    grid-template-columns: 1fr;
  }
}

/* Form Validation */
.lead-form-input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.lead-form-input:valid:not(:-moz-placeholder) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.lead-form-input:valid:not(:placeholder-shown) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .lead-form-section {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .lead-section-header,
  .lead-form-label,
  .lead-page-title h1 {
    color: #f1f5f9;
  }
  
  .lead-page-subtitle {
    color: #94a3b8;
  }
  
  .lead-form-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: #475569;
    color: #f1f5f9;
  }
  
  .lead-form-input::-moz-placeholder {
    color: #64748b;
  }
  
  .lead-form-input::placeholder {
    color: #64748b;
  }
}

/* Success Animation */
@keyframes leadSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.lead-success {
  animation: leadSuccess 0.6s ease;
}
/* Billing Cancel Page Styles */

.cancel-page-container {
  min-height: 100vh;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .cancel-page-container {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .cancel-page-container {
    padding: 3rem 2rem;
  }
}

.cancel-main-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
}

@media (min-width: 640px) {
  .cancel-main-wrapper {
    max-width: 28rem;
  }
}

.cancel-card {
  background-color: white;
  padding: 2rem 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
}

@media (min-width: 640px) {
  .cancel-card {
    padding: 2rem 2.5rem;
  }
}

.cancel-content {
  text-align: center;
}

.cancel-main-icon {
  margin: 0 auto;
  height: 4rem;
  width: 4rem;
  color: #9ca3af;
}

.cancel-title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.cancel-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.cancel-actions {
  margin-top: 2rem;
}

.cancel-actions > * + * {
  margin-top: 1rem;
}

.warning-notice {
  background-color: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 0.375rem;
  padding: 1rem;
}

.warning-content {
  display: flex;
}

.warning-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: #f59e0b;
}

.warning-details {
  margin-left: 0.75rem;
}

.warning-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #92400e;
}

.warning-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #a16207;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.primary-button {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background-color: #2563eb;
  text-decoration: none;
  transition: background-color 0.2s;
}

.primary-button:hover {
  background-color: #1d4ed8;
  color: white;
  text-decoration: none;
}

.primary-button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #93c5fd;
}

.secondary-button {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.secondary-button:hover {
  background-color: #f9fafb;
  color: #374151;
  text-decoration: none;
}

.secondary-button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #93c5fd;
}

.support-footer {
  text-align: center;
}

.support-notice {
  font-size: 0.75rem;
  color: #6b7280;
}

.support-email-link {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

.support-email-link:hover {
  color: #1d4ed8;
}
/* Public Billing Page Styles */

/* BUTTON FUNCTIONALITY FIXES - Ensure all buttons are clickable */
.billing-page button, 
.billing-page .contact-button, 
.billing-page .enhanced-checkout-button, 
.billing-page .billing-plan-cta, 
.billing-page .faq-question {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 100 !important;
  position: relative !important;
  border: none !important;
  outline: none !important;
}

/* Add click feedback for better UX */
.billing-page button:active,
.billing-page .contact-button:active, 
.billing-page .enhanced-checkout-button:active,
.billing-page .billing-plan-cta:active {
  transform: scale(0.98) !important;
  transition: transform 0.1s ease !important;
}

/* Ensure no overlapping elements block clicks */
.billing-page button:hover,
.billing-page .contact-button:hover, 
.billing-page .enhanced-checkout-button:hover {
  z-index: 200 !important;
}

/* Disable pointer events only for decorative elements */
.billing-page .floating-icons,
.billing-page .floating-icon,
.billing-page .billing-hero-background > div:not(.billing-container) {
  pointer-events: none !important;
}

/* Reset and body styles for proper scrolling - Billing page specific */
.billing-page html,
html.billing-active {
  scroll-behavior: smooth !important;
  overflow-y: auto !important;
}

.billing-page body,
body.billing-active {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: transparent !important;
}

/* Ensure billing page overrides any global background */
.billing-page,
.billing-page *,
.billing-page *::before,
.billing-page *::after {
  box-sizing: border-box;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(2deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes float-around {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  25% { 
    transform: translateY(-15px) rotate(90deg) scale(1.1);
    opacity: 1;
  }
  50% { 
    transform: translateY(-10px) rotate(180deg) scale(0.9);
    opacity: 0.8;
  }
  75% { 
    transform: translateY(-20px) rotate(270deg) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes glow-pulse {
  0%, 100% { 
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  }
  50% { 
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(236, 72, 153, 0.4);
  }
}

@keyframes number-glow {
  0% { 
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    transform: scale(1);
  }
  100% { 
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.3);
    transform: scale(1.02);
  }
}

@keyframes count-up {
  from { 
    transform: scale(0.5);
    opacity: 0;
  }
  to { 
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float.delay-1000 {
  animation-delay: 1s;
}

.animate-float.delay-2000 {
  animation-delay: 2s;
}

/* Main Page Styles */
.billing-page {
  min-height: 100vh !important;
  position: relative !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  background-attachment: fixed !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
  z-index: 1 !important;
}

.billing-hero-background {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.billing-container {
  position: relative !important;
  z-index: 10 !important;
  padding: 2rem 1rem !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  min-height: 100vh !important;
  padding-bottom: 4rem !important;
}

/* Header Styles */
.billing-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.header-animation-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  animation: float-around 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: -20px;
  left: -80px;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: -40px;
  right: -60px;
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  bottom: -20px;
  left: -60px;
  animation-delay: 4s;
}

.floating-icon:nth-child(4) {
  bottom: -40px;
  right: -80px;
  animation-delay: 6s;
}

.main-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #ddd6fe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.title-highlight {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 0.5rem;
  position: relative;
  animation: glow-pulse 3s ease-in-out infinite;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-weight: 500;
}

.highlight-number {
  color: #10b981;
  font-weight: 800;
  font-size: 1.5em;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  animation: number-glow 2s ease-in-out infinite alternate;
}

.highlight-feature {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.5);
  text-underline-offset: 4px;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981, #059669);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
  animation: count-up 2s ease-out;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

/* Toggle Styles */
.billing-toggle-container {
  margin-bottom: 4rem;
  text-align: center;
}

.billing-toggle {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  margin-top: 1rem;
}

/* Plan Grid Styles */
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.billing-plan-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  pointer-events: auto !important;
  z-index: 10 !important;
}

.billing-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.4);
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
}

.billing-plan-card.popular {
  border: 2px solid #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  position: relative;
}

.billing-plan-card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 1rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.billing-plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.billing-plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.billing-plan-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.billing-plan-price {
  margin-bottom: 1rem;
}

.billing-plan-price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.billing-plan-price-period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.billing-plan-setup {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-style: italic;
}

.billing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.billing-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.billing-plan-feature svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.billing-plan-cta {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.billing-plan-cta.primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.billing-plan-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.billing-plan-cta.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.billing-plan-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Testimonials Styles */
.billing-testimonials {
  margin: 4rem 0;
}

/* Selected Plan Section Styles */
.selected-plan-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 2rem !important;
  padding: 3rem 2rem !important;
  margin: 3rem 0 !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.selected-plan-title {
  color: white !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.selected-plan-subtitle {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.5rem !important;
  text-align: center !important;
  margin-bottom: 3rem !important;
  font-weight: 500 !important;
}

.pricing-breakdown {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
  margin-bottom: 3rem !important;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1)) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 1.5rem !important;
  padding: 2rem !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
}

.pricing-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15)) !important;
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3)) !important;
  border: 2px solid rgba(139, 92, 246, 0.5) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3) !important;
}

.pricing-amount {
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
  margin-bottom: 0.5rem !important;
}

.pricing-label {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

.pricing-description {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.95rem !important;
}

/* Plan Benefits Section */
.plan-benefits {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 2rem !important;
  padding: 2.5rem !important;
  margin-bottom: 3rem !important;
}

.plan-benefits h4 {
  color: white !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 2px solid rgba(255,255,255,0.2) !important;
}

.benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
}

.benefit-item {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 0 !important;
}

.benefit-icon {
  width: 1.5rem !important;
  height: 1.5rem !important;
  color: #10b981 !important;
  flex-shrink: 0 !important;
}

/* Enhanced Checkout Button */
.checkout-button-container {
  text-align: center !important;
  margin: 3rem 0 !important;
}

.enhanced-checkout-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1.5rem 3rem !important;
  background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
  color: white !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 2rem !important;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  z-index: 20 !important;
  position: relative !important;
  outline: none !important;
}

.enhanced-checkout-button:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6) !important;
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
}

.checkout-security-text {
  color: rgba(255,255,255,0.8) !important;
  font-size: 1rem !important;
  margin-top: 1rem !important;
  font-weight: 500 !important;
}

/* Testimonials Enhancement */
.billing-testimonials {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 2rem !important;
  padding: 4rem 2rem !important;
  margin: 4rem 0 !important;
}

.testimonials-title {
  color: white !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.testimonials-subtitle {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1.3rem !important;
  text-align: center !important;
  margin-bottom: 3rem !important;
  font-weight: 500 !important;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 1.5rem !important;
  padding: 2rem !important;
  transition: all 0.3s ease !important;
  height: 100% !important;
}

.testimonial-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.12)) !important;
}

.testimonial-quote {
  color: rgba(255,255,255,0.95) !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  font-style: italic !important;
  margin-bottom: 2rem !important;
}

.testimonial-author {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.author-avatar {
  width: 3rem !important;
  height: 3rem !important;
  background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  color: white !important;
  font-weight: 700 !important;
}

.author-info h4 {
  color: white !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.25rem 0 !important;
}

.author-info p {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

/* FAQ Enhancement */
.faq-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 2rem !important;
  padding: 4rem 2rem !important;
  margin: 4rem 0 !important;
}

.faq-title {
  color: white !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.faq-subtitle {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1.3rem !important;
  text-align: center !important;
  margin-bottom: 3rem !important;
  font-weight: 500 !important;
}

.faq-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 1rem !important;
  margin-bottom: 1rem !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.faq-item:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1)) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

.faq-question {
  width: 100% !important;
  text-align: left !important;
  padding: 1.5rem !important;
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  position: relative !important;
}

.faq-question:hover {
  background: rgba(255,255,255,0.1) !important;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Contact Section Enhancement */
.contact-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 2rem !important;
  padding: 4rem 2rem !important;
  margin: 4rem 0 !important;
  text-align: center !important;
}

.contact-title {
  color: white !important;
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.contact-subtitle {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.2rem !important;
  margin-bottom: 3rem !important;
  font-weight: 500 !important;
}

.contact-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  align-items: center !important;
}

@media (min-width: 640px) {
  .contact-buttons {
    flex-direction: row !important;
    justify-content: center !important;
  }
}

.contact-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1rem 2rem !important;
  border-radius: 1rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  min-width: 200px !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  border: none !important;
  outline: none !important;
  z-index: 10 !important;
  position: relative !important;
}

.contact-button.primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3) !important;
}

.contact-button.primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4) !important;
  background: linear-gradient(135deg, #059669, #047857) !important;
}

.contact-button.secondary {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

.contact-button.secondary:hover {
  transform: translateY(-2px) !important;
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

.contact-button.tertiary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
}

.contact-button.tertiary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4) !important;
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .billing-page {
    background-attachment: scroll; /* Better for mobile performance */
  }
  
  .billing-container {
    padding: 1rem 0.5rem;
    padding-bottom: 3rem;
  }
  
  .billing-header {
    margin-bottom: 2rem;
  }
  
  .stats-container {
    gap: 1.5rem;
    flex-direction: column;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .billing-plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .billing-plan-card {
    padding: 1.5rem;
  }
  
  .billing-plan-price-amount {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .billing-page {
    background-attachment: scroll;
  }
  
  .billing-container {
    padding: 0.5rem;
    padding-bottom: 2rem;
  }
  
  .floating-icons {
    display: none;
  }
  
  .main-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .billing-plan-card {
    padding: 1rem;
  }
}
/* Success Page - Comprehensive Feature Showcase */
.success-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 35%, #16213e 100%);
  color: white;
  padding: 2rem 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header Section */
.success-header-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.success-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.check-icon-large {
  width: 40px;
  height: 40px;
  color: white;
}

.success-main-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-subtitle {
  font-size: 1.5rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Email Check Notice */
.email-check-notice {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid #3b82f6;
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
}

.email-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mail-icon {
  width: 30px;
  height: 30px;
  color: white;
}

.email-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #3b82f6;
}

.email-content p {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.email-content ul {
  list-style: none;
  padding: 0;
}

.email-content li {
  padding: 0.5rem 0;
  color: #cbd5e1;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.email-content li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Features Showcase */
.features-showcase {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

.features-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon .icon {
  width: 30px;
  height: 30px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card li {
  padding: 0.5rem 0;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.feature-card li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Next Steps Section */
.next-steps-section {
  max-width: 900px;
  margin: 0 auto 4rem auto;
}

.next-steps-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #f8fafc;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.step-content p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* Guarantee Section */
.guarantee-section {
  max-width: 600px;
  margin: 0 auto 4rem auto;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 1rem;
  padding: 2rem;
}

.guarantee-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.guarantee-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shield-icon {
  width: 30px;
  height: 30px;
  color: white;
}

.guarantee-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.guarantee-content p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* Support Section */
.support-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.support-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
}

.support-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 220px;
}

.support-btn.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.support-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.support-btn.secondary {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.support-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.support-btn.tertiary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-btn.tertiary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .success-main-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .email-check-notice {
    flex-direction: column;
    text-align: center;
  }
  
  .guarantee-content {
    flex-direction: column;
    text-align: center;
  }
  
  .support-options {
    width: 100%;
  }
  
  .support-btn {
    width: 100%;
    max-width: 300px;
  }
}
/* ================================
   BILLING PAGE - DEDICATED STYLES
   Complete standalone styling for src/app/billing/page.tsx
   ================================ */

/* Force dark background on billing page */
html.billing-active,
html.billing-active body {
  background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 35%, #16213e 100%) !important;
  color: #ffffff !important;
}

/* Base billing page layout */
.billing-page {
  background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 35%, #16213e 100%) !important;
  min-height: 100vh !important;
  color: #ffffff !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow-x: hidden; /* Fix horizontal scroll */
  overflow-y: auto;   /* Allow vertical scroll */
}

/* Hero background with enhanced glassmorphism */
.billing-hero-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  z-index: -1 !important;
  background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 35%, #16213e 100%) !important;
}

/* Glassmorphism background elements */
.billing-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3)) !important;
}

.billing-bg-blur-1 {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.4) !important;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.billing-bg-blur-2 {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 600px;
  height: 600px;
  background: rgba(236, 72, 153, 0.4) !important;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
}

.billing-bg-blur-3 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.3) !important;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 2s;
}

.billing-bg-blur-4 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.25) !important;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 3s;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Container and layout */
.billing-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header section */
.billing-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 3rem;
}

/* Floating icons animation */
.floating-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.floating-icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
  opacity: 0.8;
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 0.5s; }
.floating-icon:nth-child(3) { animation-delay: 1s; }
.floating-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Main title styling */
.main-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #ffffff;
}

.title-highlight {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 0.5rem;
}

/* Subtitle */
.subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 50rem;
  margin: 0 auto 2.5rem;
}

.highlight-number {
  color: #10b981;
  font-weight: 700;
}

.highlight-feature {
  color: #f59e0b;
  font-weight: 600;
}

/* Stats container */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA text */
.cta-text {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  font-size: 1.125rem;
  color: #e2e8f0;
  margin: 2rem auto;
  max-width: 42rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: block;
}

/* Billing toggle section */
.billing-toggle-container {
  margin-bottom: 4rem;
}

.billing-toggle-header {
  text-align: center;
  margin-bottom: 2rem;
}

.billing-toggle-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.billing-toggle-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 0.5rem;
  margin: 2rem auto;
  width: -moz-fit-content;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.billing-toggle-button {
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.billing-toggle-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.billing-toggle-button.active {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.billing-save-badge {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* Plans grid */
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Plan card styling */
.billing-plan-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.billing-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.billing-plan-card.popular {
  border: 2px solid #7c3aed;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
  transform: scale(1.02);
}

.billing-plan-card.popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);
}

.billing-plan-card.selected {
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Plan badge */
.plan-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.75rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Plan header */
.billing-plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.billing-plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.billing-plan-description {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Plan pricing */
.billing-plan-price {
  text-align: center;
  margin-bottom: 2rem;
}

.billing-plan-price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.billing-plan-price-period {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 0.5rem;
}

.billing-plan-setup {
  font-size: 0.875rem;
  color: #fbbf24;
  margin-top: 0.5rem;
  font-weight: 600;
  text-align: center;
}

/* Plan features */
.billing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.billing-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.billing-plan-feature .check-icon,
.check-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
}

/* Plan button */
.billing-plan-cta {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.billing-plan-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.billing-plan-cta.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.billing-plan-cta.secondary {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .billing-container {
    padding: 1.5rem 1rem;
  }
  
  .billing-plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.25rem;
  }
  
  .subtitle {
    font-size: 1.125rem;
  }
  
  .billing-plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .billing-plan-card {
    padding: 1.5rem;
  }
  
  .billing-plan-card.popular {
    transform: none;
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .billing-toggle-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .floating-icons {
    gap: 1rem;
  }
  
  .floating-icon {
    font-size: 1.5rem;
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Pulse animation for badges */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Focus states for accessibility */
.billing-toggle-button:focus,
.billing-plan-cta:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

/* ================================
   ENHANCED SECTIONS
   ================================ */

/* Essential layout utilities used by the billing page */
.text-center {
  text-align: center;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

/* Floating particles animation */
.floating-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.floating-particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float-particle 4s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.7;
  }
}

/* Color utilities */
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}

/* Selected Plan Section */
.selected-plan-section {
  margin-top: 4rem;
  padding: 3rem 0;
}

.selected-plan-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.selected-plan-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.pricing-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
  border-color: rgba(124, 58, 237, 0.4);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pricing-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.pricing-description {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Benefits Section */
.plan-benefits {
  margin: 3rem auto;
  max-width: 56rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: start;
  justify-content: center;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .plan-benefits {
    padding: 2rem;
    margin: 2rem 1rem;
  }
}

.benefits-grid h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #10b981;
  flex-shrink: 0;
}

/* Checkout Button */
.checkout-button-container {
  text-align: center;
  margin-top: 3rem;
}

.enhanced-checkout-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  margin-bottom: 1rem;
}

.enhanced-checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.enhanced-checkout-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-security-text {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* Testimonials Section */
.billing-testimonials {
  margin: 5rem 0;
  padding: 3rem 0;
}

.testimonials-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.testimonials-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
}

.testimonial-quote {
  font-size: 1.125rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* FAQ Section */
.faq-section {
  margin: 5rem 0;
  padding: 3rem 0;
}

.faq-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.faq-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem;
  text-align: left;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  margin: 5rem 0;
  padding: 3rem 0;
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-button.primary {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #ffffff;
}

.contact-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-button.tertiary {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-button:hover {
  transform: translateY(-1px);
}

/* Additional component styles */
.pricing-period {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.annual-savings {
  color: #4ade80;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.checkout-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.checkout-icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* Testimonials grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* FAQ list */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Contact Section */
.contact-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3rem;
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3));
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: #a855f7;
}

.contact-buttons {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.contact-button:hover::before {
  left: 100%;
}

.contact-button.primary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  border-color: rgba(34, 197, 94, 0.3);
}

.contact-button.primary:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.2));
  border-color: rgba(34, 197, 94, 0.4);
}

.contact-button.secondary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.3);
}

.contact-button.secondary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.2));
  border-color: rgba(59, 130, 246, 0.4);
}

.contact-button.tertiary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
  border-color: rgba(168, 85, 247, 0.3);
}

.contact-button.tertiary:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.2));
  border-color: rgba(168, 85, 247, 0.4);
}

.contact-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.contact-button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex: 1;
}

.contact-button-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-button-value {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-item svg {
  color: #4ade80;
}

@media (max-width: 768px) {
  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-content {
    padding: 2rem;
  }
}

/* Security Notice */
.security-notice {
  margin-bottom: 2rem;
}

.security-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 2rem;
  color: #4ade80;
  font-size: 0.875rem;
  font-weight: 500;
}

.security-badge-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Enhanced Checkout Disclaimer */
.checkout-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.disclaimer-icon {
  width: 1rem;
  height: 1rem;
  color: #4ade80;
}

/* Professional Footer */
.billing-footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 5rem;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-section h4 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #a855f7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand svg {
  color: #a855f7;
}

.footer-tagline {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-tagline p {
  margin: 0;
  line-height: 1.5;
}

.footer-security {
  display: flex;
  align-items: center;
}

.footer-security .security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 1.5rem;
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-tagline {
    order: 1;
  }
  
  .footer-brand {
    order: 2;
  }
  
  .footer-security {
    order: 3;
  }
}

/* Enhanced Hover Effects for Cards */
.plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.3);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Smooth FAQ Animation */
.faq-answer {
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ================================
   AI CHAT ASSISTANT - STYLES
   ================================ */

.ai-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ai-chat-container {
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background: rgba(12, 12, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(168, 85, 247, 0.1);
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.ai-chat-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.ai-chat-title p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.ai-chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.ai-chat-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Messages */
.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
}

.ai-chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ai-chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 2rem;
  height: 2rem;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  flex-shrink: 0;
}

.ai-chat-message.user .message-avatar {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.message-text {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-chat-message.user .message-text {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

.message-timestamp {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 1rem;
}

.ai-chat-message.user .message-timestamp {
  margin-left: 0;
  margin-right: 1rem;
  text-align: right;
}

/* Typing indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.ai-typing span {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(168, 85, 247, 0.6);
  border-radius: 50%;
  animation: typing 1.5s ease-in-out infinite;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Input */
.ai-chat-input {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.chat-textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
  max-height: 100px;
  overflow-y: auto;
}

.chat-textarea:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.chat-textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-send-button {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: none;
  border-radius: 0.75rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 10px 25px -8px rgba(168, 85, 247, 0.4);
}

.chat-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Scrollbar styling */
.ai-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 2px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .ai-chat-overlay {
    padding: 0.5rem;
  }
  
  .ai-chat-container {
    max-height: 90vh;
    border-radius: 1rem;
  }
  
  .ai-chat-header {
    padding: 1rem;
  }
  
  .ai-chat-messages {
    padding: 0.75rem;
  }
  
  .ai-chat-input {
    padding: 0.75rem;
  }
}
/* Dashboard Charts Styles */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.dashboard-chart-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.dashboard-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.dashboard-chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.dashboard-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #6b7280;
}

.dashboard-chart-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #ef4444;
}
