/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

 html,
 body {
     width: 100%;
     height: 100%;
     margin: 0;
     padding: 0;
     overflow-x: hidden;
 }

 /* Initial loading screen styles */
 #sideload-msg {
     display: flex;
     align-items: center;
     justify-content: center;
     min-height: 100vh;
     background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
 }

 .initial-loading {
     text-align: center;
     padding: 40px 20px;
 }

 .loading-logo {
     width: 120px;
     height: auto;
     margin-bottom: 24px;
     animation: pulse 2s ease-in-out infinite;
     object-fit: contain;
 }

 @keyframes pulse {
     0%, 100% { transform: scale(1); opacity: 1; }
     50% { transform: scale(1.05); opacity: 0.8; }
 }

 .initial-loading .loading-spinner {
     width: 40px;
     height: 40px;
     border: 3px solid #e1e4e8;
     border-top: 3px solid #0078d4;
     border-radius: 50%;
     animation: spin 1s linear infinite;
     margin: 0 auto 20px;
 }

 .loading-text {
     color: #333;
     font-size: 16px;
     font-weight: 500;
     margin: 0;
 }
 
 ul {
     margin: 0;
     padding: 0;
 }
 
 .ms-welcome__header {
    padding: 20px;
    padding-bottom: 30px;
    padding-top: 100px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
 }

 /* Compact header for space efficiency */
 .compact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e1e1;
    min-height: 56px;
    box-sizing: border-box;
 }

 .header-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
 }

 .ms-welcome__main {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-wrap: nowrap;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex: 1 0 0;
    -ms-flex: 1 0 0;
    flex: 1 0 0;
    padding: 10px 20px;
 }
 
 .ms-welcome__main > h2 {
     width: 100%;
     text-align: center;
 }
 
 .ms-welcome__features {
     list-style-type: none;
     margin-top: 20px;
 }
 
 .ms-welcome__features.ms-List .ms-ListItem {
     padding-bottom: 20px;
     display: -webkit-flex;
     display: flex;
 }
 
 .ms-welcome__features.ms-List .ms-ListItem > .ms-Icon {
     margin-right: 10px;
 }
 
 .ms-welcome__action.ms-Button--hero {
     margin-top: 30px;
 }
 
.ms-Button.ms-Button--hero .ms-Button-label {
  color: #0078d7;
}

.ms-Button.ms-Button--hero:hover .ms-Button-label,
.ms-Button.ms-Button--hero:focus .ms-Button-label{
  color: #005a9e;
  cursor: pointer;
}

b {
    font-weight: bold;
}

/* Main layout styles */
.main-content {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  padding: 0;
}

/* Loading styles */
.loading-container { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 20px; text-align:center; }
.loading-spinner { width:24px; height:24px; border:2px solid #f3f3f3; border-top:2px solid #0078d4; border-radius:50%; animation: spin 1s linear infinite; margin-bottom:12px; }
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }
.loading-container p { color:#666; font-size:14px; margin:0; }

/* Section styles */
.contacts-section { /* legacy - unused */ }

.section-title { /* legacy - unused */ }

.no-contacts-section { /* legacy - unused */ }

/* .no-contacts-message styles moved to styles/wizard.css */

/* Action section */
.action-section { /* legacy - unused */ }

/* Button styles */
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: auto;
  padding: 6px 10px;
  margin-bottom: 12px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.primary-button:hover {
  background-color: #106ebe;
}

.primary-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.primary-button .button-icon {
  margin-right: 8px;
  font-size: 16px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin: 0 4px;
}

.secondary-button:hover {
  background-color: #e0e0e0;
  text-decoration: none;
  color: #333;
}

/* Success section */
.success-section { /* legacy - unused */ }

.success-header { /* legacy - unused */ }

.success-icon { /* legacy - unused */ }

.success-header h4 { /* legacy - unused */ }

.email-summary { /* legacy - unused */ }

.email-summary p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.4;
}

/* Error section */
.error-section { /* legacy - unused */ }

.error-header { /* legacy - unused */ }

.error-icon { /* legacy - unused */ }

.error-header h4 { /* legacy - unused */ }

.error-section p { /* legacy - unused */ }

/* Action buttons container */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Attachments section styles */

