/* Sales Outreach Styles */

.sales-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
}

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

.sales-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.sales-address {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 12px;
}

/* Toggle Switch */
.sales-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.toggle-label.toggle-active {
  color: var(--text-primary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-300);
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* Category Cards */
.sales-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.category-icon {
  font-size: 1.4rem;
  color: var(--gold);
  width: 40px;
  text-align: center;
}

.category-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.category-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-start {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-start:hover {
  background: var(--dark-gray);
}

/* Category Results */
.category-results {
  border-top: 1px solid var(--gray-200);
  padding: 12px 20px 16px;
}

/* Lead Items */
.lead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

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

.lead-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.lead-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

.lead-distance {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: inline-block;
}

.btn-interested {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  margin-left: 12px;
}

.btn-interested:hover {
  background: var(--gold-dark);
}

.btn-find-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-find-more:hover {
  background: var(--gray-200);
  color: var(--text-primary);
}

/* Interested Section */
.interested-section {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.interested-section .section-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.interested-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.interested-actions {
  margin-top: 12px;
}

/* Contact Info */
.contact-info {
  margin: 8px 0;
}

.contact-card {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
}

.contact-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-title {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-email, .contact-phone {
  font-size: 0.85rem;
  margin-top: 4px;
  color: var(--blue);
}

.contact-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.contact-source a {
  color: var(--blue);
  text-decoration: underline;
  font-style: italic;
}

.contact-source a:hover {
  color: var(--blue-dark, #1a73e8);
  text-decoration: underline;
}

.contact-form-link {
  margin-top: 6px;
  font-size: 0.85rem;
}

.contact-form-link a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.contact-form-link a:hover {
  background: var(--blue);
  color: #fff;
}

.contact-none {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.contact-loading {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

/* Buttons */
.btn-draft, .btn-send {
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-draft {
  background: var(--black);
  color: var(--white);
}

.btn-draft:hover {
  background: var(--dark-gray);
}

.btn-send {
  background: var(--green);
  color: var(--white);
}

.btn-send:hover {
  opacity: 0.9;
}

/* Email Draft */
.email-draft {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.draft-subject {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.draft-body {
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
}

.status-queued {
  background: #FEF3C7;
  color: #92400E;
}

.status-sent {
  background: #D1FAE5;
  color: #065F46;
}

/* Full Auto */
.fullauto-container {
  margin-top: 8px;
}

.fullauto-status {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.status-indicator.status-on {
  color: var(--gold);
}

.fullauto-desc {
  color: var(--gray-300);
  font-size: 0.88rem;
  margin-top: 8px;
}

.fullauto-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.fullauto-empty i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

/* Conversation List */
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conversation-row {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.conversation-header:hover {
  background: var(--gray-100);
}

.conversation-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.conversation-name {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
}

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

.conversation-status {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.conversation-status.status-sent {
  background: #DBEAFE;
  color: #1E40AF;
}

.conversation-status.status-replied {
  background: #D1FAE5;
  color: #065F46;
}

.conversation-status.status-coordinated {
  background: #FEF3C7;
  color: #92400E;
}

.conversation-toggle-icon {
  transition: transform 0.2s;
  color: var(--text-muted);
}

/* Conversation Thread */
.conversation-thread {
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px;
}

.email-message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.email-message:last-child {
  margin-bottom: 0;
}

.email-outbound {
  background: var(--gray-100);
}

.email-inbound {
  background: #EFF6FF;
}

.email-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.email-direction {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.email-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.email-subject {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.email-body {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Error */
.sales-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--red);
}

/* Responsive */
@media (max-width: 640px) {
  .category-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-start {
    width: 100%;
    text-align: center;
  }

  .lead-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn-interested {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}
