.efb-flow-builder-frontend,
.efb-contact-list-frontend,
.efb-qr-connect {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Flow Builder Frontend */
.efb-user-flows {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.efb-quick-send {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact List Frontend */
.efb-contact-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.efb-contact-search {
  margin-bottom: 20px;
}

.efb-contact-search input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.efb-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.efb-contact-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.efb-contact-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.efb-contact-card.selected {
  border-color: #0073aa;
  background: #f0f8ff;
}

.efb-contact-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

.efb-contact-phone {
  color: #666;
  margin-bottom: 5px;
}

.efb-contact-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.efb-tag {
  background: #e7f3ff;
  color: #0073aa;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.efb-bulk-send-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.efb-selected-contacts {
  margin-bottom: 15px;
  font-weight: 600;
  color: #0073aa;
}

/* QR Connect */
.efb-connection-status {
  text-align: center;
  margin-bottom: 30px;
}

.efb-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.efb-status-connected {
  background: #d4edda;
  color: #155724;
}

.efb-status-disconnected {
  background: #f8d7da;
  color: #721c24;
}

.efb-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.efb-qr-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.efb-qr-instructions {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.efb-qr-code-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#efb-qr-code img {
  max-width: 100%;
  height: auto;
}

.efb-instance-config {
  grid-column: 1 / -1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.efb-btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.efb-btn-primary {
  background: #0073aa;
  color: white;
}

.efb-btn-primary:hover {
  background: #005a87;
}

.efb-btn-success {
  background: #00a32a;
  color: white;
}

.efb-btn-success:hover {
  background: #007a20;
}

/* Form Groups */
.efb-form-group {
  margin-bottom: 15px;
}

.efb-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.efb-form-group input,
.efb-form-group textarea,
.efb-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .efb-contact-actions {
    flex-direction: column;
  }

  .efb-contacts-grid {
    grid-template-columns: 1fr;
  }

  .efb-qr-section {
    grid-template-columns: 1fr;
  }

  .efb-contact-search input {
    max-width: 100%;
  }
}