/* Attachment upload progress */
.attachment-progress {
  margin-top: 12px;
  padding: 12px;
  background-color: #f0f7ff;
  border: 1px solid #0078d4;
  border-radius: 4px;
}

/* Wizard styles moved to styles/wizard.css */

/* Contact Cards in Wizard */
.contacts-list-wizard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card-wizard {
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  padding: 16px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-card-wizard:hover {
  border-color: #0078d4;
  box-shadow: 0 2px 8px rgba(0, 120, 212, 0.1);
}

.contact-card-wizard.selected {
  border-color: #0078d4;
  background-color: #f0f7ff;
  box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}

.contact-card-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-checkbox-wrapper {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
}

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

.contact-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-email,
.contact-phone {
  font-size: 12px;
  color: #666;
}

.contact-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.contact-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.stat-item {
  font-size: 11px;
  color: #666;
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 12px;
  white-space: nowrap;
}

.selection-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #f0f7ff;
  border: 1px solid #0078d4;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 14px;
  color: #0078d4;
  font-weight: 500;
}

.summary-icon {
  font-size: 16px;
}

.no-contacts-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.no-contacts-message .icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.no-contacts-message h4 {
  margin: 0 0 8px 0;
  color: #333;
}

.no-contacts-message p {
  margin: 0;
  font-size: 14px;
}

/* Step 2: Leads & Campaigns Styles */
.tab-container {
  margin-top: 16px;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #e1e1e1;
  margin-bottom: 16px;
}

.tab-button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background-color: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: #0078d4;
  background-color: #f8f9fa;
}

.tab-button.active {
  color: #0078d4;
  border-bottom-color: #0078d4;
  background-color: #f0f7ff;
}

.tab-content {
  min-height: 200px;
}

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 16px;
  pointer-events: none;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.selectable-item {
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 12px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.selectable-item:hover {
  border-color: #0078d4;
  box-shadow: 0 2px 4px rgba(0, 120, 212, 0.1);
}

.selectable-item.selected {
  border-color: #0078d4;
  background-color: #f0f7ff;
  box-shadow: 0 2px 4px rgba(0, 120, 212, 0.15);
}

.item-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.item-checkbox-wrapper {
  flex-shrink: 0;
  margin-top: 2px;
}

.item-checkbox, .item-radio {
  width: 16px;
  height: 16px;
  margin: 0;
}

.item-radio {
  /* Radio button specific styling */
  accent-color: #0078d4;
}

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

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.item-subtitle {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.item-meta {
  font-size: 11px;
  color: #999;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.empty-state h4 {
  margin: 0 0 8px 0;
  color: #333;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.skip-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: #666;
}

.skip-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Contact card enhancements */
.contact-company {
  font-size: 12px;
  color: #0078d4;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-expand-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.contact-expand-btn:hover {
  background-color: #f0f0f0;
}

.contact-expanded-details {
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-top: 1px solid #e1e1e1;
  margin-top: 8px;
}

.contact-detail-row {
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
}

.contact-detail-row strong {
  color: #333;
  display: inline-block;
  width: 80px;
}

.contact-position {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.contact-phone {
  font-size: 12px;
  color: #666;
}

.phone-display {
  color: #0078d4;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  border-radius: 3px;
  padding: 2px 4px;
  transition: background-color 0.2s ease;
}

.phone-display:hover {
  background-color: #e7f3ff;
  color: #106ebe;
}

.phone-display:active {
  background-color: #d0e8ff;
  color: #005a9e;
}

.details-section {
  margin-bottom: 16px;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 12px;
}

.details-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.details-section h4 {
  margin: 0 0 8px 0;
  color: #0078d4;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activities-list {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
}

.activities-list li {
  margin-bottom: 4px;
  color: #666;
}

.activities-list a {
  color: #0078d4;
  text-decoration: none;
}

.activities-list a:hover {
  text-decoration: underline;
}

/* Step 3: Final Summary and Attachments */
.selection-summary-final {
  background-color: #f0f7ff;
  border: 1px solid #0078d4;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.selection-summary-final h4 {
  margin: 0 0 12px 0;
  color: #0078d4;
  font-size: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-item {
  text-align: center;
  padding: 8px;
  background-color: white;
  border-radius: 4px;
}

.summary-label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}

.summary-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0078d4;
}

.summary-details {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.summary-details strong {
  color: #333;
}

/* Attachments styles moved to styles/attachments.css */

.attachment-warning {
  padding: 12px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  margin-top: 8px;
}

/* Success/Error styles moved to styles/success-error.css */

.attachment-progress-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.attachment-progress-icon {
  color: #0078d4;
  font-size: 14px;
  margin-right: 6px;
}

.attachment-progress-text {
  font-size: 13px;
  color: #0078d4;
  font-weight: 500;
}

.attachment-progress-details {
  font-size: 11px;
  color: #666;
}

#loading {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* Header styles - compact design */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e1e1e1;
  margin-bottom: 16px;
  min-height: 40px;
  box-sizing: border-box;
}

.app-title {
  margin: 0;
  color: #0078d4;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-title::before {
  content: "🏢";
  font-size: 16px;
}

.logout-button {
  padding: 6px 12px;
  font-size: 12px;
  background-color: #fff;
  border: 1px solid #0078d4;
  border-radius: 4px;
  cursor: pointer;
  color: #0078d4;
  transition: all 0.2s ease;
  font-weight: 500;
}

.logout-button:hover {
  background-color: #0078d4;
  color: #fff;
}

/* Header Right Section */
.header-right-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* AI Assistant Trigger Button */
/* AI Assistant trigger button styles removed - now using floating button */

/* Import Status Tag */
.import-status-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 16px 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.import-status-tag.imported {
  background: #e7f3ff;
  border: 1px solid #0078d4;
  color: #0078d4;
}

.import-status-tag.not-imported {
  background: #fff3e0;
  border: 1px solid #ff8c00;
  color: #ff8c00;
}

.import-status-icon {
  font-size: 14px;
}

.import-status-text {
  font-weight: 500;
}

.import-status-link {
  color: #0078d4;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.import-status-link:hover {
  color: #106ebe;
  text-decoration: none;
}

.import-status-timestamp {
  color: #666;
  font-size: 12px;
  font-weight: normal;
}

/* Contact card styles */
.contact-item {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.contact-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-summary {
  padding: 12px 16px;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  transition: background-color 0.2s ease;
}

.contact-summary:hover {
  background-color: #e9ecef;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.contact-header input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.contact-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.contact-info:hover {
  background-color: #e0e0e0;
}

.contact-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  line-height: 1.2;
}

.contact-company {
  font-size: 12px;
  color: #0078d4;
  line-height: 1.2;
}

.contact-email {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-details {
  padding: 16px;
  background-color: white;
  border-top: 1px solid #e1e1e1;
  display: none;
}

.contact-details.expanded {
  display: block;
}

.details-section {
  margin-bottom: 20px;
}

.details-section h4 {
  color: #0078d4;
  margin-bottom: 10px;
  font-size: 14px;
}

.details-section p {
  margin: 5px 0;
  font-size: 13px;
}

.details-section ul {
  margin: 5px 0;
  padding-left: 20px;
}

.details-section li {
  font-size: 13px;
  margin-bottom: 5px;
}

.details-section a {
  color: #0078d4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.details-section a:hover {
  color: #106ebe;
  text-decoration: underline;
}

.details-section li a {
  display: block;
  padding: 4px 0;
}

.select-button {
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.select-button:hover {
  background-color: #106ebe;
}

.error {
  padding: 20px;
  color: #dc3545;
  background-color: #f8d7da;
  border-radius: 4px;
  margin: 10px 0;
}

h3 {
  color: #0078d4;
  margin-bottom: 15px;
}

.details-section li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.details-section li a {
  display: block;
  padding: 4px 0;
}

.crm-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0078d4;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s ease;
  margin: 5px;
  
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
}

.crm-link:hover {
  background-color: #106ebe;
  text-decoration: none;
  color: white !important;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 8px;
  border-radius: 4px;
  margin: 5px 0;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
}

.success-message h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #155724;
  font-size: 13px;
  font-weight: bold;
}

.email-details {
  background-color: white;
  padding: 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.email-details p {
  margin: 2px 0;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-details a {
  color: #0078d4;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.email-details a:hover {
  text-decoration: underline;
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 5px;
}

.action-buttons button,
.action-buttons .view-activity-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-width: 100px;
}

.action-buttons button {
  background-color: #f0f0f0;
  border: 1px solid #d0d0d0;
  color: #333;
}

.action-buttons button:hover {
  background-color: #e0e0e0;
}

.view-activity-btn {
  background-color: #0078d4;
  color: white;
  border: none;
}

.view-activity-btn:hover {
  background-color: #106ebe;
  color: white;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
  text-align: center;
}

.error-message button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.error-message button:hover {
  background-color: #c82333;
}

.link-button {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 10px 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 0 20px 0;
  width: 100%;
  clear: both;
}

.link-button:hover {
  background-color: #106ebe;
}

.link-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.link-button .icon {
  font-size: 16px;
  line-height: 1;
}

.attachments-container {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
}

.attachments-container h3 {
  color: #0078d4;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
}

.attachments-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.attachment-item {
  padding: 12px 16px;
  background-color: white;
  border-radius: 6px;
  border: 1px solid #e1e1e1;
  transition: all 0.2s ease;
}

.attachment-item:hover {
  background-color: #f0f7ff;
  border-color: #0078d4;
}

.attachment-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.attachment-label input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.attachment-name {
  -ms-flex-positive: 1;
  flex-grow: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.attachment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.next-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #d0d0d0;
  background-color: #f0f0f0;
  color: #333;
}

.next-button:hover {
  background-color: #e0e0e0;
}

.next-button.primary {
  background-color: #0078d4;
  color: white;
  border: none;
}

.next-button.primary:hover {
  background-color: #106ebe;
}

.loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

.loading-message .icon {
  font-size: 16px;
}

.login-container {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h2 {
  margin: 0 0 12px;
  text-align: center;
  color: #333;
}

.login-value-proposition {
  margin: 0 0 20px;
  padding: 10px 12px;
  background: #f0f6ff;
  border-left: 3px solid #0078d4;
  border-radius: 4px;
}

.login-value-proposition p {
  margin: 0;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.login-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.login-signup-text,
.login-enterprise-text {
  margin: 0 0 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.login-signup-text a,
.login-enterprise-text a {
  color: #0078d4;
  text-decoration: none;
}

.login-signup-text a:hover,
.login-enterprise-text a:hover {
  text-decoration: underline;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #666;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-button:hover {
  background-color: #106ebe;
}

.error-message {
  color: #d83b01;
  margin: 10px 0;
  text-align: center;
}

.contact-summary {
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  cursor: pointer;
}

.contact-details {
  padding: 15px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  background-color: #f9f9f9;
}

.details-section {
  margin-bottom: 15px;
}

.details-section h4 {
  margin: 0 0 10px;
  color: #333;
}

.link-button {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
}

.link-button:hover {
  background-color: #106ebe;
}

.link-button .icon {
  margin-right: 8px;
}

.success-message {
  padding: 20px;
  background-color: #f0f7ff;
  border: 1px solid #0078d4;
  border-radius: 4px;
}

.email-details {
  margin: 15px 0;
}

.action-buttons {
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.view-activity-btn {
  padding: 8px 16px;
  background-color: #0078d4;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.view-activity-btn:hover {
  background-color: #106ebe;
}

/* Add new styles for contacts container */
.contacts-container {
  width: 100%;
  margin-bottom: 20px;
}

.contacts-list {
  width: 100%;
  margin-bottom: 20px;
}

/* Styles for selectable leads and campaigns */
.selectable-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.item-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background-color: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-checkbox:hover {
  background-color: #e9ecef;
  border-color: #0078d4;
}

.item-checkbox input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
}

.item-name {
  flex-grow: 1;
  font-size: 13px;
  color: #333;
}

.item-link {
  padding: 4px 8px;
  background-color: #0078d4;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.item-link:hover {
  background-color: #106ebe;
  text-decoration: none !important;
}

/* Device verification modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content {
  padding: 30px;
}

.modal-content h2 {
  margin: 0 0 20px;
  text-align: center;
  color: #333;
  font-size: 18px;
}

.modal-content p {
  margin: 0 0 25px;
  text-align: center;
  color: #666;
  line-height: 1.5;
  font-size: 14px;
}

.verification-form {
  width: 100%;
}

.verification-form .form-group {
  margin-bottom: 25px;
}

.verification-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.verification-form input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
  font-family: monospace;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.verification-form input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.button-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

.cancel-button {
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cancel-button:hover {
  background-color: #e0e0e0;
}

.verify-button {
  padding: 10px 20px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.verify-button:hover {
  background-color: #106ebe;
}

.verify-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.verification-form .error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  border: 1px solid #f5c6cb;
}

/* SSO Styles */
.sso-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sso-button {
  width: 100%;
  padding: 12px;
  background-color: #ffffff;
  color: #333;
  border: 2px solid #4285f4;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.sso-button:hover {
  background-color: #f8f9fa;
  border-color: #3367d6;
}

.sso-button:active {
  background-color: #e8f0fe;
  transform: translateY(1px);
}

.sso-button:disabled {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  transform: none;
}

.sso-button svg {
  flex-shrink: 0;
}

.divider {
  text-align: center;
  margin: 15px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #eee;
}

.divider span {
  background-color: white;
  color: #666;
  padding: 0 15px;
  font-size: 12px;
  position: relative;
}

.traditional-login {
  margin-top: 10px;
}

/* Two-Factor Authentication Styles */
.tfa-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.tfa-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.tfa-title {
  margin: 0 0 24px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.tfa-shield-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Stepper */
.tfa-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  gap: 0;
}

.tfa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tfa-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e1e1e1;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tfa-step.active .tfa-step-number {
  background: #0078d4;
  color: white;
}

.tfa-step.completed .tfa-step-number {
  background: #107c10;
  color: white;
}

.tfa-step-label {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}

.tfa-step.active .tfa-step-label {
  color: #0078d4;
  font-weight: 600;
}

.tfa-step.completed .tfa-step-label {
  color: #107c10;
}

.tfa-step-line {
  width: 24px;
  height: 2px;
  background: #e1e1e1;
  margin: 0 6px;
  margin-bottom: 16px;
}

/* Step content */
.tfa-step-content {
  text-align: center;
}

.tfa-description {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* QR code */
.tfa-qr-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tfa-qr-image {
  width: 200px;
  height: 200px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  padding: 8px;
  background: white;
}

/* Manual entry */
.tfa-manual-entry {
  margin-bottom: 20px;
}

.tfa-manual-label {
  font-size: 12px;
  color: #666;
  margin: 0 0 8px;
}

.tfa-secret-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 10px 14px;
}

.tfa-secret-code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #333;
  word-break: break-all;
}

.tfa-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.tfa-copy-btn:hover {
  background-color: #e0e0e0;
}

/* Code input */
.tfa-code-input-group {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.tfa-code-input,
.tfa-recovery-input {
  width: 180px;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 6px;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.tfa-recovery-input {
  font-size: 16px;
  letter-spacing: 2px;
  width: 200px;
}

.tfa-code-input:focus,
.tfa-recovery-input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

/* Buttons */
.tfa-primary-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 12px;
}

.tfa-primary-btn:hover {
  background-color: #106ebe;
}

.tfa-primary-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.tfa-secondary-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 12px;
}

.tfa-secondary-btn:hover {
  background-color: #e0e0e0;
}

.tfa-toggle-link {
  background: none;
  border: none;
  color: #0078d4;
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
  display: block;
  margin: 0 auto;
}

.tfa-toggle-link:hover {
  color: #106ebe;
}

.tfa-back-link {
  background: none;
  border: none;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  margin-top: 8px;
  display: block;
  width: 100%;
  text-align: center;
}

.tfa-back-link:hover {
  color: #333;
  text-decoration: underline;
}

/* Error & success */
.tfa-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 13px;
  border: 1px solid #f5c6cb;
}

.tfa-error-banner {
  background-color: #f8d7da;
  color: #721c24;
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid #f5c6cb;
}

.tfa-success-banner {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #c3e6cb;
}

/* Recovery codes */
.tfa-codes-title {
  color: #333;
  font-size: 16px;
  margin: 0 0 8px;
}

.tfa-codes-desc {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.tfa-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tfa-code-item {
  background: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 8px;
}

.tfa-code-item code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* Loading */
.tfa-loading {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}